Jean-Patrick Guerrero
6591597430
Fix animation_image support in scroll containers
2021-02-08 00:04:38 +00:00
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
Loïc Blot
5fcc78a1fe
Refactor/gui editbox ( #10787 )
2021-01-07 13:21:12 +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
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
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
DS
b2f3f66385
Fix box[]es not being clipped ( #10473 )
...
Fixes a regression of #8676 .
2020-10-08 19:44:47 +02:00
SmallJoker
f46509d5e2
Remove unused functions reported by cppcheck ( #10463 )
...
Run unused functions reported by cppcheck
This change removes a few (but not all) unused functions.
Some unused helper functions were not removed due to their complexity and potential of future use.
2020-10-05 09:07:33 +02:00
random-geek
0750047919
Fix scroll bar overlapping text (again) ( #9058 )
2020-10-03 17:34:34 +01:00
HybridDog
9dc29a75b4
Reduce the FPS when the window is unfocused ( #8837 )
2020-10-03 17:33:51 +01:00
Hugues Ross
9976f36b18
Make bgcolor tint button background images ( #9818 )
2020-08-29 16:41:19 +01:00
Kezi
3e5bce2251
darken tabheader background color ( #10299 )
2020-08-23 22:50:45 +02:00
EvidenceB
287f3fb2e3
Avoid drawing clipped out formspec elements ( #10095 )
2020-08-23 22:50:14 +02:00
adrido
3c2890692b
Fix MSVC compiler warnings ( #10197 )
2020-08-23 15:41:04 +02:00
Pierre-Yves Rollo
71287894ad
Fix missing translation call in hypertext ( #10296 )
2020-08-20 12:25:02 +02:00
v-rob
83d0c360cc
Add gradients and borders to FormSpec boxes ( #8676 )
2020-08-19 18:14:47 -07:00
v-rob
471497fa91
Optimize formspec form size ( #10144 )
2020-08-19 16:13:29 -07:00
v-rob
cd0e213a36
Add font styling options to tables and textlists ( #10203 )
2020-08-11 20:07:17 +02:00
Maksim
76afde861d
Android: Fix ConfirmRegistration and PasswordChange input and scale size ( #10182 )
2020-07-21 13:16:25 +01:00
Zughy
cfaef5b1cf
Formspecs: volume and key settings windows can now be closed by 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-14 22:37:28 +02:00
v-rob
2bec83eec0
Add FormSpec font styling options ( #9763 )
...
* Add FormSpec font styling options
* Change multiplication to stof
* Remove extraneous check
2020-07-12 09:48:50 +02:00
v-rob
e0499731a8
Allow FormSpec elements to be focused with set_focus
( #9353 )
...
This allows you to specify a FormSpec element to set the focus of with "set_focus[<name>;<always set>]".
2020-07-12 09:47:05 +02:00
v-rob
b1ff04e06d
Formspec: Make dropdowns optionally return event based on index, not value ( #9496 )
2020-07-10 12:11:26 +02:00
v-rob
da71313e1d
Don't stop style parsing on unknown property ( #10143 )
2020-07-03 18:33:23 +02:00
Pierre-Yves Rollo
ee6c499ff8
Fix wrong use of guiScalingImageButton in formspecs buttons ( #10094 )
2020-06-24 11:35:06 +02:00
rubenwardy
8ebeed53ad
Android: Fix only right strafe working ( #10046 )
2020-06-18 01:43:43 +01:00
MoNTE48
b9f618746c
TouchScreenGUI: fix some bugs, cleanup
2020-06-09 19:35:25 +02:00
MoNTE48
0d8e5bf587
TouchScreen Control: fix some bugs, cleanup
2020-06-09 19:35:25 +02:00
Maksim
756dc89ede
Fix real keyboard movements on touchscreen devices
2020-06-09 19:35:25 +02:00
MoNTE48
3cee55f2b4
Hide tooltip after ETIE_LEFT_UP (for touch control)
2020-06-09 19:35:25 +02:00
SmallJoker
a9b74f4c39
Add chat_font_size setting ( #9736 )
...
Default font sizes are used when the setting value is 0 or below (clamped by Settings).
2020-05-24 14:24:13 +02:00
Awkor
037422fdba
Modernize include guards and add missing ones ( #9898 )
2020-05-23 13:23:05 +02:00