def LoadUI(self): self.Board = ui.BoardWithTitleBar() self.Board.SetSize(330, 185) # self.Board.SetPosition(wndMgr.GetScreenWidth()/2-165,wndMgr.GetScreenHeight()-wndMgr.GetScreenHeight()+100) self.Board.SetCenterPosition() self.Board.AddFlag("movable") self.Board.AddFlag("float") self.Board.SetTitleName("Fehlerbericht senden") self.Board.SetCloseEvent(self.Manage) self.Board.Hide() self.ReportBG = ui.Bar() self.ReportBG.SetParent(self.Board) self.ReportBG.SetPosition(15,35) self.ReportBG.SetSize(300,100) self.ReportBG.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.5)) self.ReportBG.Show() self.ReportEditLine = ui.EditLine() self.ReportEditLine.SetParent(self.Board) self.ReportEditLine.SetPosition(20,40) self.ReportEditLine.SetSize(300,95) self.ReportEditLine.bCodePage = True self.ReportEditLine.SetLimitWidth(295) self.ReportEditLine.SetMultiLine() self.ReportEditLine.SetMax(240) self.ReportEditLine.Show() self.ReportButtonBG = ui.Bar() self.ReportButtonBG.SetParent(self.Board) self.ReportButtonBG.SetPosition(15,138) self.ReportButtonBG.SetSize(300,30) self.ReportButtonBG.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.5)) self.ReportButtonBG.Show() self.SendReportButton = ui.ToolTipButton() self.SendReportButton.SetParent(self.Board) self.SendReportButton.SetPosition(120,142) self.SendReportButton.SetText("") self.SendReportButton.SetButtonWidth(90) self.SendReportButton.AppendToolTipTextLine("Falschmeldungen oder ausnutzen dieser Funktion führt zur Accountsperre!") self.SendReportButton.ArrangeToolTip() self.SendReportButton.SetUpVisual("d:/ymir work/ui/public/Large_Button_01.sub") self.SendReportButton.SetOverVisual("d:/ymir work/ui/public/Large_Button_02.sub") self.SendReportButton.SetDownVisual("d:/ymir work/ui/public/Large_Button_03.sub") self.SendReportButton.SetEvent(self.__SendBugReport) self.SendReportButton.Show() self.SendReportButtonTextLine = ui.TextLine() self.SendReportButtonTextLine.SetParent(self.Board) self.SendReportButtonTextLine.SetPosition(165,145) self.SendReportButtonTextLine.SetText("Senden...") self.SendReportButtonTextLine.SetHorizontalAlignCenter() self.SendReportButtonTextLine.Show()
def __init__(self, parent, tt="", down=1): ui.Window.__init__(self, "TOP_MOST") self.tt = tt self.down = down self.SetParentProxy(parent) self.bg = ui.Bar("TOP_MOST") self.bg.SetParent(self) self.bg.SetPosition(0, 0) self.bg.SetColor(0xc0000000) self.bg.OnMouseOverIn = self.bgMouseIn self.bg.OnMouseOverOut = self.bgMouseOut self.bg.OnMouseLeftButtonDown = self.ExpandMe self.bg.Show() self.act = ui.TextLine() self.act.SetParent(self.bg) self.act.SetPosition(4, 2) self.act.SetText(self.tt) self.act.Show() self.GetText = self.act.GetText self.Drop = ui.Bar("TOP_MOST") self.Drop.SetParent(self.GetParentProxy()) self.Drop.SetPosition(0, 21) # self.Drop.SetSize(150,95) self.Drop.SetSize(150, 0) # self.Drop.SetColor(0xc00a0a0a) self.Drop.SetColor(0xff0a0a0a) self.ScrollBar = ui.ThinScrollBar() self.ScrollBar.SetParent(self.Drop) self.ScrollBar.SetPosition(132, 0) # self.ScrollBar.SetScrollBarSize(95) self.ScrollBar.SetScrollBarSize(0) # self.ScrollBar.Show() self.DropList = ui.ListBoxEx() self.DropList.SetParent(self.Drop) self.DropList.itemHeight = 12 self.DropList.itemStep = 13 self.DropList.SetPosition(0, 0) # self.DropList.SetSize(132,self.maxh) self.DropList.SetSize(132, 13) self.DropList.SetScrollBar(self.ScrollBar) self.DropList.SetSelectEvent(self.SetTitle) self.DropList.SetViewItemCount(0) self.DropList.Show() if self.tt != "": self.AppendItemAndSelect(self.tt) self.selected = self.DropList.GetSelectedItem() self.SetSize(120, 20)
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.MainImage = ui.ImageBox() self.MainImage.SetParent(self.Background) self.MainImage.LoadImage("d:/ymir work/ui/main.tga") self.MainImage.SetSize(642,600) self.MainImage.SetCenterPosition() self.MainImage.Show() self.CloseButton = ui.Button() self.CloseButton.SetParent(self) self.CloseButton.SetPosition(wndMgr.GetScreenWidth()/2-350, wndMgr.GetScreenHeight()/2+200) self.CloseButton.SetUpVisual("d:/ymir work/ui/close_n.tga") self.CloseButton.SetOverVisual("d:/ymir work/ui/close_h.tga") self.CloseButton.SetDownVisual("d:/ymir work/ui/close_a.tga") self.CloseButton.SetEvent(ui.__mem_func__(self.Open)) self.CloseButton.Show() self.MapName = ui.ImageBox() self.MapName.SetParent(self) self.MapName.SetPosition(wndMgr.GetScreenWidth()/2+300, wndMgr.GetScreenHeight()/2+200) self.MapName.LoadImage("d:/ymir work/ui/info.tga") self.MapName.SetSize(162,50) self.MapName.Hide() self.MapNameText = ui.TextLine() self.MapNameText.SetParent(self.MapName) self.MapNameText.SetHorizontalAlignCenter() self.MapNameText.SetPosition(81,18) self.MapNameText.SetText("Teleportieren") self.MapNameText.Show() points = [[72,82],[94,172],[52,257],[124,232],[239,204],[301,153],[70,307],[157,326],[198,282],[322,199],[365,178],[419,98],[484,120],[540,153],[539,221],[454,199],[415,237],[452,261],[447,297],[457,365],[499,377],[517,412],[435,442],[368,497],[404,545],[258,370],[201,397],[304,282],[419,361],[367,300],[520,315]] self.data = [] for pos in xrange(len(points)): button = ui.Button() button.SetParent(self.MainImage) button.SetPosition(points[pos][0],points[pos][1]) button.SetUpVisual("d:/ymir work/ui/click_n.tga") button.SetOverVisual("d:/ymir work/ui/click_h.tga") button.SetDownVisual("d:/ymir work/ui/click_a.tga") button.SetEvent(ui.__mem_func__(self.WarpPosition),pos) button.Show() self.data.append(button) self.Show()
def AppendItem(self, questName, questIndex): for i in xrange(len(self.__questList)): if self.__questList[i].text.GetText( ) == questName and self.__questList[i].questIndex == questIndex: return bar = ui.Bar() bar.SetParent(self.__parentWnd) bar.SetSize(100, 10) bar.SetColor(grp.GenerateColor(1.0, 1.0, 1.0, 0.0)) bar.OnMouseLeftButtonDown = lambda x=len( self.__questList), arg=questIndex: self.__SelectQuest(x, arg) bar.Hide() bar.btn = ui.Button() bar.btn.SetParent(bar) bar.btn.SetUpVisual("Other/questcategory/quest_checkbox.tga") bar.btn.SetOverVisual("Other/questcategory/quest_checkbox.tga") bar.btn.SetDownVisual("Other/questcategory/quest_checkbox.tga") bar.btn.SetPosition(0, 0) bar.btn.Show() bar.checked = ui.ImageBox() bar.checked.SetParent(bar.btn) bar.checked.LoadImage("Other/questcategory/quest_checked.tga") bar.checked.SetPosition(0, -2) bar.checked.Hide() bar.text = ui.TextLine() bar.text.SetParent(bar) bar.text.SetText(questName) bar.text.SetPosition(15, -2) bar.text.SetWindowHorizontalAlignLeft() bar.text.SetHorizontalAlignLeft() bar.text.Show() bar.text.clock = ui.TextLine() bar.text.clock.SetParent(bar.text) bar.text.clock.SetText(localeInfo.QUEST_UNLIMITED_TIME) bar.text.clock.SetPosition(5, 10) bar.text.clock.SetWindowHorizontalAlignLeft() bar.text.clock.SetHorizontalAlignLeft() bar.text.clock.Show() bar.text.counter = ui.TextLine() bar.text.counter.SetParent(bar.text) bar.text.counter.SetText("") bar.text.counter.SetPosition(5, 20) bar.text.counter.SetWindowHorizontalAlignLeft() bar.text.counter.SetHorizontalAlignLeft() bar.text.counter.Show() bar.questIndex = questIndex self.__questList[len(self.__questList)] = bar
def __init__(self,layer="TOP_MOST"): ui.Window.__init__(self,layer) self.TopBar = ui.Bar("TOP_MOST") self.BottomBar = ui.Bar("TOP_MOST") self.TopBar.Show() self.BottomBar.Show() self.TopBar.SetColor(0xff000000) self.BottomBar.SetColor(0xff000000) self.TopBar.SetPosition(0,-self.BarHeight) self.TopBar.SetSize(wndMgr.GetScreenWidth(),self.BarHeight) self.BottomBar.SetPosition(0,wndMgr.GetScreenHeight()) self.BottomBar.SetSize(wndMgr.GetScreenWidth(),self.BarHeight) self.CurtainMode = 0 self.lastclock = time.clock()
def Bar(self, parent, x, y, width, heigh): tmpBar = ui.Bar() if parent: tmpBar.SetParent(parent) tmpBar.SetPosition(x, y) tmpBar.SetSize(width, heigh) tmpBar.SetColor(0x77000000) tmpBar.Show() return tmpBar
def ReadingListBox(self, parent, x, y, width, heigh, count): bar = ui.Bar() if parent != None: bar.SetParent(parent) bar.SetPosition(x, y) bar.SetSize(width + 20, heigh) bar.Show() ListBox = ui.ListBoxEx() ListBox.SetParent(bar) ListBox.SetPosition(10, 13) ListBox.SetViewItemCount(count) ListBox.SetSize(width, heigh) ListBox.Show() return bar, ListBox
def _generate_ui(self): self.noise_bar = ui.Bar(Vector2(config.SCREEN_SIZE[0] * 0.1, config.ROOM_SIZE.y + config.UI_SIZE.y * 0.1), \ Vector2(config.UI_SIZE.x * 0.8, config.UI_SIZE.y * 0.2), config.NOISE_COLOR) text_x = config.SCREEN_SIZE[0] * 0.05 noise_text = ui.Text( "Bruit :", Vector2(text_x, config.ROOM_SIZE.y + config.UI_SIZE.y * 0.2), 30) self.life_text = ui.Text( "", Vector2(text_x, config.ROOM_SIZE.y + config.UI_SIZE.y * 0.5), 30) self.uis = [self.noise_bar, self.life_text, noise_text]
def Load(self): self.MakeBoard("d:/ymir work/ui/pattern/ime/corner_", "d:/ymir work/ui/pattern/ime/bar_") BaseBar = ui.Bar() BaseBar.SetParent(self) BaseBar.SetPosition(10, 3) BaseBar.SetColor(0xff000000) BaseBar.Show() self.BaseBar = BaseBar candidateListBox = ui.CandidateListBox(ui.CandidateListBox.VERTICAL_MODE) candidateListBox.SetParent(self) candidateListBox.SetPosition(11, 4) candidateListBox.SetItemSize(16, 14) candidateListBox.SetItemStep(14) candidateListBox.Show() self.candidateListBox = candidateListBox
def ListBoxEx(self, parent, x, y, width, heigh): bar = ui.Bar() if parent != None: bar.SetParent(parent) bar.SetPosition(x, y) bar.SetSize(width, heigh) bar.SetColor(0x77000000) bar.Show() ListBox = ui.ListBoxEx() ListBox.SetParent(bar) ListBox.SetPosition(0, 0) ListBox.SetSize(width, heigh) ListBox.Show() scroll = ui.ScrollBar() scroll.SetParent(ListBox) scroll.SetPosition(width - 15, 0) scroll.SetScrollBarSize(heigh) scroll.Show() ListBox.SetScrollBar(scroll) return bar, ListBox
def ListBoxEx2(self, parent, x, y, width, heigh): bar = ui.Bar() if parent != None: bar.SetParent(parent) bar.SetPosition(x, y) bar.SetSize(width + 20, heigh) bar.SetColor(1996488704) bar.Show() ListBox = ui.ListBoxEx() ListBox.SetParent(bar) ListBox.SetPosition(0, 0) ListBox.SetViewItemCount(5) ListBox.SetSize(width, heigh) ListBox.Show() scroll = ui.ScrollBar() scroll.SetParent(bar) scroll.SetPosition(width + 5, 0) scroll.SetScrollBarSize(heigh) scroll.Show() ListBox.SetScrollBar(scroll) return (bar, ListBox, scroll)
def BuildUI(self): posX = 500 self.AddFlag('movable') self.AddFlag('float') self.SetSize(posX, 150) self.SetTitleName("Offline Shop Panel") self.SetCloseEvent(self.OpenWindow) self.SetCenterPosition() self.Show() self.bar = ui.Bar() self.bar.SetParent(self) self.bar.SetPosition(10, 35) self.bar.SetSize(posX - 20, 100) self.bar.SetColor(0x77000000) self.bar.Show() self.ListBox = ui.ListBoxEx() self.ListBox.SetParent(self.bar) self.ListBox.SetPosition(0, 0) self.ListBox.SetSize(posX, 100) self.ListBox.SetViewItemCount(5) self.ListBox.Show() self.scroll = ui.ScrollBar() self.scroll.SetParent(self.ListBox) self.scroll.SetPosition(posX-35, 0) self.scroll.SetScrollBarSize(200/2) self.scroll.Show() self.ListBox.SetScrollBar(self.scroll) self.refresh = ui.Button() self.refresh.SetParent(self) self.refresh.SetPosition(self.GetWidth() - 50, 8) self.refresh.SetUpVisual("d:/ymir work/ui/game/guild/Refresh_Button_01.sub") self.refresh.SetOverVisual("d:/ymir work/ui/game/guild/Refresh_Button_02.sub") self.refresh.SetDownVisual("d:/ymir work/ui/game/guild/Refresh_Button_03.sub") self.refresh.SetText("") self.refresh.SetEvent(self.Refresh) self.refresh.Show()
def SetCharacterCount(self, xCount, yCount): self.SetSize(xCount*14 + 14, yCount*14 + 7) self.BaseBar.SetSize(xCount*14 + 1, yCount*14 + 1) self.numberList = [] self.slotList = [] for y in xrange(yCount): number = ui.ImageBox() number.SetParent(self.BaseBar) number.LoadImage("d:/ymir work/ui/pattern/ime/%d.tga" % (y+1)) number.SetPosition(5 - 10, 8 + y * 14 - 3) number.Show() self.numberList.append(number) slot = ui.Bar() slot.SetParent(self.BaseBar) slot.SetPosition(10 + 1 - 10, 3 + y*14 + 1 - 3) slot.SetSize(xCount*14 - 1, 13) slot.SetColor(0xFF302C2A) slot.Show() self.slotList.append(slot)
def __MakeUICurtain(self): wndUICurtain = ui.Bar("TOP_MOST") wndUICurtain.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight()) wndUICurtain.SetColor(0x77000000) wndUICurtain.Hide() self.wndUICurtain = wndUICurtain
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()
def LoadWindow(self): if self.isLoaded: return self.isLoaded = 1 try: pyScrLoader = ui.PythonScriptLoader() pyScrLoader.LoadScriptFile(self, "uiscript/guildwindow_guilddragonlairranking.py") except: import exception exception.Abort("GuildDragonLairWindow.LoadDialog.LoadScript") self.DIFFERENCE = 17 self.BOARD_WIDTH = 368 try: self.titleBar = self.GetChild("TitleBar") self.scrollBar = self.GetChild("GuildDragonLairScrollBar") if localeInfo.IsARABIC(): self.LeftTop = self.GetChild("LeftTop") self.RightTop = self.GetChild("RightTop") self.LeftBottom = self.GetChild("LeftBottom") self.RightBottom = self.GetChild("RightBottom") self.leftcenterImg = self.GetChild("leftcenterImg") self.rightcenterImg = self.GetChild("rightcenterImg") self.topcenterImg = self.GetChild("topcenterImg") self.bottomcenterImg = self.GetChild("bottomcenterImg") self.centerImg = self.GetChild("centerImg") self.LeftTopSelf = self.GetChild("LeftTopSelf") self.RightTopSelf = self.GetChild("RightTopSelf") self.LeftBottomSelf = self.GetChild("LeftBottomSelf") self.RightBottomSelf = self.GetChild("RightBottomSelf") self.topcenterImgSelf = self.GetChild("topcenterImgSelf") self.bottomcenterImgSelf = self.GetChild("bottomcenterImgSelf") self.LeftTop.SetPosition(318 + self.DIFFERENCE, 38) self.RightTop.SetPosition(17 + self.DIFFERENCE, 38) self.LeftBottom.SetPosition(318 + self.DIFFERENCE, 173) self.RightBottom.SetPosition(17 + self.DIFFERENCE, 173) self.leftcenterImg.SetPosition(317 + self.DIFFERENCE + 1, 38+16) self.rightcenterImg.SetPosition(17 + self.DIFFERENCE + 1, 38+16) self.topcenterImg.SetPosition(self.BOARD_WIDTH - (17 + 15 + self.DIFFERENCE), 38) self.bottomcenterImg.SetPosition(self.BOARD_WIDTH - (17 + 15 + self.DIFFERENCE), 173) self.centerImg.SetPosition(self.BOARD_WIDTH - (17 + 15 + self.DIFFERENCE), 38 + 15) self.LeftTopSelf.SetPosition(318 + self.DIFFERENCE, 190) self.RightTopSelf.SetPosition(17 + self.DIFFERENCE, 190) self.LeftBottomSelf.SetPosition(318 + self.DIFFERENCE, 190 + 15) self.RightBottomSelf.SetPosition(17 + self.DIFFERENCE, 190 + 15) self.topcenterImgSelf.SetPosition(self.BOARD_WIDTH - (17 + 15 + self.DIFFERENCE), 190) self.bottomcenterImgSelf.SetPosition(self.BOARD_WIDTH - (17 + 15 + self.DIFFERENCE),190 + 15) except: import exception exception.Abort("GuildDragonLairWindow.LoadDialog.BindObject") #build self.rankLine = [] self.rankData = { "ID" : [], "NAME" : [], "MEMBERS" : [], "TIME" : [], } self.rankDataBackground = { "ID" : [], "NAME" : [], "MEMBERS" : [], "TIME" : [], } if localeInfo.IsARABIC(): str_lineDown = "d:/ymir work/ui/game/guild/dragonlairranking/line_down_ae.sub" else: str_lineDown = "d:/ymir work/ui/game/guild/dragonlairranking/line_down.sub" for i in xrange(6): lineStep = 24 yPos = i * lineStep + 64 if i == 5: yPos = i * lineStep + 75 if localeInfo.IsARABIC(): line = ui.MakeImageBox(self, str_lineDown, 22 + self.DIFFERENCE, yPos) else: line = ui.MakeImageBox(self, str_lineDown, 22, yPos) self.rankLine.append(line) #ID_BACKGROUND = ui.MakeSlotBar(self.rankLine[i], 6, 2, 31, 16) ID_BACKGROUND = ui.Bar("TOP_MOST") ID_BACKGROUND.SetParent(self.rankLine[i]) if localeInfo.IsARABIC(): ID_BACKGROUND.SetPosition(270, 2) else: ID_BACKGROUND.SetPosition(6, 2) ID_BACKGROUND.SetSize(31, 16) ID_BACKGROUND.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.0)) ID_BACKGROUND.Show() self.rankDataBackground["ID"].append(ID_BACKGROUND) #NAME_BACKGROUND = ui.MakeSlotBar(self.rankLine[i], 55, 2, 114, 16) NAME_BACKGROUND = ui.Bar("TOP_MOST") NAME_BACKGROUND.SetParent(self.rankLine[i]) if localeInfo.IsARABIC(): NAME_BACKGROUND.SetPosition(145, 2) else: NAME_BACKGROUND.SetPosition(55, 2) NAME_BACKGROUND.SetSize(114, 16) NAME_BACKGROUND.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.0)) NAME_BACKGROUND.Show() self.rankDataBackground["NAME"].append(NAME_BACKGROUND) #MEMBERS_BACKGROUND = ui.MakeSlotBar(self.rankLine[i], 192, 2, 22, 16) MEMBERS_BACKGROUND = ui.Bar("TOP_MOST") MEMBERS_BACKGROUND.SetParent(self.rankLine[i]) if localeInfo.IsARABIC(): MEMBERS_BACKGROUND.SetPosition(92, 2) else: MEMBERS_BACKGROUND.SetPosition(192, 2) MEMBERS_BACKGROUND.SetSize(22, 16) MEMBERS_BACKGROUND.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.0)) MEMBERS_BACKGROUND.Show() self.rankDataBackground["MEMBERS"].append(MEMBERS_BACKGROUND) #TIME_BACKGROUND = ui.MakeSlotBar(self.rankLine[i], 237, 2, 61, 16) TIME_BACKGROUND = ui.Bar("TOP_MOST") TIME_BACKGROUND.SetParent(self.rankLine[i]) if localeInfo.IsARABIC(): TIME_BACKGROUND.SetPosition(6, 2) else: TIME_BACKGROUND.SetPosition(241, 2) TIME_BACKGROUND.SetSize(61, 16) TIME_BACKGROUND.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.0)) TIME_BACKGROUND.Show() self.rankDataBackground["TIME"].append(TIME_BACKGROUND) ID = ui.MakeTextLine(self.rankDataBackground["ID"][i]) NAME = ui.MakeTextLine(self.rankDataBackground["NAME"][i]) MEMBERS = ui.MakeTextLine(self.rankDataBackground["MEMBERS"][i]) TIME = ui.MakeTextLine(self.rankDataBackground["TIME"][i]) self.rankData["ID"].append(ID) self.rankData["NAME"].append(NAME) self.rankData["MEMBERS"].append(MEMBERS) self.rankData["TIME"].append(TIME) #self.AddRank(0, "Staff", "24", "23 minutes") self.AddRank(5, "-", "-", "-", "-") self.scrollBar.SetMiddleBarSize(0.95) self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close))