aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiFormSpecMenu.cpp
AgeCommit message (Collapse)Author
2022-11-03Reduce exposure of various internals (#12885)Loïc Blot
* refactoring(StaticObjectList): don't expose m_active and m_stored anymore This prevents our old crap code where anyone can access to StaticObjectList. use proper modifiers. It also permits to do a short cleanup on MapBlock using a helper * refactoring(MapBlock): reduce a bit exposed m_active_blocks variable * refactoring: MapBlock::m_node_timers is now private We already had various helpers to perform this privatization, just use it. Also factorize the MapBlock stepping code for timers using already existing code and importing them from ServerEnvironment to MapBlock. It's currently done pretty straight forward without any inheritance as MapBlock is just used everywhere, maybe in a future we'll have ServerMapBlock over MapBlock. Currently for a simple function let's just use proper objects and add a comment warning * refactoring(Server): fix duplicated function for add/remove node * refactoring(guiFormSpecMenu): add removeAll function to prevent duplicated code * refactoring(ShadowRenderer) + perf: code quality + increase performance * All callers are already using the point and we should never test a function with nullptr node, it's a bug. Removed workaround which was hacky and fix the bug * Drop clientmap lookup from shadowrendered, just use directly its pointer and forbid to push it in the generic list * Reduce memory pressure on the renderShadowObject by preventing deallocating and reallocating multiple vectors on each node * refactoring(MapBlock): reduce exposure of MapBlock::m_static_objects It's not complete as some parts of the code are pretty nested, but it's better than before :) * fix: better working on new functions & drop unwanted 2 lines Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com> Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2022-10-24GUIInventoryList: Keep item size while moving (#12896)Jean-Patrick Guerrero
2022-10-21Fix formspec focus (#12795)DS
2022-09-13Fix tooltips for dropdown, scrollbar and more (#12747)DS
2022-09-06Code optimizations / refactor (#12704)Herman Semenov
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com> Co-authored-by: sfan5 <sfan5@live.de>
2022-08-02Run Minetest update checker on startup (#7629)SmallJoker
This feature is enabled by default for non-Android release builds. Package maintainers may use -DENABLE_UPDATE_CHECKER=0 to disable it. Co-authored-by: rubenwardy <rw@rubenwardy.com> Co-authored-by: sfan5 <sfan5@live.de>
2022-07-31Use legacy image implementation (no NNAA filter) when not using 9-slice ↵x2048
image (#12608)
2022-07-14GUIFormSpecMenu: Fix label multiline translation (#12527)SmallJoker
2022-07-10GUIFormSpecMenu: Fix parameter orderSmallJoker
Fixes a regression caused by e51f47461 because C++ implicitly converts boolean to float. no matter what.
2022-07-09Sounds: Various little improvements (#12486)SmallJoker
Use SimpleSoundSpec where reasonable (OpenAL) Ensure the sound IDs do not underflow or get overwritten -> loop in u16 Proper use of an enum.
2022-07-09Enforce limits of settings that could cause buggy behaviour (#12450)SmallJoker
Enforces the setting value bounds that are currently only limited by the GUI (settingtypes.txt).
2022-07-03FormSpec: 9-slice images, animated_images, and fgimg_middle (#12453)Vincent Robinson
* FormSpec: 9-slice images and animated_images * Add fgimg_middle; clean up code * Address issues, add tests * Fix stupid error; bump formspec version * Re-add image[] elements without a size
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