GUI2: some formula formatting cleanups
This commit is contained in:
parent
75278bac02
commit
147caf83cc
4 changed files with 8 additions and 8 deletions
|
@ -4,8 +4,8 @@
|
|||
###
|
||||
|
||||
#define _GUI_OVERLAY_ATTRIBUTES
|
||||
x = "((width / 2) - (min(width, image_width) / 2))"
|
||||
y = "((height / 2) - (min(height, image_height) / 2))"
|
||||
x = "(width / 2 - min(width, image_width) / 2)"
|
||||
y = "(height / 2 - min(height, image_height) / 2)"
|
||||
w = "(min(width, image_width))"
|
||||
h = "(min(height, image_height))"
|
||||
#enddef
|
||||
|
|
|
@ -55,8 +55,8 @@
|
|||
|
||||
[image]
|
||||
name = "(text)"
|
||||
x = "((width / 2) - (image_width / 2))"
|
||||
y = "((height / 2) - (image_height / 2))"
|
||||
x = "(width / 2 - image_width / 2)"
|
||||
y = "(height / 2 - image_height / 2)"
|
||||
[/image]
|
||||
|
||||
[/draw]
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
#define _GUI_ICON SIZE
|
||||
[image]
|
||||
x = "((size / 2) - (image_width / 2) where size = {SIZE})"
|
||||
y = "((size / 2) - (image_height / 2) where size = {SIZE})"
|
||||
x = "(size / 2 - image_width / 2 where size = {SIZE})"
|
||||
y = "(size / 2 - image_height / 2 where size = {SIZE})"
|
||||
name = "(icon)"
|
||||
[/image]
|
||||
#enddef
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
width = "(min(screen_width, 700))"
|
||||
height = "(min(screen_height, 750))"
|
||||
|
||||
x = "((screen_width / 2) - (window_width / 2))"
|
||||
y = "((screen_height / 2) - (window_height / 2))"
|
||||
x = "(screen_width / 2 - window_width / 2)"
|
||||
y = "(screen_height / 2 - window_height / 2)"
|
||||
|
||||
[linked_group]
|
||||
id = "icon"
|
||||
|
|
Loading…
Add table
Reference in a new issue