#textdomain wesnoth-lib ### ### Defines all window styles used in the game. ### For now the definition for normal and tiny gui are the same, this might ### change later when tiny-gui will be tested. ### #define _GUI_RESOLUTION RESOLUTION BASE_NAME PRE_COMMIT BORDER_SIDE_1 BORDER_SIDE_2 OFFSET_SIDE_1 OFFSET_SIDE_2 OFFSET_TOTAL [resolution] {RESOLUTION} left_border = {BORDER_SIDE_1} right_border = {BORDER_SIDE_2} top_border = {BORDER_SIDE_1} bottom_border = {BORDER_SIDE_2} [background] [draw] {PRE_COMMIT} [image] name = "dialogs/{BASE_NAME}-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/{BASE_NAME}-border-top.png" [/image] [image] x = "(width - {OFFSET_SIDE_2})" y = 0 name = "dialogs/{BASE_NAME}-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/{BASE_NAME}-border-right.png" [/image] [image] x = "(width - {OFFSET_SIDE_2})" y = "(height - {OFFSET_SIDE_2})" name = "dialogs/{BASE_NAME}-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/{BASE_NAME}-border-bottom.png" [/image] [image] x = 0 y = "(height - {OFFSET_SIDE_2})" name = "dialogs/{BASE_NAME}-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/{BASE_NAME}-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/{BASE_NAME}-background.png" resize_mode = "tile" [/image] [/draw] [/background] [foreground] [draw] [/draw] [/foreground] [grid] [row] grow_factor = 1 [column] horizontal_grow = "true" vertical_grow = "true" [scrollbar_panel] vertical_scrollbar_mode = "initial_auto" horizontal_scrollbar_mode = "initial_auto" [definition] [row] [column] horizontal_grow = "true" vertical_grow = "true" [grid] id = "_window_content_grid" [/grid] [/column] [/row] [/definition] [/scrollbar_panel] [/column] [/row] [row] [column] [button] id = "click_dismiss" definition = "default" label = _ "Close" [/button] [/column] [/row] [/grid] [/resolution] #enddef #define _GUI_WINDOW ID DESCRIPTION BASE_NAME PRE_COMMIT [window_definition] id = {ID} description = {DESCRIPTION} {_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) ({BASE_NAME}) ({PRE_COMMIT}) 5 6 2 4 6 } {_GUI_RESOLUTION () ({BASE_NAME}) ({PRE_COMMIT}) 10 13 5 9 14 } [/window_definition] #enddef #define _BLUR [pre_commit] [blur] depth = 5 [/blur] [/pre_commit] #enddef {_GUI_WINDOW "default" "The default window" "opaque" ()} {_GUI_WINDOW "message" "The style used as transparent to the user." "translucent65" ({_BLUR})} {_GUI_WINDOW "titlescreen" "The items in the titlescreen" "translucent54" ()} # No idea what this style does, just leave it disabled for now. #{_GUI_WINDOW "menu2" "menu2" "menu2"} #undef _BLUR #undef _GUI_WINDOW #undef _GUI_RESOLUTION