Hi.. I have a little problem in my TP window..
Im still getting
Here is part of code where problem is
Code
- def __MakeBtn(self):
- i = 0
- for name in self.pageNames:
- btn = ui.RadioButton()
- btn.SetParent(self.board)
- btn.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_large_01.sub")
- btn.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_large_02.sub")
- btn.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
- btn.SetPosition( 60 + 7 + (i * 90) if i < 4 else 60 + 7 + (i * 90) - 360 , (38 if i < 4 else 63) ) <--- in this line is a problem
- btn.SetText(name)
- btn.SetEvent(ui.__mem_func__(self.__OnClickPageButton), name)
- btn.Show()
- self.pages[name] = btn
- if i == 0:
- self.pages[name].Down()
- self.__MakeMaps(name)
- i = i + 1
Someone know what I did bad?