Commit Graph

11 Commits

Author SHA1 Message Date
Pierre-Yves Rollo
78273027bf Add sound to press event of some formspecs elements () 2020-11-23 21:28:25 +01:00
v-rob
83d0c360cc Add gradients and borders to FormSpec boxes () 2020-08-19 18:14:47 -07: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
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
Hugues Ross
bd4b8d40b3 StyleSpec: 0-initialize the property_set array 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
9541165752 Add styles to most elements 2019-08-03 19:36:30 +01:00
rubenwardy
ec3795a55c Add style[] tag with button support 2019-08-03 19:36:30 +01:00