aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-08-17 08:26:52 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-08-17 08:26:52 +0200
commitb204bc4da91f6f0bf38cc284693450afc5787512 (patch)
treed3a7b1e979df80838727d66c1d9ec5a352e6ff35 /src/script
parent3e80bf933f890c95badbf8896d6a89f4bb708389 (diff)
downloadminetest-b204bc4da91f6f0bf38cc284693450afc5787512.tar.gz
minetest-b204bc4da91f6f0bf38cc284693450afc5787512.tar.bz2
minetest-b204bc4da91f6f0bf38cc284693450afc5787512.zip
clientmap, clientmedia: code modernization
* use range-based for loops * simplify some tests * various code style fixes * remove debugprint in ClientMap::getBackgroundBrightness, debug code was not intended to be there * remove unused fields in MapDrawControl * use emplace_back instead of push_back when necessary
Diffstat (limited to 'src/script')
0 files changed, 0 insertions, 0 deletions
pc">#include <string> #include "modalMenu.h" #include "IGUIFileOpenDialog.h" #include "guiFormSpecMenu.h" //required because of TextDest only !!! class GUIFileSelectMenu: public GUIModalMenu { public: GUIFileSelectMenu(gui::IGUIEnvironment* env, gui::IGUIElement* parent, s32 id, IMenuManager *menumgr, std::string title, std::string formid); ~GUIFileSelectMenu(); void removeChildren(); /* Remove and re-add (or reposition) stuff */ void regenerateGui(v2u32 screensize); void drawMenu(); bool OnEvent(const SEvent& event); bool isRunning() { return m_running; } void setTextDest(TextDest * dest) { m_text_dst = dest; } private: void acceptInput(); std::wstring m_title; bool m_accepted; gui::IGUIElement* m_parent; std::string m_selectedPath; gui::IGUIFileOpenDialog* m_fileOpenDialog; bool m_running; TextDest *m_text_dst; std::string m_formname; }; #endif /* GUIFILESELECTMENU_H_ */