GUI2: some formula formatting cleanups

This commit is contained in:
Charles Dang 2016-10-05 19:34:28 +11:00
parent 75278bac02
commit 147caf83cc
4 changed files with 8 additions and 8 deletions

View file

@ -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

View file

@ -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]

View file

@ -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

View file

@ -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"