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
MoNTE48
3cee55f2b4
Hide tooltip after ETIE_LEFT_UP (for touch control)
2020-06-09 19:35:25 +02:00
Paul Ouellette
b6242498aa
Always use same default tabheader height ( #9319 )
...
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-09 17:14:29 +02:00
v-rob
664800b2ad
FormSpec: Add universal style selector *
( #9718 )
2020-05-06 19:36:02 +02:00
v-rob
bc60e44d80
Add animated_image
to clickthrough elements ( #9724 )
2020-04-25 16:55:21 +02:00
Pierre-Yves Rollo
6cc5c7cbb4
Simplify how parseElement splits element string ( #9726 )
2020-04-25 07:48:04 +02:00
DS
4fb6b6afa7
Formspec: allow lists to change size and existence while the formspec is open ( #9700 )
...
Fixes #9640 .
2020-04-18 17:21:10 +02:00
Maksim
57038b3cb4
Android: fix formspec input for AArch64 devices ( #9685 )
2020-04-16 19:19:47 +02:00
DS
0ac999ded7
Add scroll_container formspec element (redo) ( #9101 )
...
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-13 10:50:07 +02:00
SmallJoker
6cf15cf872
GUIFormSpecMenu: Add basic element highlighing debug feature ( #9423 )
...
Activated using F5
2020-04-12 12:02:32 +02:00
Hugues Ross
f780bae05c
Formspecs: Add state-selection to style elements ( #9378 )
2020-04-11 21:39:30 +01:00
SmallJoker
01b3f26c7b
Formspec: No spec ID for static text labels
...
Fixes #9634
2020-04-11 15:31:02 +02:00
DS
d7825bca1b
Fix GUI element click-through by changing visibility ( #9534 )
...
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-31 18:34:42 +01:00
sfan5
5a31d56c9f
Fix mouse events sent to wrong GUI elements when dragging
2020-03-16 22:57:10 +01:00
v-rob
13ad8e2a09
Formspecs: Add starting frame to animated_image
( #9411 )
2020-03-16 22:56:48 +01:00
SmallJoker
766d160ffb
guiHyperText: Fix blinky cursor on link hover ( #9392 )
...
Change legacy size/position calculations to 'textarea'
2020-03-11 19:09:50 +01:00
DS
b42493fb4c
Fix memory leak in GUIHyperText ( #9489 )
2020-03-10 20:32:38 +01:00
SmallJoker
7da4f9ef20
GUIFormSpecMenu: Remove field_close_on_enter warning ( #9501 )
2020-03-10 20:30:55 +01:00
v-rob
7dffd08c1a
Add multiple element selection to style
and style_type
( #9380 )
2020-03-01 14:39:57 +00:00
sfan5
c657fb343f
Refactor Script API's log_deprecated
2020-02-23 22:24:12 +01:00
Hugues Ross
7ce21788f8
Add animated_image[] formspec element ( #9258 )
2020-02-15 15:33:18 +00:00
DS
1116918dbb
Formspec: Create a new class for inventorylists ( #9287 )
2020-02-01 13:55:13 +01:00
SmallJoker
1892ff3c0d
StaticText/EnrichedString: Styling support ( #9187 )
...
* StaticText/EnrichedString: Styling support
* Fix tooltip fg/bgcolor
* Fix default color for substr(), add unittests
2020-01-22 19:09:11 +01:00
ANAND
e8fd1ce623
Replace stray tab with whitespace in guiFormSpecMenu.cpp ( #9317 )
2020-01-18 16:50:57 +00:00
Hugues Ross
680aaa1bd5
Make clipping of formspec elements more consistent ( #9262 )
2020-01-16 18:41:07 +00:00
DS
4c8af5492b
Formspec: change the appeareance of the cursor on fields and co. ( #8665 )
2020-01-11 20:17:11 +01:00
DS
7c0e0c34ec
Formspec: Fix clicking on tooltip-obstructed elements ( #9266 )
2020-01-04 15:45:22 +01:00
Hugues Ross
b50dc43f67
Don't override the FGIMG style property if the image parameter is null
2019-12-16 19:26:57 +01:00
SmallJoker
c3d0aab0bc
GUIFormSpecMenu: Fix legacy sorting using std::stable_sort
2019-12-14 21:28:07 +01:00
rubenwardy
8e63d22d64
Fix spaces breaking formspec_version[] tag
2019-12-09 21:05:07 +00:00
Hugues Ross
9284313d17
Refactor to centralize GUIButton styling/rendering code ( #9090 )
2019-12-09 20:06:51 +00:00
DS
8f73ec6c6c
Formspec: make bgcolor element less confusing and allow setting fullscreen color ( #8996 )
2019-12-08 18:59:30 +01:00
v-rob
4f45bfd08b
Add scrollbaroptions FormSpec element ( #8530 )
2019-12-06 20:51:10 +00:00
SmallJoker
b50a166bb0
Formspec: Fix priorities for version < 3 ( #9121 )
...
* Formspec: Fix priorities for version < 3
1) Introduce 'priority' to 'FieldSpec'
2) Sort elements based on 'priority'
3) Assign 'name' to the Item Image Button's image to show tooltips again
2019-11-20 19:39:10 +01:00
DS
5506e97ed8
Formspec: draw order and clipping for all elements ( #8740 )
2019-11-07 20:11:01 +01:00
Pierre-Yves Rollo
72416a6a1f
Formspec: add hypertext element
2019-11-03 11:45:33 +01:00
SmallJoker
a978278bfb
Formspecs: Reset version number on rebuild
2019-10-20 12:44:52 +02:00
Hugues Ross
69a2099c04
Add more visual feedback for button states ( #8916 )
...
- Add style properties for overriding the the hovered/pressed state
- By default, hovered buttons are a lighter version of the base color
- By default, pressed buttons are a darker version of the base color
- Add hovered bg image support for image buttons (style property)
2019-10-12 18:44:23 +02:00
SmallJoker
dee22104b7
Revert "Fix the bgcolor formspec element ( #8716 )" ( #9018 )
...
This reverts commit 1db3d252cff9e8d61fecf1052d7497813851da51.
Temporary solution until a compatible solution is found to define both - formspec and fullscreen backgrounds.
2019-10-06 14:50:45 +02:00
SmallJoker
c2458d3d3a
label[]: Fix broken colors since 2c9edef
2019-09-29 14:52:41 +02:00
rubenwardy
07bdd6049b
Fix error message caused by adding new parameter to background ( #8922 )
...
Adds background9[] element to keep backwards compatibility in formspec prepends.
2019-09-29 13:40:59 +02:00
SmallJoker
26b39f1eae
Fix some reference counters (memleak) ( #8981 )
...
Fix some reference counters (memleak)
Map::dispatchEvent: Allocation safety using references
2019-09-24 19:05:28 +02:00
DS
1db3d252cf
Fix the bgcolor formspec element ( #8716 )
2019-09-15 17:14:31 +01:00
rubenwardy
1ea9bfc6f7
Fix formspec version backup in prepends losing data
2019-09-15 16:56:11 +01:00
SmallJoker
9acd36bf99
Formspecs: Introduce formspec_version to mods
2019-09-14 19:43:08 +02:00
SmallJoker
2c9edefde3
label[]: Fix cut-off translated text
2019-09-07 11:15:12 +02:00
Paul Ouellette
008b80fe1c
Add ItemStack:get_description() to get tooltip ( #8847 )
2019-08-24 18:38:02 +02:00
rubenwardy
4f7fa8d417
Add formspec testing to test mod in minimal
2019-08-03 19:36:30 +01:00