![]() |
LIDL Soundboard
1.9.0
A simple soundboard, yet better than EXP Soundboard forsenE
|
The OverlayController singleton. More...
#include <OverlayController.h>
Public Member Functions | |
void | ResizeToWindow (HWND hwnd) |
Resize the overlay to the topmost window. Should be called whenever topmost window changes, or is resized. More... | |
void | ShowGameOverlay (HWND hwnd) |
Show the smol overlay when topmost window (game) changes. More... | |
void | ShowGameOverlay (Profile *profile) |
ShowGameOverlay. More... | |
void | SetRadialScanCode (int sc) |
SetRadialScanCode. More... | |
void | SetRadialVirtualKey (int vk) |
SetRadialVirtualKey. More... | |
Static Public Member Functions | |
static OverlayController * | GetInstance () |
Private Member Functions | |
OverlayController (QWidget *parent=nullptr) | |
OverlayController default constructor. More... | |
Private Attributes | |
QTimer * | _timerFade |
GameNameOverlay * | _gameOverlay |
QGridLayout * | _layout |
int | _radialScanCode |
int | _radialVirtualKey |
Static Private Attributes | |
static OverlayController * | self = nullptr |
|
explicitprivate |
OverlayController default constructor.
parent |
References _gameOverlay, _radialScanCode, _radialVirtualKey, and _timerFade.
Referenced by GetInstance().
|
static |
References OverlayController().
Referenced by LIDL::Callback::ResizeToWindow(), and LIDL::Callback::ShowOverlay().
void LIDL::OverlayController::ResizeToWindow | ( | HWND | hwnd | ) |
Resize the overlay to the topmost window. Should be called whenever topmost window changes, or is resized.
hwnd | a handler to a window |
References _gameOverlay.
Referenced by LIDL::Callback::ResizeToWindow(), and LIDL::Callback::ShowOverlay().
void LIDL::OverlayController::SetRadialScanCode | ( | int | sc | ) |
void LIDL::OverlayController::SetRadialVirtualKey | ( | int | vk | ) |
void LIDL::OverlayController::ShowGameOverlay | ( | HWND | hwnd | ) |
Show the smol overlay when topmost window (game) changes.
hwnd | a handler to a window Will get the name of the window from hwnd. |
References _gameOverlay, _timerFade, GameNameOverlay::FadeOut(), and GameNameOverlay::SetText().
Referenced by LIDL::Callback::ShowOverlay().
ShowGameOverlay.
Show the smol overlay when topmost window (game) changes.
profile | Will display profile->name(); |
References _gameOverlay, _timerFade, GameNameOverlay::FadeOut(), Profile::GetName(), and GameNameOverlay::SetText().
|
private |
Main overlay
Referenced by OverlayController(), ResizeToWindow(), and ShowGameOverlay().
|
private |
The layout
|
private |
Referenced by OverlayController(), and SetRadialScanCode().
|
private |
Referenced by OverlayController(), and SetRadialVirtualKey().
|
private |
Timer that controls the fade in/out
Referenced by OverlayController(), and ShowGameOverlay().
|
staticprivate |
A pointer to the only existing OverlayController.