aboutsummaryrefslogtreecommitdiff
path: root/src/gui
AgeCommit message (Collapse)Author
2023-03-07Add keybind to swap items between handsHEADdual_wieldingElias Fleckenstein
2023-03-01Drop dependency on IrrCompileConfignumzero
The only remaining thing is IRRLICHT_SDK_VERSION via irrlicht.h
2023-02-18Remove dead code behind Irrlicht version checkssfan5
2022-11-30Handle num lock in chat (#12984)Jude Melton-Houghton
2022-11-26Virtual joystick: Use s32 when using m_screensize as a subtrahend (#12814)Muhammad Rifqi Priyo Susanto
If still uses u32, m_screensize will yield a big value (underflow) when used as a subtrahend. ETIE_MOVED is allowed to be run if joystick's ID is available and virtual joystick is fixed. Add .0f for some float values.
2022-11-09Fix typos and en_US/en_GB inconsistency in various files (#12902)Abdou-31
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-21guiChatConsole: fix the unicode characters crowded together on prompt (#12867)Riceball LEE
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-10-21Fix formspec focus (#12795)DS
2022-10-18Implement vector and node conversion in Lua (#12609)Jude Melton-Houghton
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-29Add crosshair support for Android (#7865)Muhammad Rifqi Priyo Susanto
If enabled, a crosshair will be shown to select object. This will give Android players a way to play like they play on desktop. On third-person back camera mode, player is forced to use crosshair. On third-person front camera mode, player is unable to select anything. Co-authored-by: ROllerozxa <temporaryemail4meh+github@gmail.com> Co-authored-by: rubenwardy <rw@rubenwardy.com>
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-15Apply DPI Scaling to GUIModalMenu (#12693)Elliott Lester
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-06-20Re-order sound-related code (#12382)SmallJoker
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
2022-06-14Fix Android input box crashROllerozxa
2022-06-05Add register dialog to separate login/register (#12185)rubenwardy
New users find Minetest's account system confusing. This change moves username/password to a new dialog, with login and register buttons added to the Join Game tab. The old registration confirmation dialog is removed in favour of the new dialog. Fixes #8138
2022-05-29Improve a translation stringsfan5
fixes #11442
2022-05-22Replace all uses of core::list with std::list (#12313)paradust7
2022-05-17Remove confusing message in keybindings menusavilli
2022-02-22FormspecMenu: make drawing of backgrounds less hacky (#9517)DS
2022-01-27Rework drawtime and related timekeeping code to use microsecondssfan5
2022-01-09Formspec: Fix bgcolor and set_focus checksSmallJoker
2022-01-08Fully remove bitmap font support (#11863)sfan5
Freetype is now a build requirement.
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-12-29Remove unused (de)serializeAttributes() methodsROllerozxa
2021-11-22Allow for Game-Specific Menu Music (#11241)ExeVirus
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-27Various code improvementsSmallJoker
* Camera: Fix division by 0 after view bobbing * Remove ignored constness * Connection: Improve window size range limits
2021-09-26Touch UI support for desktop builds (#10729)TheBrokenRail
2021-09-14Chop game background in mainmenu (#10796)Lars Müller
2021-09-11Make sure relevant std::stringstreams are set to binarysfan5
2021-08-28Async-related script cleanupssfan5
2021-08-23Use utf-8 for the Irrlicht clipboard (#11538)DS
2021-08-08Fix GUIEditBoxWithScrollBar using a smaller steps than intlGUIEditBox (#11519)DS
2021-08-08Gettext support on Android (#11435)Pevernow
Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: =?UTF-8?q?Olivier=20Samyn=20=F0=9F=8E=BB?= <code@oleastre.be>
2021-07-21Remove unused header includeshecks
2021-06-23Perform some quality assurance for translation strings (#11375)Wuzzy
2021-06-20Make chat web links clickable (#11092)pecksin
If enabled in minetest.conf, provides colored, clickable (middle-mouse or ctrl-left-mouse) weblinks in chat output, to open the OS' default web browser.
2021-05-30Fix background color of formspec text fieldssfan5