roata destinului eveniment crciun
Scris: Vin Dec 01, 2023 8:37 pm
salut in ce foldar trebuie sa pun imaginile pentru roada destinului
Cod: Selectaţi tot
def BuildWindow(self):
self.Board = ui.ExpandedImageBox()
self.Board.AddFlag("movable")
self.Board.AddFlag("float")
self.Board.LoadImage("schicksal/schicksal_board.tga")
self.Board.SetCenterPosition()
self.Board.Show()
self.Wheel = ui.ExpandedImageBox()
self.Wheel.SetParent(self.Board)
self.Wheel.LoadImage("schicksal/schicksal_rad.tga")
self.Wheel.SetPosition(15, 45)
self.Wheel.AddFlag("not_pick")
self.Wheel.Show()
self.CloseButton = ui.Button()
self.CloseButton.SetParent(self.Board)
self.CloseButton.SetEvent(ui.__mem_func__(self.ClosePacket))
self.CloseButton.SetPosition(605, 45)
self.CloseButton.SetUpVisual("d:/ymir work/ui/public/close_button_01.sub")
self.CloseButton.SetOverVisual("d:/ymir work/ui/public/close_button_02.sub")
self.CloseButton.SetDownVisual("d:/ymir work/ui/public/close_button_03.sub")
self.CloseButton.Show()
self.SlotBg = ui.ExpandedImageBox()
self.SlotBg.SetParent(self.Board)
self.SlotBg.SetPosition(553, 127)
self.SlotBg.LoadImage("schicksal/slot.tga")
self.SlotBg.AddFlag("not_pick")
self.SlotBg.Show()
self.Button = ui.Button()
self.Button.SetParent(self.Wheel)
self.Button.SetUpVisual("schicksal/schicksal_drehen_normal.tga")
self.Button.SetOverVisual("schicksal/schicksal_drehen_over.tga")
self.Button.SetDownVisual("schicksal/schicksal_drehen_down.tga")
self.Button.SetPosition(177, 181)
self.Button.SetEvent(lambda : net.WheelPacket(2))
self.Button.Show()