Hallöchen,
geh mal in die root/interfacemodule.py und such mal nach
- def ToggleDragonSoulWindowWithNoInfo(self):
- if FALSE == player.IsObserverMode():
- if app.ENABLE_DRAGON_SOUL_SYSTEM:
- if FALSE == self.wndDragonSoul.IsShow():
- if self.DRAGON_SOUL_IS_QUALIFIED:
- self.wndDragonSoul.Show()
- else:
- self.wndDragonSoul.Close()
und das ersetzt du mit
- def ToggleDragonSoulWindowWithNoInfo(self):
- chat.AppendChat(chat.CHAT_TYPE_INFO, "Switchbot wurde ausgefuehrt.")
- import switchbot
- self.switchidialog = switchbot.Bot()
- self.switchidialog.Show()
(nun hast du die funktion des switchbots)
jetzt gehst du in die locale/xx/ui/inventorywindow.py und such nach
- "tooltip_text" : uiScriptLocale.TASKBAR_DRAGON_SOUL,
und änderst es in
- "tooltip_text" : "Switchbot",
(jetzt hast du den namen geändert)
nun suchst du in der funktion nach
- "default_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_01.tga",
- "over_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_02.tga",
- "down_image" : "d:/ymir work/ui/dragonsoul/dss_inventory_button_03.tga",
und hier passt du dann das icon an
Wünsche dir viel Spaß damit.
(hab dir mal die Icons als Anhang mit hinzugefügt)