aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiFormSpecMenu.cpp
AgeCommit message (Collapse)Author
2022-05-22Replace all uses of core::list with std::list (#12313)paradust7
2022-02-22FormspecMenu: make drawing of backgrounds less hacky (#9517)DS
2022-01-09Formspec: Fix bgcolor and set_focus checksSmallJoker
2022-01-04Base formspec coordinate size on padded screensizeVincent Robinson
2021-12-30Add padding[] element to formspecs (#11821)Vincent Robinson
2021-12-29Formspec: Unify argument checks (#11851)SmallJoker
2021-10-25Fix crash on hypertext[] with not enough partsrubenwardy
The length check used < rather than <=, disabling the check when the formspec version matches the client's FORMSPEC_API_VERSION. Additionally, it was possible to have fewer parts than required if the formspec version was greater than the client's FORMSPEC_API_VERSION.
2021-09-26Touch UI support for desktop builds (#10729)TheBrokenRail
2021-09-11Make sure relevant std::stringstreams are set to binarysfan5
2021-05-30Fix background color of formspec text fieldssfan5
2021-05-03refacto: remove get_gui_env & draw_load_screen from RenderingEngine singletonLoic Blot
2021-05-03refacto: RenderingEngine::get_scene_manager() is now not callable from singletonLoic Blot
This permits to make evidence that we have some bad object passing on various code parts. I fixed majority of them to reduce the scope of passed objects Unfortunately, for some edge cases i should have to expose ISceneManager from client, this should be fixed in the future when our POO will be cleaner client side (we have a mix of rendering and processing in majority of the client objects, it works but it's not clean)
2021-03-21Fix segfault for model[] without animation speedJean-Patrick Guerrero
2021-03-19Drop old text input workarounds (#11089)sfan5
* Drop unused intlGUIEditBox * Drop unnecessary Linux text input workarounds
2021-03-16GUIScene: Clear depth buffer + replace deprecated clearZBuffer callsJean-Patrick Guerrero
2021-02-08Fix animation_image support in scroll containersJean-Patrick Guerrero
2021-02-02Fix list spacing and size (again) (#10869)Vincent Robinson
2021-01-23Fix formspec list spacing (#10861)Vincent Robinson
2021-01-23FormSpec: Add list spacing, slot size, and noclip (#10083)Vincent Robinson
* Add list spacing, slot size, and noclip * Simplify StyleSpec * Add test cases Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-22Remove dead code (#10845)rubenwardy
2021-01-01Formspecs: Fix broken texture escaping with model[]Jean-Patrick Guerrero
2020-12-28Fix item tooltip background color not workingLars Mueller
2020-12-15Formspec: Allow to specify frame loop for model[] (#10679)Thomas--S
Add the ability to specify an animation frame loop range for the model[] formspec element.
2020-12-14Revert "GUIFormSpecMenu: Shift+Click listring workaround for MacOS"SmallJoker
The commit caused Shift-Clicking issues on Linux due to another Irrlicht bug where KeyInput.Shift released keys do not trigger OnEvent() MacOS users should build using a recent Irrlicht 1.8 development version. See also: https://sourceforge.net/p/irrlicht/patches/321/
2020-12-12GUIFormSpecMenu: Shift+Click listring workaround for MacOSSmallJoker
event.MouseInput.Shift is not implemented for MacOS
2020-11-23Add sound to press event of some formspecs elements (#10402)Pierre-Yves Rollo
2020-11-04Add model[] formspec element (#10320)SmallJoker
Formspec element to display models, written by @kilbith, rebased and tweaked. Co-authored-by: Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com> Co-authored-by: sfan5 <sfan5@live.de>
2020-08-23Avoid drawing clipped out formspec elements (#10095)EvidenceB
2020-08-20Fix missing translation call in hypertext (#10296)Pierre-Yves Rollo
2020-08-19Add gradients and borders to FormSpec boxes (#8676)v-rob
2020-08-19Optimize formspec form size (#10144)v-rob
2020-08-11Add font styling options to tables and textlists (#10203)v-rob
2020-07-14Formspecs: volume and key settings windows can now be closed by ↵Zughy
doubleclicking/tapping (#10128) Co-authored-by: Xx_Crazyminer_xX <carlo.digioia@hotmail.it> Co-authored-by: Marco <4279489-marco_a@users.noreply.gitlab.com>
2020-07-12Add FormSpec font styling options (#9763)v-rob
* Add FormSpec font styling options * Change multiplication to stof * Remove extraneous check
2020-07-12Allow FormSpec elements to be focused with `set_focus` (#9353)v-rob
This allows you to specify a FormSpec element to set the focus of with "set_focus[<name>;<always set>]".
2020-07-10Formspec: Make dropdowns optionally return event based on index, not value ↵v-rob
(#9496)
2020-07-03Don't stop style parsing on unknown property (#10143)v-rob
2020-06-09Hide tooltip after ETIE_LEFT_UP (for touch control)MoNTE48
2020-05-09Always use same default tabheader height (#9319)Paul Ouellette
Previously the default tabheader height was different when using real coordinates. This resulted in the height of tabs changing when switching tabs in sfinv if some tabs used real coordinates.
2020-05-06FormSpec: Add universal style selector `*` (#9718)v-rob
2020-04-25Add `animated_image` to clickthrough elements (#9724)v-rob
2020-04-25Simplify how parseElement splits element string (#9726)Pierre-Yves Rollo
2020-04-18Formspec: allow lists to change size and existence while the formspec is ↵DS
open (#9700) Fixes #9640.
2020-04-16Android: fix formspec input for AArch64 devices (#9685)Maksim
2020-04-13Add scroll_container formspec element (redo) (#9101)DS
New formspec elements: - `scroll_container[<X>,<Y>;<W>,<H>;<scrollbar name>;<orientation>;<scroll factor>]` - `scroll_container_end[]` Other elements can be embedded in this element. Scrollbar must be placed manually.
2020-04-12GUIFormSpecMenu: Add basic element highlighing debug feature (#9423)SmallJoker
Activated using F5
2020-04-11Formspecs: Add state-selection to style elements (#9378)Hugues Ross
2020-04-11Formspec: No spec ID for static text labelsSmallJoker
Fixes #9634
2020-03-31Fix GUI element click-through by changing visibility (#9534)DS
This adds a vector that holds pointers to elements that should only be visible while being drawn. In the guifsmenu's draw func, all elements in this vector are made visible and invisible again. Apart from there, they are always invisible. (Well they are still visible before the first drawn, does this matter? If yes, it could be fixed easily with some lines of code everywhere.)
2020-03-16Fix mouse events sent to wrong GUI elements when draggingsfan5