Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import uiScriptLocale
- window = {
- "x" : 0,
- "y" : 0,
- "width" : SCREEN_WIDTH,
- "height" : SCREEN_HEIGHT,
- "children" :
- (
- ## Board
- {
- "name" : "BackGround",
- "type" : "expanded_image",
- "x" : 0,
- "y" : 0,
- "image" : "d:/ymir work/ui/intro/pattern/Line_Pattern.tga",
- "x_scale" : float(SCREEN_WIDTH) / 800.0,
- "y_scale" : float(SCREEN_HEIGHT) / 600.0,
- },
- {
- "name":"ErrorMessage",
- "type":"text", "x":10, "y":10,
- "text": uiScriptLocale.LOAD_ERROR,
- },
- {
- "name" : "GageBoard",
- "type" : "window",
- "style" : ("ltr",),
- "x" : float(SCREEN_WIDTH) * 400 / 800.0 - 200,
- "y" : float(SCREEN_HEIGHT) * 500 / 600.0 ,
- "width" : 400,
- "height": 80,
- "children" :
- (
- {
- "name" : "BackGage",
- "type" : "expanded_image",
- "x" : 70,
- "y" : 25,
- "image" : uiScriptLocale.LOCALE_UISCRIPT_PATH + "loading/loading_empty.tga",
- },
- {
- "name" : "FullGage",
- "type" : "expanded_image",
- "x" : 70,
- "y" : 25,
- "image" : uiScriptLocale.LOCALE_UISCRIPT_PATH + "loading/loading_full.tga",
- },
- {
- "name" : "LoadingPercent_Text",
- "type" : "text",
- "x" : 190,
- "y" : -20,
- "text" : "",
- "vertical_align" : "center",
- },
- ),
- },
- ),
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement