Mai jos aveti adaptarea de la Highlight Slot System pentru Inventar Special by Sanii.
by @OberstIt is highlighted whenever the item mark system applies—unless you are in the same category, in which case highlighting wouldn’t make sense
In this case, the highlighting is simply the hover over image
Atentie! Aveti nevoie sa bagati sistemul de Highlight inainte: highlight-iteme-inventar-pickup-effect-t1144.html
*Poze / Video:
*Link download / Code:
Deschidem uiinventory.py si cautam:
Code:
class InventoryTypeTabWindow(ui.ScriptWindow):Code:
self.buttonTab = []
self.isLoaded = FalseAdaugam:
Cautam:
Code:
self.buttonTab.append(tab)
i += 1Adaugam jos de tot in class InventoryTypeTabWindow(ui.ScriptWindow):
Cautam:
Code:
def SetInventoryType(self, type):
self.wndInventoryTypeTab.SetUp(self.inventoryTypeIndex)
self.inventoryTypeIndex = int(type)
self.wndInventoryTypeTab.Down(self.inventoryTypeIndex)
if self.inventoryTypeIndex == player.INVENTORY_TYPE_INVENTORY:
self.RefreshBagSlotWindow()
else:
self.RefreshSpecialInventory()Adaugam:
Cautam:
Code:
def HighlightSlot(self, slot):
if not slot in self.liHighlightedItems:
self.liHighlightedItems.append(slot)Adaugam:
Cautam:
Code:
def __RefreshHighlights(self):Adaugam deasupra:
Adaugam in Locale_inc.h:
Code:
#define ENABLE_HIGHLIGHT_INV_CATEGORY // Inventory category highlightCode:
#ifdef ENABLE_HIGHLIGHT_INV_CATEGORY
PyModule_AddIntConstant(poModule, "ENABLE_HIGHLIGHT_INV_CATEGORY", 1);
#else
PyModule_AddIntConstant(poModule, "ENABLE_HIGHLIGHT_INV_CATEGORY", 0);
#endif

la acest mesaj și conținutul se va afișa automat.

