298 Commits

Author SHA1 Message Date
Vitaliy
4caf156be5
Rewrite touch event conversion (#10636) 2021-02-07 11:48:30 +01:00
k.h.lai
2072afb72b
Fix memory leak detected by address sanitizer (#10896) 2021-02-02 20:56:24 +01:00
Vincent Robinson
f227e40180
Fix list spacing and size (again) (#10869) 2021-02-02 20:55:13 +01:00
sfan5
c834d2ab25 Drop wide/narrow conversion functions
The only valid usecase for these is interfacing with OS APIs
that want a locale/OS-specific multibyte encoding.
But they weren't used for that anywhere, instead UTF-8 is pretty
much assumed when it comes to that.
Since these are only a potential source of bugs and do not fulfil
their purpose at all, drop them entirely.
2021-02-02 20:46:08 +01:00
SmallJoker
37a05ec8d6 Settings: Proper priority hierarchy
Remove old defaults system
Introduce priority-based fallback list
Use new functions for map_meta special functions
Change groups to use end tags

Unittest changes:
 * Adapt unittest to the new code
 * Compare Settings objects
2021-01-29 17:32:35 +01:00
Vitaliy
ed0882fd58
Include irrlichttypes.h first to work around Irrlicht#433 (#10872)
Fixes the PcgRandom::PcgRandom linker issue, caused by inconsistent data type definition.
2021-01-28 21:25:13 +01:00
Vincent Robinson
ad9adcb884
Fix formspec list spacing (#10861) 2021-01-23 14:49:13 -08:00
Vincent Robinson
6a55c03dab
Make hypertext and textarea have proper scroll event propagation. (#10860) 2021-01-23 14:48:57 -08:00
Vincent Robinson
009e39e73b
FormSpec: Add list spacing, slot size, and noclip (#10083)
* Add list spacing, slot size, and noclip

* Simplify StyleSpec

* Add test cases

Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-23 12:46:19 -08:00
rubenwardy
4c76239818
Remove dead code (#10845) 2021-01-22 15:09:26 +00:00
Loïc Blot
4b01282821
Factorize more guiEditBoxes code (#10789)
* Factorize more guiEditBoxes code
2021-01-13 09:05:09 +01:00
Elias Fleckenstein
f97763dc70 Merge branch 'master' of https://github.com/minetest/minetest 2021-01-08 16:08:21 +01:00
Loïc Blot
5fcc78a1fe
Refactor/gui editbox (#10787) 2021-01-07 13:21:12 +01:00
Elias Fleckenstein
cca4254f7c Merge branch 'master' of https://github.com/minetest/minetest 2021-01-07 12:35:04 +01:00
Elias Fleckenstein
dc67f669e9 Make the Cheat Menu size configureable 2021-01-07 10:52:42 +01:00
Loïc Blot
58a709096e
refacto: factorize multiple code parts from guiEditbox childs (#10782) 2021-01-04 20:19:20 +01:00
Jean-Patrick Guerrero
ff921f6989 Formspecs: Fix broken texture escaping with model[] 2021-01-01 17:03:34 +01:00
Lars Mueller
09d7fbd645 Fix item tooltip background color not working 2020-12-28 13:57:45 +01:00
sfan5
74762470b2 Fix some minor code issues all over the place 2020-12-24 13:44:54 +01:00
Thomas--S
d0a38f694d
Formspec: Allow to specify frame loop for model[] (#10679)
Add the ability to specify an animation frame loop range for the model[] formspec element.
2020-12-15 19:06:36 +01:00
SmallJoker
f2c8c6bf51 Revert "GUIFormSpecMenu: Shift+Click listring workaround for MacOS"
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-14 11:05:24 -08:00
SmallJoker
e18b6c5a21 GUIFormSpecMenu: Shift+Click listring workaround for MacOS
event.MouseInput.Shift is not implemented for MacOS
2020-12-12 20:55:06 +01:00
Elias Fleckenstein
0a285dd338 Remove NextItem 2020-11-29 19:15:41 +01:00
Elias Fleckenstein
eb6aca8b4a Merged Minetest 2020-11-28 13:48:33 +01:00
sfan5
9bb381ebd3 Change typedef to normal definitions in GUI code 2020-11-26 22:42:19 +01:00
Pierre-Yves Rollo
78273027bf Add sound to press event of some formspecs elements (#10402) 2020-11-23 21:28:25 +01:00
red-001
8eb2cbac61
Fix warnings about an unused variables and implicit conversion (#10586) 2020-11-12 21:05:47 +01:00
Elias Fleckenstein
0aa63aafce Fixed warning 2020-11-06 13:44:54 +01:00
SmallJoker
3356da0151
Add model[] formspec element (#10320)
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-11-04 21:46:18 +01:00
Elias Fleckenstein
75ecaa2173 Fix and run the Lint autocorrect script 2020-11-04 17:25:42 +01:00
Elias Fleckenstein
6ccb5835ff Revert "Make Lint Happy"
This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4.
2020-11-04 16:57:41 +01:00
Elias Fleckenstein
ad148587dc Make Lint Happy 2020-11-04 16:19:54 +01:00
Elias Fleckenstein
1799d5aa9a Cheat Menu Improvements Change 2020-11-04 15:33:48 +01:00
Elias Fleckenstein
fc8c8f01ca
Merge branch 'master' into master 2020-11-04 14:40:00 +01:00
Elias Fleckenstein
61e2b3a331
Re-add empty lines 2020-11-04 14:34:03 +01:00
Elias Fleckenstein
3c57074150
Re-add empty lines 2020-11-04 14:33:27 +01:00
Elias Fleckenstein
a7dc1135e9 Added CheatHUD 2020-11-04 14:19:15 +01:00
realOneplustwo
8e9e76a507 Revert "Add Block Formspec Hack"
This reverts commit 6652d7ac2a463581aa53c1599b7b93762422ff0f.
2020-10-23 08:34:58 -07:00
realOneplustwo
6652d7ac2a Add Block Formspec Hack 2020-10-22 17:36:31 -07:00
realOneplustwo
62cf9b4660 Fix compile error 2020-10-21 19:33:31 -07:00
realOneplustwo
3bdb843f2c Make cheat menu color and font configurable via settings 2020-10-21 18:00:43 -07:00
realOneplustwo
19143bedf4 Make cheat menu color and font configurable via settings 2020-10-21 17:58:16 -07:00
realOneplustwo
b29d6bc196 Make cheat menu color and font configurable via settings 2020-10-21 17:49:17 -07:00
Josiah VanderZee
f236476af9 Fix errors in cheatMenu. 2020-10-21 18:53:38 -05:00
realOneplustwo
7af3dee31c
Merge pull request #2 from JosiahWI/ui_revamp
Prepare CheatMenu::draw function for easier UI changes.
2020-10-21 13:23:44 -07:00
Josiah
7aff09ab23 Fix overindent! 2020-10-21 11:47:38 -05:00
realOneplustwo
aea9b36ef7 Improved Colours 2020-10-21 09:43:26 -07:00
Josiah
1ef72ad9cc Fix indentation style. 2020-10-21 09:57:08 -05:00
Josiah
5862410083 Add missing return. 2020-10-21 09:27:39 -05:00
Josiah
b211e90ffc Prepare cheatMenu::draw function for easier UI changes. 2020-10-21 09:16:32 -05:00