aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
AgeCommit message (Collapse)Author
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-10-17Fix inventory drag drop flag (#6416)asl97
2017-10-13Formspec: Fallback to 'label' in readonly textarea[]SmallJoker
Guarantees backwards compatibility for this formspec element change
2017-10-09Formspec: textarea with scrollbar improvementsadrido
Increase scrollrate depending on fontsize Scroll on mousewheel Allow scrolling and marking text on non writable textareas Update lua api about readonly mode Show scrollbar if text overflows
2017-10-09FormSpec : Add an auto vertical scrollbar to the textareaadelcoding1
2017-09-16Correct tooltip_append_itemstring terminology (#6421)DTA7
2017-09-15Add setting to display the itemstring after the tooltip in the inventory. ↵DTA7
(#6413) * Add setting to display the itemstring after the tooltip in the inventory.
2017-08-29Formspec: Add options to set background color and opacity (fullscreen mode + ↵Loïc Blot
default mode) (#5493) * Formspec: Add options to set background color and opacity (fullscreen mode) * Enhance previous comment: Set formspec background when regenerate UI. * This permit to do the calcul only at regen and override it with bgcolor tag * Add a setting for default background color into formspec, separated from fullscreen * Add a little performance gain on formspecs using a const ref instead of copying formspec string
2017-08-24Add clientside translations.Ekdohibs
2017-08-20Fix a formspec crash triggered by ae9b5e00989756bb676429530dfe81039009001cLoic Blot
2017-08-20Modernize code: very last fixes (#6290)Loïc Blot
Last modernization fixes
2017-07-01C++11 cleanup inventorymanager (#6077)Vincent Glize
* C++11 cleanup inventorymanager
2017-06-26Isolate irrlicht references and use a singleton (#6041)Loïc Blot
* Add Device3D class which will contain IrrlichtDevice interface move getSupportedVideoDrivers to Device3D Add Device3D singleton & use it in various places Rename Device3D to Rendering engine & add helper functions to various device pointers More singleton work RenderingEngine owns draw_load_screen move draw functions to RenderingEngine Reduce IrrlichtDevice exposure and guienvironment RenderingEngine: Expose get_timer_time() to remove device from guiEngine Make irrlichtdevice & scene manager less exposed * Code style fixes * Move porting::getVideoDriverName, getVideoDriverFriendlyName, getDisplayDensity, getDisplaySize to RenderingEngine Fix XORG_USED macro -> RenderingEngine + create_engine_device from RenderingEngine constructor directly * enum paralax => enum parallax
2017-06-19Client::makeScreenshot: remove device paramLoic Blot
We already have the device param as class member
2017-06-17Cpp11 initializers 2 (#5999)Loïc Blot
* C++11 patchset 10: continue cleanup on constructors * Drop obsolete bool MainMenuData::enable_public (setting is called with cURL in server loop) * More classes cleanup * More classes cleanup + change NULL tests to boolean tests
2017-06-16C++11 patchset 9: move hardcoded init parameters to class definitions (part ↵Loïc Blot
1) (#5984) * C++11 patchset 9: move hardcoded init parameters to class definitions C++11 introduced the possibility to define the default values directly in class definitions, do it on current code Also remove some unused attributes * CollisionInfo::bouncy * collisionMoveResult::collides_xy * collisionMoveResult::standing_on_unloaded * Clouds::speed * More constructor cleanups + some variables removal * remove only write guiFormSpecMenu::m_old_tooltip * move header included inside defintions in genericobject.h * remove some unused since years exception classes * remove unused & empty debug_stacks_init * remove unused & empty content_nodemeta_serialize_legacy * remove forgotten useless bool (bouncy) in collision.cpp code
2017-06-10Remove superfluous pointer null checksQrchackOfficial
2017-06-04C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821)Loïc Blot
2017-06-03Tooltips: Unify the tooltip[] and list[] description tooltip display ↵SmallJoker
functions (#5848) * Tooltips: Unify the tooltip[] and list[] description tooltip display functions
2017-06-01Fix dropdown menu selection (#5847)red-001
This fixes a bug that occurred when the selection list of a drop down menu was changed but the name was still the same.
2017-05-26Time: Change old `u32` timestamps to 64-bit (#5818)SmallJoker
MacOSX build fix + cleanups
2017-04-28Clean up getTime helpersShadowNinja
This increases size of the getTime return values to 64 bits. It also removes the TimeGetter classes since the getTime functions are now very precise.
2017-04-25Rename Scripting API files for consistencyShadowNinja
2017-04-21Fix various performance issues reported by cppcheck + code style (CI) (#5635)Loïc Blot
* Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function
2017-04-20Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)Loïc Blot
* Also remove 2 non declared but defined functions * Make some functions around const ref changes const
2017-04-17Don't make TAB exit game if bound to inventory.Auke Kok
I play with the TAB key bound to the inventory. However, the code here assumes that TAB means "close formspec" in all contexts, including the main menu. This causes my game to exit when I attempt to TAB in between USERNAME and PASSWORD fields. We know when m_client != NULL that the game is a client game and not in the main menu, and then it's OK to use the INVENTORY bound key to exit the formspec, since it's not the main menu.
2017-03-18Show itemstring as tooltip if no item descriptionWuzzy
2017-03-13[CSM] Client side moddingLoic Blot
* rename GameScripting to ServerScripting * Make getBuiltinLuaPath static serverside * Add on_shutdown callback * Add on_receiving_chat_message & on_sending_chat_message callbacks * ScriptApiBase: use IGameDef instead of Server This permits to share common attribute between client & server * Enable mod security in client side modding without conditions
2017-03-04FormSpec: Add position and anchor elements (#5284)adelcoding1
2017-02-04Add per-stack descriptions using ItemStack Metadatarubenwardy
2017-01-09Environment & IGameDef code refactoring (#4985)Ner'zhul
* Environment code refactoring * Cleanup includes & class declarations in client & server environment to improve build speed * ServerEnvironment::m_gamedef is now a pointer to Server instead of IGameDef, permitting to cleanup many casts. * Cleanup IGameDef * Move ITextureSource* IGameDef::getTextureSource() to Client only. * Also move ITextureSource *IGameDef::tsrc() helper * drop getShaderSource, getSceneManager, getSoundManager & getCamera abstract call * drop unused emerge() call * cleanup server unused functions (mentionned before) * Drop one unused parameter from ContentFeatures::updateTextures * move checkLocalPrivilege to Client * Remove some unnecessary casts * create_formspec_menu: remove IWritableTextureSource pointer, as client already knows it * Fix some comments * Change required IGameDef to Server/Client pointers * Previous change that game.cpp sometimes calls functions with Client + InventoryManager + IGameDef in same functions but it's the same objects * Remove duplicate Client pointer in GUIFormSpecMenu::GUIFormSpecMenu * drop ClientMap::sectorWasDrawn which is unused
2016-12-20Limit drawing rect of selected item to viewport size (fixes #4341)sfan5
2016-11-11Fixed tooltips not resizing with \n (#4766)lisacvuk
* Fixed tooltips not resizing with \n * Fixed it for 1.8.4 too. * Fixed not working with Freetype disabled. * Modified it to use Zeno-'s solution.
2016-10-08Fix backwards compatibility issue introduced by close_on_enterrubenwardy
2016-10-03Formspec: Add container[] and container_end[] elementsrubenwardy
2016-08-29Fix background formspec elements from interfering with each otherrubenwardy
Fixes #4397
2016-08-27Allow fields to choose whether they close on enter pressrubenwardy
2016-08-27Submit name of field on enter key pressrubenwardy
2016-06-03Initial Gamepad supportest31
Adds initial ingame gamepad support to minetest. Full Formspec support is not implemented yet and can be added by a later change.
2016-05-31Add colored text (not only colored chat).Ekdohibs
Add documentation, move files to a proper place and avoid memory leaks. Make it work with most kind of texts, and allow backgrounds too.
2016-05-24Fix irrlicht version checking macro for tooltip_height calculationCraig Robbins
2016-05-21Fix tooltip height for versions of irrlicht < 1.8.2Craig Robbins
Version 1.8.2 of irrlicht changed the way that IGUIStaticText::getTextHeight() works and since that release properly deals with newlines. From irrlicht changes.txt for 1.8.2, "IGUIStaticText::getTextHeight returns now the correct height for texts with newlines even WordWrap is not set."
2016-05-07Run unescape_enriched *after* unescape_string.Ekdohibs
Doing it the other way round was a mistake, since it breaks minetest.formspec_escape with escape sequences that contain special characters.
2016-05-07Make dropdowns show the string that was their argument.Ekdohibs
This makes it work even if it contains escape sequences, which didn't work before.
2016-04-24Escape more strings: formspecs, item descriptions, infotexts...Ekdohibs
Also, change the escape character to the more standard \x1b Thus, it can be used in the future for translation or colored text, for example.
2016-04-23Fix bug that was leading to oversized tooltips containing multiline text ↵Xunto
when it have multiple lines
2016-03-19Clean up StrfndShadowNinja
Changes: * Fix indentation. * Pass strings by const reference. * Merge Strfnd and WStrfnd into one class instead of copying them. * Remove trailing spaces. * Fix variable names. * Move to util. * Other miscellaneous style fixes.
2016-02-13Formspec: fix broken irrlicht 1.7 buildRealBadAngel
Fixes #3701.
2016-02-13Formspec: recreate item_image_button pressed state for its image and labelRealBadAngel
2016-02-09FormSpec: Add StaticTextSpec and superimpose over item image buttonsRealBadAngel