68 void gotText(
const std::wstring &text);
95 video::ITexture *
getTexture(
const std::string &name, u32 *
id = NULL);
109 std::vector<std::string> &paths)
override;
129 gui::IGUIElement *parent,
164 const std::string &domain,
const std::string &lang_code);
242 bool tile_image,
unsigned int minsize);
249 static bool downloadFile(
const std::string &url,
const std::string &target);
Definition enriched_string.h:29
implementation of main menu based uppon formspecs
Definition guiEngine.h:113
bool m_startgame
variable used to abort menu and return back to main game handling
Definition guiEngine.h:205
scene::ISceneManager * m_smgr
scene manager to add scene elements to
Definition guiEngine.h:186
bool m_clouds_enabled
is drawing of clouds enabled atm
Definition guiEngine.h:269
void run()
run main menu loop
Definition guiEngine.cpp:296
Translations m_last_translations
Only the most recently used translation set is kept loaded.
Definition guiEngine.h:169
FormspecFormSource * m_formspecgui
representation of form source to be used in mainmenu formspec
Definition guiEngine.h:195
virtual ~GUIEngine()
default destructor
Definition guiEngine.cpp:390
void drawOverlay(video::IVideoDriver *driver)
draw overlay layer
Definition guiEngine.cpp:481
void drawBackground(video::IVideoDriver *driver)
draw background layer
Definition guiEngine.cpp:426
void updateTopLeftTextSize()
update size of topleftext element
Definition guiEngine.cpp:656
image_definition m_textures[TEX_LAYER_MAX]
array containing pointers to current specified texture layers
Definition guiEngine.h:252
bool setTexture(texture_layer layer, const std::string &texturepath, bool tile_image, unsigned int minsize)
load a texture for a specified layer
Definition guiEngine.cpp:591
void setTopleftText(const std::string &text)
specify text to appear as top left string
Definition guiEngine.cpp:648
std::unique_ptr< ISoundManager > m_sound_manager
sound manager
Definition guiEngine.h:192
MainMenuData * m_data
pointer to data beeing transfered back to main game handling
Definition guiEngine.h:188
RenderingEngine * m_rendering_engine
Definition guiEngine.h:180
std::unique_ptr< MainMenuScripting > m_script
scripting interface
Definition guiEngine.h:208
void drawHeader(video::IVideoDriver *driver)
draw header layer
Definition guiEngine.cpp:500
std::unique_ptr< ISimpleTextureSource > m_texture_source
texture source
Definition guiEngine.h:190
EnrichedString m_toplefttext
and text that is in it
Definition guiEngine.h:263
bool loadMainMenuScript()
find and run the main menu script
Definition guiEngine.cpp:272
MainMenuScripting * getScriptIface()
return MainMenuScripting interface
Definition guiEngine.h:141
std::string m_last_translations_key
Definition guiEngine.h:167
void drawClouds(float dtime)
do preprocessing for cloud subsystem
Definition guiEngine.cpp:410
void drawFooter(video::IVideoDriver *driver)
draw footer layer
Definition guiEngine.cpp:559
static void fullscreenChangedCallback(const std::string &name, void *data)
Definition guiEngine.cpp:668
Translations * getContentTranslations(const std::string &path, const std::string &domain, const std::string &lang_code)
Get translations for content.
Definition guiEngine.cpp:230
static bool downloadFile(const std::string &url, const std::string &target)
download a file using curl
Definition guiEngine.cpp:617
irr::gui::IGUIStaticText * m_irr_toplefttext
pointer to gui element shown at topleft corner
Definition guiEngine.h:261
IMenuManager * m_menumanager
manager to add menus to
Definition guiEngine.h:184
TextDestGuiEngine * m_buttonhandler
formspec input receiver
Definition guiEngine.h:197
void setFormspecPrepend(const std::string &fs)
Definition guiEngine.cpp:417
gui::IGUIElement * m_parent
parent gui element
Definition guiEngine.h:182
GUIEngine(JoystickController *joystick, gui::IGUIElement *parent, RenderingEngine *rendering_engine, IMenuManager *menumgr, MainMenuData *data, bool &kill)
default constructor
Definition guiEngine.cpp:107
std::string getScriptDir()
return dir of current menuscript
Definition guiEngine.h:149
bool & m_kill
reference to kill variable managed by SIGINT handler
Definition guiEngine.h:202
irr_ptr< GUIFormSpecMenu > m_menu
the formspec menu
Definition guiEngine.h:199
std::string m_scriptdir
script basefolder
Definition guiEngine.h:211
Definition texturesource.h:25
Definition joystick_controller.h:87
Definition scripting_mainmenu.h:20
Definition l_mainmenu_sound.h:25
Definition l_mainmenu_sound.h:15
Implementation of lua api support for mainmenu.
Definition l_mainmenu.h:13
Definition renderingengine.h:68
GUIEngine specific implementation of TextDest used within guiFormSpecMenu.
Definition guiEngine.h:50
TextDestGuiEngine(GUIEngine *engine)
default constructor
Definition guiEngine.h:56
GUIEngine * m_engine
target to transmit data to
Definition guiEngine.h:72
void gotText(const StringMap &fields)
receive fields transmitted by guiFormSpecMenu
Definition guiEngine.cpp:37
Definition translation.h:19
static size_t minsize(const GettextPluralForm::Ptr &form)
Definition gettext_plural_form.cpp:7
texture_layer
texture layer ids
Definition guiEngine.h:21
@ TEX_LAYER_BACKGROUND
Definition guiEngine.h:22
@ TEX_LAYER_OVERLAY
Definition guiEngine.h:23
@ TEX_LAYER_HEADER
Definition guiEngine.h:24
@ TEX_LAYER_MAX
Definition guiEngine.h:26
@ TEX_LAYER_FOOTER
Definition guiEngine.h:25
Definition filesys.cpp:53
std::unordered_map< std::string, std::string > StringMap
Definition string.h:65
Definition guiMainMenu.h:21
Definition guiFormSpecMenu.h:67
Definition guiEngine.h:29
bool tile
Definition guiEngine.h:31
unsigned int minsize
Definition guiEngine.h:32
video::ITexture * texture
Definition guiEngine.h:30