mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 00:53:46 +00:00
153 lines
3.2 KiB
INI
153 lines
3.2 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of the toggle panel for the wml_message.
|
|
###
|
|
|
|
#define _GUI__LISTBOX_SELECTED_CELL LINE_OFFSET_SIDE LINE_OFFSET_TOTAL LINE_HEIGHT BACKGROUND_OFFSET
|
|
|
|
# corners are 10x10
|
|
[image]
|
|
x = 0
|
|
y = 0
|
|
name = "misc/selection2_transparent-border-topleft.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = "(width - {LINE_OFFSET_SIDE})"
|
|
y = 0
|
|
name = "misc/selection2_transparent-border-topright.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = 0
|
|
y = "(height - {LINE_OFFSET_SIDE})"
|
|
name = "misc/selection2_transparent-border-botleft.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = "(width - {LINE_OFFSET_SIDE})"
|
|
y = "(height - {LINE_OFFSET_SIDE})"
|
|
name = "misc/selection2_transparent-border-botright.png"
|
|
[/image]
|
|
|
|
# since the lines are already quite long scale them instead of stretching
|
|
# the height of the lines is 3 pixels.
|
|
[image]
|
|
x = {LINE_OFFSET_SIDE}
|
|
y = 0
|
|
w = "(if(width < {LINE_OFFSET_TOTAL}, 0, width - {LINE_OFFSET_TOTAL}))"
|
|
name = "misc/selection2_transparent-border-top.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = {LINE_OFFSET_SIDE}
|
|
y = "(height - {LINE_HEIGHT})"
|
|
w = "(if(width < {LINE_OFFSET_TOTAL}, 0, width - {LINE_OFFSET_TOTAL}))"
|
|
name = "misc/selection2_transparent-border-bottom.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = 0
|
|
y = {LINE_OFFSET_SIDE}
|
|
h = "(if(height < {LINE_OFFSET_TOTAL}, 0, height - {LINE_OFFSET_TOTAL}))"
|
|
name = "misc/selection2_transparent-border-left.png"
|
|
[/image]
|
|
|
|
[image]
|
|
x = "(width - {LINE_HEIGHT})"
|
|
y = {LINE_OFFSET_SIDE}
|
|
h = "(if(height < {LINE_OFFSET_TOTAL}, 0, height - {LINE_OFFSET_TOTAL}))"
|
|
name = "misc/selection2_transparent-border-right.png"
|
|
[/image]
|
|
|
|
#main background 320 x 67
|
|
[image]
|
|
x = {LINE_HEIGHT}
|
|
y = {LINE_HEIGHT}
|
|
w = "(if(width < {BACKGROUND_OFFSET}, 0, width - {BACKGROUND_OFFSET}))"
|
|
h = "(if(height < {BACKGROUND_OFFSET}, 0, height - {BACKGROUND_OFFSET}))"
|
|
name = "misc/selection2_transparent-background.png"
|
|
[/image]
|
|
|
|
#enddef
|
|
|
|
|
|
#define _GUI_RESOLUTION RESOLUTION LINE_OFFSET_SIDE LINE_OFFSET_TOTAL LINE_HEIGHT BACKGROUND_OFFSET
|
|
[resolution]
|
|
|
|
{RESOLUTION}
|
|
|
|
min_width = 0
|
|
min_height = 0
|
|
|
|
default_width = 0
|
|
default_height = 0
|
|
|
|
max_width = 0
|
|
max_height = 0
|
|
|
|
[state_enabled]
|
|
|
|
[draw]
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[state_disabled]
|
|
|
|
[draw]
|
|
[/draw]
|
|
|
|
[/state_disabled]
|
|
|
|
[state_focussed]
|
|
|
|
[draw]
|
|
[/draw]
|
|
|
|
[/state_focussed]
|
|
|
|
###
|
|
### Selected
|
|
###
|
|
|
|
[state_enabled_selected]
|
|
|
|
[draw]
|
|
{_GUI__LISTBOX_SELECTED_CELL ({LINE_OFFSET_SIDE}) ({LINE_OFFSET_TOTAL}) ({LINE_HEIGHT}) ({BACKGROUND_OFFSET})}
|
|
[/draw]
|
|
|
|
[/state_enabled_selected]
|
|
|
|
[state_disabled_selected]
|
|
|
|
[draw]
|
|
{_GUI__LISTBOX_SELECTED_CELL ({LINE_OFFSET_SIDE}) ({LINE_OFFSET_TOTAL}) ({LINE_HEIGHT}) ({BACKGROUND_OFFSET})}
|
|
[/draw]
|
|
|
|
[/state_disabled_selected]
|
|
|
|
[state_focussed_selected]
|
|
|
|
[draw]
|
|
{_GUI__LISTBOX_SELECTED_CELL ({LINE_OFFSET_SIDE}) ({LINE_OFFSET_TOTAL}) ({LINE_HEIGHT}) ({BACKGROUND_OFFSET})}
|
|
[/draw]
|
|
|
|
[/state_focussed_selected]
|
|
|
|
[/resolution]
|
|
#enddef
|
|
|
|
[toggle_panel_definition]
|
|
|
|
id = "wml_message"
|
|
description = "Toggle panel for the wml_message."
|
|
|
|
{_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 5 10 1 2 }
|
|
{_GUI_RESOLUTION () 10 20 3 6 }
|
|
|
|
[/toggle_panel_definition]
|
|
|
|
#undef _GUI_RESOLUTION
|
|
#undef _GUI__LISTBOX_SELECTED_CELL
|