Imi da o erroare ,
sysser client :
1201 10:27:35123 :: Failed to load script file : uiscript/warning.py 1201 10:27:35126 :: ui.py(line:2794) LoadScriptFile system.py(line:194) execfile system.py(line:163) Run system.py(line:179) __LoadTextFile__ LoadScriptFile - exceptions.SyntaxError:invalid syntax (line 6) 1201 10:27:35126 :: ============================================================================================================ 1201 10:27:35126 :: Abort!!!!uiscript/warring.py , scriptul
import uiScriptLocale
SLOTS_START_POSITION = [20, 38]
SLOTS_POSITIONS = [[0, 0], [0, 50], [0, 100]]
self.window = {
"name" : "Warning",
"x" : SCREEN_WIDTH - 235 - 265,
"y" : SCREEN_HEIGHT - 50 - 225,
"style" : ("movable", "float",),
"width" : 260,
"height" : 225,
"children" :
(
{
"name" : "Board",
"type" : "board_with_titlebar",
"x" : 0,
"y" : 0,
"width" : 260,
"height" : 225,
"title" : uiScriptLocale.WARNING_TITLE,
"children" :
(
## ZONE 1
{
"name" : "ZoneItem1",
"x" : 20,
"y" : 44,
"width" : 280,
"height" : 100,
"children" :
(
{
"name" : "SlotImageItem1",
"type" : "image",
"x" : 0,
"y" : 2,
"image" : "d:/ymir work/ui/public/slot_base.sub",
},
{
"name" : "BarItem1",
"type" : "sliderbar",
"x" : 42,
"y" : 23,
},
{
"name" : "AmountText",
"type" : "text",
"x" : 43,
"y" : 2,
"text" : uiScriptLocale.WARNING_COUNT,
},
{
"name" : "CountItem1",
"type" : "image",
"x" : 90,
"y" : 0,
"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
"children" :
(
{
"name" : "CountValueItem1",
"type":"text",
"text":"0",
"x":0,
"y":0,
"r":0.14,
"g":0.84,
"b":0.3,
"a":1.0,
"all_align" : "center",
},
),
},
{
"name" : "LimitText",
"type" : "text",
"x" : 141,
"y" : 2,
"text" : uiScriptLocale.WARNING_LIMIT,
},
{
"name" : "LimitItem1",
"type" : "image",
"x" : 173,
"y" : 0,
"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
"children" :
(
{
"name" : "LimitValueItem1",
"type":"text",
"text":"0",
"x":0,
"y":0,
"r":1.0,
"g":0.27,
"b":0,
"a":1.0,
"all_align" : "center",
},
),
},
),
},
## Horizontal
{
"name" : "HorizontalLine1",
"type" : "line",
"x" : 20,
"y" : 83,
"width" : 218,
"height" : 0,
"color" : 0xff777777,
},
{
"name" : "HorizontalLine2",
"type" : "line",
"x" : 20,
"y" : 84,
"width" : 218,
"height" : 0,
"color" : 0xff111111,
},
## ZONE 2
{
"name" : "ZoneItem2",
"x" : 20,
"y" : 94,
"width" : 280,
"height" : 100,
"children" :
(
{
"name" : "SlotImageItem2",
"type" : "image",
"x" : 0,
"y" : 2,
"image" : "d:/ymir work/ui/public/slot_base.sub",
},
{
"name" : "BarItem2",
"type" : "sliderbar",
"x" : 42,
"y" : 23,
},
{
"name" : "AmountText",
"type" : "text",
"x" : 43,
"y" : 2,
"text": uiScriptLocale.WARNING_COUNT,
},
{
"name" : "CountItem2",
"type" : "image",
"x" : 90,
"y" : 0,
"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
"children" :
(
{
"name" : "CountValueItem2",
"type":"text",
"text":"0",
"x":0,
"y":0,
"r":0.14,
"g":0.84,
"b":0.3,
"a":1.0,
"all_align" : "center",
},
),
},
{
"name" : "LimitText",
"type" : "text",
"x" : 141,
"y" : 2,
"text" : uiScriptLocale.WARNING_LIMIT,
},
{
"name" : "LimitItem2",
"type" : "image",
"x" : 173,
"y" : 0,
"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
"children" :
(
{
"name" : "LimitValueItem2",
"type":"text",
"text":"0",
"x":0,
"y":0,
"r":1.0,
"g":0.27,
"b":0,
"a":1.0,
"all_align" : "center",
},
),
},
),
},
## Horizontal
{
"name" : "HorizontalLine1",
"type" : "line",
"x" : 20,
"y" : 133,
"width" : 218,
"height" : 0,
"color" : 0xff777777,
},
{
"name" : "HorizontalLine2",
"type" : "line",
"x" : 20,
"y" : 134,
"width" : 218,
"height" : 0,
"color" : 0xff111111,
},
## ZONE 3
{
"name" : "ZoneItem3",
"x" : 20,
"y" : 144,
"width" : 280,
"height" : 100,
"children" :
(
{
"name" : "SlotImageItem3",
"type" : "image",
"x" : 0,
"y" : 2,
"image" : "d:/ymir work/ui/public/slot_base.sub",
},
{
"name" : "BarItem3",
"type" : "sliderbar",
"x" : 42,
"y" : 23,
},
{
"name" : "AmountText",
"type" : "text",
"x" : 43,
"y" : 2,
"text": uiScriptLocale.WARNING_COUNT,
},
{
"name" : "CountItem3",
"type" : "image",
"x" : 90,
"y" : 0,
"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
"children" :
(
{
"name" : "CountValueItem3",
"type":"text",
"text":"0",
"x":0,
"y":0,
"r":0.14,
"g":0.84,
"b":0.3,
"a":1.0,
"all_align" : "center",
},
),
},
{
"name" : "LimitText",
"type" : "text",
"x" : 141,
"y" : 2,
"text" : uiScriptLocale.WARNING_LIMIT,
},
{
"name" : "LimitItem3",
"type" : "image",
"x" : 173,
"y" : 0,
"image" : "d:/ymir work/ui/public/Parameter_Slot_00.sub",
"children" :
(
{
"name" : "LimitValueItem3",
"type":"text",
"text":"0",
"x":0,
"y":0,
"r":1.0,
"g":0.27,
"b":0,
"a":1.0,
"all_align" : "center",
},
),
},
),
},
## Slots
{
"name" : "WarningSlots",
"type" : "slot",
"x" : 20,
"y" : 46,
"width" : 32,
"height" : 124,
"slot" :
(
{"index":0, "x":0, "y":0, "width":32, "height":32},
{"index":1, "x":0, "y":50, "width":32, "height":32},
{"index":2, "x":0, "y":100, "width":32, "height":32},
),
},
## Buttons
{
"name" : "ResetButton",
"type" : "button",
"x" : 36,
"y" : 188,
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
"text" : uiScriptLocale.WARNING_RESET,
},
{
"name" : "ApplyButton",
"type" : "button",
"x" : 133,
"y" : 188,
"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
"text" : uiScriptLocale.WARNING_APPLY,
}
),
},
),
}
ma poate ajuta cineva ?

