Search:
def __MakeWhisperButton(self, name):
Change like This:
def __MakeWhisperButton(self, name):
whisperButton = uiWhisper.WhisperButton()
if self.IsGameMasterName(name): # Neue GM-Icon
whisperButton.SetUpVisual("d:/ymir work/ui/game/windows/gm_logo.tga")
whisperButton.SetOverVisual("d:/ymir work/ui/game/windows/gm_logo.tga")
whisperButton.SetDownVisual("d:/ymir work/ui/game/windows/gm_logo.tga")
whisperButton.SetToolTipTextWithColor(name, 0xffffa200)
elif name == "[Switchbot]": # So kannst du z.b. [CYN3] oder [Switchbot] abfragen und eine neue Icon zuweisen.
whisperButton.SetUpVisual("d:/ymir work/ui/game/windows/switchbot_icon.tga")
whisperButton.SetOverVisual("d:/ymir work/ui/game/windows/switchbot_icon.tga")
whisperButton.SetDownVisual("d:/ymir work/ui/game/windows/switchbot_icon.tga")
whisperButton.SetToolTipTextWithColor(name, 0xff7fff00)
else: # Default
whisperButton.SetUpVisual("d:/ymir work/ui/game/windows/btn_mail_up.sub")
whisperButton.SetOverVisual("d:/ymir work/ui/game/windows/btn_mail_up.sub")
whisperButton.SetDownVisual("d:/ymir work/ui/game/windows/btn_mail_up.sub")
whisperButton.SetToolTipText(name)
whisperButton.ToolTipText.SetHorizontalAlignCenter()
whisperButton.SetEvent(ui.__mem_func__(self.ShowWhisperDialog), whisperButton)
whisperButton.Show()
whisperButton.name = name
self.whisperButtonList.insert(0, whisperButton)
self.__ArrangeWhisperButton()
return whisperButton