aboutsummaryrefslogtreecommitdiff
path: root/src/gui
Commit message (Expand)AuthorAge
* Replace all uses of core::list with std::list (#12313)paradust72022-05-22
* Remove confusing message in keybindings menusavilli2022-05-17
* FormspecMenu: make drawing of backgrounds less hacky (#9517)DS2022-02-22
* Rework drawtime and related timekeeping code to use microsecondssfan52022-01-27
* Formspec: Fix bgcolor and set_focus checksSmallJoker2022-01-09
* Fully remove bitmap font support (#11863)sfan52022-01-08
* Base formspec coordinate size on padded screensizeVincent Robinson2022-01-04
* Add padding[] element to formspecs (#11821)Vincent Robinson2021-12-30
* Formspec: Unify argument checks (#11851)SmallJoker2021-12-29
* Remove unused (de)serializeAttributes() methodsROllerozxa2021-12-29
* Allow for Game-Specific Menu Music (#11241)ExeVirus2021-11-22
* Fix crash on hypertext[] with not enough partsrubenwardy2021-10-25
* Various code improvementsSmallJoker2021-09-27
* Touch UI support for desktop builds (#10729)TheBrokenRail2021-09-26
* Chop game background in mainmenu (#10796)Lars Müller2021-09-14
* Make sure relevant std::stringstreams are set to binarysfan52021-09-11
* Async-related script cleanupssfan52021-08-28
* Use utf-8 for the Irrlicht clipboard (#11538)DS2021-08-23
* Fix GUIEditBoxWithScrollBar using a smaller steps than intlGUIEditBox (#11519)DS2021-08-08
* Gettext support on Android (#11435)Pevernow2021-08-08
* Remove unused header includeshecks2021-07-21
* Perform some quality assurance for translation strings (#11375)Wuzzy2021-06-23
* Make chat web links clickable (#11092)pecksin2021-06-20
* Fix background color of formspec text fieldssfan52021-05-30
* GUIEditBox: Allow selecting and copying read-only textsSmallJoker2021-05-22
* refacto: remove get_gui_env & draw_load_screen from RenderingEngine singletonLoic Blot2021-05-03
* refacto: RenderingEngine::get_scene_manager() is now not callable from singletonLoic Blot2021-05-03
* refacto: RenderingEngine is now better hiddenLoic Blot2021-05-03
* Add a key to toggle map block bounds (#11172)Seth Traverse2021-04-20
* Make edit boxes respond to string input (IME) (#11156)yw052021-04-05
* Reserve vectors before pushing and other code quality changes (#11161)sfan52021-04-05
* CGUITTFont optimizations (#11136)sfan52021-04-02
* Fix segfault for model[] without animation speedJean-Patrick Guerrero2021-03-21
* Drop old text input workarounds (#11089)sfan52021-03-19
* GUIScene: Clear depth buffer + replace deprecated clearZBuffer callsJean-Patrick Guerrero2021-03-16
* Restore Irrlicht 1.9 supportsfan52021-03-09
* Use "Aux1" key name consistently everywhereWuzzy2021-02-24
* Fix animation_image support in scroll containersJean-Patrick Guerrero2021-02-08
* Rewrite touch event conversion (#10636)Vitaliy2021-02-07
* Fix memory leak detected by address sanitizer (#10896)k.h.lai2021-02-02
* Fix list spacing and size (again) (#10869)Vincent Robinson2021-02-02
* Drop wide/narrow conversion functionssfan52021-02-02
* Settings: Proper priority hierarchySmallJoker2021-01-29
* Include irrlichttypes.h first to work around Irrlicht#433 (#10872)Vitaliy2021-01-28
* Fix formspec list spacing (#10861)Vincent Robinson2021-01-23
* Make hypertext and textarea have proper scroll event propagation. (#10860)Vincent Robinson2021-01-23
* FormSpec: Add list spacing, slot size, and noclip (#10083)Vincent Robinson2021-01-23
* Remove dead code (#10845)rubenwardy2021-01-22
* Factorize more guiEditBoxes code (#10789)Loïc Blot2021-01-13
* Refactor/gui editbox (#10787)Loïc Blot2021-01-07
"Available commands: (see also: /help <cmd>)", table.concat(rows, ","), sel or 0, description, "Close" ) end -- PRIVILEGES FORMSPEC local function build_privs_formspec(name) local privs = {} for priv_name, def in pairs(core.registered_privileges) do privs[#privs + 1] = { priv_name, def } end table.sort(privs, function(a, b) return a[1] < b[1] end) local rows = {} rows[1] = "#FFF,0,Privilege,Description" local player_privs = core.get_player_privs(name) for i, data in ipairs(privs) do rows[#rows + 1] = ("%s,0,%s,%s"):format( player_privs[data[1]] and COLOR_GREEN or COLOR_GRAY, data[1], formspec_escape(data[2].description)) end return LIST_FORMSPEC:format( "Available privileges:", table.concat(rows, ","), "Close" ) end -- DETAILED CHAT COMMAND INFORMATION core.register_on_player_receive_fields(function(player, formname, fields) if formname ~= "__builtin:help_cmds" or fields.quit then return end local event = core.explode_table_event(fields.list) if event.type ~= "INV" then local name = player:get_player_name() core.show_formspec(name, "__builtin:help_cmds", build_chatcommands_formspec(name, event.row, event.type == "DCL")) end end) local help_command = core.registered_chatcommands["help"] local old_help_func = help_command.func help_command.func = function(name, param) local admin = core.settings:get("name") -- If the admin ran help, put the output in the chat buffer as well to -- work with the server terminal if param == "privs" then core.show_formspec(name, "__builtin:help_privs", build_privs_formspec(name)) if name ~= admin then return true end end if param == "" or param == "all" then core.show_formspec(name, "__builtin:help_cmds", build_chatcommands_formspec(name)) if name ~= admin then return true end end return old_help_func(name, param) end