Herkese Hayırlı Kullanımlar
Sistem Videoda Görüldügü Gibidir Açma Kapamalıdır
Sistem Videoda Görüldügü Gibidir Açma Kapamalıdır
Python:
class InventoryWindow(ui.ScriptWindow):
liHighlightedItems = []
USE_TYPE_TUPLE = ("USE_CLEAN_SOCKET", "USE_CHANGE_ATTRIBUTE", "USE_ADD_ATTRIBUTE", "USE_ADD_ATTRIBUTE2", "USE_ADD_ACCESSORY_SOCKET", "USE_PUT_INTO_ACCESSORY_SOCKET", "USE_PUT_INTO_BELT_SOCKET", "USE_PUT_INTO_RING_SOCKET")
//adaugam sub
MINIMIZE_INVENTORY = FALSE
//cautam
self.costumeButton = self.GetChild2("CostumeButton")
//adauga sub
self.ButonMinimize = self.GetChild2("MinimizeInventory")
self.ButonMinimize.SetEvent(ui.__mem_func__(self.MinimizeInventory))
//sub
## Refresh
self.SetInventoryPage(0)
self.SetEquipmentPage(0)
self.RefreshItemSlot()
self.RefreshStatus()
//adaugam
def MinimizeInventory(self):
if self.MINIMIZE_INVENTORY == FALSE:
self.GetChild("board").SetSize(176,545)
self.GetChild("TitleBar").SetWidth(160)
self.GetChild("TitleName").SetPosition(77, 3)
self.GetChild("MinimizeInventory").SetPosition(160 - 40, 4)
self.SetSize(176, 545)
self.SetPosition(wndMgr.GetScreenWidth() - 212 - 2, wndMgr.GetScreenHeight() - 37 - 587)
self.MINIMIZE_INVENTORY = TRUE
else:
self.GetChild("board").SetSize(215,545)
self.GetChild("TitleBar").SetWidth(160 + 40)
self.GetChild("TitleName").SetPosition((170 + 55) / 2, 3)
self.GetChild("MinimizeInventory").SetPosition(160 + 55 - 55, 4)
self.SetSize(215, 545)
self.SetPosition(wndMgr.GetScreenWidth() - 212 - 2, wndMgr.GetScreenHeight() - 37 - 587)
self.MINIMIZE_INVENTORY = FALSE
self.PageInventory(self.MINIMIZE_INVENTORY)
def PageInventory(self, arg):
if arg == TRUE:
self.GetChild("background_1").Hide()
self.GetChild("background_2").Hide()
self.GetChild("ToggleSwitchbot").Hide()
self.GetChild("BonusPage").Hide()
self.GetChild("FastEquip").Hide()
self.GetChild("OnWiki").Hide()
self.GetChild("Button_Mantii").Hide()
self.GetChild("Button_Exp").Hide()
self.GetChild("Button_Poly").Hide()
self.GetChild("Button_Yang").Hide()
self.GetChild("Button_Warp").Hide()
else:
self.GetChild("background_1").Show()
self.GetChild("background_2").Show()
self.GetChild("ToggleSwitchbot").Show()
self.GetChild("BonusPage").Show()
self.GetChild("FastEquip").Show()
self.GetChild("OnWiki").Show()
self.GetChild("Button_Mantii").Show()
self.GetChild("Button_Exp").Show()
self.GetChild("Button_Poly").Show()
self.GetChild("Button_Yang").Show()
self.GetChild("Button_Warp").Show()
////inventory_window.py locale
//deasupra la
{
"name":"TitleName",
"type":"text",
"x":77,
"y":3,
"text":uiScriptLocale.INVENTORY_TITLE,
"text_horizontal_align":"center"
},
//adaugam
{
"name" : "MinimizeInventory",
"type" : "button",
"x" : 160,
"y" : 4,
"default_image" : "d:/ymir work/ui/game/windows/btn_minus_over.sub",
"over_image" : "d:/ymir work/ui/game/windows/btn_minus_up.sub",
"down_image" : "d:/ymir work/ui/game/windows/btn_minus_down.sub",
"tooltip_text" : "Minimize",
},
Son düzenleme:
En Çok Reaksiyon Alan Mesajlar
Paylaşım için teşekkürler
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 16
- Görüntüleme
- 1K
- Cevaplar
- 2
- Görüntüleme
- 709
- Cevaplar
- 2
- Görüntüleme
- 3K

