|
| enum | GameState : unsigned int { MENU
, GAME
, INGAME_MENU
, CURRENT
} |
| |
| enum | EventPropagation { EVENT_BLOCK
, EVENT_BLOCK_BUT_HANDLED
, EVENT_LET
} |
| |
| enum | NavigationDirection { NAV_LEFT
, NAV_RIGHT
, NAV_UP
, NAV_DOWN
} |
| |
| enum | ModalDialogLocation { MODAL_DIALOG_LOCATION_CENTER = 0
, MODAL_DIALOG_LOCATION_BOTTOM = 1
} |
| |
| enum | WidgetType {
WTYPE_NONE = -1
, WTYPE_RIBBON
, WTYPE_SPINNER
, WTYPE_BUTTON
,
WTYPE_ICON_BUTTON
, WTYPE_CHECKBOX
, WTYPE_LABEL
, WTYPE_BUBBLE
,
WTYPE_SPACER
, WTYPE_DIV
, WTYPE_DYNAMIC_RIBBON
, WTYPE_MODEL_VIEW
,
WTYPE_LIST
, WTYPE_TEXTBOX
, WTYPE_PROGRESS
, WTYPE_RATINGBAR
} |
| |
| enum | BadgeType {
LOCKED_BADGE = 1
, OK_BADGE = 2
, BAD_BADGE = 4
, TROPHY_BADGE = 8
,
GAMEPAD_BADGE = 16
, KEYBOARD_BADGE = 32
, LOADING_BADGE = 64
, ZIPPER_BADGE = 128
,
ANCHOR_BADGE = 256
, DOWN_BADGE = 512
, HEART_BADGE = 1024
, REDDOT_BADGE = 2048
} |
| |
| enum | Property {
PROP_ID = 100
, PROP_PROPORTION
, PROP_WIDTH
, PROP_HEIGHT
,
PROP_CHILD_WIDTH
, PROP_CHILD_HEIGHT
, PROP_WORD_WRAP
, PROP_ALTERNATE_BG
,
PROP_LINE_HEIGHT
, PROP_X
, PROP_Y
, PROP_LAYOUT
,
PROP_ALIGN
, PROP_ICON
, PROP_FOCUS_ICON
, PROP_TEXT_ALIGN
,
PROP_TEXT_VALIGN
, PROP_MIN_VALUE
, PROP_MAX_VALUE
, PROP_MAX_WIDTH
,
PROP_MAX_HEIGHT
, PROP_SQUARE
, PROP_EXTEND_LABEL
, PROP_LABELS_LOCATION
,
PROP_MAX_ROWS
, PROP_WRAP_AROUND
, PROP_DIV_PADDING
, PROP_KEEP_SELECTION
,
PROP_CUSTOM_RATIO
, PROP_ICON_ALIGN
, PROP_COLOR_SLIDER
} |
| |
| enum | RibbonType { RIBBON_COMBO
, RIBBON_TOOLBAR
, RIBBON_TABS
, RIBBON_VERTICAL_TABS
} |
| | Types of ribbons. More...
|
| |
| enum | RibbonFlip { FLIP_NO
, FLIP_UP_LEFT
, FLIP_DOWN_RIGHT
} |
| | Filp directions of ribbons.
|
| |
| enum | TextBoxType : int {
TBT_TEXT = 0
, TBT_CAP_SENTENCES = 1
, TBT_PASSWORD = 2
, TBT_NUMBER = 3
,
TBT_EMAIL = 4
} |
| |
|
|
static DialogQueue * | dialog_queue_singleton (NULL) |
| |
| float | getLatestDt () |
| |
|
void | showMessage (const core::stringw &message, const float time) |
| |
| Widget * | getFocusForPlayer (const unsigned int playerID) |
| | Returns the widget currently focused by given player, or NULL if none. More...
|
| |
| void | focusNothingForPlayer (const unsigned int playerID) |
| | Focuses nothing for given player (removes any selection for this player). More...
|
| |
| bool | isFocusedForPlayer (const Widget *w, const unsigned int playerID) |
| | Returns whether given the widget is currently focused by given player. More...
|
| |
| int | getTitleFontHeight () |
| |
|
int | getSmallTitleFontHeight () |
| |
|
int | getTinyTitleFontHeight () |
| |
| int | getFontHeight () |
| |
| int | getSmallFontHeight () |
| |
|
int | getLargeFontHeight () |
| |
| void | clear () |
| | erases the currently displayed screen, removing all added irrLicht widgets More...
|
| |
| void | update (float dt) |
| | Updates all widgets that need to be updated. More...
|
| |
|
void | cleanForGame () |
| | like GUIEngine::clear, but to be called before going into game
|
| |
|
void | clearScreenCache () |
| |
| void | switchToScreen (Screen *screen) |
| | Low-level mean to change current screen. More...
|
| |
|
void | addScreenToList (Screen *screen) |
| | Add a screen to the list of screens known by the gui engine.
|
| |
|
void | removeScreen (Screen *screen) |
| | Remove a screen from the list of screens known by the gui engine.
|
| |
| void | reshowCurrentScreen () |
| | to be called after e.g. More...
|
| |
| void | cleanUp () |
| | Clean some of the cached data, either for a shutdown or a reload. More...
|
| |
| void | deallocate () |
| | To be called after cleanup(). More...
|
| |
|
void | resetGlobalVariables () |
| |
|
void | init (IrrlichtDevice *device_a, IVideoDriver *driver_a, AbstractStateManager *state_manager, bool loading) |
| |
|
void | reloadSkin () |
| | call when skin in user config was updated
|
| |
|
void | reloadForNewSize () |
| | call when screen size changed
|
| |
|
void | addGUIFunctionBeforeRendering (std::function< void()> func) |
| | Add gui-related function before rendering GUI (from other thread)
|
| |
| void | render (float elapsed_time, bool is_loading) |
| | called on every frame to trigger the rendering of the GUI. More...
|
| |
|
void | clearLoadingTips () |
| |
|
void | renderLoading (bool clearIcons=true, bool launching=false, bool update_tips=true) |
| | renders a "loading" screen
|
| |
|
void | flushRenderLoading (bool launching) |
| | poll events during rendering to prevent unresponsive window
|
| |
|
void | reserveLoadingIcons (int count) |
| | The engine is being told there will be more icons.
|
| |
|
void | addLoadingIcon (irr::video::ITexture *icon) |
| | to spice up a bit the loading icon : add icons to the loading screen
|
| |
| Widget * | getWidget (const char *name) |
| | Finds a widget from its name (PROP_ID) in the current screen/dialog. More...
|
| |
| Widget * | getWidget (const int id) |
| | Finds a widget from its irrlicht widget ID in the current screen/dialog. More...
|
| |
|
void | disableGraphics () |
| |
|
bool | isNoGraphics () |
| |
| void | init (irr::IrrlichtDevice *device, irr::video::IVideoDriver *driver, AbstractStateManager *state_manager, bool loading=true) |
| | Call this method to init the GUI engine. More...
|
| |
| irr::IrrlichtDevice * | getDevice () |
| |
| irr::gui::IGUIEnvironment * | getGUIEnv () |
| |
| irr::video::IVideoDriver * | getDriver () |
| |
| irr::gui::ScalableFont * | getSmallFont () |
| |
| irr::gui::ScalableFont * | getFont () |
| |
|
irr::gui::ScalableFont * | getOutlineFont () |
| |
| irr::gui::ScalableFont * | getLargeFont () |
| |
| irr::gui::ScalableFont * | getHighresDigitFont () |
| |
| irr::gui::ScalableFont * | getTitleFont () |
| |
| irr::gui::ScalableFont * | getSmallTitleFont () |
| |
| irr::gui::ScalableFont * | getTinyTitleFont () |
| |
| Screen * | getCurrentScreen () |
| |
| AbstractStateManager * | getStateManager () |
| |
| Skin * | getSkin () |
| |
|
void | setSkin (Skin *skin) |
| |
|
Screen * | getScreenNamed (const char *name) |
| |
| void | showMessage (const irr::core::stringw &message, const float time=5.0f) |
| | shows a message at the bottom of the screen for a while More...
|
| |
|
bool | isWithinATextBox () |
| |
|
void | setWithinATextBox (bool in) |
| |
|
|
PtrVector< Widget, REF > | needsUpdate |
| | Widgets that need to be notified at every frame can add themselves there (FIXME: unclean)
|
| |
|
PtrVector< Screen, REF > | g_loaded_screens |
| |
|
float | dt = 0 |
| |
|
std::vector< MenuMessage > | gui_messages |
| |
|
bool | g_is_no_graphics [PT_COUNT] |
| |
|
int | g_expected_icon_count = 0 |
| |
|
std::vector< irr::video::ITexture * > | g_loading_icons |
| |
|
core::stringw | g_tips_string |
| |
|
static ModalDialog * | modalWindow = NULL |
| | global instance of the current dialog if any
|
| |
|
bool | pointer_was_shown |
| | To remember and restore the previous state.
|
| |
|
SkinWidgetContainer * | g_bg_container = NULL |
| | The widget used to hold the scrollbar BG.
|
| |
|
SkinWidgetContainer * | g_thumb_container = NULL |
| | The widget used to hold the scrollbar thumb.
|
| |
|
static bool | g_is_within_a_text_box = false |
| |
|
const unsigned int | FOCUSABLE_IDS_BASE = 100 |
| |
|
const unsigned int | UNFOCUSABLE_IDS_BASE = 1000 |
| |
|
static unsigned int | id_counter = FOCUSABLE_IDS_BASE |
| | Used to assign irrLicht IDs to widgets dynamically.
|
| |
|
static unsigned int | id_counter_2 = UNFOCUSABLE_IDS_BASE |
| | for items that can't be reached with keyboard navigation but can be clicked
|
| |
|
const int | BUBBLE_MARGIN_ON_RIGHT = 15 |
| |
Contains all GUI engine related classes and functions.
See GUI Module Overview for more information.