Improve the tiny-gui version.
This commit is contained in:
parent
817c0e3335
commit
43694a1d7d
1 changed files with 35 additions and 27 deletions
|
@ -5,17 +5,15 @@
|
|||
### Most of the code is a copy paste of window_default.cfg.
|
||||
###
|
||||
|
||||
[panel_definition]
|
||||
|
||||
id = "title_screen"
|
||||
description = "Definition of the panel for the title screen"
|
||||
|
||||
#define _GUI_RESOLUTION RESOLUTION BORDER OFFSET_SIDE_1 OFFSET_SIDE_2 OFFSET_TOTAL
|
||||
[resolution]
|
||||
|
||||
left_border = 25
|
||||
right_border = 25
|
||||
top_border = 25
|
||||
bottom_border = 25
|
||||
{RESOLUTION}
|
||||
|
||||
left_border = {BORDER}
|
||||
right_border = {BORDER}
|
||||
top_border = {BORDER}
|
||||
bottom_border = {BORDER}
|
||||
|
||||
[background]
|
||||
|
||||
|
@ -35,60 +33,60 @@
|
|||
[/image]
|
||||
|
||||
[image]
|
||||
x = 5
|
||||
x = {OFFSET_SIDE_1}
|
||||
y = 0
|
||||
w = "(if(width < 14, 0, width - 14))"
|
||||
w = "(if(width < {OFFSET_TOTAL}, 0, width - {OFFSET_TOTAL}))"
|
||||
stretch = "true"
|
||||
name = "dialogs/translucent54-border-top.png"
|
||||
[/image]
|
||||
|
||||
[image]
|
||||
x = "(width - 9)"
|
||||
x = "(width - {OFFSET_SIDE_2})"
|
||||
y = 0
|
||||
name = "dialogs/translucent54-border-topright.png"
|
||||
[/image]
|
||||
|
||||
[image]
|
||||
x = "(width - 9)"
|
||||
y = 5
|
||||
h = "(if(height < 14, 0, height - 14))"
|
||||
x = "(width - {OFFSET_SIDE_2})"
|
||||
y = {OFFSET_SIDE_1}
|
||||
h = "(if(height < {OFFSET_TOTAL}, 0, height - {OFFSET_TOTAL}))"
|
||||
stretch = "true"
|
||||
name = "dialogs/translucent54-border-right.png"
|
||||
[/image]
|
||||
|
||||
[image]
|
||||
x = "(width - 9)"
|
||||
y = "(height - 9)"
|
||||
x = "(width - {OFFSET_SIDE_2})"
|
||||
y = "(height - {OFFSET_SIDE_2})"
|
||||
name = "dialogs/translucent54-border-botright.png"
|
||||
[/image]
|
||||
|
||||
[image]
|
||||
x = 5
|
||||
y = "(height - 9)"
|
||||
w = "(if(width < 14, 0, width - 14))"
|
||||
x = {OFFSET_SIDE_1}
|
||||
y = "(height - {OFFSET_SIDE_2})"
|
||||
w = "(if(width < {OFFSET_TOTAL}, 0, width - {OFFSET_TOTAL}))"
|
||||
stretch = "true"
|
||||
name = "dialogs/translucent54-border-bottom.png"
|
||||
[/image]
|
||||
|
||||
[image]
|
||||
x = 0
|
||||
y = "(height - 9)"
|
||||
y = "(height - {OFFSET_SIDE_2})"
|
||||
name = "dialogs/translucent54-border-botleft.png"
|
||||
[/image]
|
||||
|
||||
[image]
|
||||
x = 0
|
||||
y = 5
|
||||
h = "(if(height < 14, 0, height - 14))"
|
||||
y = {OFFSET_SIDE_1}
|
||||
h = "(if(height < {OFFSET_TOTAL}, 0, height - {OFFSET_TOTAL}))"
|
||||
stretch = "true"
|
||||
name = "dialogs/translucent54-border-left.png"
|
||||
[/image]
|
||||
|
||||
[image]
|
||||
x = 5
|
||||
y = 5
|
||||
w = "(if(width < 14, 0, width - 14))"
|
||||
h = "(if(height < 14, 0, height - 14))"
|
||||
x = {OFFSET_SIDE_1}
|
||||
y = {OFFSET_SIDE_1}
|
||||
w = "(if(width < {OFFSET_TOTAL}, 0, width - {OFFSET_TOTAL}))"
|
||||
h = "(if(height < {OFFSET_TOTAL}, 0, height - {OFFSET_TOTAL}))"
|
||||
name = "dialogs/translucent54-background.png"
|
||||
[/image]
|
||||
|
||||
|
@ -105,6 +103,16 @@
|
|||
[/foreground]
|
||||
|
||||
[/resolution]
|
||||
#enddef
|
||||
|
||||
[panel_definition]
|
||||
|
||||
id = "title_screen"
|
||||
description = "Definition of the panel for the title screen"
|
||||
|
||||
{_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 12 2 4 6 }
|
||||
{_GUI_RESOLUTION () 25 5 9 14 }
|
||||
|
||||
[/panel_definition]
|
||||
|
||||
#undef _GUI_RESOLUTION
|
||||
|
|
Loading…
Add table
Reference in a new issue