mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 18:31:32 +00:00

Late in the 1.8 cycle a resize mode was added, now is the time to start to remove the old method.
119 lines
2.5 KiB
INI
119 lines
2.5 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of the panel for the title screen.
|
|
###
|
|
### Most of the code is a copy paste of window_default.cfg.
|
|
###
|
|
|
|
#define _GUI_RESOLUTION RESOLUTION BORDER OFFSET_SIDE_1 OFFSET_SIDE_2 OFFSET_TOTAL
|
|
[resolution]
|
|
|
|
{RESOLUTION}
|
|
|
|
left_border = {BORDER}
|
|
right_border = {BORDER}
|
|
top_border = {BORDER}
|
|
bottom_border = {BORDER}
|
|
|
|
[background]
|
|
|
|
[draw]
|
|
|
|
# Blurring doesn't work yet, keeps adding
|
|
# [pre_commit]
|
|
#
|
|
# [blur]
|
|
# depth = 1
|
|
# [/blur]
|
|
#
|
|
# [/pre_commit]
|
|
|
|
[image]
|
|
name = "dialogs/translucent54-border-topleft.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = {OFFSET_SIDE_1}
|
|
y = 0
|
|
w = "(if(width < {OFFSET_TOTAL}, 0, width - {OFFSET_TOTAL}))"
|
|
resize_mode = "stretch"
|
|
name = "dialogs/translucent54-border-top.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = "(width - {OFFSET_SIDE_2})"
|
|
y = 0
|
|
name = "dialogs/translucent54-border-topright.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = "(width - {OFFSET_SIDE_2})"
|
|
y = {OFFSET_SIDE_1}
|
|
h = "(if(height < {OFFSET_TOTAL}, 0, height - {OFFSET_TOTAL}))"
|
|
resize_mode = "stretch"
|
|
name = "dialogs/translucent54-border-right.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = "(width - {OFFSET_SIDE_2})"
|
|
y = "(height - {OFFSET_SIDE_2})"
|
|
name = "dialogs/translucent54-border-botright.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = {OFFSET_SIDE_1}
|
|
y = "(height - {OFFSET_SIDE_2})"
|
|
w = "(if(width < {OFFSET_TOTAL}, 0, width - {OFFSET_TOTAL}))"
|
|
resize_mode = "stretch"
|
|
name = "dialogs/translucent54-border-bottom.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = 0
|
|
y = "(height - {OFFSET_SIDE_2})"
|
|
name = "dialogs/translucent54-border-botleft.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = 0
|
|
y = {OFFSET_SIDE_1}
|
|
h = "(if(height < {OFFSET_TOTAL}, 0, height - {OFFSET_TOTAL}))"
|
|
resize_mode = "stretch"
|
|
name = "dialogs/translucent54-border-left.png"
|
|
[/image]
|
|
|
|
[image]
|
|
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]
|
|
|
|
[/draw]
|
|
|
|
[/background]
|
|
|
|
[foreground]
|
|
|
|
[draw]
|
|
|
|
[/draw]
|
|
|
|
[/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
|