mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Make some values scriptable
color radius color left width color right width color top width color bottom width font shadow displacement x font shadow displacement y font shadow blur
This commit is contained in:
+3
-3
@@ -16,9 +16,9 @@ A reference to a normal [[type:font]] for drawing text.
|
||||
| @underline@ [[type:scriptable]] [[type:boolean]] @false@ Should the font be underlined?
|
||||
| @color@ [[type:scriptable]] [[type:color]] @rgb(0,0,0)@ What color should text be drawn in?
|
||||
| @shadow color@ [[type:scriptable]] [[type:color]] @"transparent"@ Color for a shadow below the text.
|
||||
| @shadow displacement x@ [[type:double]] @0@ Relative position of the shadow in pixels.
|
||||
| @shadow displacement y@ [[type:double]] @0@ ^^^
|
||||
| @shadow blur@ [[type:double]] @0@ How much should the shadow be blurred?
|
||||
| @shadow displacement x@ [[type:scriptable]] [[type:double]] @0@ Relative position of the shadow in pixels.
|
||||
| @shadow displacement y@ [[type:scriptable]] [[type:double]] @0@ ^^^
|
||||
| @shadow blur@ [[type:scriptable]] [[type:double]] @0@ How much should the shadow be blurred?
|
||||
| @separator color@ [[type:color]] @rgba(0,0,0,128)@ Color for @<sep-soft>@ tags inserted by the [[fun:combined_editor]] function.
|
||||
|
||||
--Example--
|
||||
|
||||
+2
-2
@@ -140,8 +140,8 @@ The rest of the properties depend on the type of [[type:field]] this style is fo
|
||||
| ^^^ @font@ [[type:font]] Font to use for rendering text.
|
||||
|
||||
! <<< <<< <<< <<<
|
||||
| @"color"@ @radius@ [[type:double]] @0@ Radius of rounded corners for the box in pixels.
|
||||
| ^^^ @left width@ [[type:double]] ∞ Draw only this many pixels from the side, creating a box with a hole in it, or a card border.
|
||||
| @"color"@ @radius@ [[type:scriptable]] [[type:double]] @0@ Radius of rounded corners for the box in pixels.
|
||||
| ^^^ @left width@ [[type:scriptable]] [[type:double]] ∞ Draw only this many pixels from the side, creating a box with a hole in it, or a card border.
|
||||
| ^^^ @right width@ ^^^ ^^^ ^^^
|
||||
| ^^^ @top width@ ^^^ ^^^ ^^^
|
||||
| ^^^ @bottom width@ ^^^ ^^^ ^^^
|
||||
|
||||
Reference in New Issue
Block a user