Sziasztok beraktam a kosztüm mountot tökéletesen müködik 1 dolog kivételével nem jelenik meg a hívó a "kosztüm ablakba"
Üzenet összefésülés: 2017-11-30, 17:44:46
Costum window.py
import uiScriptLocale
import item
import player
COSTUME_START_INDEX = item.COSTUME_SLOT_START
window = {
"name" : "CostumeWindow",
"x" : SCREEN_WIDTH - 175 - 140,
"y" : SCREEN_HEIGHT - 37 - 565,
"style" : ("movable", "float",),
"width" : 140,
"height" : 180 + 47,
"children" :
(
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 140,
"height" : 180 + 47,
"children" :
(
{
"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", "r":0.0, "g":0.0, "b":0.0, "a":1.0},
),
},
{
"name" : "Costume_Base",
"type" : "image",
"x" : 13,
"y" : 38,
"image" : "d:/ymir work/ui/costume_bg.dds",
"children" :
(
{
"name" : "CostumeSlot",
"type" : "slot",
"x" : 3,
"y" : 3,
"width" : 127,
"height" : 145,
"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":13, "y":125, "width":32, "height":32},
{"index":COSTUME_START_INDEX+3, "x":13, "y":15, "width":32, "height":96},
{"index":player.EQUIPMENT_SLOT_START+26, "x":61, "y":125, "width":32, "height":32},
),
},
),
},
),
},
),
}
GameType.h hiba.
??
#ifdef ENABLE_COSTUME_SYSTEM
const DWORD c_Costume_Slot_Start = c_Equipment_Start + 19; // [ÁÖŔÇ] ĽýŔÚ(19) ÇϵĺÄÚµů ÁÖŔÇ. ÇöŔç ĽąöżˇĽ ÄÚ˝şĂő ˝˝·ÔŔş 19şÎĹÍŔÓ. Ľąö common/length.h ĆÄŔĎŔÇ EWearPositions ż°ĹÇü Âü°í.
const DWORD c_Costume_Slot_Body = c_Costume_Slot_Start + 0;
const DWORD c_Costume_Slot_Hair = c_Costume_Slot_Start + 1;
const DWORD c_Costume_Slot_Mount = c_Costume_Slot_Start + 2;
const DWORD c_Costume_Slot_Count = 3;
const DWORD c_Costume_Slot_End = c_Costume_Slot_Start + c_Costume_Slot_Count;
#endif
#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
const DWORD c_New_Equipment_Start = c_Equipment_Start + 22;
const DWORD c_New_Equipment_Count = 3;
const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 1;
const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 2;
const DWORD c_Equipment_Belt = c_New_Equipment_Start + 0;;
#endif
Hol itt a hiba? minden úgy csináltam ahogy leirták :)
Üzenet összefésülés: 2017-11-30, 18:36:35
Megoldva##