summaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
Commit message (Collapse)AuthorAge
* Ensure no item stack is being held before crafting (#4779)Luis Cáceres2018-06-03
|
* Tooltips: Unify the tooltip[] and list[] description tooltip display ↵SmallJoker2017-06-03
| | | | | | functions (#5848) * Tooltips: Unify the tooltip[] and list[] description tooltip display functions
* Fix dropdown menu selection (#5847)red-0012017-06-01
| | | This fixes a bug that occurred when the selection list of a drop down menu was changed but the name was still the same.
* Time: Change old `u32` timestamps to 64-bit (#5818)SmallJoker2017-05-26
| | | | MacOSX build fix + cleanups
* Clean up getTime helpersShadowNinja2017-04-28
| | | | | | 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.
* Rename Scripting API files for consistencyShadowNinja2017-04-25
|
* Fix various performance issues reported by cppcheck + code style (CI) (#5635)Loïc Blot2017-04-21
| | | | | | | * 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
* Fix various copy instead of const ref reported by cppcheck (part 3) (#5616)Loïc Blot2017-04-20
| | | | * Also remove 2 non declared but defined functions * Make some functions around const ref changes const
* Don't make TAB exit game if bound to inventory.Auke Kok2017-04-17
| | | | | | | | | | | 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.
* Show itemstring as tooltip if no item descriptionWuzzy2017-03-18
|
* [CSM] Client side moddingLoic Blot2017-03-13
| | | | | | | | | | * 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
* FormSpec: Add position and anchor elements (#5284)adelcoding12017-03-04
|
* Add per-stack descriptions using ItemStack Metadatarubenwardy2017-02-04
|
* Environment & IGameDef code refactoring (#4985)Ner'zhul2017-01-09
| | | | | | | | | | | | | | | | | | | | | * 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
* Limit drawing rect of selected item to viewport size (fixes #4341)sfan52016-12-20
|
* Fixed tooltips not resizing with \n (#4766)lisacvuk2016-11-11
| | | | | | | | | | * 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.
* Fix backwards compatibility issue introduced by close_on_enterrubenwardy2016-10-08
|
* Formspec: Add container[] and container_end[] elementsrubenwardy2016-10-03
|
* Fix background formspec elements from interfering with each otherrubenwardy2016-08-29
| | | | Fixes #4397
* Allow fields to choose whether they close on enter pressrubenwardy2016-08-27
|
* Submit name of field on enter key pressrubenwardy2016-08-27
|
* Initial Gamepad supportest312016-06-03
| | | | | | | Adds initial ingame gamepad support to minetest. Full Formspec support is not implemented yet and can be added by a later change.
* Add colored text (not only colored chat).Ekdohibs2016-05-31
| | | | | Add documentation, move files to a proper place and avoid memory leaks. Make it work with most kind of texts, and allow backgrounds too.
* Fix irrlicht version checking macro for tooltip_height calculationCraig Robbins2016-05-24
|
* Fix tooltip height for versions of irrlicht < 1.8.2Craig Robbins2016-05-21
| | | | | | 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."
* Run unescape_enriched *after* unescape_string.Ekdohibs2016-05-07
| | | | | | Doing it the other way round was a mistake, since it breaks minetest.formspec_escape with escape sequences that contain special characters.
* Make dropdowns show the string that was their argument.Ekdohibs2016-05-07
| | | | | This makes it work even if it contains escape sequences, which didn't work before.
* Escape more strings: formspecs, item descriptions, infotexts...Ekdohibs2016-04-24
| | | | | | 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.
* Fix bug that was leading to oversized tooltips containing multiline text ↵Xunto2016-04-23
| | | | when it have multiple lines
* Clean up StrfndShadowNinja2016-03-19
| | | | | | | | | | | 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.
* Formspec: fix broken irrlicht 1.7 buildRealBadAngel2016-02-13
| | | | Fixes #3701.
* Formspec: recreate item_image_button pressed state for its image and labelRealBadAngel2016-02-13
|
* FormSpec: Add StaticTextSpec and superimpose over item image buttonsRealBadAngel2016-02-09
|
* small drawItemStack cleanupest312016-02-08
| | | | | | -> Replace the three bool params with an enum -> Add struct for the static content, leads to less repetition -> cache enable_animations setting
* Use meshes to display inventory itemsRealBadAngel2016-02-07
|
* Fix scrollbarsBlockMen2015-11-12
|
* Use warningstream for log messages with WARNINGShadowNinja2015-10-14
| | | | Remove DTIME macro and its uses, too
* Clear list rings when loading a new formspecest312015-10-10
| | | | | | | | | Fixes a bug where the old list ring remained when a new formspec was displayed over the old one. This created the list-ring of the new formspec to be partly ignored. Thanks to @VanessaE to report the bug, and @DonBatman to produce the code that exposed it.
* Change i++ to ++iDavid Jones2015-08-25
|
* Fix intlGUIEditBox leak and uninitialized value in Mapper (reported by valgrind)Kahrl2015-08-10
|
* Add MoveSomewhere inventory actionest312015-06-23
| | | | Improve shift+click experience
* Don't print an error for valid listring[] formspecest312015-06-18
|
* GUIFormSpecMenu::OnEvent code style update and small refactorest312015-06-16
| | | | | | | | * Make method (more) consistent with current code stlye * Move index into loop constructor after @rubenwardy's suggestion * Cache inv_s->getList(s.listname), which removes a possibly bad scenario of inv_s being null. * Properly check for validity
* Add list-ringsest312015-06-16
| | | | | | | Adds list-rings, a method to implement item sending between inventories via shift-click. Nice insider feature: a ring consisting of a single inventory list serves as nice clean-up method. Also adds them to minimal game, and the standard inventory. Craft output slots are not supported.
* Use utf-8 in formspecsIlya Zhuravlev2015-06-13
|
* Make split method staticest312015-06-01
|
* Replace instances of std::map<std::string, std::string> with StringMapkwolekr2015-05-19
| | | | | | Also, clean up surrounding code style Replace by-value parameter passing with const refs when possible Fix post-increment of iterators
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-01
| | | | | | | | | | | | Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
* Fix some minor details from 6d61375kwolekr2015-04-01
|
* Clean scaling pre-filter for formspec/HUD.Aaron Suen2015-04-01
|