Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

How to make function for button in official character details



Hello community,


First of all, I added switchbot and then make a button at inventory window for bonus switcher (Like this), which was good enough for me in the moment.


Then I added Official character details by Mali

and decided to move button for switchbot from inventory window to character details window (Like this)

I created a new button and added it to the character details window but the bonus switcher does not open without any error. 



I followed this tutorial for make it work in inventory window:


#in root/uiinventory.py



import bonusswitcher




self.isOpenedBeltWindowWhenClosingInventory = 0

#Add above:


self.okno2 = bonusswitcher.Bot()



self.costumeButton = self.GetChild2("CostumeButton")

#Add under:


self.nowyButton2 = self.GetChild2("Button2")




#Add under:





def ClickMallButton(self):

#Add above:


def Okno2(self):

if self.okno2.IsShow():





In locale/xx/ui/inventorywindow.py I simply added a button with ("name":"Button2",) and everything works fine.

When I put ("name":"Button2",) to the button I created in character details window, nothing happens even when I try to put there ("name" : "DSSButton",)

I tried to put functions to root/uicharacterdeails.py and also to root/uicharacter.py but every time I ended with some missing attribute errors. 


I found some threads people asking for similar questions, but mostly it was for buttons at inventory window and nothing was really helpfull for me.


So can you help me make this button work please?

Thank you for your replies and sorry for my english.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Activity

    1. 0

      Need Help With Char_Item.cpp

    2. 0


    3. 7

      Killua - Unholy God Set

    4. 2

      Visual studio 2022 compiling issue

    5. 991

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

  • Recently Browsing

    • No registered users viewing this page.
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.