Your "Performance-boost" is still 7 Seconds slower than others
Beiträge von CYN3
-
-
Habe heute wieder einen 7Tage Auftrag beendet und hätte somit einen Slot frei.
-
Ich rieche da etwas... Hat da etwa wieder jemand etwas angebrannt... Ach, den Geruch kenne ich, Kebab-Code.
NoFront -
Hi,
Im searching for a system, where i can extend the max alignment 0->100.000
when someone reach for example the 30.000 he got a new title and got +3% Strong against monsters.
Anyone have this extended alignment system up to 100k rangpoint?
Cheers,
Envy
ok?
Bitte melden Sie sich an, um diesen Link zu sehen. -
Hab mir das Waffenkostüm runtergeladen und versuch es gerade selber einzubauen
Hab aber mein Compilen vom Server nen fehler bei char item benütze FliegeFiles 2
Direkt in der bool zeile zeigt er den fehler an
Code- /// ÇöÀç ij¸¯ÅÍÀÇ »óŸ¦ ¹ÙÅÁÀ¸·Î ÁÖ¾îÁø itemÀ» Âø¿ëÇÒ ¼ö ÀÖ´Â Áö È®ÀÎÇÏ°í, ºÒ°¡´É ÇÏ´Ù¸é ij¸¯ÅÍ¿¡°Ô ÀÌÀ¯¸¦ ¾Ë·ÁÁÖ´Â ÇÔ¼ö
- bool CHARACTER::CanEquipNow(const LPITEM item, const TItemPos& srcCell, const TItemPos& destCell) /*const*/
- {
- const TItemTable* itemTable = item->GetProto();
- BYTE itemType = item->GetType();
- BYTE itemSubType = item->GetSubType();
- switch (GetJob())
- {
- case JOB_WARRIOR:
- if (item->GetAntiFlag() & ITEM_ANTIFLAG_WARRIOR)
- return false;
- break;
- case JOB_ASSASSIN:
- if (item->GetAntiFlag() & ITEM_ANTIFLAG_ASSASSIN)
- return false;
- break;
- case JOB_SHAMAN:
- if (item->GetAntiFlag() & ITEM_ANTIFLAG_SHAMAN)
- return false;
- break;
- case JOB_SURA:
- if (item->GetAntiFlag() & ITEM_ANTIFLAG_SURA)
- return false;
- break;
- }
- for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i)
- {
- long limit = itemTable->aLimits[i].lValue;
- switch (itemTable->aLimits[i].bType)
- {
- case LIMIT_LEVEL:
- if (GetLevel() < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("·¹º§ÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- case LIMIT_STR:
- if (GetPoint(POINT_ST) < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("±Ù·ÂÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- case LIMIT_INT:
- if (GetPoint(POINT_IQ) < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Áö´ÉÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- case LIMIT_DEX:
- if (GetPoint(POINT_DX) < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¹ÎøÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- case LIMIT_CON:
- if (GetPoint(POINT_HT) < limit)
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ü·ÂÀÌ ³·¾Æ Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- break;
- }
- }
- if (item->GetWearFlag() & WEARABLE_UNIQUE)
- {
- if ((GetWear(WEAR_UNIQUE1) && GetWear(WEAR_UNIQUE1)->IsSameSpecialGroup(item)) ||
- (GetWear(WEAR_UNIQUE2) && GetWear(WEAR_UNIQUE2)->IsSameSpecialGroup(item)))
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°°Àº Á¾·ùÀÇ À¯´ÏÅ© ¾ÆÀÌÅÛ µÎ °³¸¦ µ¿½Ã¿¡ ÀåÂøÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- if (marriage::CManager::instance().IsMarriageUniqueItem(item->GetVnum()) &&
- !marriage::CManager::instance().IsMarried(GetPlayerID()))
- {
- ChatPacket(CHAT_TYPE_INFO, LC_TEXT("°áÈ¥ÇÏÁö ¾ÊÀº »óÅ¿¡¼ ¿¹¹°À» Âø¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
- return false;
- }
- }
- return true;
- }
redefinition of CanEquipNow <- jetzt müsste man nur englisch können
-
Da heute schon ein paar Umlautthemen kamen, dachte ich mir, ich mache auch mal eins
Nutze Martyfiles.
In der locale_string sieht es aktuell so aus:
Bitte melden Sie sich an, um diesen Link zu sehen.
Wenn ich Umlaute eingebe, werden diese automatisch zu U,O und A.
Kodierung ist auf Koreanisch-EUR-KR.
Wenn ich die auf z.B. ANSI stelle, gehen die koreanischen Zeichen kaputt.
Hätte aber gerne Umlaute, weil ue, ae und oe scheiße aussieht.
Jemand eine Lösung?
Bitte melden Sie sich an, um diesen Link zu sehen.
-
1011 15:36:00302 :: CANNOT_FIND_PACK_FILE [sound/effect/etc/dropitem/dropitem.mss]
1011 15:36:07238 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/item/weapon/21900.gr2
1011 15:36:07239 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/item/weapon/21901.gr2
1011 15:36:07239 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/item/weapon/21902.gr2
1011 15:36:07239 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/item/weapon/21903.gr2
1011 15:36:07239 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/item/weapon/21904.gr2
1011 15:36:07239 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/item/weapon/21905.gr2
1011 15:36:07240 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/item/weapon/21906.gr2
1011 15:36:07324 :: 한국무쌍버젼(#2 ) cannot find icon file. setting to default.
1011 15:36:07332 :: 광륜팔괘패+0(#13180) cannot find icon file. setting to default.
1011 15:36:07332 :: 광륜팔괘패+1(#13181) cannot find icon file. setting to default.
1011 15:36:07332 :: 광륜팔괘패+2(#13182) cannot find icon file. setting to default.
1011 15:36:07333 :: 광륜팔괘패+3(#13183) cannot find icon file. setting to default.
1011 15:36:07333 :: 광륜팔괘패+4(#13184) cannot find icon file. setting to default.
1011 15:36:07333 :: 광륜팔괘패+5(#13185) cannot find icon file. setting to default.
1011 15:36:07333 :: 광륜팔괘패+6(#13186) cannot find icon file. setting to default.
1011 15:36:07335 :: 광륜팔괘패+7(#13187) cannot find icon file. setting to default.
1011 15:36:07335 :: 광륜팔괘패+8(#13188) cannot find icon file. setting to default.
1011 15:36:07335 :: 광륜팔괘패+9(#13189) cannot find icon file. setting to default.
1011 15:36:07344 :: WA_9+1(#21120) cannot find icon file. setting to default.
1011 15:36:07344 :: WA_9+2(#21121) cannot find icon file. setting to default.
1011 15:36:07344 :: WA_9+3(#21122) cannot find icon file. setting to default.
1011 15:36:07344 :: WA_9+4(#21123) cannot find icon file. setting to default.
1011 15:36:07345 :: WA_9+5(#21124) cannot find icon file. setting to default.
1011 15:36:07345 :: WA_9+6(#21125) cannot find icon file. setting to default.
1011 15:36:07345 :: WA_9+7(#21126) cannot find icon file. setting to default.
1011 15:36:07346 :: WA_9+8(#21127) cannot find icon file. setting to default.
1011 15:36:07346 :: WA_9+9(#21128) cannot find icon file. setting to default.
1011 15:36:07347 :: 위치기억부(#22020) cannot find icon file. setting to default.
1011 15:36:07347 :: 이동부(#22030) cannot find icon file. setting to default.
1011 15:36:07347 :: 생명부(#22040) cannot find icon file. setting to default.
1011 15:36:07347 :: 환생부(#22050) cannot find icon file. setting to default.
1011 15:36:07348 :: 민물새우(#27798) cannot find icon file. setting to default.
1011 15:36:07349 :: 가리비(#29001) cannot find icon file. setting to default.
1011 15:36:07349 :: 청가리비(#29002) cannot find icon file. setting to default.
1011 15:36:07350 :: 황가리비(#29003) cannot find icon file. setting to default.
1011 15:36:07351 :: 홍가리비(#29004) cannot find icon file. setting to default.
1011 15:36:07351 :: 녹가리비(#29005) cannot find icon file. setting to default.
1011 15:36:07351 :: 황주석(#29006) cannot find icon file. setting to default.
1011 15:36:07351 :: 청주석(#29007) cannot find icon file. setting to default.
1011 15:36:07352 :: 청신수(#29008) cannot find icon file. setting to default.
1011 15:36:07354 :: 황신수(#29009) cannot find icon file. setting to default.
1011 15:36:07354 :: 홍신수(#29010) cannot find icon file. setting to default.
1011 15:36:07354 :: 녹신수(#29011) cannot find icon file. setting to default.
1011 15:36:07355 :: 연청신수(#29012) cannot find icon file. setting to default.
1011 15:36:07355 :: 연황신수(#29013) cannot find icon file. setting to default.
1011 15:36:07355 :: 연홍신수(#29014) cannot find icon file. setting to default.
1011 15:36:07355 :: 연녹신수(#29015) cannot find icon file. setting to default.
1011 15:36:07355 :: 웅귀의 황금어금니(#30103) cannot find icon file. setting to default.
1011 15:36:07356 :: 사막의 거미줄(#30104) cannot find icon file. setting to default.
1011 15:36:07357 :: 톡쏘는 전갈꼬리(#30105) cannot find icon file. setting to default.
1011 15:36:07357 :: 유랑 어머니 약(#30106) cannot find icon file. setting to default.
1011 15:36:07357 :: 웅귀의 송곳니(#30107) cannot find icon file. setting to default.
1011 15:36:07357 :: 도자기착색용유약(#30108) cannot find icon file. setting to default.
1011 15:36:07358 :: 사막의 거미줄(#30109) cannot find icon file. setting to default.
1011 15:36:07358 :: 후안소의 편지(#30110) cannot find icon file. setting to default.
1011 15:36:07358 :: 톡쏘는 전갈꼬리(#30111) cannot find icon file. setting to default.
1011 15:36:07358 :: 장어(#30112) cannot find icon file. setting to default.
1011 15:36:07358 :: 밀교 경전(#30113) cannot find icon file. setting to default.
1011 15:36:07359 :: 괴질 치료제(#30115) cannot find icon file. setting to default.
1011 15:36:07359 :: 행상인의 편지(#30117) cannot find icon file. setting to default.
1011 15:36:07359 :: 사귀의 보석함(#30118) cannot find icon file. setting to default.
1011 15:36:07363 :: VIP-Feature(#38001) cannot find icon file. setting to default.
1011 15:36:07363 :: Tombola_ticket_today(#38002) cannot find icon file. setting to default.
1011 15:36:07363 :: Tombola_ticket_tomorrow(#38003) cannot find icon file. setting to default.
1011 15:36:07365 :: Tombola_reroll(#38004) cannot find icon file. setting to default.
1011 15:36:07365 :: TombolaPP_spin(#38005) cannot find icon file. setting to default.
1011 15:36:07365 :: Momo-Reroll(#38006) cannot find icon file. setting to default.
1011 15:36:07365 :: Char-Transfer(#38012) cannot find icon file. setting to default.
1011 15:36:07366 :: Char-Rename(#38013) cannot find icon file. setting to default.
1011 15:36:07366 :: Auto-Hunt(#38014) cannot find icon file. setting to default.
1011 15:36:07366 :: 소리나는 방울(#40005) cannot find icon file. setting to default.
1011 15:36:07367 :: 오랑캐 수송서(#40006) cannot find icon file. setting to default.
1011 15:36:07367 :: 오랑캐 보스 편지(#40007) cannot find icon file. setting to default.
1011 15:36:07367 :: 빈 무기 코스튬(#41000) cannot find icon file. setting to default.
1011 15:36:07371 :: 승마수련서(#50062) cannot find icon file. setting to default.
1011 15:36:07372 :: 석창포액(#50805) cannot find icon file. setting to default.
1011 15:36:07373 :: 영지버섯액(#50806) cannot find icon file. setting to default.
1011 15:36:07374 :: 만병초액(#50807) cannot find icon file. setting to default.
1011 15:36:07374 :: 산뽕나무액(#50808) cannot find icon file. setting to default.
1011 15:36:07374 :: 민들레액(#50809) cannot find icon file. setting to default.
1011 15:36:07374 :: 홍화씨액(#50810) cannot find icon file. setting to default.
1011 15:36:07375 :: 대추액(#50811) cannot find icon file. setting to default.
1011 15:36:07375 :: 삼지구엽초액(#50812) cannot find icon file. setting to default.
1011 15:36:07375 :: 빈약병(#50901) cannot find icon file. setting to default.
1011 15:36:07376 :: 활심액 제조법(#50905) cannot find icon file. setting to default.
1011 15:36:07376 :: 피독수 제조법(#50906) cannot find icon file. setting to default.
1011 15:36:07376 :: 보환수 제조법(#50907) cannot find icon file. setting to default.
1011 15:36:07376 :: 영보수 제조법(#50908) cannot find icon file. setting to default.
1011 15:36:07377 :: 진피독 제조법(#50909) cannot find icon file. setting to default.
1011 15:36:07377 :: 활심액 제조법(#50910) cannot find icon file. setting to default.
1011 15:36:07378 :: 불경(#70103) cannot find icon file. setting to default.
1011 15:36:07379 :: 동료와 회포(#71047) cannot find icon file. setting to default.
1011 15:36:07380 :: 전광판보따리(#71091) cannot find icon file. setting to default.
1011 15:36:07380 :: 경험의반지(#72303) cannot find icon file. setting to default.
1011 15:36:07381 :: 축복의 구슬(#72304) cannot find icon file. setting to default.
1011 15:36:07381 :: 야공의 비전서(#72309) cannot find icon file. setting to default.
1011 15:36:07381 :: 용신의 환(#72311) cannot find icon file. setting to default.
1011 15:36:07381 :: 용신의 공격(#72312) cannot find icon file. setting to default.
1011 15:36:07382 :: 용신의 방어(#72313) cannot find icon file. setting to default.
1011 15:36:07384 :: 용신의 축복서(#72314) cannot find icon file. setting to default.
1011 15:36:07386 :: 철각인(유료)(#79605) cannot find icon file. setting to default.
1011 15:36:07386 :: 돈주머니(#80001) cannot find icon file. setting to default.
1011 15:36:07386 :: 백지(#80002) cannot find icon file. setting to default.
1011 15:36:07488 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/assassin/seomgwang_01.sub
1011 15:36:07488 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/assassin/seomgwang_02.sub
1011 15:36:07489 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/assassin/seomgwang_03.sub
1011 15:36:07489 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/assassin/seomjeon_01.sub
1011 15:36:07490 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/assassin/seomjeon_02.sub
1011 15:36:07490 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/assassin/seomjeon_03.sub
1011 15:36:07490 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/warrior/noegeom_01.sub
1011 15:36:07490 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/warrior/noegeom_02.sub
1011 15:36:07490 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/warrior/noegeom_03.sub
1011 15:36:07490 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/warrior/gihyeol_01.sub
1011 15:36:07490 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/warrior/gihyeol_02.sub
1011 15:36:07491 :: CResourceManager::GetResourcePointer: File not exist d:/ymir work/ui/skill/warrior/gihyeol_03.sub
1011 15:36:07534 ::
networkModule.py(line:208) SetSelectCharacterPhase
system.py(line:131) __pack_import
system.py(line:110) _process_result
introSelect.py(line:23) <module>
system.py(line:131) __pack_import
system.py(line:110) _process_result
uiAffectShower.py(line:8) <module>
system.py(line:131) __pack_import
networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (uiToolTip.py, line 1890)
1011 15:36:07535 :: ============================================================================================================
1011 15:36:07536 :: Abort!!!!
expected an indented block
liest du überhaupt die Fehlermeldung durch? Hast bei den tabs verkackt
sag ich doch
Edit: Er hätte auch einfach das [i] hinzufügen können
Bitte melden Sie sich an, um dieses Bild zu sehen. -
Sind zu 99,9% fehlende Tabs
-
In welcher Zeile ändere ich das der Text mittig ist?
-
Info: Ihr musst für die Button in der Tooltip das "Emoji in textline" System von xP3NG3R einbauen. ( Der link dazu ist mit dabei )
Emoji in Textline: Bitte melden Sie sich an, um diesen Link zu sehen.Sell with CTRL + L-Click:
Bitte melden Sie sich an, um dieses Bild zu sehen.
Trade with CTRL + R-Click ( by ProfEnte ) :
Bitte melden Sie sich an, um dieses Bild zu sehen.
-
Das Trade ding kannste direkt rausnehmen
Bitte melden Sie sich an, um diesen Link zu sehen.
Wurde entfernt, wusste das die Funktion "def GetExchangeEmptyItemPos(self, itemHeight):" von Ente ist
-
pc.acce_open_combine()
pc.acce_open_absorb()
-
Update:
Da die erste Version Probleme hatte mit nachgeschobenen Nachrichten, habe ich die Standard-Funktion einfach vom Design her angepasst.
Für alle die Version 1 drin haben folgendes ändern:Python- delete in uiTip.py:
- class MissionBoard(ui.Bar):
- [...]
- Replace in uitip.py:
- class TipBoard(ui.Bar):
- with:
- class TipBoard(ui.Bar):
- SCROLL_WAIT_TIME = 3.0
- TIP_DURATION = 5.0
- FONT_HEIGHT = 15
- TEXT_POS_Y = 10
- LINE_HEIGHT = FONT_HEIGHT + 5
- STEP_HEIGHT = LINE_HEIGHT + 5
- LONG_TEXT_START_X = 300
- SCREEN_WIDTH = wndMgr.GetScreenWidth()
- def __init__(self):
- ui.Bar.__init__(self)
- self.AddFlag("not_pick")
- self.tipList = []
- self.curPos = 0
- self.dstPos = 0
- self.nextScrollTime = 0
- self.width = self.SCREEN_WIDTH
- self.SetPosition(0, 160)
- self.SetSize(self.SCREEN_WIDTH, 35)
- self.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.5))
- self.SetWindowHorizontalAlignCenter()
- self.__CreateTextBar()
- def __del__(self):
- ui.Bar.__del__(self)
- def __CreateTextBar(self):
- x, y = self.GetGlobalPosition()
- self.textBar = BigTextBar(self.SCREEN_WIDTH*2, 300, self.FONT_HEIGHT)
- self.textBar.SetParent(self)
- self.textBar.SetPosition(6, 8)
- self.textBar.SetTextColor(242, 231, 193)
- self.textBar.SetClipRect(0, y, self.SCREEN_WIDTH, y+8+self.STEP_HEIGHT)
- self.textBar.Show()
- def __CleanOldTip(self):
- leaveList = []
- for tip in self.tipList:
- madeTime = tip[0]
- if app.GetTime() - madeTime > self.TIP_DURATION:
- pass
- else:
- leaveList.append(tip)
- self.tipList = leaveList
- if not leaveList:
- self.textBar.ClearBar()
- self.Hide()
- return
- self.__RefreshBoard()
- def __RefreshBoard(self):
- self.textBar.ClearBar()
- index = 0
- for tip in self.tipList:
- text = tip[1]
- if text:
- (text_width, text_height) = self.textBar.GetTextExtent(text)
- if text_width>self.SCREEN_WIDTH:
- self.textBar.TextOut(0, index*self.STEP_HEIGHT, text)
- else:
- self.textBar.TextOut((wndMgr.GetScreenWidth()-text_width)/2, index*self.STEP_HEIGHT, text)
- index += 1
- 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, self.TEXT_POS_Y - self.curPos)
- self.Show()
- 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, self.TEXT_POS_Y - self.curPos)
- if self.curPos > len(self.tipList)*self.STEP_HEIGHT:
- self.curPos = -self.STEP_HEIGHT
- self.dstPos = -self.STEP_HEIGHT
- self.__CleanOldTip()
- Replace in game.py:
- def BINARY_SetTipMessage(self, message):
- with:
- def BINARY_SetTipMessage(self, message):
- self.interface.tipBoard.SetTip(message)
- Replace in Interfacemodule.py:
- def __MakeTipBoard(self):
- with:
- def __MakeTipBoard(self):
- self.tipBoard = uiTip.TipBoard()
- self.tipBoard.Hide()
- self.bigBoard = uiTip.BigBoard()
- self.bigBoard.Hide()
-
Sehr angenehmer Typ, hat immer das passende Meme am start und weiß genau was er macht.
-
Ich dachte mir ich Poste es nochmal Direkt, damit Leute nicht nur zufällig drauf stoßen die danach suchen:
Bitte melden Sie sich an, um dieses Bild zu sehen.Python- Replace:
- class TipBoard(ui.Bar):
- [...]
- with:
- class TipBoard(ui.Bar):
- SCROLL_WAIT_TIME = 3.0
- TIP_DURATION = 5.0
- FONT_HEIGHT = 15
- TEXT_POS_Y = 10
- LINE_HEIGHT = FONT_HEIGHT + 5
- STEP_HEIGHT = LINE_HEIGHT + 5
- LONG_TEXT_START_X = 300
- SCREEN_WIDTH = wndMgr.GetScreenWidth()
- def __init__(self):
- ui.Bar.__init__(self)
- self.AddFlag("not_pick")
- self.tipList = []
- self.curPos = 0
- self.dstPos = 0
- self.nextScrollTime = 0
- self.width = self.SCREEN_WIDTH
- self.SetPosition(0, 160)
- self.SetSize(self.SCREEN_WIDTH, 35)
- self.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.5))
- self.SetWindowHorizontalAlignCenter()
- self.__CreateTextBar()
- def __del__(self):
- ui.Bar.__del__(self)
- def __CreateTextBar(self):
- x, y = self.GetGlobalPosition()
- self.textBar = BigTextBar(self.SCREEN_WIDTH*2, 300, self.FONT_HEIGHT)
- self.textBar.SetParent(self)
- self.textBar.SetPosition(6, 8)
- self.textBar.SetTextColor(242, 231, 193)
- self.textBar.SetClipRect(0, y, self.SCREEN_WIDTH, y+8+self.STEP_HEIGHT)
- self.textBar.Show()
- def __CleanOldTip(self):
- leaveList = []
- for tip in self.tipList:
- madeTime = tip[0]
- if app.GetTime() - madeTime > self.TIP_DURATION:
- pass
- else:
- leaveList.append(tip)
- self.tipList = leaveList
- if not leaveList:
- self.textBar.ClearBar()
- self.Hide()
- return
- self.__RefreshBoard()
- def __RefreshBoard(self):
- self.textBar.ClearBar()
- index = 0
- for tip in self.tipList:
- text = tip[1]
- if text:
- (text_width, text_height) = self.textBar.GetTextExtent(text)
- if text_width>self.SCREEN_WIDTH:
- self.textBar.TextOut(0, index*self.STEP_HEIGHT, text)
- else:
- self.textBar.TextOut((wndMgr.GetScreenWidth()-text_width)/2, index*self.STEP_HEIGHT, text)
- index += 1
- 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, self.TEXT_POS_Y - self.curPos)
- self.Show()
- 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, self.TEXT_POS_Y - self.curPos)
- if self.curPos > len(self.tipList)*self.STEP_HEIGHT:
- self.curPos = -self.STEP_HEIGHT
- self.dstPos = -self.STEP_HEIGHT
- self.__CleanOldTip()
-
Bitte melden Sie sich an, um dieses Bild zu sehen.
Have fun:
-
Bitte melden Sie sich an, um diesen Link zu sehen.
So wie hier :
Bitte melden Sie sich an, um diesen Link zu sehen.
MfG
Code
Wie du den Text immer im Center bekommst, kann ich dir leider nicht sagen.
Edit: Die Funktion ist wohl aus dem Zodiac Dungeon -
Kannste mal Bilder hochladen kann die Bilder Nicht sehen auf Epvp
Bitte melden Sie sich an, um dieses Bild zu sehen.
-
Reupload?
-
Hab die Flügel zufälligerweise vor paar Tagen auch eingefügt. Muss sie als "Bip01 Spine2" eintragen