- import app
- import uiScriptLocale
- ROOT = "d:/ymir work/ui/minimap/"
- window = {
- "name" : "MiniMap",
- "x" : SCREEN_WIDTH - 136,
- "y" : 0,
- "width" : 136,
- "height" : 137,
- "children" :
- (
- ## OpenWindow
- {
- "name" : "OpenWindow",
- "type" : "window",
- "x" : 0,
- "y" : 0,
- "width" : 136,
- "height" : 137,
- "children" :
- (
- {
- "name" : "OpenWindowBGI",
- "type" : "image",
- "x" : 0,
- "y" : 0,
- "image" : ROOT + "minimap.sub",
- },
- {
- "name" : "Vectors1",
- "type" : "text",
- "text_horizontal_align" : "center",
- "outline" : 1,
- "x" : 70,
- "y" : 185,
- "text" : "",
- },
- ## MiniMapWindow
- {
- "name" : "MiniMapWindow",
- "type" : "window",
- "x" : 4,
- "y" : 5,
- "width" : 128,
- "height" : 128,
- },
- ## ScaleUpButton
- {
- "name" : "ScaleUpButton",
- "type" : "button",
- "x" : 101,
- "y" : 116,
- "default_image" : ROOT + "minimap_scaleup_default.sub",
- "over_image" : ROOT + "minimap_scaleup_over.sub",
- "down_image" : ROOT + "minimap_scaleup_down.sub",
- },
- ## ScaleDownButton
- {
- "name" : "ScaleDownButton",
- "type" : "button",
- "x" : 115,
- "y" : 103,
- "default_image" : ROOT + "minimap_scaledown_default.sub",
- "over_image" : ROOT + "minimap_scaledown_over.sub",
- "down_image" : ROOT + "minimap_scaledown_down.sub",
- },
- ## MiniMapHideButton
- {
- "name" : "MiniMapHideButton",
- "type" : "button",
- "x" : 111,
- "y" : 6,
- "default_image" : ROOT + "minimap_close_default.sub",
- "over_image" : ROOT + "minimap_close_over.sub",
- "down_image" : ROOT + "minimap_close_down.sub",
- },
- ## AtlasShowButton
- {
- "name" : "AtlasShowButton",
- "type" : "button",
- "x" : 12,
- "y" : 12,
- "default_image" : ROOT + "atlas_open_default.sub",
- "over_image" : ROOT + "atlas_open_over.sub",
- "down_image" : ROOT + "atlas_open_down.sub",
- },
- ## BattleButton
- {
- "name" : "BattleButton",
- "type" : "button",
- "x" : 6,
- "y" : 105,
- "default_image" : ROOT + "battle_open_default.tga",
- "over_image" : ROOT + "battle_open_over.tga",
- "down_image" : ROOT + "battle_open_down.tga",
- },
- ## ServerInfo
- {
- "name" : "ServerInfo",
- "type" : "text",
- "text_horizontal_align" : "center",
- "outline" : 1,
- "x" : 70,
- "y" : 140,
- "text" : "",
- },
- ## PositionInfo
- {
- "name" : "PositionInfo",
- "type" : "text",
- "text_horizontal_align" : "center",
- "outline" : 1,
- "x" : 70,
- "y" : 200,
- "text" : "",
- },
- ## ObserverCount
- {
- "name" : "ObserverCount",
- "type" : "text",
- "text_horizontal_align" : "center",
- "outline" : 1,
- "x" : 70,
- "y" : 180,
- "text" : "",
- },
- ),
- },
- {
- "name" : "MastWindow",
- "type" : "thinboard",
- "x" : 35,
- "y" : 160,
- "width" : 105,
- "height" : 37,
- "children" :
- (
- {
- "name" : "MastText",
- "type" : "text",
- "text_horizontal_align" : "center",
- "x" : 35,
- "y" : 8,
- "text" : uiScriptLocale.DEFANCE_WAWE_MAST_TEXT,
- },
- {
- "name" : "MastHp",
- "type" : "gauge",
- "x" : 10,
- "y" : 23,
- "width" : 85,
- "color" : "red",
- "tooltip_text" : uiScriptLocale.DEFANCE_WAWE_GAUGE_TOOLTIP,
- },
- ),
- },
- {
- "name" : "CloseWindow",
- "type" : "window",
- "x" : 0,
- "y" : 0,
- "width" : 132,
- "height" : 48,
- "children" :
- (
- ## ShowButton
- {
- "name" : "MiniMapShowButton",
- "type" : "button",
- "x" : 100,
- "y" : 4,
- "default_image" : ROOT + "minimap_open_default.sub",
- "over_image" : ROOT + "minimap_open_default.sub",
- "down_image" : ROOT + "minimap_open_default.sub",
- },
- ),
- },
- ),
- }
AstroMetin2