### ### Defines all window styles used in the game. ### #define __WINDOW ID DESCRIPTION BASE_NAME [window_definition] id = {ID} description = {DESCRIPTION} [resolution] left_border = 10 right_border = 13 top_border = 10 bottom_border = 13 [background] [draw] # Keep the old way, might come in handy for testing later. # [rectangle] # x = 0 # y = 0 # w = "(width)" # h = "(height)" # border_thickness = 3 # border_colour = "55, 55, 55, 192" # fill_colour = "128, 128, 128, 128" # [/rectangle] # [rectangle] # x = 10 # y = 10 # w = "(width - 20)" # h = "(height - 20)" # border_thickness = 3 # border_colour = "55, 55, 55, 192" # [/rectangle] [image] name = "dialogs/" + {BASE_NAME} + "-border-topleft.png" [/image] [image] x = 5 y = 0 w = "(width - 14)" stretch = "true" name = "dialogs/" + {BASE_NAME} + "-border-top.png" [/image] [image] x = "(width - 9)" y = 0 name = "dialogs/" + {BASE_NAME} + "-border-topright.png" [/image] [image] x = "(width - 9)" y = 5 h = "(height - 14)" stretch = "true" name = "dialogs/" + {BASE_NAME} + "-border-right.png" [/image] [image] x = "(width - 9)" y = "(height - 9)" name = "dialogs/" + {BASE_NAME} + "-border-botright.png" [/image] [image] x = 5 y = "(height - 9)" w = "(width - 14)" stretch = "true" name = "dialogs/" + {BASE_NAME} + "-border-bottom.png" [/image] [image] x = 0 y = "(height - 9)" name = "dialogs/" + {BASE_NAME} + "-border-botleft.png" [/image] [image] x = 0 y = 5 h = "(height - 14)" stretch = "true" name = "dialogs/" + {BASE_NAME} + "-border-left.png" [/image] [image] x = 5 y = 5 w = "(width - 14)" h = "(height - 14)" name = "dialogs/" + {BASE_NAME} + "-background.png" [/image] [/draw] [/background] [foreground] [draw] [/draw] [/foreground] [/resolution] [/window_definition] #enddef {__WINDOW "default" "The default window" "opaque"} {__WINDOW "message" "The style used as transparent to the user." "translucent65"} {__WINDOW "titlescreen" "The items in the titelscreen" "translucent54"} # No idea what this style does, just leave it disabled for now. #{__WINDOW "menu2" "menu2" "menu2"} #undef __WINDOW