aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
AgeCommit message (Collapse)Author
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
2016-02-08small drawItemStack cleanupest31
-> Replace the three bool params with an enum -> Add struct for the static content, leads to less repetition -> cache enable_animations setting
2016-02-07Use meshes to display inventory itemsRealBadAngel
2015-11-12Fix scrollbarsBlockMen
2015-10-14Use warningstream for log messages with WARNINGShadowNinja
Remove DTIME macro and its uses, too
2015-10-10Clear list rings when loading a new formspecest31
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.
2015-08-25Change i++ to ++iDavid Jones
2015-08-10Fix intlGUIEditBox leak and uninitialized value in Mapper (reported by valgrind)Kahrl
2015-06-23Add MoveSomewhere inventory actionest31
Improve shift+click experience
2015-06-18Don't print an error for valid listring[] formspecest31
2015-06-16GUIFormSpecMenu::OnEvent code style update and small refactorest31
* 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
2015-06-16Add list-ringsest31
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.
2015-06-13Use utf-8 in formspecsIlya Zhuravlev
2015-06-01Make split method staticest31
2015-05-19Replace instances of std::map<std::string, std::string> with StringMapkwolekr
Also, clean up surrounding code style Replace by-value parameter passing with const refs when possible Fix post-increment of iterators
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins
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
2015-04-01Fix some minor details from 6d61375kwolekr
2015-04-01Clean scaling pre-filter for formspec/HUD.Aaron Suen
2015-03-14Disable double-click -> ESC translation for main menuCraig Robbins
2015-03-11Unescape tooltip textsest31
Previously, tooltips didn't unescape escaped formspec texts. Item descriptions that trigger tooltips like inside inventories or for item_image_button don't need to get unescaped, as they don't get set using formspec, but from lua.
2015-03-09Stop formspecs closing with double-click in empty areaCraig Robbins
Behaviour on Android remains the same until other alternatives can be devised (if possible) See #2425 (and the many other -- now closed -- issues reporting this feature as a bug)
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-03-05Replace std::list to std::vector into tile.cpp (m_texture_trash) and move ↵Loic Blot
tile.hpp to src/client/
2015-02-21Move hex.h to util/Loic Blot
2015-02-10Fix Exit to OS button focus in Pause Menungosang
2015-02-05Reduce gettext wide/narrow and string/char* conversionsShadowNinja
2015-01-13Performance fixes.onkrot
2015-01-09Remove automatic consistent formspec size <-> font size (now has to be done ↵sapier
manually) Set builtin formspecs to autoscale in order to get consistent formspec look and feel Uncouple label positioning from font size (May break some formspecs but is required to allow manual font adjustment)
2015-01-09Fix logic of checkbox formspec element validity checkingKahrl
2015-01-06Fixes for androidsapier
Copy only minetest_game to apk by default Don't copy .git and .svn folders to apk Fix bouncing asset copy scrollbar due to long filepaths Reenable font scaling to fix broken menu on high dpi screens Implement minetest loglevel to android loglevel mapping Disable touch digging while moving around
2015-01-02Fix rounding error in font size making main menu and in game font sizes ↵sapier
inconsistent
2014-12-13Fix segfault when dragging mouse out of mainmenu window (#1910)Kahrl
2014-12-13Responsive tooltip offset for Android.Kodexky
Signed-off-by: Craig Robbins <kde.psych@gmail.com>