Costume weapon + acce

Indította learnmetin2, 2019-09-07, 17:53:34

Sziasztok!


Nagyon ütközik nálam a costume weapon a pántal.

Ha valaki berakta már a costume weapont, pántal akkor megosztaná velem hogyan ne ütközzön?

gondolok én inditóra, pl: slotindex inverntory start meg ezekre.

Pacsi!

Próbáld így

Uiscript eix/epk

Uiscript mappa

costumewindow.py:

Idézimport uiScriptLocale
import item

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" : uiScriptLocale.LOCALE_UISCRIPT_PATH + "costume/costume_bg.jpg",
               "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}, ## Sisak
                              {"index":COSTUME_START_INDEX+1, "x":61, "y": 8, "width":32, "height":32}, ## Kosztüm
                              {"index":COSTUME_START_INDEX+2, "x":61, "y":125, "width":32, "height":32},## ÖV
                              {"index":COSTUME_START_INDEX+3, "x":10, "y":125, "width":32, "height":32},## Acce
                              {"index":COSTUME_START_INDEX+4, "x":16, "y":16, "width":32, "height":96}, ## Fegyver
                     ),
                  },
               ),
            },
         ),
      },
   ),
}

~ A szerencsejátékban a legnagyobb hasznot úgy érheted el, ha nem játszol~

~ [K]iller ~

Nekem szerver oldalon is vannak hibák

indító forrás --> Gametype.h-ban oda kell figyelni a leírás szerint.

2019-09-08, 12:50:02 #4 Utolsó szerkesztés: 2019-09-08, 13:51:33 Szerző: learnmetin2
#ifdef ENABLE_COSTUME_SYSTEM
const DWORD c_Costume_Slot_Start = c_Equipment_Start + 19;
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_Acce = c_Costume_Slot_Start + 2;
#ifdef ENABLE_COSTUME_WEAPON_SYSTEM
const DWORD c_Costume_Slot_Weapon = c_Costume_Slot_Start + 3;
#endif
const DWORD c_Costume_Slot_Count = 4;
const DWORD c_Costume_Slot_End = c_Costume_Slot_Start + c_Costume_Slot_Count;
#endif


#ifdef ENABLE_NEW_EQUIPMENT_SYSTEM
#ifdef ENABLE_COSTUME_WEAPON_SYSTEM
const DWORD c_New_Equipment_Start = c_Equipment_Start + 24 + 1;
#else
const DWORD c_New_Equipment_Start = c_Equipment_Start + 24;
#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


Üzenet összefésülés: 2019-09-08, 13:51:33

Sikerült, ez a jó type
zárom!