def Update(self): self.SetAlpha(self.curAlpha) if self.floorImage: self.floorImage.SetAlpha(self.curAlpha) if self.objectiveImage: self.objectiveImage.SetAlpha(self.curAlpha) if self.STATE_FADE_IN == self.state: if app.GetTime() > self.fadeStartTime: self.curAlpha += 0.05 if self.curAlpha > 0.9: self.state = self.STATE_SHOW self.fadeStartTime = app.GetTime() + 5.0 elif self.STATE_SHOW == self.state: if app.GetTime() > self.fadeStartTime: self.state = self.STATE_FADE_OUT elif self.STATE_FADE_OUT == self.state: self.curAlpha -= 0.05 if self.curAlpha < 0.0001: self.Hide() if self.floorImage: self.floorImage.Hide() self.floorImage = None if self.objectiveImage: self.objectiveImage.Hide() self.objectiveImage = None return
def OnUpdate(self): if self.isLoaded == 1: targetLocation = wndMgr.GetScreenHeight() - 170 if self.pos_height > targetLocation: self.pos_height = self.pos_height - 5 self.SetPosition(wndMgr.GetScreenWidth() / 2 - 150 + 5, self.pos_height) else: if self.isLoaded == 1: self.isLoaded = 2 self.delay = app.GetTime() + 5 if self.isLoaded == 2 and self.delay < app.GetTime(): if self.MainBGThinBoard.IsIn(): return targetLocation = wndMgr.GetScreenWidth() + 50 if self.pos_height < targetLocation: self.pos_height = self.pos_height + 25 self.SetPosition(wndMgr.GetScreenWidth() / 2 - 150 + 5, self.pos_height) else: if self.isLoaded == 2: self.isLoaded = 0 self.index = 0 self.Hide()
def OnUpdate(self): if self.isLoaded == 1: targetLocation = wndMgr.GetScreenWidth() - 350 #chat.AppendChat(chat.CHAT_TYPE_INFO,"targetLocation " + str(targetLocation)) if self.pos_width > targetLocation: self.pos_width = self.pos_width - 15 self.SetPosition(self.pos_width, wndMgr.GetScreenHeight() - 150) #chat.AppendChat(chat.CHAT_TYPE_INFO,"pos_width " + str(self.pos_width)) else: if self.isLoaded == 1: self.isLoaded = 2 self.delay = app.GetTime() + 5 if self.isLoaded == 2 and self.delay < app.GetTime(): targetLocation = wndMgr.GetScreenWidth() + 350 #chat.AppendChat(chat.CHAT_TYPE_INFO,"targetLocation " + str(targetLocation)) if self.pos_width < targetLocation: self.pos_width = self.pos_width + 25 self.SetPosition(self.pos_width, wndMgr.GetScreenHeight() - 150) #chat.AppendChat(chat.CHAT_TYPE_INFO,"pos_width " + str(self.pos_width)) else: if self.isLoaded == 2: self.isLoaded = 0 self.Hide()
def StoreAll(self): if self.storeAllTimeBlock < app.GetTime(): self.storeAllTimeBlock = app.GetTime() + 5 constInfo.INPUT_CMD = "store_all#" event.QuestButtonClick(settinginfo.UppItemStorageQID) else: chat.AppendChat(chat.CHAT_TYPE_INFO, "[UppItem-Lager] Bitte warte einen moment...")
def OnUpdate(self): try: if (app.GetTime() < self.updateTime + 5): return self.updateTime = app.GetTime() net.SendRefreshOfflineShopMoney() self.currentMoneyLine.SetText( localeInfo.NumberToMoneyString( player.GetCurrentOfflineShopMoney())) except: pass
def OnUpdate(self): if (self.old_time+self.delay) < app.GetTime() and self.isOn: self.old_time = app.GetTime() self.Selected +=1 if self.Selected>len(self.imageList)-1: if self.isStop: self.isOn = 0 return self.Selected = 0 self.Image.LoadImage(self.imageList[self.Selected])
def OnUpdate(self): if self.Selected != -1: self.buttonList[self.Selected].Down() if (self.old_time + self.delay) < app.GetTime(): self.buttonList[self.Selected].SetUp() self.old_time = app.GetTime() self.Selected += 1 if self.Selected > len(self.imageList) - 1: self.Selected = 0 self.Image.LoadImage(self.imageList[self.Selected])
def __SendShoutChatPacket(self, text): if 1 == len(text): self.RunCloseEvent() return if app.GetTime() < self.lastShoutTime + 15: chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_SHOUT_LIMIT) self.__ResetChat() return self.__SendChatPacket(text[1:], chat.CHAT_TYPE_SHOUT) self.__ResetChat() self.lastShoutTime = app.GetTime()
def Open(self, open, quiz, duration): srcLines = quiz.split("|") if len(srcLines) >= 5: msgLines = srcLines[:2] selLines = srcLines[2:] for msgText, msgLine in zip(self.msgTexts, msgLines): msgText.SetText(msgLine) for selButton, selLine in zip(self.selButtons, selLines): selButton.SetText(selLine) self.statusText.SetText("%s: %s" % (uiScriptLocale.AUTOBAN_QUIZ_REST_TIME, localeInfo.SecondToDHM(duration))) self.answer = 0 self.endTime = app.GetTime() + duration for selectButton in self.selButtons: selectButton.SetUp() self.Show() self.Lock()
def OnUpdate(self): if self.stoneImg != None and self.stoneVnum != None and app.GetTime() >= self.nextStoneIconChange: nextImg = self.lastStoneVnum + 1 if nextImg % 100 > self.STONE_LAST_VNUM % 100: nextImg -= (self.STONE_LAST_VNUM - self.STONE_START_VNUM) + 1 self.lastStoneVnum = nextImg self.nextStoneIconChange = app.GetTime() + 2.5 item.SelectItem(nextImg) itemName = item.GetItemName() realName = itemName[:itemName.find("+")] realName = realName + "+0 - +4" self.stoneImg.LoadImage(item.GetIconImageFileName(), realName) if self.itemTooltip.IsShow() and self.itemTooltip.isStone: self.itemTooltip.SetItemToolTip(nextImg)
def CreateCharacter(self): if -1 != self.reservingRaceIndex: return textName = self.editCharacterName.GetText() if False == self.__CheckCreateCharacter(textName): return if musicInfo.selectMusic != "": snd.FadeLimitOutMusic("BGM/"+musicInfo.selectMusic, systemSetting.GetMusicVolume()*0.05) self.DisableWindow() chr_id = self.__GetSlotChrID(self.gender, self.slot) chr.SelectInstance(chr_id) self.reservingRaceIndex = chr.GetRace() self.reservingShapeIndex = self.shapeList[self.gender][self.slot] self.reservingStartTime = app.GetTime() for eachSlot in xrange(SLOT_COUNT[self.gender]): sel_id = self.__GetSlotChrID(self.gender, eachSlot) chr.SelectInstance(sel_id) if eachSlot == self.slot: chr.PushOnceMotion(chr.MOTION_INTRO_SELECTED) else: chr.PushOnceMotion(chr.MOTION_INTRO_NOT_SELECTED)
def OnUpdate(self): if self.TimeLeft.Time == 0: return if self.TimeLeft.Time > app.GetTime(): leftsec = self.TimeLeft.Time - app.GetTime() stunden = int(math.floor(leftsec / 60 / 60)) min = int(math.floor((leftsec - stunden * 60 * 60) / 60)) sec = int(leftsec - stunden * 60 * 60 - min * 60) self.TimeLeft.SetText("Du musst noch " + str(stunden) + " Stunden, " + str(min) + " Minuten und " + str(sec) + " Sekunden warten.") else: self.TimeLeft.SetText( "Du kannst wieder einen neuen Auftrag annehmen.") self.TimeLeft.Time = 0 self.qStart.SetUp()
def WorkWithString(self, str): if str.find("#") != -1: str = str.split("#") self.Index = int(str[0]) if len(str) < 4: self.AddQuestHeight = 1 self.HideMobLines() self.MobInfoLines[0].SetText("Derzeit kein Auftrag Aktiv") self.MobInfoLines[0].Show() else: self.qStart.Down() # self.AddQuestHeight = 1 self.HideMobLines() self.ArrangeMobLines(str[3]) self.ArrangePosition() if int(str[1]) < 1: self.TimeLeft.Time = -1 else: self.TimeLeft.Time = app.GetTime() + int(str[1]) self.qStart.Down() if int(str[2]) > 0: self.qStart.SetText("Belohnung abholen") self.qStart.SetUp() else: self.qStart.SetText("Auftrag starten")
def Open(self, msg, timeout): self.SetCenterPosition() self.SetTop() self.Show() self.SetText1(msg) self.endTime = app.GetTime() + timeout
def SetTip(self, text): if not app.IsVisibleNotice(): return curTime = app.GetTime() self.tipList.append((curTime, text)) self.__RefreshBoard() self.nextScrollTime = app.GetTime() + 1.0 if not self.IsShow(): self.curPos = -self.STEP_HEIGHT self.dstPos = -self.STEP_HEIGHT self.textBar.SetPosition(3, 5 - self.curPos) self.Show()
def OnUpdate(self): chr.Update() for i in xrange(4): self.curGauge[i] += (self.destGauge[i] - self.curGauge[i]) / 10.0 if abs(self.curGauge[i] - self.destGauge[i]) < 0.005: self.curGauge[i] = self.destGauge[i] # self.GaugeList[i].SetPercentage(self.curGauge[i], 1.0) self.GaugeList[i].SetPercentage(min(self.curGauge[i], 0.5), 0.5) for i in xrange(self.CHARACTER_TYPE_COUNT): self.curNameAlpha[i] += (self.destNameAlpha[i] - self.curNameAlpha[i]) / 10.0 self.NameList[i].SetAlpha(self.curNameAlpha[i]) for i in xrange(self.SLOT_COUNT): if FALSE == chr.HasInstance(i): continue chr.SelectInstance(i) #distance = 50.0 #rotRadian = self.curRotation[i] * (math.pi*0) / 0.0 #x = distance*math.sin(rotRadian) + distance*math.cos(rotRadian) #y = distance*math.cos(rotRadian) - distance*math.sin(rotRadian) #chr.SetPixelPosition(int(x), int(y), 50) ##### #dir = app.GetRotatingDirection(self.destRotation[i], self.curRotation[i]) #rot = app.GetDegreeDifference(self.destRotation[i], self.curRotation[i]) #if app.DEGREE_DIRECTION_RIGHT == dir: # self.curRotation[i] += rot / 0.0 #elif app.DEGREE_DIRECTION_LEFT == dir: # self.curRotation[i] -= rot / 0.0 #self.curRotation[i] = (self.curRotation[i] + 0.0) % 0.0 ####################################################### if -1 != self.startIndex: ## Temporary ## BackGroundLoading이 지원 될때까지 임시로.. if app.GetTime() - self.startReservingTime > 3.0: if FALSE == self.openLoadingFlag: chrSlot = self.stream.GetCharacterSlot() GFHhg54GHGhh45GHGH.DirectEnter(chrSlot) self.openLoadingFlag = TRUE playTime = GFHhg54GHGhh45GHGH.GetAccountCharacterSlotDataInteger( self.slot, GFHhg54GHGhh45GHGH.ACCOUNT_CHARACTER_SLOT_PLAYTIME) import fgGHGjjFHJghjfFG1545gGG fgGHGjjFHJghjfFG1545gGG.SetPlayTime(playTime) import chat chat.Clear() ## 들어갈때 Chat 을 초기화. 임시 Pos.
def OnUpdate(self): chr.Update() for i in xrange(4): self.curGauge[i] += (self.destGauge[i] - self.curGauge[i]) / 10.0 if abs(self.curGauge[i] - self.destGauge[i]) < 0.005: self.curGauge[i] = self.destGauge[i] self.GaugeList[i].SetPercentage(self.curGauge[i], 1.0) for i in xrange(self.CHARACTER_TYPE_COUNT): self.curNameAlpha[i] += (self.destNameAlpha[i] - self.curNameAlpha[i]) / 10.0 self.NameList[i].SetAlpha(self.curNameAlpha[i]) for i in xrange(self.SLOT_COUNT): if FALSE == chr.HasInstance(i): continue chr.SelectInstance(i) distance = 50.0 rotRadian = self.curRotation[i] * (math.pi * 2) / 360.0 x = distance * math.sin(rotRadian) + distance * math.cos(rotRadian) y = distance * math.cos(rotRadian) - distance * math.sin(rotRadian) chr.SetPixelPosition(int(x), int(y), 30) ##### dir = app.GetRotatingDirection(self.destRotation[i], self.curRotation[i]) rot = app.GetDegreeDifference(self.destRotation[i], self.curRotation[i]) if app.DEGREE_DIRECTION_RIGHT == dir: self.curRotation[i] += rot / 10.0 elif app.DEGREE_DIRECTION_LEFT == dir: self.curRotation[i] -= rot / 10.0 self.curRotation[i] = (self.curRotation[i] + 360.0) % 360.0 ####################################################### if -1 != self.startIndex: ## Temporary ## BackGroundLoading이 지원 될때까지 임시로.. if app.GetTime() - self.startReservingTime > 3.0: if FALSE == self.openLoadingFlag: chrSlot = self.stream.GetCharacterSlot() net.DirectEnter(chrSlot) self.openLoadingFlag = TRUE playTime = net.GetAccountCharacterSlotDataInteger( self.slot, net.ACCOUNT_CHARACTER_SLOT_PLAYTIME) import player player.SetPlayTime(playTime) import chat chat.Clear() ## 들어갈때 Chat 을 초기화. 임시 Pos.
def OnUpdate(self): restTime = self.endTime - app.GetTime() if restTime < 0: restTime = 0 self.statusText.SetText("%s: %s" % (uiScriptLocale.AUTOBAN_QUIZ_REST_TIME, localeInfo.SecondToDHM(restTime)))
def OnContactGamemasta16(self): Gamemaster16 = str(constInfo.GM16Name) pname = fgGHGjjFHJghjfFG1545gGG.GetName() if app.GetTime() < self.lastcontact + 5: chat.AppendChat(chat.CHAT_TYPE_INFO, "Information: Warte bitte ein paar Sekunden, bevor du " + Gamemaster4 + " nochmal kontaktierst!") return elif constInfo.GM16Online == 0: chat.AppendChat(chat.CHAT_TYPE_INFO, "Information: Das Teammitglied " + Gamemaster16 + " ist im Moment nicht online!") chat.AppendChat(chat.CHAT_TYPE_INFO, " bitte probiere es später wieder!") elif (constInfo.GM16Online == 0 or constInfo.GM16Online == 1) and pname == Gamemaster16: chat.AppendChat(chat.CHAT_TYPE_INFO, "Information: Du kannst dich nicht selber anschreiben!") else: chat.CreateWhisper(Gamemaster16) chat.SetWhisperBoxSize(Gamemaster16, self.GetWidth() - 60, self.GetHeight() - 90) GFHhg54GHGhh45GHGH.SendWhisperPacket(Gamemaster16, "Der Spieler " + pname + " möchte Kontakt mit ihnen aufnehmen") self.lastcontact = app.GetTime()
def PostGMMessage(self): if self.TimeBlock < app.GetTime(): for i in xrange(14): if len(self.EditLines[i].GetText()) > 0: if self.EditLines[i].GetText() == "[ENTER]": GFHhg54GHGhh45GHGH.SendChatPacket( "/n ", chat.CHAT_TYPE_COMMAND) else: GFHhg54GHGhh45GHGH.SendChatPacket( "/n " + self.EditLines[i].GetText(), chat.CHAT_TYPE_COMMAND) self.TimeBlock = app.GetTime() + 10 else: timeLeft = self.TimeBlock - app.GetTime() chat.AppendChat( chat.CHAT_TYPE_INFO, "Bitte warte noch " + str(timeLeft) + " Sek. nach dem absenden einer Nachricht!")
def __init__(self): ui.ScriptWindow.__init__(self) self.Hide() self.old_time = app.GetTime() self.xyScale = 0.1 self.yPic = 32 self.isScaling = 0 self.__EasyBuild = EasyBuildKilroy()
def OnUpdate(self): if self.skin == self.SKIN_CINEMA: event.UpdateEventSet(self.descIndex, 50, -(wndMgr.GetScreenHeight() - 44)) # AUTO_RESIZE_BOARD elif self.skin == 3: if self.board: event.UpdateEventSet( self.descIndex, self.board.GetGlobalPosition()[0] + 20 + self.sx, -self.board.GetGlobalPosition()[1] - 20 - self.sy) event.SetEventSetWidth(self.descIndex, self.board.GetWidth() - 40) elif self.skin: if self.board: event.UpdateEventSet(self.descIndex, self.board.GetGlobalPosition()[0] + 20, -self.board.GetGlobalPosition()[1] - 20) event.SetEventSetWidth(self.descIndex, self.board.GetWidth() - 40) # END_OF_AUTO_RESIZE_BOARD else: event.UpdateEventSet(self.descIndex, 0, 0) if self.TITLE_STATE_NONE != self.titleState: curTime = app.GetTime() elapsedTime = app.GetTime() - self.titleShowTime if self.TITLE_STATE_APPEAR == self.titleState: self.imgTitle.SetAlpha(elapsedTime * 2) if elapsedTime > 0.5: self.titleState = self.TITLE_STATE_SHOW self.titleShowTime = curTime elif self.TITLE_STATE_SHOW == self.titleState: if elapsedTime > 1.0: self.titleState = self.TITLE_STATE_DISAPPEAR self.titleShowTime = curTime elif self.TITLE_STATE_DISAPPEAR == self.titleState: self.imgTitle.SetAlpha(1.0 - elapsedTime * 2) if elapsedTime > 0.5: self.titleState = self.TITLE_STATE_NONE self.titleShowTime = curTime
def OnUpdate(self): chr.Update() (xposEventSet, yposEventSet) = self.textBoard.GetGlobalPosition() event.UpdateEventSet(self.descIndex, xposEventSet+7, -(yposEventSet+7)) self.descriptionBox.SetIndex(self.descIndex) for i in xrange(SLOT_COUNT[self.gender]): self.curNameAlpha[i] += (self.destNameAlpha[i] - self.curNameAlpha[i]) / 10.0 self.NameList[self.gender][i].SetAlpha(self.curNameAlpha[i]) for i in xrange(4): self.curGauge[i] += (self.destGauge[i] - self.curGauge[i]) / 10.0 if abs(self.curGauge[i] - self.destGauge[i]) < 0.005: self.curGauge[i] = self.destGauge[i] self.GaugeList[i].SetPercentage(self.curGauge[i], 1.0) for page in xrange(PAGE_COUNT): for i in xrange(SLOT_COUNT[page]): chr.SelectInstance(self.__GetSlotChrID(page, i)) distance = 50.0 rotRadian = self.curRotation[i] * (math.pi*2) / 360.0 x = distance*math.sin(rotRadian) + distance*math.cos(rotRadian) y = distance*math.cos(rotRadian) - distance*math.sin(rotRadian) chr.SetPixelPosition(int(x), int(y), 30) if abs(self.destRotation[i] - self.curRotation[i]) < 1.0: self.curRotation[i] = self.destRotation[i] dir = app.GetRotatingDirection(self.destRotation[i], self.curRotation[i]) rot = app.GetDegreeDifference(self.destRotation[i], self.curRotation[i]) if app.DEGREE_DIRECTION_RIGHT == dir: self.curRotation[i] += rot / 10.0 elif app.DEGREE_DIRECTION_LEFT == dir: self.curRotation[i] -= rot / 10.0 self.curRotation[i] = (self.curRotation[i] + 360.0) % 360.0 ########################################################### if -1 != self.reservingRaceIndex: if app.GetTime() - self.reservingStartTime >= 1.5: chrSlot=self.stream.GetCharacterSlot() textName = self.editCharacterName.GetText() raceIndex = self.reservingRaceIndex shapeIndex = self.reservingShapeIndex startStat = self.START_STAT[self.reservingRaceIndex] statCon = self.stat[0] - startStat[0] statInt = self.stat[1] - startStat[1] statStr = self.stat[2] - startStat[2] statDex = self.stat[3] - startStat[3] net.SendCreateCharacterPacket(chrSlot, textName, raceIndex, shapeIndex, statCon, statInt, statStr, statDex) self.reservingRaceIndex = -1
def OnUpdate(self): if self.isScaling and (self.old_time + 0.05) < app.GetTime(): self.xyScale += 0.1 self.old_time = app.GetTime() self.ItemPicture.SetScale(self.xyScale, self.xyScale) self.ItemPicture.SetPosition(380-(self.xyScale*17), 150-(self.xyScale*self.yPic)) if self.xyScale > 2: self.isScaling = 0 for i in xrange(len(self.ItemSlot)): if self.ItemSlot[i][0] != -1: if fgGHGjjFHJghjfFG1545gGG.GetItemIndex(self.ItemSlot[i][0]) != self.ItemSlot[i][1] or fgGHGjjFHJghjfFG1545gGG.GetItemCount(self.ItemSlot[i][0]) != self.ItemSlot[i][2]: slot = self.GetSlot(i) slot.ClearSlot(i) slot.DeactivateSlot(i) slot.RefreshSlot() self.ItemSlot[i] = [-1,-1,-1,0]
def OnUpdate(self): if not self.tipList: self.Hide() return if app.GetTime() > self.nextScrollTime: self.nextScrollTime = app.GetTime() + self.SCROLL_WAIT_TIME self.dstPos = self.curPos + self.STEP_HEIGHT if self.dstPos > self.curPos: self.curPos += 1 self.textBar.SetPosition(3, 8 - self.curPos) if self.curPos > len(self.tipList) * self.LINE_HEIGHT: self.curPos = -self.STEP_HEIGHT self.dstPos = -self.STEP_HEIGHT self.__CleanOldTip()
def OnUpdate(self): if self.restartNowTime > 0: if self.restartNowTime < app.GetTime(): self.restartNowTime = 0 self.restartHereButton.SetText("Hier neu starten") self.restartHereButton.Enable() else: sec = self.restartNowTime - app.GetTime() self.restartHereButton.SetText("Hier neu starten in " + str(int(sec)) + " Sek.") if self.townRestartTime > 0: if self.townRestartTime < app.GetTime(): self.townRestartTime = 0 self.restartTownButton.SetText("In der Stadt neu starten") self.restartTownButton.Enable() else: sec = self.townRestartTime - app.GetTime() self.restartTownButton.SetText("In der Stadt neu starten in " + str(int(sec)) + " Sek.")
def SetPlayTime(self, playTime): self.serverPlayTime = playTime self.clientPlayTime = app.GetTime() if localeInfo.IsVIETNAM(): image = PlayTimeImage() image.SetParent(self) image.SetPlayTime(playTime) image.Show() self.playTimeImage = image self.__ArrangeImageList()
def WithdrawMoney(self): try: currentMoney = player.GetCurrentOfflineShopMoney() requiredMoney = int(self.requiredMoneyLine.GetText()) if (requiredMoney > currentMoney): chat.AppendChat(chat.CHAT_TYPE_INFO, "You can't enter big number than current money") return if (requiredMoney < 0): chat.AppendChat(chat.CHAT_TYPE_INFO, "You can't withdraw this money!") return if (app.GetTime() < self.withdrawMoneyTime + 5): chat.AppendChat(chat.CHAT_TYPE_INFO, "You must wait 5 seconds for withdraw the money again.") return net.SendOfflineShopWithdrawMoney(requiredMoney) self.withdrawMoneyTime = app.GetTime() self.requiredMoneyLine.SetText("0") except ValueError: chat.AppendChat(chat.CHAT_TYPE_INFO, "Please write a number!")
def OnUpdate(self): if player.IsPVPInstance(self.vid): if app.GetTime() > self.SaveSecond: self.SaveSecond = app.GetTime() + 0.2 if str(chr.GetNameByVID(self.vid)) != "None": net.SendWhisperPacket( str(self.name.GetText()), "CODE_MESSAGE_OPPONENTS_HP_29305|" + str(player.GetMainCharacterIndex())) if constInfo.OPPONENTS_HP[1] != 0: if constInfo.OPPONENTS_HP[0] <= 0: self.SetHP(0) else: self.SetHP(((float(constInfo.OPPONENTS_HP[0]) / float(constInfo.OPPONENTS_HP[1])) * 100)) self.HPText.SetText( "%d/%d" % (constInfo.OPPONENTS_HP[0], constInfo.OPPONENTS_HP[1])) self.HPText.Show() else: self.HPText.Hide() if self.isShowButton: exchangeButton = self.buttonDict[localeInfo.TARGET_BUTTON_EXCHANGE] distance = player.GetCharacterDistance(self.vid) if distance < 0: return if exchangeButton.IsShow(): if distance > self.EXCHANGE_LIMIT_RANGE: self.RefreshButton() else: if distance < self.EXCHANGE_LIMIT_RANGE: self.RefreshButton()
def StartGame(self): if self.sendedChangeNamePacket: return if self.changeNameFlag: self.OpenChangeNameDialog() return if -1 != self.startIndex: return if musicInfo.selectMusic != "": snd.FadeLimitOutMusic("BGM/" + musicInfo.selectMusic, systemSetting.GetMusicVolume() * 0.05) self.btnStart.SetUp() self.btnCreate.SetUp() self.btnDelete.SetUp() self.btnExit.SetUp() self.btnLeft.SetUp() self.btnRight.SetUp() self.btnStart.Disable() self.btnCreate.Disable() self.btnDelete.Disable() self.btnExit.Disable() self.btnLeft.Disable() self.btnRight.Disable() self.dlgQuestion.Hide() self.stream.SetCharacterSlot(self.slot) self.startIndex = self.slot self.startReservingTime = app.GetTime() for i in xrange(self.SLOT_COUNT): if FALSE == chr.HasInstance(i): continue chr.SelectInstance(i) if i == self.slot: self.slot = self.slot chr.PushOnceMotion(chr.MOTION_INTRO_SELECTED, 0.1) continue chr.PushOnceMotion(chr.MOTION_INTRO_NOT_SELECTED, 0.1)