Class InterfaceService¶
-
class InterfaceService¶
The InterfaceService acts for the User Interface (UI).
Public Functions
-
InterfaceService()¶
Empty constructor.
-
Font getFont() const¶
Get the font used for the game’s UI.
-
void showDialogue(const std::string &id, bool runScript = true)¶
Open a dialogue with a certain title.
-
void showDialogue(const DialogueBin &dialogue, bool runScript = true)¶
Open the dialogue with a Dialogue structure
-
InterfaceView *getCurrentView()¶
Get the current active view.
-
void showInterface(const std::string &title, bool runScript = true)¶
Set this view as the current one and show it.
-
void hideInterface(bool runScript = true)¶
Hide the current view (no current view).
-
KeyboardKey getLastKey()¶
Get the last pressed key.
-
void doFadeTransition()¶
Active a fade transition.
-
void updateFade()¶
Update transition routine.
-
void setTransitionPointCallback(std::function<void()> callback)¶
Set transition point callback.
-
void update()¶
Update routine.
-
void draw()¶
Draw routine.
-
void unload() const¶
Unload routine.
Public Static Functions
-
static ElementFactory &getFactory()¶
Get a reference to the factory helper.
-
InterfaceService()¶