- Katılım
- 20 Nis 2018
- Konular
- 38
- Mesajlar
- 254
- Çözüm
- 3
- Online süresi
- 14d 48m
- Reaksiyon Skoru
- 38
- Altın Konu
- 0
- TM Yaşı
- 8 Yıl 1 Ay 23 Gün
- Başarım Puanı
- 109
- Yaş
- 26
- MmoLira
- 1,542
- DevLira
- 9
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
envanterde item arama geliştirilebilir görünüm açısından pek bi göz alıcılığı yok ama arayanlar için yönerge olabilir
[CODE lang="python" title="uiinventory.py"]self.costumeButton = self.GetChild2("CostumeButton") arat
#############
self.searchInput = self.GetChild("ItemSearchInput")
self.searchButton = self.GetChild("SearchButton")
self.searchInput.SetReturnEvent(ui.__mem_func__(self.OnSearchItem))
self.searchButton.SetEvent(ui.__mem_func__(self.ToggleSearchInput))
self.shiftedWidgets = [
self.GetChild("ItemSlot"),
self.GetChild("Inventory_Tab_01"),
self.GetChild("Inventory_Tab_02"),
self.GetChild("Inventory_Tab_03"),
self.GetChild("Inventory_Tab_04"),
self.GetChild("Equipment_Base"),
# gerekiyorsa ekle: Money_Slot, TitleBar vb. ya da kendine göre düzenle
]
self.searchInputShown = False
#############
def SetItemSlotVnum(self, slotNumber): arat
üstüne ekle
def OnSearchItem(self):
searchText = self.searchInput.GetText().lower()
self.liHighlightedItems = []
if not searchText:
self.wndItem.RefreshSlot()
return
for page in xrange(player.INVENTORY_PAGE_COUNT): # Sayfa sayısı kadar döner
for localSlotIndex in xrange(player.INVENTORY_PAGE_SIZE):
globalSlotIndex = page * player.INVENTORY_PAGE_SIZE + localSlotIndex
itemVNum = player.GetItemIndex(globalSlotIndex)
if itemVNum == 0:
continue
item.SelectItem(itemVNum)
itemName = item.GetItemName().lower()
if searchText in itemName:
self.HighlightSlot(globalSlotIndex)
self.__RefreshHighlights()
InventoryWindow sınıfının içerinde arat
def Close(self):
self.Hide()
altına ekle
def ToggleSearchInput(self):
if self.searchInputShown:
self.searchInput.Hide()
for widget in self.shiftedWidgets:
x, y = widget.GetLocalPosition()
widget.SetPosition(x, y - 25)
self.searchInputShown = False
else:
self.searchInput.Show()
self.searchInput.SetFocus()
for widget in self.shiftedWidgets:
x, y = widget.GetLocalPosition()
widget.SetPosition(x, y + 25)
self.searchInputShown = True
inventorywindowex.py aç
height 590
"children" :
(
## Inventory, Equipment Slots
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 176,
"height" : 590,
"children" :
(
<<< bu kısıma >>>
{
"name": "ItemSearchBackground",
"type": "image",
"x": 10,
"y": 35,
"image": "d:/ymir work/ui/public/parameter_slot_03.sub",
},
{
"name": "ItemSearchInput",
"type": "editline",
"x": 12,
"y": 35,
"width": 106,
"height": 14,
"input_limit": 50,
"text": "",
"style": ("ltr",),
"text_color": 0xffffffff
},
<<<< >>>>> ekle
## Title
## Item Slot arat altına ekle
{
"name": "SearchButton",
"type": "button",
"x": 10,
"y": 5,
"default_image": "d:/ymir work/ui/public/close_button_01.sub",
"over_image": "d:/ymir work/ui/public/close_button_02.sub",
"down_image": "d:/ymir work/ui/public/close_button_03.sub",
"text": "",
"tooltip_text": "Item Ara"
},[/CODE]
En Çok Reaksiyon Alan Mesajlar
paylaşım için teşekkürler highlight uyumludan ziyade direk sistemin olayının itemi sana highlight sistemini kullanarak yerini gösteriyor olması
Paylaşım için teşekkürler.envanterde item arama geliştirilebilir görünüm açısından pek bi göz alıcılığı yok ama arayanlar için yönerge olabilir[CODE lang="python" title="uiinventory.py"]self.costumeButton = self.GetChild2("CostumeButton") arat
#############
self.searchInput = self.GetChild("ItemSearchInput")
self.searchButton = self.GetChild("SearchButton")
self.searchInput.SetReturnEvent(ui.__mem_func__(self.OnSearchItem))
self.searchButton.SetEvent(ui.__mem_func__(self.ToggleSearchInput))
self.shiftedWidgets = [
self.GetChild("ItemSlot"),
self.GetChild("Inventory_Tab_01"),
self.GetChild("Inventory_Tab_02"),
self.GetChild("Inventory_Tab_03"),
self.GetChild("Inventory_Tab_04"),
self.GetChild("Equipment_Base"),
# gerekiyorsa ekle: Money_Slot, TitleBar vb. ya da kendine göre düzenle
]
self.searchInputShown = False
#############
def SetItemSlotVnum(self, slotNumber): arat
üstüne ekle
def OnSearchItem(self):
searchText = self.searchInput.GetText().lower()
self.liHighlightedItems = []
if not searchText:
self.wndItem.RefreshSlot()
return
for page in xrange(player.INVENTORY_PAGE_COUNT): # Sayfa sayısı kadar döner
for localSlotIndex in xrange(player.INVENTORY_PAGE_SIZE):
globalSlotIndex = page * player.INVENTORY_PAGE_SIZE + localSlotIndex
itemVNum = player.GetItemIndex(globalSlotIndex)
if itemVNum == 0:
continue
item.SelectItem(itemVNum)
itemName = item.GetItemName().lower()
if searchText in itemName:
self.HighlightSlot(globalSlotIndex)
self.__RefreshHighlights()
InventoryWindow sınıfının içerinde arat
def Close(self):
self.Hide()
altına ekle
def ToggleSearchInput(self):
if self.searchInputShown:
self.searchInput.Hide()
for widget in self.shiftedWidgets:
x, y = widget.GetLocalPosition()
widget.SetPosition(x, y - 25)
self.searchInputShown = False
else:
self.searchInput.Show()
self.searchInput.SetFocus()
for widget in self.shiftedWidgets:
x, y = widget.GetLocalPosition()
widget.SetPosition(x, y + 25)
self.searchInputShown = True
inventorywindowex.py aç
height 590
"children" :
(
## Inventory, Equipment Slots
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 176,
"height" : 590,
"children" :
(
<<< bu kısıma >>>
{
"name": "ItemSearchBackground",
"type": "image",
"x": 10,
"y": 35,
"image": "d:/ymir work/ui/public/parameter_slot_03.sub",
},
{
"name": "ItemSearchInput",
"type": "editline",
"x": 12,
"y": 35,
"width": 106,
"height": 14,
"input_limit": 50,
"text": "",
"style": ("ltr",),
"text_color": 0xffffffff
},
<<<< >>>>> ekle
## Title
## Item Slot arat altına ekle
{
"name": "SearchButton",
"type": "button",
"x": 10,
"y": 5,
"default_image": "d:/ymir work/ui/public/close_button_01.sub",
"over_image": "d:/ymir work/ui/public/close_button_02.sub",
"down_image": "d:/ymir work/ui/public/close_button_03.sub",
"text": "",
"tooltip_text": "Item Ara"
},[/CODE]
İşlevsel olan bu şekli elinize sağlık diğeri teoride güzel pratikte işkenceİki halini de yaptık geçiş yapılabilir istenildiği takdirde. Aradığın itemi bütün page'lerde highlight içerisine alıyor fakat first hangi page'deyse ona odaklanıp ilk onun yerini gösteriyor. Taşıman sürüklemen veya kullanman aramayı temizlemedikçe highlight'ı bozmuyor.
Öğeyi görmek için üye olmalısınız.
- Katılım
- 2 Ara 2024
- Konular
- 186
- Mesajlar
- 1,981
- Çözüm
- 8
- Online süresi
- 5mo 13d
- Reaksiyon Skoru
- 1,495
- Altın Konu
- 1
- Başarım Puanı
- 206
- MmoLira
- 12,405
- DevLira
- 36
24 saat icerisinde görsel ekleyiniz
- Katılım
- 22 Eki 2024
- Konular
- 27
- Mesajlar
- 268
- Online süresi
- 1mo 3d
- Reaksiyon Skoru
- 166
- Altın Konu
- 0
- Başarım Puanı
- 74
- MmoLira
- 2,296
- DevLira
- 42
Paylaşım için teşekkürler.envanterde item arama geliştirilebilir görünüm açısından pek bi göz alıcılığı yok ama arayanlar için yönerge olabilir[CODE lang="python" title="uiinventory.py"]self.costumeButton = self.GetChild2("CostumeButton") arat
#############
self.searchInput = self.GetChild("ItemSearchInput")
self.searchButton = self.GetChild("SearchButton")
self.searchInput.SetReturnEvent(ui.__mem_func__(self.OnSearchItem))
self.searchButton.SetEvent(ui.__mem_func__(self.ToggleSearchInput))
self.shiftedWidgets = [
self.GetChild("ItemSlot"),
self.GetChild("Inventory_Tab_01"),
self.GetChild("Inventory_Tab_02"),
self.GetChild("Inventory_Tab_03"),
self.GetChild("Inventory_Tab_04"),
self.GetChild("Equipment_Base"),
# gerekiyorsa ekle: Money_Slot, TitleBar vb. ya da kendine göre düzenle
]
self.searchInputShown = False
#############
def SetItemSlotVnum(self, slotNumber): arat
üstüne ekle
def OnSearchItem(self):
searchText = self.searchInput.GetText().lower()
self.liHighlightedItems = []
if not searchText:
self.wndItem.RefreshSlot()
return
for page in xrange(player.INVENTORY_PAGE_COUNT): # Sayfa sayısı kadar döner
for localSlotIndex in xrange(player.INVENTORY_PAGE_SIZE):
globalSlotIndex = page * player.INVENTORY_PAGE_SIZE + localSlotIndex
itemVNum = player.GetItemIndex(globalSlotIndex)
if itemVNum == 0:
continue
item.SelectItem(itemVNum)
itemName = item.GetItemName().lower()
if searchText in itemName:
self.HighlightSlot(globalSlotIndex)
self.__RefreshHighlights()
InventoryWindow sınıfının içerinde arat
def Close(self):
self.Hide()
altına ekle
def ToggleSearchInput(self):
if self.searchInputShown:
self.searchInput.Hide()
for widget in self.shiftedWidgets:
x, y = widget.GetLocalPosition()
widget.SetPosition(x, y - 25)
self.searchInputShown = False
else:
self.searchInput.Show()
self.searchInput.SetFocus()
for widget in self.shiftedWidgets:
x, y = widget.GetLocalPosition()
widget.SetPosition(x, y + 25)
self.searchInputShown = True
inventorywindowex.py aç
height 590
"children" :
(
## Inventory, Equipment Slots
{
"name" : "board",
"type" : "board",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 176,
"height" : 590,
"children" :
(
<<< bu kısıma >>>
{
"name": "ItemSearchBackground",
"type": "image",
"x": 10,
"y": 35,
"image": "d:/ymir work/ui/public/parameter_slot_03.sub",
},
{
"name": "ItemSearchInput",
"type": "editline",
"x": 12,
"y": 35,
"width": 106,
"height": 14,
"input_limit": 50,
"text": "",
"style": ("ltr",),
"text_color": 0xffffffff
},
<<<< >>>>> ekle
## Title
## Item Slot arat altına ekle
{
"name": "SearchButton",
"type": "button",
"x": 10,
"y": 5,
"default_image": "d:/ymir work/ui/public/close_button_01.sub",
"over_image": "d:/ymir work/ui/public/close_button_02.sub",
"down_image": "d:/ymir work/ui/public/close_button_03.sub",
"text": "",
"tooltip_text": "Item Ara"
},[/CODE]
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 2
- Görüntüleme
- 302
- Cevaplar
- 13
- Görüntüleme
- 1K
- Cevaplar
- 13
- Görüntüleme
- 1K





