Hallo zusammen,
habe grade des Special Effekt System eingebaut und hätte ein Fehler beim Slot. Bitte melden Sie sich an, um diesen Link zu sehen.
Bitte melden Sie sich an, um diesen Anhang zu sehen.
Hier könnt ihr sehen die gehen in einem Falschen slot.
Alles Funktioniert nur es geht ins Falschen Slot.
Wenn ihr noch was braucht sagt bescheid und ich poste es
Gametype.h im Client src
Code
- #ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
- #if defined(ENABLE_ACCE_SYSTEM) || defined(ENABLE_EFFECT_SYSTEM)
- const DWORD c_New_Equipment_Start = c_Equipment_Start + 21 + 1 + 2;
- #else
- const DWORD c_New_Equipment_Start = c_Equipment_Start + 21;
- #endif
- const DWORD c_New_Equipment_Count = 3;
- const DWORD c_Equipment_Ring1 = c_New_Equipment_Start + 0;
- const DWORD c_Equipment_Ring2 = c_New_Equipment_Start + 1;
- const DWORD c_Equipment_Belt = c_New_Equipment_Start + 2;;
- #endif
Code
- #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;
- #ifdef ENABLE_MOUNT_COSTUME_SYSTEM
- const DWORD c_Costume_Slot_Mount = c_Costume_Slot_Start + 2;
- #endif
- #ifdef ENABLE_ACCE_SYSTEM
- const DWORD c_Costume_Slot_Acce = c_Costume_Slot_Start + 3;
- #endif
- #ifdef ENABLE_EFFECT_SYSTEM
- const DWORD c_Costume_Effect_Body = c_Costume_Slot_Start + 4;
- const DWORD c_Costume_Effect_Weapon = c_Costume_Slot_Start + 5;
- #endif
- #if defined(ENABLE_EFFECT_SYSTEM)
- const DWORD c_Costume_Slot_Count = 6;
- #elif defined(ENABLE_WEAPON_COSTUME_SYSTEM) || defined(ENABLE_ACCE_SYSTEM)
- const DWORD c_Costume_Slot_Count = 4;
- #elif defined(ENABLE_MOUNT_COSTUME_SYSTEM)
- const DWORD c_Costume_Slot_Count = 3;
- #else
- const DWORD c_Costume_Slot_Count = 2;
- #endif
- const DWORD c_Costume_Slot_End = c_Costume_Slot_Start + c_Costume_Slot_Count;
- #ifdef ENABLE_WEAPON_COSTUME_SYSTEM
- const DWORD c_Costume_Slot_Weapon = c_Costume_Slot_End + 1;
- #endif
- #endif
costumewindow.
Code
- import item
- import uiScriptLocale
- 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 + 57,
- "children" :
- (
- {
- "name" : "board",
- "type" : "board",
- "style" : ("attach",),
- "x" : 0,
- "y" : 0,
- "width" : 140,
- "height" : 180 + 47 + 57,
- "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" },
- ),
- },
- {
- "name" : "TitleBarEffect",
- "type" : "horizontalbar",
- "style" : ("attach",),
- "x" : 11,
- "y" : 219,
- "width" : 118,
- "children" :
- (
- {
- "name" : "TitleName",
- "type" : "text",
- "x" : 0,
- "y" : -1,
- "text" : uiScriptLocale.SPECIAL_EFFECTS_TITLE,
- "all_align" : "center",
- },
- ),
- },
- {
- "name" : "EffectSlots_Base",
- "type" : "image",
- "x" : 13,
- "y" : 219 + 16,
- "image" : "locale/it/ui/costume/effect_slot_bg.jpg",
- },
- {
- "name" : "Costume_Base",
- "type" : "image",
- "x" : 13,
- "y" : 38,
- "image" : "locale/it/ui/costume/new_costume_bg.tga",
- "children" :
- (
- {
- "name" : "CostumeSlot",
- "type" : "slot",
- "x" : 3,
- "y" : 3,
- "width" : 127,
- "height" : 236 + 11,
- "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":61, "y":125, "width":32, "height":32},
- {"index":COSTUME_START_INDEX+3, "x":10, "y":125, "width":32, "height":32},
- {"index":COSTUME_START_INDEX+4, "x":10, "y":5, "width":32, "height":96},
- {"index":COSTUME_START_INDEX+5, "x":1, "y":4+197, "width":32, "height":32},
- {"index":COSTUME_START_INDEX+6, "x":52, "y": 5+197, "width":32, "height":32},
- ),
- },
- ),
- },
- ),
- },
- ),
- }