Пример #1
0
 def HorizontalBar(self, parent, x, y, width):
     bar = ui.HorizontalBar()
     if parent != None:
         bar.SetParent(parent)
     bar.SetPosition(x, y)
     bar.Create(width)
     bar.Show()
     return bar
Пример #2
0
	def HorizontalBar(self, parent, x, y, width):
		tmpHorizontalBar = ui.HorizontalBar()
		
		if parent:
			tmpHorizontalBar.SetParent(parent)
		
		tmpHorizontalBar.SetPosition(x, y)
		
		tmpHorizontalBar.Create(width)
		tmpHorizontalBar.Show()
		return tmpHorizontalBar
Пример #3
0
		def MakeTitleBar(self):
			self.titleBar = ui.HorizontalBar()
			self.titleBar.SetParent(self)
			self.titleBar.SetPosition(1,0)
			self.titleBar.Create(250 - 3)
			self.titleBar.Show()
			
			self.textLine = ui.TextLine()
			self.textLine.SetParent(self.titleBar)
			self.textLine.SetPosition(9,2)
			self.textLine.SetPackedFontColor(0xFFFFE3AD)
			self.textLine.Show()
Пример #4
0
	def LoadUI(self):
		settinginfo.Achievement_Statistic["status"] = 1
		self.Board = ui.BoardWithTitleBar()
		self.Board.SetSize(266, 415) # 266
		self.Board.SetCenterPosition()
		self.Board.AddFlag("movable")
		self.Board.AddFlag("float")
		self.Board.SetTitleName("Achievement-Statistik")
		self.Board.SetCloseEvent(self.__del__)
		self.Board.Show()

		self.itemtooltip = uiToolTip.ItemToolTip()  
		self.itemtooltip.HideToolTip()	

		self.BossButtonUp = ui.Button()
		self.BossButtonUp.SetParent(self.Board)
		self.BossButtonUp.SetPosition(16,33)
		self.BossButtonUp.SetText("")
		self.BossButtonUp.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_large_01.sub")
		self.BossButtonUp.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_large_02.sub")
		self.BossButtonUp.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.BossButtonUp.SetEvent(ui.__mem_func__(self.ChangeActionMode), 1)
		self.BossButtonUp.Hide()
		
		self.BossButtonDown = ui.Button()
		self.BossButtonDown.SetParent(self.Board)
		self.BossButtonDown.SetPosition(16,33)
		self.BossButtonDown.SetText("")
		self.BossButtonDown.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.BossButtonDown.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.BossButtonDown.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.BossButtonDown.SetEvent(ui.__mem_func__(self.ChangeActionMode), 1)
		self.BossButtonDown.Show()
		
		self.MetinButtonUp = ui.Button()
		self.MetinButtonUp.SetParent(self.Board)
		self.MetinButtonUp.SetPosition(95,33)
		self.MetinButtonUp.SetText("")
		self.MetinButtonUp.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_large_01.sub")
		self.MetinButtonUp.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_large_02.sub")
		self.MetinButtonUp.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.MetinButtonUp.SetEvent(ui.__mem_func__(self.ChangeActionMode), 2)
		self.MetinButtonUp.Show()	
		
		self.MetinButtonDown = ui.Button()
		self.MetinButtonDown.SetParent(self.Board)
		self.MetinButtonDown.SetPosition(95,33)
		self.MetinButtonDown.SetText("")
		self.MetinButtonDown.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.MetinButtonDown.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.MetinButtonDown.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.MetinButtonDown.SetEvent(ui.__mem_func__(self.ChangeActionMode), 2)
		self.MetinButtonDown.Hide()
		
		self.DungeonsButtonUp = ui.Button()
		self.DungeonsButtonUp.SetParent(self.Board)
		self.DungeonsButtonUp.SetPosition(174,33)
		self.DungeonsButtonUp.SetText("")
		self.DungeonsButtonUp.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_large_01.sub")
		self.DungeonsButtonUp.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_large_02.sub")
		self.DungeonsButtonUp.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.DungeonsButtonUp.SetEvent(ui.__mem_func__(self.ChangeActionMode), 3)
		self.DungeonsButtonUp.Show()	
		
		self.DungeonsButtonDown = ui.Button()
		self.DungeonsButtonDown.SetParent(self.Board)
		self.DungeonsButtonDown.SetPosition(174,33)
		self.DungeonsButtonDown.SetText("")
		self.DungeonsButtonDown.SetUpVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.DungeonsButtonDown.SetOverVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.DungeonsButtonDown.SetDownVisual("d:/ymir work/ui/game/windows/tab_button_large_03.sub")
		self.DungeonsButtonDown.SetEvent(ui.__mem_func__(self.ChangeActionMode), 3)
		self.DungeonsButtonDown.Hide()

		self.scrollbar = ui.ScrollBar()
		self.scrollbar.SetParent(self.Board)
		self.scrollbar.SetScrollBarSize(340)
		self.scrollbar.SetPosition(255, 55)	
		self.scrollbar.SetMiddleBarSize(float(5) / float(7))
		self.scrollbar.SetScrollEvent(self.__OnScroll)
		self.scrollbar.Hide()
		
		self.ButtonTextLines = ui.TextLine()
		self.ButtonTextLines.SetParent(self.Board)
		self.ButtonTextLines.SetPosition(30,36)
		self.ButtonTextLines.SetText("    Bosse                  Metins              Dungeons")
		self.ButtonTextLines.Show()	

		self.SplitTitleBar = ui.HorizontalBar()
		self.SplitTitleBar.SetParent(self.Board)
		self.SplitTitleBar.Create(235)
		self.SplitTitleBar.SetPosition(16,55)
		self.SplitTitleBar.Show()
		
		self.AchievementError = ui.TextLine()
		self.AchievementError.SetParent(self.Board)
		self.AchievementError.SetPosition(133,80)
		self.AchievementError.SetFontColor(0.9607, 0.2392, 0.0)
		self.AchievementError.SetText("Es wurden keine Achievements gefunden!")
		self.AchievementError.SetHorizontalAlignCenter()
		self.AchievementError.Hide()

			
		i = 0
		height = 75
		max_box = 5
		
		while i < max_box:
		
			self.faceBoxIMG[i] = ui.ImageBox()
			self.faceBoxIMG[i].SetParent(self.Board)
			self.faceBoxIMG[i].SetPosition(17,height)
			self.faceBoxIMG[i].LoadImage("d:/ymir work/ui/game/windows/box_face.sub")
			self.faceBoxIMG[i].Show()

			
			self.DescThinBoard[i] = ui.ThinBoard()
			self.DescThinBoard[i].SetParent(self.Board)
			self.DescThinBoard[i].SetPosition(70,height)
			self.DescThinBoard[i].SetSize(180,60)
			self.DescThinBoard[i].Show()
			
			self.AchievementTitle[i] = ui.TextLine()
			self.AchievementTitle[i].SetParent(self.DescThinBoard[i])
			self.AchievementTitle[i].SetPosition(90,5)
			self.AchievementTitle[i].SetFontColor(0.9607, 0.2392, 0.0)
			self.AchievementTitle[i].SetText("Metin des Kummers")
			self.AchievementTitle[i].SetHorizontalAlignCenter()
			self.AchievementTitle[i].Show()
			
			self.AchievementText[i] = ui.TextLine()
			self.AchievementText[i].SetParent(self.DescThinBoard[i])
			self.AchievementText[i].SetPosition(90,20)
			self.AchievementText[i].SetText("Anzahl: 30.000 | Punkte: 10")
			self.AchievementText[i].SetHorizontalAlignCenter()
			self.AchievementText[i].Show()	
			
			self.AchievementCalcPoints[i] = ui.TextLine()
			self.AchievementCalcPoints[i].SetParent(self.DescThinBoard[i])
			self.AchievementCalcPoints[i].SetPosition(90,35)
			self.AchievementCalcPoints[i].SetText("Bisher erhaltene Punkte: 13.400.032")
			self.AchievementCalcPoints[i].SetHorizontalAlignCenter()
			self.AchievementCalcPoints[i].Show()			

			height = height + 65
			i = i + 1
		
		self.cat = 1
		self.ClearBoards()
		self.LoadCategory()
Пример #5
0
    def __init__(self):
        ui.BoardWithTitleBar.__init__(self)
        self.SetSize(350, 350)
        self.SetCenterPosition()
        self.SetTitleName("Daily-Quest")
        self.AddFlag("movable")
        self.AddFlag("float")
        self.Hide()

        self.Index = 0
        self.AddQuestHeight = 1

        self.OverLines = []
        for i in [["Auftrag:", 45], ["Zeit bis zur nächsten Daily:", 80],
                  ["Belohnung:", 130], ["Auftrag starten:", 255]]:
            b = ui.HorizontalBar()
            b.SetParent(self)
            b.SetPosition(12, i[1] + (i[1] > 45 and self.AddQuestHeight * 15))
            b.pos = i[1]
            b.Create(326)
            b.Show()
            b.line = ui.TextLine()
            b.line.SetParent(b)
            b.line.SetPosition(326 / 2, 1)
            b.line.SetHorizontalAlignCenter()
            b.line.SetText(i[0])
            b.line.Show()
            self.OverLines.append(b)

        self.MobInfoLines = []
        for i in xrange(10):
            l = ui.TextLine()
            l.SetParent(self)
            if i in [1, 3, 5, 7, 9]:
                l.SetPosition(336, 70 + (i - 1) / 2 * 15)
            else:
                l.SetPosition(14, 70 + i / 2 * 15)
            if i in [1, 3, 5, 7, 9]:
                l.SetHorizontalAlignRight()
            # l.SetText("Töte 10 Wildhunde")
            l.Hide()
            self.MobInfoLines.append(l)

        self.TimeLeft = ui.TextLine()
        self.TimeLeft.SetParent(self)
        self.TimeLeft.SetPosition(14, self.AddQuestHeight * 15 + 105)
        self.TimeLeft.SetText("Du kannst wieder einen Auftrag starten.")
        self.TimeLeft.Time = 0
        self.TimeLeft.Show()

        self.qLimit = ui.Button()
        self.qLimit.SetParent(self)
        self.qLimit.SetPosition(50, 280 + self.AddQuestHeight * 15)
        self.qLimit.SetUpVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.qLimit.SetOverVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.qLimit.SetDownVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.qLimit.limit = 2
        self.qLimit.limitTable = [[
            "Lv. 1 bis Lv. 84", "Lv. 85 bis Lv. 134", "Lv. 135"
        ], ["Leicht", "Mittel", "Schwer"]]
        # self.qLimit.SetEvent(ui.__mem_func__(self.ChangeLimit))
        self.qLimit.Show()

        self.qStart = ui.RadioButton()
        self.qStart.SetParent(self)
        self.qStart.SetPosition(220, 280 + self.AddQuestHeight * 15)
        self.qStart.SetUpVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_01.sub")
        self.qStart.SetOverVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_02.sub")
        self.qStart.SetDownVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.qStart.SetText("Auftrag starten")
        self.qStart.SetEvent(ui.__mem_func__(self.StartQuest))
        self.qStart.Show()
        self.qStart.Down()

        self.ThinWinText = ui.ThinBoard()
        self.ThinWinText.SetParent(self)
        self.ThinWinText.SetPosition(12, 155 + self.AddQuestHeight * 15)
        self.ThinWinText.SetSize(165, 90)
        self.ThinWinText.Show()

        self.InfoLines = []
        for i in xrange(7):
            l = ui.TextLine()
            if i < 5:
                l.SetParent(self.ThinWinText)
                l.SetPosition(165 / 2, 7 + i * 15)
            else:
                l.SetParent(self)
                l.SetPosition(262,
                              165 + self.AddQuestHeight * 15 + 45 * (i - 5))
            l.SetHorizontalAlignCenter()
            l.SetText([
                "Nach abschließen", "dieser Quest", "erhälst du",
                "folgend gelistete", "Items:", "Daily-Kiste", "1 Dailypoint(s)"
            ][i])
            l.Show()
            self.InfoLines.append(l)

        #self.ItemImage = ui.ImageBox()
        #self.ItemImage.SetParent(self)
        #self.ItemImage.SetPosition(262-16,185+self.AddQuestHeight*15)
        #self.ItemImage.LoadImage("icon/item/daily.tga")
        #self.ItemImage.Show()

        self.ItemImage2 = ui.ImageBox()
        self.ItemImage2.SetParent(self)
        self.ItemImage2.SetPosition(262 - 16,
                                    185 + self.AddQuestHeight * 15 + 45)
        self.ItemImage2.LoadImage("icon/sidebar/daily.tga")
        self.ItemImage2.Show()

        self.ChangeLimit()

        self.SetSize(350, 320 + self.AddQuestHeight * 15)
Пример #6
0
	def LoadUI(self):
		settinginfo.BoxOpenerOpen = 1
		self.Board = ui.BoardWithTitleBar()
		self.Board.SetSize(266, 405)
		self.Board.SetCenterPosition()
		self.Board.AddFlag("movable")
		self.Board.AddFlag("float")
		self.Board.SetTitleName("Truhen öffnen.")
		self.Board.SetCloseEvent(self.__del__)
		self.Board.Show()

		self.itemtooltip = uiToolTip.ItemToolTip()  
		self.itemtooltip.HideToolTip()	
		
		self.OpenBoxThinBoardBG = ui.ImageBox()
		self.OpenBoxThinBoardBG.SetParent(self.Board)
		self.OpenBoxThinBoardBG.SetPosition(15,35)
		self.OpenBoxThinBoardBG.LoadImage("images_jewel/box_bg.tga")
		self.OpenBoxThinBoardBG.Show()
		
		self.OpenBoxThinBoard = ui.ThinBoard()
		self.OpenBoxThinBoard.SetParent(self.Board)
		self.OpenBoxThinBoard.SetSize(236,110)
		self.OpenBoxThinBoard.SetPosition(15,35)
		self.OpenBoxThinBoard.Show()
		
		self.OpenBoxInstruction = ui.TextLine()
		self.OpenBoxInstruction.SetParent(self.Board)
		self.OpenBoxInstruction.SetText("Bitte lege die zu öffnenden Truhen in den Slot.")
		self.OpenBoxInstruction.SetPosition(133,45)
		self.OpenBoxInstruction.SetHorizontalAlignCenter()
		self.OpenBoxInstruction.Show()		
		
		self.OpenBoxRedSlotImg = ui.ImageBox()
		self.OpenBoxRedSlotImg.SetParent(self.Board)
		self.OpenBoxRedSlotImg.SetPosition(113,70)
		self.OpenBoxRedSlotImg.LoadImage("images_jewel/red_slot.tga")
		self.OpenBoxRedSlotImg.Show()		
		
		self.OpenBoxSlot = ui.GridSlotWindow()  
		self.OpenBoxSlot.SetParent(self.OpenBoxRedSlotImg)  
		self.OpenBoxSlot.ArrangeSlot(50,1,1,32,32,0,0)  
		self.OpenBoxSlot.SetPosition(4, 4)  
		self.OpenBoxSlot.SetOverInItemEvent(ui.__mem_func__(self.ShowToolTip))  
		self.OpenBoxSlot.SetOverOutItemEvent(ui.__mem_func__(self.HideToolTip))  
		self.OpenBoxSlot.SetSelectEmptySlotEvent(ui.__mem_func__(self.add_slot))  
		self.OpenBoxSlot.SetSelectItemSlotEvent(ui.__mem_func__(self.del_slot))  
		self.OpenBoxSlot.Show()	

		self.OpenBoxButton = ui.Button()
		self.OpenBoxButton.SetParent(self.Board)
		self.OpenBoxButton.SetPosition(90,115)
		self.OpenBoxButton.SetText("")
		self.OpenBoxButton.SetUpVisual("d:/ymir work/ui/public/Large_Button_01.sub")
		self.OpenBoxButton.SetOverVisual("d:/ymir work/ui/public/Large_Button_02.sub")
		self.OpenBoxButton.SetDownVisual("d:/ymir work/ui/public/Large_Button_03.sub")
		self.OpenBoxButton.SetEvent(self.OpenBOXCMD)
		self.OpenBoxButton.Show()
		
		self.OpenBoxButtonText = ui.TextLine()
		self.OpenBoxButtonText.SetParent(self.Board)
		self.OpenBoxButtonText.SetText("Alle öffnen!")
		self.OpenBoxButtonText.SetPosition(133,118)
		self.OpenBoxButtonText.SetHorizontalAlignCenter()
		self.OpenBoxButtonText.Show()	


		self.OtherBoxTitleBar = ui.HorizontalBar()
		self.OtherBoxTitleBar.SetParent(self.Board)
		self.OtherBoxTitleBar.Create(235)
		self.OtherBoxTitleBar.SetPosition(16,150)
		self.OtherBoxTitleBar.Show()
		
		self.OtherBoxTitle = ui.TextLine()
		self.OtherBoxTitle.SetParent(self.Board)
		self.OtherBoxTitle.SetText("Truhen die hier geöffnet werden können.")
		self.OtherBoxTitle.SetPosition(133,150)
		self.OtherBoxTitle.SetHorizontalAlignCenter()
		self.OtherBoxTitle.Show()	
		
		
		i = 0
		count_line = 0
		next_line = 6
		slot_count = 42
		width = 30
		height = 170
		treasureBoxVnums = settinginfo.treasure_chest_vnum
		treasureBoxVnumsCount = len(treasureBoxVnums) - 1
		
		while i < slot_count:
			self.slotImages[i] = ui.ImageBox()
			self.slotImages[i].SetParent(self.Board)
			self.slotImages[i].SetPosition(width,height)
			self.slotImages[i].LoadImage("d:/ymir work/ui/public/slot_base.sub")
			self.slotImages[i].Show()
			
			
			self.otherBoxSlots[i] = ui.GridSlotWindow()  
			self.otherBoxSlots[i].SetParent(self.slotImages[i])  
			self.otherBoxSlots[i].ArrangeSlot(i,1,1,32,32,0,0)  
			self.otherBoxSlots[i].SetPosition(0, 0)  
			self.otherBoxSlots[i].SetOverInItemEvent(ui.__mem_func__(self.ShowToolTip))  
			self.otherBoxSlots[i].SetOverOutItemEvent(ui.__mem_func__(self.HideToolTip))  
			self.otherBoxSlots[i].SetSelectEmptySlotEvent(ui.__mem_func__(self.add_slot))  
			self.otherBoxSlots[i].SetSelectItemSlotEvent(ui.__mem_func__(self.del_slot))  
			self.otherBoxSlots[i].Show()				
			
			
			if treasureBoxVnumsCount >= i:
				self.otherBoxSlots[i].SetItemSlot(i, treasureBoxVnums[i], 0)
			

			
		
			width = width + 35
			count_line = count_line + 1
			
			if count_line == next_line:
				width = 30
				height = height + 32
				count_line = 0
			
			i = i + 1
Пример #7
0
    def LoadUI(self):
        settinginfo.DailyQuest_GUI = 1
        self.Board = ui.BoardWithTitleBar()
        self.Board.SetSize(266, 340)
        self.Board.SetCenterPosition()
        self.Board.AddFlag("movable")
        self.Board.AddFlag("float")
        self.Board.SetTitleName("Daily-Quest")
        self.Board.SetCloseEvent(self.__del__)
        self.Board.Show()

        self.itemtooltip = uiToolTip.ItemToolTip()
        self.itemtooltip.HideToolTip()

        self.TimeThinBoard = ui.ThinBoard()
        self.TimeThinBoard.SetParent(self.Board)
        self.TimeThinBoard.SetPosition(16, 35)
        self.TimeThinBoard.SetSize(235, 60)
        self.TimeThinBoard.Show()

        self.TitleBar = ui.HorizontalBar()
        self.TitleBar.SetParent(self.Board)
        self.TitleBar.Create(235)
        self.TitleBar.SetPosition(16, 35)
        self.TitleBar.Show()

        self.TitleBarTitle = ui.TextLine()
        self.TitleBarTitle.SetParent(self.Board)
        self.TitleBarTitle.SetPosition(133, 36)
        self.TitleBarTitle.SetHorizontalAlignCenter()
        self.TitleBarTitle.SetText("Zeit")
        self.TitleBarTitle.Show()

        self.MainTimeLine = ui.TextLine()
        self.MainTimeLine.SetParent(self.Board)
        self.MainTimeLine.SetPosition(133, 65)
        self.MainTimeLine.SetHorizontalAlignCenter()
        self.MainTimeLine.SetText("[ Verbl. Zeit: 13:59:57 Std. ]")
        self.MainTimeLine.SetFontColor(0.5411, 0.7254, 0.5568)
        self.MainTimeLine.Show()

        self.TargetThinBoard = ui.ThinBoard()
        self.TargetThinBoard.SetParent(self.Board)
        self.TargetThinBoard.SetPosition(16, 100)
        self.TargetThinBoard.SetSize(235, 65)
        self.TargetThinBoard.Show()

        self.TargetTitleBar = ui.HorizontalBar()
        self.TargetTitleBar.SetParent(self.Board)
        self.TargetTitleBar.Create(235)
        self.TargetTitleBar.SetPosition(16, 100)
        self.TargetTitleBar.Show()

        self.TargetTitle = ui.TextLine()
        self.TargetTitle.SetParent(self.Board)
        self.TargetTitle.SetPosition(133, 101)
        self.TargetTitle.SetHorizontalAlignCenter()
        self.TargetTitle.SetText("Ziel(e)")
        self.TargetTitle.Show()

        i = 0
        slot_count = 6
        width = 37
        while i < slot_count:
            self.slotImages[i] = ui.ImageBox()
            self.slotImages[i].SetParent(self.Board)
            self.slotImages[i].SetPosition(width, 120)
            self.slotImages[i].LoadImage(
                "d:/ymir work/ui/public/slot_base.sub")
            self.slotImages[i].Show()

            self.targetSlots[i] = ui.GridSlotWindow()
            self.targetSlots[i].SetParent(self.slotImages[i])
            self.targetSlots[i].ArrangeSlot(i, 1, 1, 32, 32, 0, 0)
            self.targetSlots[i].SetPosition(0, 0)
            self.targetSlots[i].SetOverInItemEvent(
                ui.__mem_func__(self.ShowToolTip))
            self.targetSlots[i].SetOverOutItemEvent(
                ui.__mem_func__(self.HideToolTip))
            self.targetSlots[i].SetSelectEmptySlotEvent(
                ui.__mem_func__(self.add_slot))
            self.targetSlots[i].SetSelectItemSlotEvent(
                ui.__mem_func__(self.del_slot))
            self.targetSlots[i].Show()

            width = width + 32
            i = i + 1

        self.rewardThinBoard = ui.ThinBoard()
        self.rewardThinBoard.SetParent(self.Board)
        self.rewardThinBoard.SetPosition(16, 170)
        self.rewardThinBoard.SetSize(235, 65)
        self.rewardThinBoard.Show()

        self.rewardTitleBar = ui.HorizontalBar()
        self.rewardTitleBar.SetParent(self.Board)
        self.rewardTitleBar.Create(235)
        self.rewardTitleBar.SetPosition(16, 170)
        self.rewardTitleBar.Show()

        self.rewardTitle = ui.TextLine()
        self.rewardTitle.SetParent(self.Board)
        self.rewardTitle.SetPosition(133, 171)
        self.rewardTitle.SetHorizontalAlignCenter()
        self.rewardTitle.SetText("Belohnung")
        self.rewardTitle.Show()

        i = 0
        slot_count = 6
        width = 37
        slot_idx = 7
        while i < slot_count:
            self.rewardSlotImages[i] = ui.ImageBox()
            self.rewardSlotImages[i].SetParent(self.Board)
            self.rewardSlotImages[i].SetPosition(width, 190)
            self.rewardSlotImages[i].LoadImage(
                "d:/ymir work/ui/public/slot_base.sub")
            self.rewardSlotImages[i].Show()

            self.rewardSlots[i] = ui.GridSlotWindow()
            self.rewardSlots[i].SetParent(self.rewardSlotImages[i])
            self.rewardSlots[i].ArrangeSlot(slot_idx, 1, 1, 32, 32, 0, 0)
            self.rewardSlots[i].SetPosition(0, 0)
            self.rewardSlots[i].SetOverInItemEvent(
                ui.__mem_func__(self.ShowToolTip))
            self.rewardSlots[i].SetOverOutItemEvent(
                ui.__mem_func__(self.HideToolTip))
            self.rewardSlots[i].SetSelectEmptySlotEvent(
                ui.__mem_func__(self.add_slot))
            self.rewardSlots[i].SetSelectItemSlotEvent(
                ui.__mem_func__(self.del_slot))
            self.rewardSlots[i].Show()
            slot_idx = slot_idx + 1
            width = width + 32
            i = i + 1

        self.startThinBoard = ui.ThinBoard()
        self.startThinBoard.SetParent(self.Board)
        self.startThinBoard.SetPosition(16, 240)
        self.startThinBoard.SetSize(235, 85)
        self.startThinBoard.Show()

        self.startTitleBar = ui.HorizontalBar()
        self.startTitleBar.SetParent(self.Board)
        self.startTitleBar.Create(235)
        self.startTitleBar.SetPosition(16, 240)
        self.startTitleBar.Show()

        self.startTitle = ui.TextLine()
        self.startTitle.SetParent(self.Board)
        self.startTitle.SetPosition(133, 241)
        self.startTitle.SetHorizontalAlignCenter()
        self.startTitle.SetText("Quest starten")
        self.startTitle.Show()

        self.startButton = ui.Button()
        self.startButton.SetParent(self.Board)
        self.startButton.SetPosition(40, 270)
        self.startButton.SetText("")
        self.startButton.SetUpVisual(
            "d:/ymir work/ui/public/xlarge_button_01.sub")
        self.startButton.SetOverVisual(
            "d:/ymir work/ui/public/xlarge_button_02.sub")
        self.startButton.SetDownVisual(
            "d:/ymir work/ui/public/xlarge_button_03.sub")
        self.startButton.SetEvent(self.StartQuest)
        self.startButton.Show()

        self.disStartButton = ui.Button()
        self.disStartButton.SetParent(self.Board)
        self.disStartButton.SetPosition(40, 270)
        self.disStartButton.SetText("")
        self.disStartButton.SetUpVisual(
            "d:/ymir work/ui/public/xlarge_button_03.sub")
        self.disStartButton.SetOverVisual(
            "d:/ymir work/ui/public/xlarge_button_03.sub")
        self.disStartButton.SetDownVisual(
            "d:/ymir work/ui/public/xlarge_button_03.sub")
        self.disStartButton.SetEvent(self.disButtonFunc)
        self.disStartButton.Hide()

        self.startButtonTitle = ui.TextLine()
        self.startButtonTitle.SetParent(self.Board)
        self.startButtonTitle.SetPosition(133, 276)
        self.startButtonTitle.SetHorizontalAlignCenter()
        self.startButtonTitle.SetText("Starten!")
        self.startButtonTitle.Show()
Пример #8
0
	def LoadUI(self):
		if constInfo.PET_INFOS["gui"] == 1:
			constInfo.PET_INFOS["gui"] = 0
			self.__del__()
			return
		
		self.Board = ui.BoardWithTitleBar()
		self.Board.SetSize(400, 415)
		self.Board.SetCenterPosition()
		self.Board.AddFlag("movable")
		self.Board.AddFlag("float")
		self.Board.SetTitleName("Pet")
		self.Board.SetCloseEvent(self.__del__)
		self.Board.Show()
		
		self.tooltip = uiToolTip.ToolTip()  
		self.tooltip.HideToolTip()
		
		self.HeadBoard = ui.ThinBoard()
		self.HeadBoard.SetParent(self.Board)
		self.HeadBoard.SetPosition(15,35)
		self.HeadBoard.SetSize(370,80)
		self.HeadBoard.Show()
		
		self.PetItemSlotIMG = ui.ImageBox()
		self.PetItemSlotIMG.SetParent(self.HeadBoard)
		self.PetItemSlotIMG.SetPosition(15,17)
		self.PetItemSlotIMG.LoadImage("exterminatus/new_pet_images/pet_incu_slot_001.tga")
		self.PetItemSlotIMG.Show()
		
		self.PetItemVnumIMG = ui.ImageBox()
		self.PetItemVnumIMG.SetParent(self.PetItemSlotIMG)
		self.PetItemVnumIMG.SetPosition(4,4)
		self.PetItemVnumIMG.LoadImage("icon/item/55001.tga")
		self.PetItemVnumIMG.Show()
		
		self.PetNameSlotBar = ui.SlotBar()
		self.PetNameSlotBar.SetParent(self.HeadBoard)
		self.PetNameSlotBar.SetPosition(70,25)
		self.PetNameSlotBar.SetSize(225,19)
		self.PetNameSlotBar.Show()
			
		self.PetNameTextLine = ui.TextLine()
		self.PetNameTextLine.SetParent(self.PetNameSlotBar)
		self.PetNameTextLine.SetPosition(8,2)
		self.PetNameTextLine.SetText(str(constInfo.PET_INFOS["name"]))
		self.PetNameTextLine.Show()
		
		self.StatBoard = ui.ThinBoard()
		self.StatBoard.SetParent(self.Board)
		self.StatBoard.SetPosition(15,120)
		self.StatBoard.SetSize(370,120)
		self.StatBoard.Show()
		
		i = 0
		y = 15
		y_add = 120
		headlines = [["Level",36],["Erfahrung",28],["Laufzeit",32]]
		while i < 3:
			self.PetContentBoardTitleBars[i] = ui.HorizontalBar()
			self.PetContentBoardTitleBars[i].SetParent(self.StatBoard)
			self.PetContentBoardTitleBars[i].SetPosition(y,10)
			self.PetContentBoardTitleBars[i].Create(100)
			self.PetContentBoardTitleBars[i].Show()
			self.PetContentBoardTitleBars[i+10] = ui.TextLine()
			self.PetContentBoardTitleBars[i+10].SetParent(self.PetContentBoardTitleBars[i])
			self.PetContentBoardTitleBars[i+10].SetPosition(headlines[i][1],2)
			self.PetContentBoardTitleBars[i+10].SetText(str(headlines[i][0]))
			self.PetContentBoardTitleBars[i+10].Show()
			if i > 0:
				self.PetContentBoardTitleBars[i+100] = ui.ImageBox()
				self.PetContentBoardTitleBars[i+100].SetParent(self.StatBoard)
				self.PetContentBoardTitleBars[i+100].SetPosition(y-11,5)
				self.PetContentBoardTitleBars[i+100].LoadImage("exterminatus/new_pet_images/pet_trenn_line.tga")			
				self.PetContentBoardTitleBars[i+100].Show()
			
			i = i + 1
			y = y + y_add
			
		

		self.PetLevelSlotBar = ui.SlotBar()
		self.PetLevelSlotBar.SetParent(self.StatBoard)
		self.PetLevelSlotBar.SetPosition(15,35)
		self.PetLevelSlotBar.SetSize(98,19)
		self.PetLevelSlotBar.Show()
		self.PetLevelTextLine = ui.TextLine()
		self.PetLevelTextLine.SetParent(self.PetLevelSlotBar)
		self.PetLevelTextLine.SetPosition(39,2)
		self.PetLevelTextLine.SetText("  7")
		self.PetLevelTextLine.Show()		
		i = 0
		y = 142
		y_add = 17

		
		while i < 5:
			self.PetEXPBubble[i] = ui.ImageBox()
			self.PetEXPBubble[i].SetParent(self.StatBoard)
			self.PetEXPBubble[i].SetPosition(y,35)
			self.PetEXPBubble[i].LoadImage("exterminatus/new_pet_images/exp_bubble_empty.tga")
			self.PetEXPBubble[i].Show()	
			if i < 4: 
				self.expGauge[i] = ui.ExpandedImageBox()
				self.expGauge[i].SetParent(self.StatBoard)
				self.expGauge[i].SetPosition(y,35)
				self.expGauge[i].LoadImage("exterminatus/new_pet_images/exp_bubble_full.tga")
				self.expGauge[i].Show()
			else:
				self.ItemExpGauge[0] = ui.ExpandedImageBox()
				self.ItemExpGauge[0].SetParent(self.StatBoard)
				self.ItemExpGauge[0].SetPosition(y,35)
				self.ItemExpGauge[0].LoadImage("exterminatus/new_pet_images/exp_bubble_item.tga")
				self.ItemExpGauge[0].Show()
				
			i = i + 1
			y = y + y_add
		self.PetEXPBlock = ui.ImageBox()
		self.PetEXPBlock.SetParent(self.StatBoard)
		self.PetEXPBlock.SetPosition(142,35)
		self.PetEXPBlock.LoadImage("exterminatus/new_pet_images/pet_exp_block.tga")
		self.PetEXPBlock.Show()			
		self.SetExperience(0,2000)	
		self.SetItemExperience(0,2)
		# self.PetItemEXPSlotIMG = ui.ImageBox()
		# self.PetItemEXPSlotIMG.SetParent(self.StatBoard)
		# self.PetItemEXPSlotIMG.SetPosition(167,65)
		# self.PetItemEXPSlotIMG.LoadImage("d:/ymir work/ui/public/slot_base.sub")
		# self.PetItemEXPSlotIMG.Show()
		# self.PetItemEXPSlotItemIMG = ui.ImageBox()
		# self.PetItemEXPSlotItemIMG.SetParent(self.PetItemEXPSlotIMG)
		# self.PetItemEXPSlotItemIMG.SetPosition(0,0)
		# self.PetItemEXPSlotItemIMG.LoadImage("icon/item/55100.tga")
		# self.PetItemEXPSlotItemIMG.Show()
		# self.PetItemEXPSlotItemIMGCover = ui.ImageBox()
		# self.PetItemEXPSlotItemIMGCover.SetParent(self.PetItemEXPSlotIMG)
		# self.PetItemEXPSlotItemIMGCover.SetPosition(2,2)
		# self.PetItemEXPSlotItemIMGCover.LoadImage("exterminatus/new_pet_images/slot_block.tga")
		# self.PetItemEXPSlotItemIMGCover.Show()
		# self.PetItemEXPSlotItemIMGCover1 = ui.ImageBox()
		# self.PetItemEXPSlotItemIMGCover1.SetParent(self.PetItemEXPSlotIMG)
		# self.PetItemEXPSlotItemIMGCover1.SetPosition(2,2)
		# self.PetItemEXPSlotItemIMGCover1.LoadImage("exterminatus/new_pet_images/slot_block.tga")
		# self.PetItemEXPSlotItemIMGCover1.Show()
		
		# self.PetItemEXPSlotItemSlot = ui.GridSlotWindow()  
		# self.PetItemEXPSlotItemSlot.SetParent(self.PetItemEXPSlotIMG)  
		# self.PetItemEXPSlotItemSlot.ArrangeSlot(1,1,1,32,32,0,0)  
		# self.PetItemEXPSlotItemSlot.SetPosition(0, 0)  
		# #self.PetItemEXPSlotItemSlot.SetOverInItemEvent(ui.__mem_func__(self.ShowToolTip))  
		# #self.PetItemEXPSlotItemSlot.SetOverOutItemEvent(ui.__mem_func__(self.HideToolTip))  
		# self.PetItemEXPSlotItemSlot.SetSelectEmptySlotEvent(ui.__mem_func__(self.add_slot))  
		# #self.PetItemEXPSlotItemSlot.SetSelectItemSlotEvent(ui.__mem_func__(self.del_slot))  
		# self.PetItemEXPSlotItemSlot.Show()		
		
		
		
		self.PetLifeTimeSlotBar = ui.SlotBar()
		self.PetLifeTimeSlotBar.SetParent(self.StatBoard)
		self.PetLifeTimeSlotBar.SetPosition(255,35)
		self.PetLifeTimeSlotBar.SetSize(98,19)
		self.PetLifeTimeSlotBar.Show()
		self.PetLifeTimeTextLine = ui.TextLine()
		self.PetLifeTimeTextLine.SetParent(self.PetLifeTimeSlotBar)
		self.PetLifeTimeTextLine.SetPosition(18,2)
		self.PetLifeTimeTextLine.SetText("0")
		self.PetLifeTimeTextLine.Show()
		# self.PetLifeTimeSlotIMG = ui.ImageBox()
		# self.PetLifeTimeSlotIMG.SetParent(self.StatBoard)
		# self.PetLifeTimeSlotIMG.SetPosition(287,65)
		# self.PetLifeTimeSlotIMG.LoadImage("d:/ymir work/ui/public/slot_base.sub")
		# self.PetLifeTimeSlotIMG.Show()
		# self.PetLifeTimeSlotItemIMG = ui.ImageBox()
		# self.PetLifeTimeSlotItemIMG.SetParent(self.PetLifeTimeSlotIMG)
		# self.PetLifeTimeSlotItemIMG.SetPosition(0,0)
		# self.PetLifeTimeSlotItemIMG.LoadImage("icon/item/55102.tga")
		# self.PetLifeTimeSlotItemIMG.Show()
		# self.PetLifeTimeSlotItemIMGCover = ui.ImageBox()
		# self.PetLifeTimeSlotItemIMGCover.SetParent(self.PetLifeTimeSlotIMG)
		# self.PetLifeTimeSlotItemIMGCover.SetPosition(2,2)
		# self.PetLifeTimeSlotItemIMGCover.LoadImage("exterminatus/new_pet_images/slot_block.tga")
		# self.PetLifeTimeSlotItemIMGCover.Show()
		# self.PetLifeTimeSlotItemIMGCover1 = ui.ImageBox()
		# self.PetLifeTimeSlotItemIMGCover1.SetParent(self.PetLifeTimeSlotIMG)
		# self.PetLifeTimeSlotItemIMGCover1.SetPosition(2,2)
		# self.PetLifeTimeSlotItemIMGCover1.LoadImage("exterminatus/new_pet_images/slot_block.tga")
		# self.PetLifeTimeSlotItemIMGCover1.Show()

		# self.LifeTimeSlotItemSlot = ui.GridSlotWindow()  
		# self.LifeTimeSlotItemSlot.SetParent(self.PetLifeTimeSlotIMG)  
		# self.LifeTimeSlotItemSlot.ArrangeSlot(2,1,1,32,32,0,0)  
		# self.LifeTimeSlotItemSlot.SetPosition(0, 0)  
		# self.LifeTimeSlotItemSlot.SetSelectEmptySlotEvent(ui.__mem_func__(self.add_slot))  
		# self.LifeTimeSlotItemSlot.Show()

		
		self.BoniBoard = ui.ThinBoard()
		self.BoniBoard.SetParent(self.Board)
		self.BoniBoard.SetPosition(15,245)
		self.BoniBoard.SetSize(370,100)
		self.BoniBoard.Show()		

		self.SkillBoard = ui.ThinBoard()
		self.SkillBoard.SetParent(self.Board)
		self.SkillBoard.SetPosition(15,350)
		self.SkillBoard.SetSize(370,50)
		self.SkillBoard.Show()
		
		i = 0
		x = 15
		list = 0
		boni = ["Verteidigung +75","Stark gegen Monster +20%","Chance auf krit. Treffer +10%"]
		while i < 3:
			self.PetBoni[i] = ui.TextLine()
			self.PetBoni[i].SetParent(self.BoniBoard)
			self.PetBoni[i].SetPosition(15,x)
			self.PetBoni[i].SetText("Bonus " + str(i+1) + ":")
			self.PetBoni[i].Show()
			self.PetBoni[i+3] = ui.TextLine()
			self.PetBoni[i+3].SetParent(self.BoniBoard)
			self.PetBoni[i+3].SetPosition(65,x)
			self.PetBoni[i+3].SetText(str(self.__CreateAffectString(self.PetAffects[list],self.PetAffects[list+1]*2)))
			self.PetBoni[i+3].SetFontColor(0.5411, 0.7254, 0.5568)
			self.PetBoni[i+3].Show()			
			list = list + 2
			i = i + 1
			x = x + 26
			
		self.PetSkillSlotBGImg = ui.ImageBox()
		self.PetSkillSlotBGImg.SetParent(self.SkillBoard)
		self.PetSkillSlotBGImg.SetPosition(8,8)
		self.PetSkillSlotBGImg.LoadImage("d:/ymir work/ui/public/slot_base.sub")
		self.PetSkillSlotBGImg.Show()			
		
		self.PetSkillSlotBGImg1 = ui.GridSlotWindow()  
		self.PetSkillSlotBGImg1.SetParent(self.PetSkillSlotBGImg)  
		self.PetSkillSlotBGImg1.ArrangeSlot(3,1,1,32,32,0,0)  
		self.PetSkillSlotBGImg1.SetPosition(0, 0)  
		#self.PetSkillSlotBGImg1.SetOverInItemEvent(ui.__mem_func__(self.ShowToolTip))  
		#self.PetSkillSlotBGImg1.SetOverOutItemEvent(ui.__mem_func__(self.HideToolTip))  
		#self.PetSkillSlotBGImg1.SetSelectEmptySlotEvent(ui.__mem_func__(self.add_slot))  
		self.PetSkillSlotBGImg1.SetSelectItemSlotEvent(ui.__mem_func__(self.ActivateSkill))  
		self.PetSkillSlotBGImg1.Show()
		self.PetSkillSlotBGImg1.SetItemSlot(3, 70002, constInfo.PET_INFOS["skill_level"])
		self.PetSkillNameTitle = ui.TextLine()
		self.PetSkillNameTitle.SetParent(self.SkillBoard)
		self.PetSkillNameTitle.SetPosition(45,8)
		self.PetSkillNameTitle.SetText("Automatisches aufheben")
		self.PetSkillNameTitle.Show()		
		self.PetSkillNameError = ui.TextLine()
		self.PetSkillNameError.SetParent(self.SkillBoard)
		self.PetSkillNameError.SetPosition(45,23)
		self.PetSkillNameError.SetText("Die Fertigkeit kann erst erlernt werden wenn dein Pet lv.10 ist.")
		self.PetSkillNameError.SetFontColor(0.9, 0.4745, 0.4627)
		self.PetSkillNameError.Show()		
		constInfo.PET_INFOS["gui"] = 1
Пример #9
0
    def LoadUI(self):
        settinginfo.UppItemStorageOpen = 1
        self.Board = ui.BoardWithRoofBar()
        self.Board.SetSize(266, 425 + 20 - self.YamatoHeight - 20)
        self.Board.SetCenterPosition()
        self.Board.AddFlag("movable")
        self.Board.AddFlag("float")
        self.Board.AddFlag("attach")
        # self.Board.SetTitleName("UppItem-Lager")
        self.Board.SetCloseEvent(self.__del__)
        self.Board.Show()

        self.itemtooltipup = uiToolTip.ItemToolTip()
        self.itemtooltipup.HideToolTip()

        self.NormalButtonUp = ui.Button()
        self.NormalButtonUp.SetParent(self.Board)
        self.NormalButtonUp.SetPosition(16 + self.YamatoWidth,
                                        33 + self.YamatoHeight)
        self.NormalButtonUp.SetText("")
        self.NormalButtonUp.SetUpVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_01.sub")
        self.NormalButtonUp.SetOverVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_02.sub")
        self.NormalButtonUp.SetDownVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.NormalButtonUp.SetEvent(ui.__mem_func__(self.ChangeActionMode), 1)
        self.NormalButtonUp.Hide()

        self.NormalButtonDown = ui.Button()
        self.NormalButtonDown.SetParent(self.Board)
        self.NormalButtonDown.SetPosition(16 + self.YamatoWidth,
                                          33 + self.YamatoHeight)
        self.NormalButtonDown.SetText("")
        self.NormalButtonDown.SetUpVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.NormalButtonDown.SetOverVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.NormalButtonDown.SetDownVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.NormalButtonDown.SetEvent(ui.__mem_func__(self.ChangeActionMode),
                                       1)
        self.NormalButtonDown.Show()

        self.UsuallyButtonUp = ui.Button()
        self.UsuallyButtonUp.SetParent(self.Board)
        self.UsuallyButtonUp.SetPosition(95 + self.YamatoWidth,
                                         33 + self.YamatoHeight)
        self.UsuallyButtonUp.SetText("")
        self.UsuallyButtonUp.SetUpVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_01.sub")
        self.UsuallyButtonUp.SetOverVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_02.sub")
        self.UsuallyButtonUp.SetDownVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.UsuallyButtonUp.SetEvent(ui.__mem_func__(self.ChangeActionMode),
                                      2)
        self.UsuallyButtonUp.Show()

        self.UsuallyButtonDown = ui.Button()
        self.UsuallyButtonDown.SetParent(self.Board)
        self.UsuallyButtonDown.SetPosition(95 + self.YamatoWidth,
                                           33 + self.YamatoHeight)
        self.UsuallyButtonDown.SetText("")
        self.UsuallyButtonDown.SetUpVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.UsuallyButtonDown.SetOverVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.UsuallyButtonDown.SetDownVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.UsuallyButtonDown.SetEvent(ui.__mem_func__(self.ChangeActionMode),
                                        2)
        self.UsuallyButtonDown.Hide()

        self.RareButtonUp = ui.Button()
        self.RareButtonUp.SetParent(self.Board)
        self.RareButtonUp.SetPosition(174 + self.YamatoWidth,
                                      33 + self.YamatoHeight)
        self.RareButtonUp.SetText("")
        self.RareButtonUp.SetUpVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_01.sub")
        self.RareButtonUp.SetOverVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_02.sub")
        self.RareButtonUp.SetDownVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.RareButtonUp.SetEvent(ui.__mem_func__(self.ChangeActionMode), 3)
        self.RareButtonUp.Show()

        self.RareButtonDown = ui.Button()
        self.RareButtonDown.SetParent(self.Board)
        self.RareButtonDown.SetPosition(174 + self.YamatoWidth,
                                        33 + self.YamatoHeight)
        self.RareButtonDown.SetText("")
        self.RareButtonDown.SetUpVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.RareButtonDown.SetOverVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.RareButtonDown.SetDownVisual(
            "d:/ymir work/ui/game/windows/tab_button_large_03.sub")
        self.RareButtonDown.SetEvent(ui.__mem_func__(self.ChangeActionMode), 3)
        self.RareButtonDown.Hide()

        self.ButtonTextLines = ui.TextLine()
        self.ButtonTextLines.SetParent(self.Board)
        self.ButtonTextLines.SetPosition(30 + self.YamatoWidth,
                                         36 + self.YamatoHeight)
        self.ButtonTextLines.SetText(
            "   Normal            Gewöhnlich             Selten")
        self.ButtonTextLines.Show()

        self.SplitTitleBar = ui.HorizontalBar()
        self.SplitTitleBar.SetParent(self.Board)
        self.SplitTitleBar.Create(235)
        self.SplitTitleBar.SetPosition(16 + self.YamatoWidth,
                                       55 + self.YamatoHeight)
        self.SplitTitleBar.Show()

        slot_count = 60
        i = 0
        line_count = 0
        height_jump = 6
        width = 38 + self.YamatoWidth
        height = 75 + self.YamatoHeight

        while i < slot_count:
            self.slotImages[i] = ui.ImageBox()
            self.slotImages[i].SetParent(self.Board)
            self.slotImages[i].SetPosition(width, height)
            self.slotImages[i].LoadImage(
                "d:/ymir work/ui/public/slot_base.sub")
            self.slotImages[i].Show()

            self.itemSlots[i] = ui.GridSlotWindow()
            self.itemSlots[i].SetParent(self.slotImages[i])
            self.itemSlots[i].ArrangeSlot(i, 1, 1, 32, 32, 0, 0)
            self.itemSlots[i].SetPosition(0, 0)
            self.itemSlots[i].SetOverInItemEvent(
                ui.__mem_func__(self.ShowToolTip))
            self.itemSlots[i].SetOverOutItemEvent(
                ui.__mem_func__(self.HideToolTip))
            self.itemSlots[i].SetSelectEmptySlotEvent(
                ui.__mem_func__(self.add_slot))
            self.itemSlots[i].SetSelectItemSlotEvent(
                ui.__mem_func__(self.del_slot))
            self.itemSlots[i].SetCoverButton(i)
            self.itemSlots[i].Show()

            width = width + 32
            line_count = line_count + 1
            if line_count == height_jump:
                width = 38 + self.YamatoWidth
                height = height + 32
                line_count = 0
            i = i + 1

        height = height + 10

        self.StoreAllButton = ui.Button()
        self.StoreAllButton.SetParent(self.Board)
        self.StoreAllButton.SetPosition(43 + self.YamatoWidth, height)
        self.StoreAllButton.SetText("")
        self.StoreAllButton.SetUpVisual(
            "d:/ymir work/ui/public/xlarge_button_01.sub")
        self.StoreAllButton.SetOverVisual(
            "d:/ymir work/ui/public/xlarge_button_02.sub")
        self.StoreAllButton.SetDownVisual(
            "d:/ymir work/ui/public/xlarge_button_03.sub")
        self.StoreAllButton.SetEvent(self.StoreAll)
        self.StoreAllButton.Show()

        self.ButtonTextLine = ui.TextLine()
        self.ButtonTextLine.SetParent(self.Board)
        self.ButtonTextLine.SetPosition(133 + self.YamatoWidth, height + 5)
        self.ButtonTextLine.SetText("Alles einlagern!")
        self.ButtonTextLine.SetHorizontalAlignCenter()
        self.ButtonTextLine.Show()