示例#1
0
    def __init__(self, x, y, size_x, size_y, parent, list_tab_names):
        ui.Window.__init__(self)
        self.SetParent(parent)
        self.SetPosition(x, y)
        self.SetSize(size_x, size_y)
        self.Show()

        self.header = ui.ThinBoard()
        self.header.SetParent(self)
        self.header.SetSize(size_x, 35)
        self.header.SetPosition(0, 0)
        self.header.Show()

        #Buttons and tabs
        self.curTab = 0
        self.tabs = [
        ]  #Array of tuples, the tupple is represented as (button,tab)
        for i, name in enumerate(list_tab_names):

            tabWindow = ui.ThinBoard()
            tabWindow.SetParent(self)
            tabWindow.SetSize(size_x, size_y - 35)
            tabWindow.SetPosition(0, 35)
            tabWindow.Hide()

            radioButton = ui.RadioButton()
            radioButton.SetParent(self.header)
            radioButton.SetUpVisual(
                "d:/ymir work/ui/public/small_button_01.sub")
            radioButton.SetOverVisual(
                "d:/ymir work/ui/public/small_button_02.sub")
            radioButton.SetDownVisual(
                "d:/ymir work/ui/public/small_button_03.sub")
            radioButton.SetText(name)
            radioButton.SetPosition(10 + 52 * i, 0)
            radioButton.SetWindowVerticalAlignCenter()
            radioButton.Show()
            self.tabs.append((radioButton, tabWindow))

        self.tabButtonGroup = ui.RadioButtonGroup.Create(
            [[btn[0], self._OnClickTabButton, None]
             for i, btn in enumerate(self.tabs)])
示例#2
0
 def ThinBoard(self, parent, moveable, x, y, width, heigh, center):
     thin = ui.ThinBoard()
     if parent != None:
         thin.SetParent(parent)
     if moveable == TRUE:
         thin.AddFlag('movable')
         thin.AddFlag('float')
     thin.SetSize(width, heigh)
     thin.SetPosition(x, y)
     if center == TRUE:
         thin.SetCenterPosition()
     thin.Show()
     return thin
示例#3
0
    def LoadWindow(self):
        self.thinBoard = ui.ThinBoard()
        self.thinBoard.SetParent(self)
        self.thinBoard.SetSize(220 - 40, 20)
        self.thinBoard.SetPosition(0, 0)
        self.thinBoard.Show()

        self.textLine = ui.TextLine()
        self.textLine.SetParent(self)
        self.textLine.SetPosition(110 - 20, 8)
        self.textLine.SetText("Es sind keine Teamler Online")
        self.textLine.SetHorizontalAlignCenter()
        self.textLine.Show()
示例#4
0
	def ThinBoard(self, parent, moveable, x, y, width, heigh):
		tmpThinboard = ui.ThinBoard()
		
		if parent:
			tmpThinboard.SetParent(parent)
		
		if moveable:
			tmpThinboard.AddFlag('movable')
			tmpThinboard.AddFlag('float')
		
		tmpThinboard.SetSize(width, heigh)
		tmpThinboard.SetPosition(x, y)

		tmpThinboard.Show()
		return tmpThinboard
示例#5
0
 def __init__(self):
     ui.Window.__init__(self)
     self.Board = ui.ThinBoard()
     self.Board.SetSize(100, 26)
     self.Board.SetPosition(925, 418)
     self.Board.AddFlag('movable')
     self.Board.AddFlag('float')
     self.Board.Show()
     self.x = 0
     self.y = 0
     self.comp = Component()
     self.start = self.comp.Button(
         self.Board, 'PyLoader', '', 6, 5, self.start_func,
         'd:/ymir work/ui/public/large_button_01.sub',
         'd:/ymir work/ui/public/large_button_02.sub',
         'd:/ymir work/ui/public/large_button_03.sub')
示例#6
0
    def LoadWindow(self):
        self.thinBoard = ui.ThinBoard()
        self.thinBoard.SetParent(self)
        self.thinBoard.SetSize(220, 110)
        self.thinBoard.SetPosition(0, 0)
        self.thinBoard.Show()

        y = 12
        for i in xrange(5):
            self.textLine[i] = ui.TextLine()
            self.textLine[i].SetParent(self)
            self.textLine[i].SetPosition(110, y)
            # self.textLine[i].SetText("Slot 1: Vollmondschwert+9 (87x Geswitcht)")
            self.textLine[i].SetHorizontalAlignCenter()
            self.textLine[i].Show()

            y = y + 18
    def LoadInfoBoard(self):
        self.thinBoard = ui.ThinBoard()
        self.thinBoard.SetParent(self)
        self.thinBoard.SetSize(300, 50)
        self.thinBoard.SetPosition(wndMgr.GetScreenWidth() - (300 + 30),
                                   wndMgr.GetScreenHeight() - (50 + 50))

        self.typeBiolog = ui.TextLine()
        self.typeBiolog.SetParent(self.thinBoard)
        self.typeBiolog.SetPackedFontColor(
            grp.GenerateColor(1.0, 0.7843, 0.0, 1.0))
        self.typeBiolog.SetText((pTableTranslate(3)))
        self.typeBiolog.SetPosition(0, 8)
        self.typeBiolog.SetHorizontalAlignCenter()
        self.typeBiolog.SetWindowHorizontalAlignCenter()

        self.timeExpired = ui.TextLine()
        self.timeExpired.SetParent(self.thinBoard)
        self.timeExpired.SetText((pTableTranslate(4)))
        self.timeExpired.SetPosition(13, 25)
        self.timeClosed = WaitingDialog()
        self.timeClosed.Open(10.0)
        self.timeClosed.SAFE_SetTimeOverEvent(self.Close)
示例#8
0
        def BuildUI(self):
            self.AddFlag('movable')
            self.AddFlag('float')
            self.SetSize(335, 220)
            self.SetCenterPosition()
            self.SetTitleName("")
            self.SetCloseEvent(self.Close)

            self.infoboard = ui.ThinBoard()
            self.infoboard.SetParent(self)
            self.infoboard.SetSize(100, 210)
            self.infoboard.SetPosition(330, 4)
            self.infoboard.Show()

            self.tab_menu, self.tab_list = self.TabControl(
                self, 332, 220, ["tab1_yang", "Yang"], ["tab2_coin", "Coin"],
                ["tab3_goldbar", "Goldbar"], ["tab4_won", "Won"])

            #+Price1
            self.titleText1 = self.TextLine(self.tab_menu["tab1_yang"],
                                            "Price of Yang", 122, 10)
            self.InputSlot = self.SlotBar(self.tab_menu["tab1_yang"], 0, 60,
                                          90, 18)  #PARENT = BOARD
            self.InputSlot.SetWindowHorizontalAlignCenter()

            self.inputValueOne = self.EditLine(self.InputSlot, "", 3, 3, 90,
                                               18, 10)
            self.inputValueOne.SetNumberMode()
            self.inputValueOne.OnIMEUpdate = ui.__mem_func__(
                self.__OnValueUpdate)

            self.moneyText = self.TextLine(self.tab_menu["tab1_yang"],
                                           "999999999", 0, 90)  #PARENT = BOARD
            self.moneyText.SetWindowHorizontalAlignCenter()
            self.moneyText.SetHorizontalAlignCenter()
            #-Price1

            #+Price2
            self.titleText2 = self.TextLine(self.tab_menu["tab2_coin"],
                                            "Price of Coin", 129, 10)
            self.InputSlot2 = self.SlotBar(self.tab_menu["tab2_coin"], 0, 60,
                                           90, 18)  #PARENT = BOARD
            self.InputSlot2.SetWindowHorizontalAlignCenter()

            self.inputValueTwo = self.EditLine(self.InputSlot2, "", 3, 3, 90,
                                               18, 10)
            self.inputValueTwo.SetNumberMode()
            self.inputValueTwo.OnIMEUpdate = ui.__mem_func__(
                self.__OnValueUpdateTwo)

            self.moneyTwoText = self.TextLine(self.tab_menu["tab2_coin"],
                                              "999999999", 0,
                                              90)  #PARENT = BOARD
            self.moneyTwoText.SetWindowHorizontalAlignCenter()
            self.moneyTwoText.SetHorizontalAlignCenter()
            #-Price2

            #+Price3
            self.titleText3 = self.TextLine(self.tab_menu["tab3_goldbar"],
                                            "Price of 2KK Goldbar", 122, 10)
            self.InputSlot3 = self.SlotBar(self.tab_menu["tab3_goldbar"], 0,
                                           60, 90, 18)  #PARENT = BOARD
            self.InputSlot3.SetWindowHorizontalAlignCenter()

            self.inputValueThree = self.EditLine(self.InputSlot3, "", 3, 3, 90,
                                                 18, 10)
            self.inputValueThree.SetNumberMode()
            self.inputValueThree.OnIMEUpdate = ui.__mem_func__(
                self.__OnValueUpdateThree)

            self.moneyThreeText = self.TextLine(self.tab_menu["tab3_goldbar"],
                                                "999999999", 0,
                                                90)  #PARENT = BOARD
            self.moneyThreeText.SetWindowHorizontalAlignCenter()
            self.moneyThreeText.SetHorizontalAlignCenter()
            #-Price3

            #+Price4
            self.titleText4 = self.TextLine(self.tab_menu["tab4_won"],
                                            "Price of Won", 126, 10)
            self.InputSlot4 = self.SlotBar(self.tab_menu["tab4_won"], 0, 60,
                                           90, 18)  #PARENT = BOARD
            self.InputSlot4.SetWindowHorizontalAlignCenter()

            self.inputValueFour = self.EditLine(self.InputSlot4, "", 3, 3, 90,
                                                18, 10)
            self.inputValueFour.SetNumberMode()
            self.inputValueFour.OnIMEUpdate = ui.__mem_func__(
                self.__OnValueUpdateFour)

            self.moneyFourText = self.TextLine(self.tab_menu["tab4_won"],
                                               "999999999", 0,
                                               90)  #PARENT = BOARD
            self.moneyFourText.SetWindowHorizontalAlignCenter()
            self.moneyFourText.SetHorizontalAlignCenter()
            #-Price4

            #+Info
            self.InfoYangTitle = self.TextLine(self.infoboard, "Yang price:",
                                               10, 10)
            self.InfoYang = self.TextLine(self.infoboard,
                                          str(self.moneyText.GetText()), 10,
                                          30)

            self.InfoEpTitle = self.TextLine(self.infoboard, "Coin price:", 10,
                                             60)
            self.InfoEp = self.TextLine(self.infoboard,
                                        str(self.moneyText.GetText()), 10, 80)

            self.InfoGoldbarTitle = self.TextLine(self.infoboard,
                                                  "Goldbar price:", 10, 110)
            self.InfoGoldbar = self.TextLine(self.infoboard,
                                             str(self.moneyText.GetText()), 10,
                                             130)

            self.InfoExpTitle = self.TextLine(self.infoboard, "Won price:", 10,
                                              160)
            self.InfoExp = self.TextLine(self.infoboard,
                                         str(self.moneyText.GetText()), 10,
                                         180)

            #-Info

            self.acceptButton = self.BasicButton(self, uiScriptLocale.OK,
                                                 -61 - 5 + 30, 184,
                                                 self.empty)  #PARENT = BOARD
            self.acceptButton.SetWindowHorizontalAlignCenter()
            self.cancelButton = self.BasicButton(self, uiScriptLocale.CANCEL,
                                                 5 + 30, 184,
                                                 self.Close)  #PARENT = BOARD
            self.cancelButton.SetWindowHorizontalAlignCenter()
示例#9
0
    def LoadUI(self):
        if self.gui == 1:
            self.gui = 2
            self.Board.Show()
            #self.SetLayoutType(settinginfo.DailyQuest_Status)

        elif self.gui == 2:
            self.gui = 1
            self.Board.Hide()
        else:
            self.gui = 1
            self.Board = ui.BoardWithTitleBar()
            self.Board.SetSize(250, 200)
            self.Board.SetCenterPosition()
            self.Board.AddFlag("movable")
            self.Board.AddFlag("float")
            self.Board.SetTitleName("Daily-Quest")
            self.Board.SetCloseEvent(self.CloseX)
            self.Board.Show()

            self.InfoThinBoard = ui.ThinBoard()
            self.InfoThinBoard.SetParent(self.Board)
            self.InfoThinBoard.SetPosition(15, 35)
            self.InfoThinBoard.SetSize(220, 45)
            self.InfoThinBoard.Show()

            self.MainTimeLine = ui.TextLine()
            self.MainTimeLine.SetParent(self.InfoThinBoard)
            self.MainTimeLine.SetPosition(110, 15)
            self.MainTimeLine.SetHorizontalAlignCenter()
            self.MainTimeLine.SetText("[ Neue Quest in 13:59:57 Std. ]")
            self.MainTimeLine.SetFontColor(0.9, 0.4745, 0.4627)
            self.MainTimeLine.Show()

            self.TargetThinBoard = ui.ThinBoard()
            self.TargetThinBoard.SetParent(self.Board)
            self.TargetThinBoard.SetPosition(15, 85)
            self.TargetThinBoard.SetSize(220, 60)
            self.TargetThinBoard.Show()

            self.TargetTextLine[0] = ui.TextLine()
            self.TargetTextLine[0].SetParent(self.TargetThinBoard)
            self.TargetTextLine[0].SetPosition(110, 15)
            self.TargetTextLine[0].SetHorizontalAlignCenter()
            self.TargetTextLine[0].SetText("")
            self.TargetTextLine[0].SetFontColor(0.9, 0.4745, 0.4627)
            self.TargetTextLine[0].Show()

            self.TargetTextLine[1] = ui.TextLine()
            self.TargetTextLine[1].SetParent(self.TargetThinBoard)
            self.TargetTextLine[1].SetPosition(110, 30)
            self.TargetTextLine[1].SetHorizontalAlignCenter()
            self.TargetTextLine[1].SetText("")
            self.TargetTextLine[1].SetFontColor(0.9, 0.4745, 0.4627)
            self.TargetTextLine[1].Show()

            self.QuestInitButton = ui.Button()
            self.QuestInitButton.SetParent(self.Board)
            self.QuestInitButton.SetPosition(35, 95)
            self.QuestInitButton.SetText("")
            self.QuestInitButton.SetUpVisual(
                "d:/ymir work/ui/public/xlarge_button_01.sub")
            self.QuestInitButton.SetOverVisual(
                "d:/ymir work/ui/public/xlarge_button_02.sub")
            self.QuestInitButton.SetDownVisual(
                "d:/ymir work/ui/public/xlarge_button_03.sub")
            self.QuestInitButton.SetEvent(self.QuestInit)
            self.QuestInitButton.Show()

            self.QuestInitButtonText = ui.TextLine()
            self.QuestInitButtonText.SetParent(self.Board)
            self.QuestInitButtonText.SetPosition(125, 100)
            self.QuestInitButtonText.SetText("Quest starten")
            self.QuestInitButtonText.SetHorizontalAlignCenter()
            self.QuestInitButtonText.SetFontColor(1.0, 0.7843, 0.0)
            self.QuestInitButtonText.Show()
            self.Board.Hide()
示例#10
0
    def initData(self):
        if self.Loaded > 0:
            self.Show()
            return

        self.Loaded = 1

        self.Background = ui.Bar()
        self.Background.SetParent(self)
        self.Background.SetSize(wndMgr.GetScreenWidth(),
                                wndMgr.GetScreenHeight())
        self.Background.SetPosition(0, 0)
        self.Background.SetColor(
            grp.GenerateColor(0.0, 0.0, 0.0, 150.0 / 255.0))
        self.Background.Show()

        self.HeadIMGThinBoard = ui.ThinBoard()
        self.HeadIMGThinBoard.SetParent(self)
        self.HeadIMGThinBoard.SetPosition((wndMgr.GetScreenWidth() / 2) - 150,
                                          (wndMgr.GetScreenHeight() / 2) - 180)
        self.HeadIMGThinBoard.SetSize(300, 80)
        self.HeadIMGThinBoard.Show()

        self.CloseButton = ui.Button()
        self.CloseButton.SetParent(self)
        self.CloseButton.SetPosition((wndMgr.GetScreenWidth() / 2) + 104,
                                     (wndMgr.GetScreenHeight() / 2) - 200)
        self.CloseButton.SetText("")
        self.CloseButton.SetUpVisual(
            "images_dungeon\src_illumina\close_button_01.tga")
        self.CloseButton.SetOverVisual(
            "images_dungeon\src_illumina\close_button_02.tga")
        self.CloseButton.SetDownVisual(
            "images_dungeon\src_illumina\close_button_03.tga")
        self.CloseButton.SetEvent(self.Open)
        self.CloseButton.Show()

        self.StoryTextThinBoard = ui.ThinBoard()
        self.StoryTextThinBoard.SetParent(self)
        self.StoryTextThinBoard.SetPosition(
            (wndMgr.GetScreenWidth() / 2) - 150,
            (wndMgr.GetScreenHeight() / 2) - 95)
        self.StoryTextThinBoard.SetSize(300, 400)
        self.StoryTextThinBoard.Show()

        self.HeadLineCenterImage = ui.ImageBox()
        self.HeadLineCenterImage.SetParent(self.StoryTextThinBoard)
        self.HeadLineCenterImage.SetPosition(150 - 104, 18)
        self.HeadLineCenterImage.LoadImage(
            "images_dungeon\src_illumina\center.tga")
        self.HeadLineCenterImage.Show()

        self.DungeonNameTextLine = ui.TextLine()
        self.DungeonNameTextLine.SetParent(self.StoryTextThinBoard)
        self.DungeonNameTextLine.SetPosition(150, 15)
        self.DungeonNameTextLine.SetHorizontalAlignCenter()
        self.DungeonNameTextLine.SetText("Dungeon-Name")
        self.DungeonNameTextLine.Show()

        i = 0
        x = 8

        self.Show()
示例#11
0
	def __init__(self):
		self.Board = ui.ThinBoard()
		self.Board.SetSize(200, 225)
		self.Board.SetPosition(52, 40)
		self.Board.AddFlag('movable')
		self.Board.Hide()
		
		self.comp = UIComponents.Component()
		self.Header = self.comp.TextLine(self.Board, 'Buffbot', 83, 7, self.comp.RGB(255, 255, 0))
		self.TargetNameLabel = self.comp.TextLine(self.Board, 'Target Name:', 20, 32, self.comp.RGB(255, 255, 255))
		self.Name = self.comp.TextLine(self.Board, '', 100, 32, self.comp.RGB(255, 255, 255))
		self.FollowLabel = self.comp.TextLine(self.Board, 'Follow Target', 69, 110, self.comp.RGB(255, 255, 255))
		self.DelayLabel = self.comp.TextLine(self.Board, 'Delay: 20 Sec.', 73, 155, self.comp.RGB(255, 255, 255))
		
		self.SegenImage = self.comp.ExpandedImage(self.Board, 85, 65, str("d:/ymir work/ui/skill/shaman/gicheon_02.sub"))
		self.HDDImage = self.comp.ExpandedImage(self.Board, 40, 65, str("d:/ymir work/ui/skill/shaman/hosin_02.sub"))
		self.ReflektImage = self.comp.ExpandedImage(self.Board, 130, 65, str("d:/ymir work/ui/skill/shaman/boho_02.sub"))
		self.Close = self.comp.Button(self.Board, '', 'Close', 177, 7, self.Hide_UI, 'd:/ymir work/ui/public/close_button_01.sub', 'd:/ymir work/ui/public/close_button_02.sub', 'd:/ymir work/ui/public/close_button_03.sub')
		self.DelaySlide = self.comp.SliderBar(self.Board, 0.2, self.SlideFunc, 13, 140)
		self.BuffOff = self.comp.HideButton(self.Board, '', '', 84, 180, self.SetBuffStatus, 'OpenBot/Images/start_0.tga', 'OpenBot/Images/start_1.tga', 'OpenBot/Images/start_2.tga')
		self.BuffOn = self.comp.HideButton(self.Board, '', '', 84, 180, self.SetBuffStatus, 'OpenBot/Images/stop_0.tga', 'OpenBot/Images/stop_1.tga', 'OpenBot/Images/stop_2.tga')
		self.SegenOn = self.comp.HideButton(self.Board, '', '', 55, 80, self.BuffSegen, 'OpenBot/Images/on_0.tga', 'OpenBot/Images/on_1.tga', 'OpenBot/mages/on_2.tga')
		self.SegenOff = self.comp.HideButton(self.Board, '', '', 55, 80, self.BuffSegen, 'OpenBot/Images/off_0.tga', 'OpenBot/Images/off_1.tga', 'OpenBot/Images/off_2.tga')
		self.HDDOn = self.comp.HideButton(self.Board, '', '', 100, 80, self.BuffHDD, 'OpenBot/Images/on_0.tga', 'OpenBot/Images/on_1.tga', 'OpenBot/mages/on_2.tga')
		self.HDDOff = self.comp.HideButton(self.Board, '', '', 100, 80, self.BuffHDD, 'OpenBot/Images/off_0.tga', 'OpenBot/Images/off_1.tga', 'OpenBot/Images/off_2.tga')
		self.ReflektOn = self.comp.HideButton(self.Board, '', '', 147, 80, self.BuffReflekt, 'OpenBot/Images/on_0.tga', 'OpenBot/Images/on_1.tga', 'OpenBot/mages/on_2.tga')
		self.ReflektOff = self.comp.HideButton(self.Board, '', '', 147, 80, self.BuffReflekt, 'OpenBot/Images/off_0.tga', 'OpenBot/Images/off_1.tga', 'OpenBot/Images/off_2.tga')
		self.FollowOn = self.comp.HideButton(self.Board, '', '', 135, 110, self.SetFollow, 'OpenBot/Images/on_0.tga', 'OpenBot/Images/on_1.tga', 'OpenBot/mages/on_2.tga')
		self.FollowOff = self.comp.HideButton(self.Board, '', '', 135, 110, self.SetFollow, 'OpenBot/Images/off_0.tga', 'OpenBot/Images/off_1.tga', 'OpenBot/Images/off_2.tga')
		
		self.BuffStatus = int(FileManager.ReadConfig("BuffStatus"))
		self.BuffDelay = int(FileManager.ReadConfig("BuffDelay"))
		self.Segen = int(FileManager.ReadConfig("Segen"))
		self.Reflekt = int(FileManager.ReadConfig("Reflekt"))
		self.HDD = int(FileManager.ReadConfig("HDD"))
		self.Follow = int(FileManager.ReadConfig("Follow"))
		self.TargetVID = int(FileManager.ReadConfig("TargetVID"))
		
		if self.BuffStatus:
			self.BuffOn.Show()
		else:
			self.BuffOff.Show()
		if self.Segen:
			self.SegenOn.Show()
		else:
			self.SegenOff.Show()
		if self.HDD:
			self.HDDOn.Show()
		else:
			self.HDDOff.Show()
		if self.Reflekt:
			self.ReflektOn.Show()
		else:
			self.ReflektOff.Show()
		if self.Follow:
			self.FollowOn.Show()
		else:
			self.FollowOff.Show()
			
		if self.TargetVID != 0:
			self.Name.SetText(chr.GetNameByVID(self.TargetVID))
		else:
			self.Name.SetText("None")
		
		self.DelaySlide.SetSliderPos(float(self.BuffDelay*0.01))
		self.SlideFunc()
		self.Update()
    def LoadUI(self):
        self.Board = ui.BoardWithTitleBar()
        self.Board.SetSize(400, 510)
        self.Board.SetCenterPosition()
        self.Board.AddFlag("movable")
        self.Board.AddFlag("float")
        self.Board.SetTitleName("")
        self.Board.SetCloseEvent(self.noclose)
        self.Board.Show()

        self.HeadImages = ui.ImageBox()
        self.HeadImages.SetParent(self.Board)
        self.HeadImages.SetPosition(15, 35)
        #self.HeadImages.LoadImage("d:/ymir work/ui/game/windows/box_face.sub")
        self.HeadImages.Show()

        self.HeadThinBoard = ui.ThinBoard()
        self.HeadThinBoard.SetParent(self.Board)
        self.HeadThinBoard.SetSize(371, 55)
        self.HeadThinBoard.SetPosition(15, 35)
        self.HeadThinBoard.Show()

        self.SlotBar = ui.SlotBar()
        self.SlotBar.SetParent(self.Board)
        self.SlotBar.SetPosition(15, 95)
        self.SlotBar.SetSize(370, 370)
        self.SlotBar.Show()

        i = 0
        max_line = 23
        pos_h = 8

        while i < max_line:

            self.TextLines[i] = ui.TextLine()
            self.TextLines[i].SetParent(self.SlotBar)
            self.TextLines[i].SetPosition(8, pos_h)
            self.TextLines[i].SetText("Zeile: " + str(i))
            self.TextLines[i].Show()

            i = i + 1
            pos_h = pos_h + 15

        self.NextButton = ui.Button()
        self.NextButton.SetParent(self.Board)
        self.NextButton.SetPosition(15, 470)
        self.NextButton.SetUpVisual(
            "d:/ymir work/ui/public/large_button_01.sub")
        self.NextButton.SetOverVisual(
            "d:/ymir work/ui/public/large_button_02.sub")
        self.NextButton.SetDownVisual(
            "d:/ymir work/ui/public/large_button_03.sub")
        self.NextButton.SetText("Letzte Seite")
        self.NextButton.SetEvent(self.ButtonBack)
        self.NextButton.Show()

        self.BackButton = ui.Button()
        self.BackButton.SetParent(self.Board)
        self.BackButton.SetPosition(300, 470)
        self.BackButton.SetUpVisual(
            "d:/ymir work/ui/public/large_button_01.sub")
        self.BackButton.SetOverVisual(
            "d:/ymir work/ui/public/large_button_02.sub")
        self.BackButton.SetDownVisual(
            "d:/ymir work/ui/public/large_button_03.sub")
        self.BackButton.SetText("Nächste Seite")
        self.BackButton.SetEvent(self.ButtonNext)
        self.BackButton.Show()

        self.DeleteButton = ui.Button()
        self.DeleteButton.SetParent(self.Board)
        self.DeleteButton.SetPosition(155, 470)
        self.DeleteButton.SetUpVisual(
            "d:/ymir work/ui/public/large_button_01.sub")
        self.DeleteButton.SetOverVisual(
            "d:/ymir work/ui/public/large_button_02.sub")
        self.DeleteButton.SetDownVisual(
            "d:/ymir work/ui/public/large_button_03.sub")
        self.DeleteButton.SetText("Schließen")
        self.DeleteButton.SetEvent(self.CloseIntroDungeonGUIAndContinue)
        self.DeleteButton.Hide()

        self.SetPage()
        self.Board.Hide()
    def LoadUI(self):
        if self.gui == 1:
            self.gui = 2
            self.Board.Show()
            self.LoadCategory(0)
        elif self.gui == 2:
            self.gui = 1
            self.Board.Hide()
        else:
            self.gui = 1
            self.Board = ui.BoardWithTitleBar()
            self.Board.SetSize(700, 505)
            self.Board.SetCenterPosition()
            self.Board.AddFlag("movable")
            self.Board.AddFlag("float")
            self.Board.SetTitleName("Dungeonkompendium ~ Bruthöhle")
            self.Board.SetCloseEvent(self.CloseX)
            self.Board.Show()
            self.itemtooltip = uiToolTip.ItemToolTip()
            self.itemtooltip.HideToolTip()
            self.NavBoard = ui.ThinBoard()
            self.NavBoard.SetParent(self.Board)
            self.NavBoard.SetPosition(15, 35)
            self.NavBoard.SetSize(200, 455)
            self.NavBoard.Show()

            self.NavBG = ui.ImageBox()
            self.NavBG.SetParent(self.Board)
            self.NavBG.SetPosition(220, 35)
            self.NavBG.LoadImage(
                "images_dungeon/dungeonkompendium_header/dungeon_bluedead.tga")
            self.NavBG.Show()

            self.HeaderBGThinBoard = ui.ThinBoard()
            self.HeaderBGThinBoard.SetParent(self.Board)
            self.HeaderBGThinBoard.SetPosition(220, 35)
            self.HeaderBGThinBoard.SetSize(465, 70)
            self.HeaderBGThinBoard.Show()

            self.ReqThinBoard = ui.ThinBoard()
            self.ReqThinBoard.SetParent(self.Board)
            self.ReqThinBoard.SetPosition(220, 110)
            self.ReqThinBoard.SetSize(465, 50)
            self.ReqThinBoard.Show()

            self.MinLevelTextLineTitle = ui.TextLine()
            self.MinLevelTextLineTitle.SetParent(self.ReqThinBoard)
            self.MinLevelTextLineTitle.SetPosition(12, 8)
            self.MinLevelTextLineTitle.SetText("Ab Level: ")
            self.MinLevelTextLineTitle.Show()

            self.MinLevelTextLine = ui.TextLine()
            self.MinLevelTextLine.SetParent(self.ReqThinBoard)
            self.MinLevelTextLine.SetPosition(80, 8)
            self.MinLevelTextLine.SetText("125")
            self.MinLevelTextLine.Show()

            self.ItemTextLineTitle = ui.TextLine()
            self.ItemTextLineTitle.SetParent(self.ReqThinBoard)
            self.ItemTextLineTitle.SetPosition(12, 25)
            self.ItemTextLineTitle.SetText("Gegenstand: ")
            self.ItemTextLineTitle.Show()

            self.ItemTextLine = ui.TextLine()
            self.ItemTextLine.SetParent(self.ReqThinBoard)
            self.ItemTextLine.SetPosition(80, 25)
            self.ItemTextLine.SetText("Arachnidenschlüssel")
            self.ItemTextLine.Show()

            self.GroupTextLineTitle = ui.TextLine()
            self.GroupTextLineTitle.SetParent(self.ReqThinBoard)
            self.GroupTextLineTitle.SetPosition(200, 8)
            self.GroupTextLineTitle.SetText("Gruppe benötigt: ")
            self.GroupTextLineTitle.Show()

            self.GroupTextLine = ui.TextLine()
            self.GroupTextLine.SetParent(self.ReqThinBoard)
            self.GroupTextLine.SetPosition(290, 8)
            self.GroupTextLine.SetText("Nein")
            self.GroupTextLine.Show()

            self.TimeTextLineTitle = ui.TextLine()
            self.TimeTextLineTitle.SetParent(self.ReqThinBoard)
            self.TimeTextLineTitle.SetPosition(200, 25)
            self.TimeTextLineTitle.SetText("Wartezeit: ")
            self.TimeTextLineTitle.Show()

            self.TimeTextLine = ui.TextLine()
            self.TimeTextLine.SetParent(self.ReqThinBoard)
            self.TimeTextLine.SetPosition(290, 25)
            self.TimeTextLine.SetText("00:00:00 Sek.")
            self.TimeTextLine.Show()

            self.ContentThinBoard = ui.ThinBoard()
            self.ContentThinBoard.SetParent(self.Board)
            self.ContentThinBoard.SetPosition(220, 165)
            self.ContentThinBoard.SetSize(465, 270)
            self.ContentThinBoard.Show()

            i = 0
            x = 8
            # max. 88
            while i < 17:
                self.ContentTextLines[i] = ui.TextLine()
                self.ContentTextLines[i].SetParent(self.ContentThinBoard)
                self.ContentTextLines[i].SetPosition(233, x)
                self.ContentTextLines[i].SetHorizontalAlignCenter()
                self.ContentTextLines[i].SetText("")
                self.ContentTextLines[i].Show()
                x = x + 15
                i = i + 1

            self.InfoThinBoard = ui.ThinBoard()
            self.InfoThinBoard.SetParent(self.Board)
            self.InfoThinBoard.SetPosition(220, 440)
            self.InfoThinBoard.SetSize(465, 50)
            self.InfoThinBoard.Show()

            i = 0
            y = 8
            while i < 14:
                self.BossItemSlots[i] = ui.GridSlotWindow()
                self.BossItemSlots[i].SetParent(self.InfoThinBoard)
                self.BossItemSlots[i].ArrangeSlot(i, 1, 1, 32, 32, 0, 0)
                self.BossItemSlots[i].SetPosition(y, 8)
                self.BossItemSlots[i].SetOverInItemEvent(
                    ui.__mem_func__(self.ShowToolTip))
                self.BossItemSlots[i].SetOverOutItemEvent(
                    ui.__mem_func__(self.HideToolTip))
                self.BossItemSlots[i].SetSelectItemSlotEvent(
                    ui.__mem_func__(self.WarpToDungeon))
                self.BossItemSlots[i].Show()
                y = y + 32
                i = i + 1

            i = 0
            x = 8
            while i < len(settinginfo.DungeonMainSettings):
                self.NavButtons[i] = ui.Button()
                self.NavButtons[i].SetParent(self.NavBoard)
                self.NavButtons[i].SetPosition(10, x)
                self.NavButtons[i].SetText("")
                self.NavButtons[i].SetUpVisual(
                    "d:/ymir work/ui/public/xlarge_button_01.sub")
                self.NavButtons[i].SetOverVisual(
                    "d:/ymir work/ui/public/xlarge_button_02.sub")
                self.NavButtons[i].SetDownVisual(
                    "d:/ymir work/ui/public/xlarge_button_03.sub")
                self.NavButtons[i].SetEvent(ui.__mem_func__(self.LoadCategory),
                                            i)
                self.NavButtons[i].Show()

                self.NavButtonsTitles[i] = ui.TextLine()
                self.NavButtonsTitles[i].SetParent(self.NavBoard)
                self.NavButtonsTitles[i].SetPosition(100, x + 6)
                self.NavButtonsTitles[i].SetText(
                    settinginfo.DungeonMainSettings[i][0][0])
                self.NavButtonsTitles[i].SetHorizontalAlignCenter()
                self.NavButtonsTitles[i].Show()
                i = i + 1
                x = x + 30

            self.LoadCategory(0)
            self.Board.Hide()
示例#14
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()
示例#15
0
    def LoadUI(self):
        settinginfo.SchmiedehandbuchPVPOpen = 1
        self.Board = ui.BoardWithTitleBar()
        self.Board.SetSize(700, 450)
        self.Board.SetCenterPosition()
        self.Board.AddFlag("movable")
        self.Board.AddFlag("float")
        self.Board.SetTitleName("Schmiedehandbuch")
        self.Board.SetCloseEvent(self.__del__)
        self.Board.Show()
        ############################################################
        ## Navigation
        self.NavBoard = ui.ThinBoard()
        self.NavBoard.SetParent(self.Board)
        self.NavBoard.SetPosition(15, 35)
        self.NavBoard.SetSize(200, 400)
        self.NavBoard.Show()
        self.itemtooltip = uiToolTip.ItemToolTip()
        self.itemtooltip.HideToolTip()
        i = 0
        x = 8
        button_x = 15
        while i < len(settinginfo.SchmiedeHandBuchInfosPVP):
            self.itemTypeButtons[i] = ui.Button()
            self.itemTypeButtons[i].SetParent(self.NavBoard)
            self.itemTypeButtons[i].SetPosition(10, x)
            self.itemTypeButtons[i].SetText("")
            self.itemTypeButtons[i].SetUpVisual(
                "d:/ymir work/ui/public/xlarge_button_01.sub")
            self.itemTypeButtons[i].SetOverVisual(
                "d:/ymir work/ui/public/xlarge_button_02.sub")
            self.itemTypeButtons[i].SetDownVisual(
                "d:/ymir work/ui/public/xlarge_button_03.sub")
            self.itemTypeButtons[i].SetEvent(
                ui.__mem_func__(self.LoadCategory), i)
            self.itemTypeButtons[i].Show()
            self.ButtonTitles[i] = ui.TextLine()
            self.ButtonTitles[i].SetParent(self.NavBoard)
            self.ButtonTitles[i].SetPosition(100, button_x)
            self.ButtonTitles[i].SetHorizontalAlignCenter()
            self.ButtonTitles[i].SetText(
                settinginfo.SchmiedeHandBuchInfosPVP[i][0][0])
            self.ButtonTitles[i].Show()

            button_x = button_x + 30
            i = i + 1
            x = x + 30

        ############################################################
        ## Content

        i = 0
        x = 35
        trennstrichCounter = 0
        uppitemslots = 0
        while i < 3:
            self.itemBoards[i] = ui.ThinBoard()
            self.itemBoards[i].SetParent(self.Board)
            self.itemBoards[i].SetPosition(220, x)
            self.itemBoards[i].SetSize(455, 130)
            self.itemBoards[i].Show()

            self.itemMainSlots[i] = ui.GridSlotWindow()
            self.itemMainSlots[i].SetParent(self.itemBoards[i])
            self.itemMainSlots[i].ArrangeSlot(i, 1, 1, 32, 96, 0, 0)
            self.itemMainSlots[i].SetPosition(8, 20)
            self.itemMainSlots[i].SetOverInItemEvent(
                ui.__mem_func__(self.ShowToolTipEmpty))
            self.itemMainSlots[i].SetOverOutItemEvent(
                ui.__mem_func__(self.HideToolTipEmpty))
            self.itemMainSlots[i].SetSelectEmptySlotEvent(
                ui.__mem_func__(self.add_slotEmpty))
            self.itemMainSlots[i].SetSelectItemSlotEvent(
                ui.__mem_func__(self.del_slotEmpty))
            self.itemMainSlots[i].Show()

            trenn_y = 40
            for t in xrange(10):
                self.Trennstriche[trennstrichCounter] = ui.ImageBox()
                self.Trennstriche[trennstrichCounter].SetParent(
                    self.itemBoards[i])
                self.Trennstriche[trennstrichCounter].SetPosition(trenn_y, 20)
                self.Trennstriche[trennstrichCounter].LoadImage(
                    "d:/ymir work/ui/schmiedehandbuch_images/trennstrich.tga")
                self.Trennstriche[trennstrichCounter].Show()
                trenn_y = trenn_y + 45
                trennstrichCounter = trennstrichCounter + 1

            self.UppStufenHeadline[i] = ui.TextLine()
            self.UppStufenHeadline[i].SetParent(self.itemBoards[i])
            self.UppStufenHeadline[i].SetPosition(45, 5)
            self.UppStufenHeadline[i].SetText(
                "   +1            +2           +3           +4           +5           +6           +7           +8           +9"
            )
            self.UppStufenHeadline[i].Show()
            y_slot = 47
            for t in xrange(9):
                x_slot = 20
                for z in xrange(3):
                    self.UppItemsSlots[uppitemslots] = ui.GridSlotWindow()
                    self.UppItemsSlots[uppitemslots].SetParent(
                        self.itemBoards[i])
                    self.UppItemsSlots[uppitemslots].ArrangeSlot(
                        uppitemslots, 1, 1, 32, 32, 0, 0)
                    self.UppItemsSlots[uppitemslots].SetPosition(
                        y_slot, x_slot)
                    self.UppItemsSlots[uppitemslots].SetOverInItemEvent(
                        ui.__mem_func__(self.ShowToolTip))
                    self.UppItemsSlots[uppitemslots].SetOverOutItemEvent(
                        ui.__mem_func__(self.HideToolTip))
                    self.UppItemsSlots[uppitemslots].SetSelectEmptySlotEvent(
                        ui.__mem_func__(self.add_slot))
                    self.UppItemsSlots[uppitemslots].SetSelectItemSlotEvent(
                        ui.__mem_func__(self.del_slot))
                    self.UppItemsSlots[uppitemslots].Show()
                    uppitemslots = uppitemslots + 1
                    x_slot = x_slot + 32
                    if z == 2:
                        y_slot = y_slot + 45

            i = i + 1
            x = x + 135

        self.scrollbar = ui.ScrollBar()
        self.scrollbar.SetParent(self.Board)
        self.scrollbar.SetScrollBarSize(400)
        self.scrollbar.SetPosition(675, 35)
        self.scrollbar.SetMiddleBarSize(
            float(board_count) /
            float(len(settinginfo.SchmiedeHandBuchInfosPVP[self.Category][1])))
        self.scrollbar.SetScrollEvent(self.__OnScroll)
        self.scrollbar.Show()
        self.LoadCategory(0)
示例#16
0
	def LoadUI(self):
		constInfo.PET_INFOS["gui_box"] = 1
		self.Board = ui.BoardWithTitleBar()
		self.Board.SetSize(200, 210)
		self.Board.SetCenterPosition()
		self.Board.AddFlag("movable")
		self.Board.AddFlag("float")
		if constInfo.PET_INFOS["box_mode"] == 0:
			self.Board.SetTitleName("Brutkasten")
		else:
			self.Board.SetTitleName("Name ändern")
		self.Board.SetCloseEvent(self.close)
		self.Board.Show()
		self.PetItemSlotIMG = ui.ImageBox()
		self.PetItemSlotIMG.SetParent(self.Board)
		self.PetItemSlotIMG.SetPosition(80,35)
		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.PetNameBox = ui.ThinBoard()
		self.PetNameBox.SetParent(self.Board)
		self.PetNameBox.SetPosition(15,80)
		self.PetNameBox.SetSize(170,70)
		self.PetNameBox.Show()
		
		self.PetNameTitle = ui.TextLine()
		self.PetNameTitle.SetParent(self.PetNameBox)
		self.PetNameTitle.SetPosition(52,3)
		self.PetNameTitle.SetText("Name des Pets")
		self.PetNameTitle.Show()
		self.PetNameSlotBar = ui.SlotBar()
		self.PetNameSlotBar.SetParent(self.PetNameBox)
		self.PetNameSlotBar.SetPosition(8,22)
		self.PetNameSlotBar.SetSize(152,19)
		self.PetNameSlotBar.Show()		
		self.NameInput = ui.EditLine()
		self.NameInput.SetParent(self.PetNameSlotBar)
		self.NameInput.SetPosition(5,3)
		self.NameInput.SetSize(142,19)
		self.NameInput.SetMax(12)
		self.NameInput.OnSetFocus()
		self.NameInput.Show()		
		
		if constInfo.PET_INFOS["box_mode"] == 0:
			self.PetPriceTitle = ui.TextLine()
			self.PetPriceTitle.SetParent(self.Board)
			self.PetPriceTitle.SetPosition(55,155)
			self.PetPriceTitle.SetText("Preis: " + self.NumberToCoinsString(self.goldPrice))
			self.PetPriceTitle.Show()		
		
		self.FinishButton = ui.Button()
		self.FinishButton.SetParent(self.Board)
		self.FinishButton.SetPosition(60,175)
		#self.FinishButton.SetText("Ausbrüten")
		self.FinishButton.SetUpVisual("d:/ymir work/ui/public/large_button_01.sub")  
		self.FinishButton.SetOverVisual("d:/ymir work/ui/public/large_button_02.sub")  
		self.FinishButton.SetDownVisual("d:/ymir work/ui/public/large_button_03.sub")		
		self.FinishButton.SetEvent(self.FinishConfig)
		self.FinishButton.Show()			
		self.FinishButtonTextLine = ui.TextLine()
		self.FinishButtonTextLine.SetParent(self.FinishButton)
		self.FinishButtonTextLine.SetPosition(20,3)
		if constInfo.PET_INFOS["box_mode"] == 0:
			self.FinishButtonTextLine.SetText("Ausbrüten")
		else:
			self.FinishButtonTextLine.SetText("Ändern")
		self.FinishButtonTextLine.Show()	
示例#17
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
    def initData(self):
        if self.Loaded > 0:
            self.Show()
            return

        self.Loaded = 1

        self.MainBGThinBoard = ui.ThinBoard()
        self.MainBGThinBoard.SetParent(self)
        self.MainBGThinBoard.SetPosition(0, 0)
        self.MainBGThinBoard.SetSize(336, 100)
        self.MainBGThinBoard.Show()

        self.AchievementIconIMG = ui.ImageBox()
        self.AchievementIconIMG.SetParent(self.MainBGThinBoard)
        self.AchievementIconIMG.SetPosition(20, 20)
        self.AchievementIconIMG.LoadImage(
            "d:/ymir work/ui/public/achievement_small.sub")
        self.AchievementIconIMG.Show()

        self.AchievementTitle = ui.TextLine()
        self.AchievementTitle.SetParent(self.MainBGThinBoard)
        self.AchievementTitle.SetPosition((336 / 2) + 30, 8)
        self.AchievementTitle.SetHorizontalAlignCenter()
        self.AchievementTitle.SetText(localeInfo.ACHIEVEMENT_TITLE)
        #self.AchievementTitle.SetFontName(localeInfo.UI_DEF_FONT_LARGE)
        self.AchievementTitle.SetPackedFontColor(0xfff8d090)
        self.AchievementTitle.SetOutline()
        self.AchievementTitle.Show()

        self.AchievementActivityInfo = ui.TextLine()
        self.AchievementActivityInfo.SetParent(self.MainBGThinBoard)
        self.AchievementActivityInfo.SetPosition((336 / 2) + 30, 25)
        self.AchievementActivityInfo.SetHorizontalAlignCenter()
        self.AchievementActivityInfo.SetText(localeInfo.ACHIEVEMENT_KILL %
                                             ("Razador"))
        self.AchievementActivityInfo.SetOutline()
        self.AchievementActivityInfo.Show()
        self.AchievementPointMainInfo = ui.TextLine()
        self.AchievementPointMainInfo.SetParent(self.MainBGThinBoard)
        self.AchievementPointMainInfo.SetPosition((336 / 2) + 30, 40)
        self.AchievementPointMainInfo.SetHorizontalAlignCenter()
        self.AchievementPointMainInfo.SetText(
            localeInfo.ACHIEVEMENT_POINT_INFO % (100))
        self.AchievementPointMainInfo.SetOutline()
        self.AchievementPointMainInfo.Show()

        self.AchievementCountInfo = ui.TextLine()
        self.AchievementCountInfo.SetParent(self.MainBGThinBoard)
        self.AchievementCountInfo.SetPosition(160, 70)
        self.AchievementCountInfo.SetHorizontalAlignCenter()
        self.AchievementCountInfo.SetText(
            localeInfo.ACHIEVEMENT_COUNT %
            (constInfo.NumberToPointString(90000)))
        self.AchievementCountInfo.SetOutline()
        self.AchievementCountInfo.Show()

        self.AchievementPointInfo = ui.TextLine()
        self.AchievementPointInfo.SetParent(self.MainBGThinBoard)
        self.AchievementPointInfo.SetPosition(240, 70)
        self.AchievementPointInfo.SetHorizontalAlignCenter()
        self.AchievementPointInfo.SetText(
            localeInfo.ACHIEVEMENT_POINT %
            (constInfo.NumberToPointString(900000)))
        self.AchievementPointInfo.SetOutline()
        self.AchievementPointInfo.Show()

        self.Hide()
	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
示例#20
0
    def LoadUI(self):
        constInfo.warpgui_open = 1
        self.Board = ui.BoardWithTitleBar()
        self.Board.SetSize(700, 350)
        self.Board.SetCenterPosition()
        self.Board.AddFlag("movable")
        self.Board.AddFlag("float")
        self.Board.SetTitleName("Teleportation")
        self.Board.SetCloseEvent(self.__del__)
        self.Board.Show()

        self.NavThinBoard = ui.ThinBoard()
        self.NavThinBoard.SetParent(self.Board)
        self.NavThinBoard.SetPosition(15, 35)
        self.NavThinBoard.SetSize(110, 305)
        self.NavThinBoard.Show()
        self.itemtooltip = uiToolTip.ItemToolTip()
        self.itemtooltip.HideToolTip()
        i = 0
        nb_height = 10

        while i < len(warps):

            self.NavButtons[i] = ui.Button()
            self.NavButtons[i].SetParent(self.NavThinBoard)
            self.NavButtons[i].SetPosition(10, nb_height)
            self.NavButtons[i].SetText("")
            self.NavButtons[i].SetUpVisual(
                "d:/ymir work/ui/public/Large_Button_01.sub")
            self.NavButtons[i].SetOverVisual(
                "d:/ymir work/ui/public/Large_Button_02.sub")
            self.NavButtons[i].SetDownVisual(
                "d:/ymir work/ui/public/Large_Button_03.sub")
            self.NavButtons[i].SetEvent(ui.__mem_func__(self.LoadCategory), i)
            self.NavButtons[i].Show()

            self.NavButtonTitles[i] = ui.TextLine()
            self.NavButtonTitles[i].SetParent(self.NavButtons[i])
            self.NavButtonTitles[i].SetPosition(43, 2)
            self.NavButtonTitles[i].SetText(str(warps[i][0][0]))
            self.NavButtonTitles[i].SetHorizontalAlignCenter()
            self.NavButtonTitles[i].Show()

            i = i + 1
            nb_height = nb_height + 22

        step = 5
        i = 1
        aIndex = 0
        wtb_width = 130
        wtb_height = 35
        player_level = fgGHGjjFHJghjfFG1545gGG.GetStatus(
            fgGHGjjFHJghjfFG1545gGG.LEVEL)

        while i <= board_count:
            self.WarpBGImages[i] = ui.ImageBox()
            self.WarpBGImages[i].SetParent(self.Board)
            self.WarpBGImages[i].SetPosition(wtb_width, wtb_height)
            self.WarpBGImages[i].LoadImage("images_warpgui/map/map_0_0.tga")
            self.WarpBGImages[i].Show()

            self.WarpThinBoards[i] = ui.ThinBoard()
            self.WarpThinBoards[i].SetParent(self.WarpBGImages[i])
            self.WarpThinBoards[i].SetSize(130, 150)
            self.WarpThinBoards[i].SetPosition(0, 0)
            self.WarpThinBoards[i].Show()

            self.WarpMapNames[i] = ui.TextLine()
            self.WarpMapNames[i].SetParent(self.WarpThinBoards[i])
            self.WarpMapNames[i].SetPosition(65, 8)
            self.WarpMapNames[i].SetText("MapName")
            self.WarpMapNames[i].SetHorizontalAlignCenter()
            self.WarpMapNames[i].Show()
            self.WarpTitleUnderLines[i] = ui.ImageBox()
            self.WarpTitleUnderLines[i].SetParent(self.WarpThinBoards[i])
            self.WarpTitleUnderLines[i].SetPosition(5, 25)
            self.WarpTitleUnderLines[i].LoadImage(
                "images_warpgui/title_underline.tga")
            self.WarpTitleUnderLines[i].Show()

            self.WarpButtons[i] = ui.Button()
            self.WarpButtons[i].SetParent(self.WarpThinBoards[i])
            self.WarpButtons[i].SetPosition(22, 125)
            self.WarpButtons[i].SetText("")
            self.WarpButtons[i].SetUpVisual(
                "d:/ymir work/ui/public/Large_Button_01.sub")
            self.WarpButtons[i].SetOverVisual(
                "d:/ymir work/ui/public/Large_Button_02.sub")
            self.WarpButtons[i].SetDownVisual(
                "d:/ymir work/ui/public/Large_Button_03.sub")
            self.WarpButtons[i].SetEvent(ui.__mem_func__(self.SendWarpPacket),
                                         i)
            self.WarpButtons[i].Show()

            self.WarpButtonTitles[i] = ui.TextLine()
            self.WarpButtonTitles[i].SetParent(self.WarpButtons[i])
            self.WarpButtonTitles[i].SetPosition(43, 2)
            self.WarpButtonTitles[i].SetText("Teleportieren")
            self.WarpButtonTitles[i].SetHorizontalAlignCenter()
            self.WarpButtonTitles[i].Show()

            self.WarpErrors[i] = ui.TextLine()
            self.WarpErrors[i].SetParent(self.WarpThinBoards[i])
            self.WarpErrors[i].SetPosition(65, 125)
            self.WarpErrors[i].SetText("[ Ab lv. ]")
            self.WarpErrors[i].SetHorizontalAlignCenter()
            self.WarpErrors[i].Show()

            self.WarpItemSlots[i] = ui.GridSlotWindow()
            self.WarpItemSlots[i].SetParent(self.WarpThinBoards[i])
            self.WarpItemSlots[i].ArrangeSlot(i, 1, 1, 32, 32, 0, 0)
            self.WarpItemSlots[i].SetPosition(49, 75)
            self.WarpItemSlots[i].SetOverInItemEvent(
                ui.__mem_func__(self.ShowToolTip))
            self.WarpItemSlots[i].SetOverOutItemEvent(
                ui.__mem_func__(self.HideToolTip))
            self.WarpItemSlots[i].Show()
            # self.WarpItemSlots[i].SetItemSlot(0,27001,1)

            self.WarpClosed[i] = ui.TextLine()
            self.WarpClosed[i].SetParent(self.WarpThinBoards[i])
            self.WarpClosed[i].SetPosition(65, 95)
            self.WarpClosed[i].SetText("[ Geschlossen! ]")
            self.WarpClosed[i].SetHorizontalAlignCenter()
            self.WarpClosed[i].Hide()

            aIndex = aIndex + 1
            i = i + 1
            wtb_width = wtb_width + 135
            if i == step:
                wtb_width = 130
                wtb_height = 190

        self.scrollbar = ui.ScrollBar()
        self.scrollbar.SetParent(self.Board)
        self.scrollbar.SetScrollBarSize(305)
        self.scrollbar.SetPosition(670, 35)
        self.scrollbar.SetMiddleBarSize(float(board_count) / float(8))
        self.scrollbar.SetScrollEvent(self.__OnScroll)
        self.scrollbar.Show()
        self.LoadCategory(0)
示例#21
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)
示例#22
0
 def __MakeThinBoard(self):
     thinBoard = ui.ThinBoard()
     thinBoard.SetParent(self)
     thinBoard.Show()
     self.children.append(thinBoard)
     return thinBoard
示例#23
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()
示例#24
0
    def __init__(self):
        self.OpenBotBoard = ui.ThinBoard(layer="TOP_MOST")
        self.OpenBotBoard.SetPosition(0, 40)
        self.OpenBotBoard.SetSize(51, 560)
        self.OpenBotBoard.AddFlag("float")
        self.OpenBotBoard.AddFlag("movable")
        self.OpenBotBoard.Hide()
        if DEBUG:
            self.filter = Filter.FilterDialog()

        self.ShowHackbarButton = self.comp.Button(
            None, '', 'Show Hackbar',
            wndMgr.GetScreenWidth() - 99, 260, self.OpenHackbar,
            'OpenBot/Images/Shortcuts/show_0.tga',
            'OpenBot/Images/Shortcuts/show_1.tga',
            'OpenBot/Images/Shortcuts/show_0.tga')
        self.HideHackbarButton = self.comp.HideButton(
            None, '', 'Hide Hackbar',
            wndMgr.GetScreenWidth() - 99, 260, self.OpenHackbar,
            'OpenBot/Images/Shortcuts/hide_0.tga',
            'OpenBot/Images/Shortcuts/hide_1.tga',
            'OpenBot/Images/Shortcuts/hide_0.tga')
        self.ShortCutButton = self.comp.Button(
            None, '', 'ShortCuts',
            wndMgr.GetScreenWidth() - 62, 260, self.OpenShortCuts,
            'OpenBot/Images/Shortcuts/shortcut_0.tga',
            'OpenBot/Images/Shortcuts/shortcut_1.tga',
            'OpenBot/Images/Shortcuts/shortcut_0.tga')

        self.GhostButton = self.comp.HideButton(
            None, '', 'Ghostmod',
            wndMgr.GetScreenWidth() - 115, 310, self.GhostMod,
            'OpenBot/Images/Shortcuts/ghost_0.tga',
            'OpenBot/Images/Shortcuts/ghost_1.tga',
            'OpenBot/Images/Shortcuts/ghost_0.tga')
        self.TeleportButton = self.comp.HideButton(
            None, '', 'Teleporthack',
            wndMgr.GetScreenWidth() - 80, 310, self.OpenTeleport,
            'OpenBot/Images/Shortcuts/tele_0.tga',
            'OpenBot/Images/Shortcuts/tele_1.tga',
            'OpenBot/Images/Shortcuts/tele_0.tga')
        self.CrashButton = self.comp.HideButton(
            None, '', 'Exit',
            wndMgr.GetScreenWidth() - 45, 310, self.CloseRequest,
            'OpenBot/Images/Shortcuts/close_0.tga',
            'OpenBot/Images/Shortcuts/close_1.tga',
            'OpenBot/Images/Shortcuts/close_0.tga')
        self.ZoomButton = self.comp.HideButton(
            None, '', 'Zoom-Hack',
            wndMgr.GetScreenWidth() - 115, 350, self.Zoom,
            'OpenBot/Images/Shortcuts/zoom_0.tga',
            'OpenBot/Images/Shortcuts/zoom_1.tga',
            'OpenBot/Images/Shortcuts/zoom_0.tga')
        self.NoFogButton = self.comp.HideButton(
            None, '', 'No-Fog',
            wndMgr.GetScreenWidth() - 80, 350, self.NoFog,
            'OpenBot/Images/General/nofog_0.tga',
            'OpenBot/Images/General/nofog_1.tga',
            'OpenBot/Images/General/nofog_0.tga')

        self.SpamtextCombo = self.comp.ComboBox(None, 'Text 1',
                                                wndMgr.GetScreenWidth() - 70,
                                                490, 55)
        SpamList = ("Text 1", "Text 2", "Text 3", "Text 4", "Text 5", "Text 6",
                    "Text 7", "Text 8")
        for text in SpamList:
            self.SpamtextCombo.InsertItem(0, text)
        self.SpamtextCombo.Hide()
        self.SpamTextButton = self.comp.HideButton(
            None, '', 'Spam-Text',
            wndMgr.GetScreenWidth() - 115, 480, lambda: self.SpamText(),
            'OpenBot/Images/Hackbar/spam_0.tga',
            'OpenBot/Images/Hackbar/spam_1.tga',
            'OpenBot/Images/Hackbar/spam_0.tga')

        self.GoForward = self.comp.HideButton(
            None, '', '',
            wndMgr.GetScreenWidth() - 230, -2,
            lambda: self.TeleportInDirection(1),
            'OpenBot/Images/Shortcuts/Arrow/tele_up_0.tga',
            'OpenBot/Images/Shortcuts/Arrow/tele_up_1.tga',
            'OpenBot/Images/Shortcuts/Arrow/tele_up_0.tga')
        self.GoBack = self.comp.HideButton(
            None, '', '',
            wndMgr.GetScreenWidth() - 229, 92,
            lambda: self.TeleportInDirection(2),
            'OpenBot/Images/Shortcuts/Arrow/tele_down_0.tga',
            'OpenBot/Images/Shortcuts/Arrow/tele_down_1.tga',
            'OpenBot/Images/Shortcuts/Arrow/tele_down_0.tga')
        self.GoRight = self.comp.HideButton(
            None, '', '',
            wndMgr.GetScreenWidth() - 196, 58,
            lambda: self.TeleportInDirection(3),
            'OpenBot/Images/Shortcuts/Arrow/tele_right_0.tga',
            'OpenBot/Images/Shortcuts/Arrow/tele_right_1.tga',
            'OpenBot/Images/Shortcuts/Arrow/tele_right_0.tga')
        self.GoLeft = self.comp.HideButton(
            None, '', '',
            wndMgr.GetScreenWidth() - 290, 59,
            lambda: self.TeleportInDirection(4),
            'OpenBot/Images/Shortcuts/Arrow/tele_left_0.tga',
            'OpenBot/Images/Shortcuts/Arrow/tele_left_1.tga',
            'OpenBot/Images/Shortcuts/Arrow/tele_left_0.tga')

        self.SettingsButton = self.comp.Button(
            self.OpenBotBoard, '', 'Settings', 9, 10, self.Generel,
            'OpenBot/Images/Hackbar/sett_0.tga',
            'OpenBot/Images/Hackbar/sett_1.tga',
            'OpenBot/Images/Hackbar/sett_2.tga')
        self.LevelbotButton = self.comp.Button(
            self.OpenBotBoard, '', 'Levelbot', 8, 43, self.OnLevelbot,
            'OpenBot/Images/Hackbar/sword_0.tga',
            'OpenBot/Images/Hackbar/sword_1.tga',
            'OpenBot/Images/Hackbar/sword_0.tga')
        #self.BuffbotButton = self.comp.Button(self.OpenBotBoard, '', 'Buffbot', 8, 78, self.BuffBot, 'OpenBot/Images/Hackbar/buff_0.tga', 'OpenBot/Images/Hackbar/buff_1.tga', 'OpenBot/Images/Hackbar/buff_0.tga')
        self.SpambotButton = self.comp.Button(
            self.OpenBotBoard, '', 'Spambot', 8, 253, self.Spambot,
            'OpenBot/Images/Hackbar/spam_0.tga',
            'OpenBot/Images/Hackbar/spam_1.tga',
            'OpenBot/Images/Hackbar/spam_0.tga')
        if DEBUG:
            self.MiningBotButton = self.comp.Button(
                self.OpenBotBoard, '', 'MiningBot', 8, 323, self.MiningBot,
                'OpenBot/Images/Hackbar/ore_slot_0.tga',
                'OpenBot/Images/Hackbar/ore_slot_1.tga',
                'OpenBot/Images/Hackbar/ore_slot_0.tga')
        self.SearchBotButton = self.comp.Button(
            self.OpenBotBoard, '', 'SearchBot', 10, 113, self.SearchBot,
            'OpenBot/Images/Hackbar/search_0.tga',
            'OpenBot/Images/Hackbar/search_1.tga',
            'OpenBot/Images/Hackbar/search_0.tga')
        self.ShopCreatorButton = self.comp.Button(
            self.OpenBotBoard, '', 'Shopbot', 8, 148, self.ShopCreator,
            'OpenBot/Images/Hackbar/shop_0.tga',
            'OpenBot/Images/Hackbar/shop_1.tga',
            'OpenBot/Images/Hackbar/shop_0.tga')
        self.FishingBotButton = self.comp.Button(
            self.OpenBotBoard, '', 'FishingBot', 8, 78, self.FishingBot,
            'OpenBot/Images/Hackbar/fishing_0.tga',
            'OpenBot/Images/Hackbar/fishing_1.tga',
            'OpenBot/Images/Hackbar/fishing_0.tga')
        self.TeleButton = self.comp.Button(
            self.OpenBotBoard, '', 'Teleport', 10, 218, self.TeleportHack,
            'OpenBot/Images/Hackbar/teleport_0.tga',
            'OpenBot/Images/Hackbar/teleport_1.tga',
            'OpenBot/Images/Hackbar/teleport_0.tga')
        self.InventoryButton = self.comp.Button(
            self.OpenBotBoard, '', 'Manager', 10, 183, self.InventoryManager,
            'OpenBot/Images/Hackbar/inventory_0.tga',
            'OpenBot/Images/Hackbar/inventory_1.tga',
            'OpenBot/Images/Hackbar/inventory_0.tga')
        self.RunPythonButton = self.comp.Button(
            self.OpenBotBoard, '', 'Run-Python', 10, 288, self.RunPython,
            'OpenBot/Images/Shortcuts/loadpy_0.tga',
            'OpenBot/Images/Shortcuts/loadpy_1.tga',
            'OpenBot/Images/Shortcuts/loadpy_0.tga')
        if DEBUG:
            self.AnalyzerButton = self.comp.Button(
                self.OpenBotBoard, '', 'Packet Analyzer', 8, 358,
                self.PacketAnalyzer, 'OpenBot/Images/Hackbar/analyzer_0.tga',
                'OpenBot/Images/Hackbar/analyzer_1.tga',
                'OpenBot/Images/Hackbar/analyzer_0.tga')