MP Create: added framework for background images
This commit is contained in:
parent
7ade61cfc2
commit
da2027c274
2 changed files with 20 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
### Definition of borderless dialogs (e.g. lobby).
|
||||
###
|
||||
|
||||
#define _GUI_RESOLUTION_OPAQUE_SIMPLE RESOLUTION BORDER_SIDE_1 BORDER_SIDE_2
|
||||
#define _GUI_RESOLUTION_BORDERLESS_BASE RESOLUTION BORDER_SIDE_1 BORDER_SIDE_2 _BACKGROUND_DRAW
|
||||
[resolution]
|
||||
|
||||
{RESOLUTION}
|
||||
|
@ -26,6 +26,8 @@
|
|||
resize_mode = "tile"
|
||||
[/image]
|
||||
|
||||
{_BACKGROUND_DRAW}
|
||||
|
||||
[/draw]
|
||||
|
||||
[/background]
|
||||
|
@ -88,15 +90,13 @@
|
|||
[/grid]
|
||||
|
||||
[/resolution]
|
||||
#enddef
|
||||
#enddef
|
||||
|
||||
[window_definition]
|
||||
|
||||
id = borderless
|
||||
description = "A simple window without border decorations."
|
||||
|
||||
{_GUI_RESOLUTION_OPAQUE_SIMPLE () 10 13 }
|
||||
{_GUI_RESOLUTION_BORDERLESS_BASE () 10 13 ()}
|
||||
|
||||
[/window_definition]
|
||||
|
||||
#undef _GUI_RESOLUTION_OPAQUE_SIMPLE
|
||||
|
|
|
@ -981,6 +981,21 @@
|
|||
[/row]
|
||||
#enddef
|
||||
|
||||
[window_definition]
|
||||
id = "mp_create"
|
||||
description = "A simple window without border decorations and the ability to set a custom background."
|
||||
|
||||
{_GUI_RESOLUTION_BORDERLESS_BASE () 10 13 (
|
||||
[image]
|
||||
x = 0
|
||||
y = 0
|
||||
w = "(image_width)"
|
||||
h = "(height)"
|
||||
name = "(background_overlay)"
|
||||
[/image]
|
||||
)}
|
||||
[/window_definition]
|
||||
|
||||
[window]
|
||||
id = "mp_create_game"
|
||||
description = "MP create game dialog."
|
||||
|
|
Loading…
Add table
Reference in a new issue