Commit Graph

18 Commits

Author SHA1 Message Date
rubenwardy
9d1ae80e89 Add focused styling to buttons () 2023-04-14 00:09:29 +01:00
sfan5
3bafbaac49 Remove dead code behind Irrlicht version checks 2023-02-18 16:46:51 +01:00
Herman Semenov
038da00e79 Code optimizations / refactor ()
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-06 11:21:09 +01:00
Vincent Robinson
f7bcf7fa46 FormSpec: 9-slice images, animated_images, and fgimg_middle ()
* 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-07-03 08:52:26 -04:00
ROllerozxa
05573d6d8d Remove unused (de)serializeAttributes() methods 2021-12-29 23:00:16 +01:00
sfan5
3579dd2186 Restore Irrlicht 1.9 support 2021-03-09 21:53:17 +01:00
Hugues Ross
9976f36b18 Make bgcolor tint button background images () 2020-08-29 16:41:19 +01:00
v-rob
2bec83eec0 Add FormSpec font styling options ()
* Add FormSpec font styling options

* Change multiplication to stof

* Remove extraneous check
2020-07-12 09:48:50 +02:00
Pierre-Yves Rollo
ee6c499ff8 Fix wrong use of guiScalingImageButton in formspecs buttons () 2020-06-24 11:35:06 +02:00
Hugues Ross
cb9a44ef89 Add 'content_offset' and 'padding' style properties for buttons ()
* Add padding and content_offset style properties to buttons
2020-05-02 13:32:02 +02:00
Hugues Ross
f780bae05c Formspecs: Add state-selection to style elements () 2020-04-11 21:39:30 +01:00
Hugues Ross
60544ac56f Add 9-slice background support to button formspec elements () 2020-01-26 19:35:26 +00:00
SmallJoker
1892ff3c0d StaticText/EnrichedString: Styling support ()
* StaticText/EnrichedString: Styling support

* Fix tooltip fg/bgcolor

* Fix default color for substr(), add unittests
2020-01-22 19:09:11 +01:00
Hugues Ross
3dfb6ecbb2 Formspec: Don't start a button click when the pointer isn't on top () 2020-01-22 10:18:09 +01:00
Hugues Ross
e42faae8d9 Remove the dependency on FGIMG/BGIMG from the hovered/pressed variants
- Make guiButtonImage support null images properly
2019-12-16 19:26:57 +01:00
Hugues Ross
9284313d17 Refactor to centralize GUIButton styling/rendering code () 2019-12-09 20:06:51 +00:00
Hugues Ross
69a2099c04 Add more visual feedback for button states ()
- 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
rubenwardy
d1a1c5cbf0 Add custom colorable GUIButton implementation 2019-08-03 19:36:30 +01:00