Administrator
Administrator
  • Mesaje: 4965
    Membru din: 07 Aug 2024, 18:53
  • Reacții: 125342
  • Mesaje utile: 47
  • Status: Pe aici.. 🤠
    Server: Saga2 - Soon
  • Regat: Jinno
  • [ID Discord]
  • *Descriere:

    Mai jos aveti adaptarea de la Highlight Slot System pentru Inventar Special by Sanii.
    It 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
    by @Oberst

    Atentie! Aveti nevoie sa bagati sistemul de Highlight inainte: highlight-iteme-inventar-pickup-effect-t1144.html

    *Poze / Video:
    [C++/Py] Highlight Slot - Sanii Special Storage (Inventory) - Mesaj 1 - Imagine 1
    01-12-2026, 16-56-05.png (222.99 KiB) Vizualizat de 737 ori
    *Link download / Code:

    Deschidem uiinventory.py si cautam:

    Cod: Selectaţi tot

    class InventoryTypeTabWindow(ui.ScriptWindow):

    Cod: Selectaţi tot

                self.buttonTab = []
                self.isLoaded = False

    Adaugam:
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    Cautam:

    Cod: Selectaţi tot

                    self.buttonTab.append(tab)
                    i += 1
    Adaugam:
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    Adaugam jos de tot in class InventoryTypeTabWindow(ui.ScriptWindow):
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    Cautam:

    Cod: Selectaţi tot

            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:
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    Cautam:

    Cod: Selectaţi tot

        def HighlightSlot(self, slot):
            if not slot in self.liHighlightedItems:
                self.liHighlightedItems.append(slot)

    Adaugam:
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    Cautam:

    Cod: Selectaţi tot

        def __RefreshHighlights(self):

    Adaugam deasupra:
    Conținut: Ascuns
    Reacționează ❤️ la acest mesaj și conținutul se va afișa automat.


    Adaugam in Locale_inc.h:

    Cod: Selectaţi tot

    #define ENABLE_HIGHLIGHT_INV_CATEGORY        // Inventory category highlight
    Deschidem PythonApplicationModule.cpp si adaugam:

    Cod: Selectaţi tot

    #ifdef ENABLE_HIGHLIGHT_INV_CATEGORY
        PyModule_AddIntConstant(poModule, "ENABLE_HIGHLIGHT_INV_CATEGORY", 1);
    #else
        PyModule_AddIntConstant(poModule, "ENABLE_HIGHLIGHT_INV_CATEGORY", 0);
    #endif

    Nou Cum descarc de pe TeraBox?

    Afișează detalii Ascunde detalii
    • Este asemănător cu Mega.nz
    • Instalați-vă clientul lor de Download de aici
    • Faceți-vă un cont (vă puteți loga cu Facebook / Google / etc)
    • Nou Dacă nu vreți să descărcați clientul de Download, folosiți acest site
    • Gata! Acum puteți descărca resursele rapid & simplu.

    De ce folosim TeraBox?

    • Este gratuit
    • Primești 1TB de spațiu gratuit la orice cont creat!
    • Este ușor de folosit și varianta premium este foarte ieftină
    • Fișierele nu sunt șterse niciodată
    TeraBox logo
    See full signature

    Înapoi la “Îmbunătățiri”

    Informații

    Utilizatori ce navighează pe acest forum: Daniel Marian, GroSso, Hound și 3 vizitatori

    Discord ID copiat: