-
Notifications
You must be signed in to change notification settings - Fork 0
/
.epk
80 lines (62 loc) · 2.25 KB
/
.epk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import app
import net
import ui
import snd
import wndMgr
import uiScriptLocale
import localeInfo
# ´ëºÎºĞÀÇ ½ÇÁ¦ ±¸ÇöÀº PythonApplicationLogo.cpp¿¡ ÀÖ´Ù.
app.SetGuildMarkPath("test")
class LogoWindow(ui.ScriptWindow):
# º¸¿© ÁÙ µ¿¿µ»ó ¸ñ·Ï (¹è¿ ¼ø¼´ë·Î º¸¿©ÁÜ)
videoList = []
def __init__(self, stream):
print "NEW LOGO WINDOW ----------------------------------------------------------------------------"
ui.ScriptWindow.__init__(self)
net.SetPhaseWindow(net.PHASE_WINDOW_LOGO, self)
self.stream = stream
self.playingVideo = 0
self.bNeedUpdate = TRUE
self.nextLogoIndex = 0
if (localeInfo.IsEUROPE() or localeInfo.IsARABIC()) and (not localeInfo.IsCHEONMA() and not localeInfo.IsWE_KOREA()):
self.videoList = ["gf.mpg", "ymir.mpg"]
else:
self.videoList = ["ymir.mpg"]
def __del__(self):
ui.ScriptWindow.__del__(self)
net.SetPhaseWindow(net.PHASE_WINDOW_LOGO, 0)
print "---------------------------------------------------------------------------- DELETE LOGO WINDOW"
def Open(self):
self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight())
self.SetWindowName("SelectLogoWindow")
self.Show()
self.LoadNextVideo()
app.ShowCursor()
print "OPEN LOGO WINDOW ----------------------------------------------------------------------------"
def Close(self):
print "---------------------------------------------------------------CLOSE LOGO WINDOW"
app.OnLogoClose()
self.KillFocus()
self.Hide()
app.HideCursor()
# ¿µ»ó Àç»ıÀÌ ºÒ°¡´ÉÇÑ È¯°æÀ̰ųª, ÆÄÀÏÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì introLoginÀ¸·Î skip.
def OnUpdate(self):
if self.bNeedUpdate:
if self.playingVideo == 0:
if self.nextLogoIndex < len(self.videoList):
self.CloseVideo()
self.LoadNextVideo()
else:
self.bNeedUpdate = FALSE
self.stream.SetLoginPhase()
else:
self.playingVideo = app.OnLogoUpdate()
def OnRender(self):
if self.playingVideo:
app.OnLogoRender()
def LoadNextVideo(self):
if self.nextLogoIndex < len(self.videoList):
self.playingVideo = app.OnLogoOpen(self.videoList[self.nextLogoIndex])
self.nextLogoIndex = self.nextLogoIndex + 1
def CloseVideo(self):
app.OnLogoClose()