Abend liebe Com,
ich hab mir das Shining System mal eingebaut, nun hab ich nen Problem mit dem UI.
Das Kostümfenster lässt sich öffnen, was vorher die ganze Zeit ein Crash verursachte, doch funktioniert der Switch Button nicht :/.
Wäre nice wenn mir jemand einen Tipp bzw. mir ein bisschen helfen könnte :).
Btw, hab keinen Syserr.
Bitte melden Sie sich an, um diesen Anhang zu sehen.
Nicht wundern, ich hab ein bisschen die pixel verändert.
Code
- import uiScriptLocale
- import item
- COSTUME_START_INDEX = item.COSTUME_SLOT_START
- SHINING_START_INDEX = item.SHINING_SLOT_START
- window = {
- "name" : "CostumeWindow",
- "x" : SCREEN_WIDTH - 175 - 225,
- "y" : SCREEN_HEIGHT - 95 - 620,
- "style" : ("movable", "float",),
- "width" : 146,
- "height" : 180 + 37,
- "children" :
- (
- {
- "name" : "board",
- "type" : "board",
- "style" : ("attach",),
- "x" : 0,
- "y" : 0,
- "width" : 146,
- "height" : 180 + 37,
- "children" :
- (
- ## Title
- {
- "name" : "TitleBar",
- "type" : "titlebar",
- "style" : ("attach",),
- "x" : 6,
- "y" : 6,
- "width" : 130,
- "color" : "yellow",
- "children" :
- (
- { "name":"TitleName", "type":"text", "x":60, "y":3, "text":uiScriptLocale.COSTUME_WINDOW_TITLE, "text_horizontal_align":"center" },
- ),
- },
- ## Equipment Slot
- {
- "name" : "Costume_Base",
- "type" : "image",
- "x" : 13,
- "y" : 38,
- "image" : uiScriptLocale.LOCALE_UISCRIPT_PATH + "costume/costume_bg.jpg",
- "children" :
- (
- {
- "name" : "CostumeSlot",
- "type" : "slot",
- "x" : 0,
- "y" : 0,
- "width" : 127,
- "height" : 175,
- "slot" : (
- {"index":COSTUME_START_INDEX+0, "x":61, "y":45, "width":32, "height":64},
- {"index":COSTUME_START_INDEX+1, "x":61, "y": 8, "width":32, "height":32},
- {"index":COSTUME_START_INDEX+2, "x":5, "y":145, "width":32, "height":32},
- ),
- },
- ),
- },
- {
- "name" : "Shining_Page",
- "type" : "window",
- "style" : ("attach",),
- "x" : 0,
- "y" : 0,
- "width" : 127,
- "height" : 175,
- "children" :
- (
- {
- "name" : "ShiningSlot",
- "type" : "slot",
- "x" : 0,
- "y" : 0,
- "width" : 127,
- "height" : 175,
- "slot" : (
- #Waffe
- {"index":SHINING_START_INDEX+0, "x":61, "y":45, "width":32, "height":32},
- {"index":SHINING_START_INDEX+1, "x":61, "y": 8, "width":32, "height":32},
- {"index":SHINING_START_INDEX+2, "x":5, "y":145, "width":32, "height":32},
- #Armor
- {"index":SHINING_START_INDEX+3, "x":65, "y":79, "width":32, "height":32},
- {"index":SHINING_START_INDEX+4, "x":65, "y":47, "width":32, "height":32},
- #Special
- {"index":SHINING_START_INDEX+5, "x":65, "y":12, "width":32, "height":32},
- ),
- },
- ),
- },
- ),
- },
- {
- "name" : "ChangeButton",
- "type" : "button",
- "x" : 113,
- "y" : 38,
- "tooltip_text" : uiScriptLocale.CHANGE_SHINING,
- "default_image" : "uiscript/refresh/refresh_normal.tga",
- "over_image" : "uiscript/refresh/refresh_hover.tga",
- "down_image" : "uiscript/refresh/refresh_pressed.tga",
- },
- ),
- }