Added game files from TMP4

This commit is contained in:
2023-07-21 21:55:58 +03:00
parent bb44b31af9
commit eb47a22455
9325 changed files with 276198 additions and 69890 deletions

View File

@ -10,18 +10,18 @@ import colorInfo
import constInfo
import systemSetting
ENABLE_CHAT_COMMAND = TRUE
ENABLE_LAST_SENTENCE_STACK = TRUE
ENABLE_INSULT_CHECK = TRUE
ENABLE_CHAT_COMMAND = True
ENABLE_LAST_SENTENCE_STACK = True
ENABLE_INSULT_CHECK = True
if localeInfo.IsHONGKONG():
ENABLE_LAST_SENTENCE_STACK = TRUE
ENABLE_LAST_SENTENCE_STACK = True
if localeInfo.IsEUROPE():
ENABLE_CHAT_COMMAND = FALSE
ENABLE_CHAT_COMMAND = False
if localeInfo.IsCANADA():
ENABLE_LAST_SENTENCE_STACK = FALSE
ENABLE_LAST_SENTENCE_STACK = False
chatInputSetList = []
def InsertChatInputSetWindow(wnd):
@ -125,7 +125,7 @@ class ChatLine(ui.EditLine):
self.eventReturn = lambda *arg: None
self.eventTab = None
self.chatMode = chat.CHAT_TYPE_TALKING
self.bCodePage = TRUE
self.bCodePage = True
self.overTextLine = ui.TextLine()
self.overTextLine.SetParent(self)
@ -261,8 +261,8 @@ class ChatLine(ui.EditLine):
def OnIMETab(self):
#if None != self.eventTab:
# self.eventTab()
#return TRUE
return FALSE
#return True
return False
def OnIMEUpdate(self):
ui.EditLine.OnIMEUpdate(self)
@ -288,11 +288,11 @@ class ChatLine(ui.EditLine):
# LAST_SENTENCE_STACK
if app.VK_UP == key:
self.__PrevLastSentenceStack()
return TRUE
return True
if app.VK_DOWN == key:
self.__NextLastSentenceStack()
return TRUE
return True
# END_OF_LAST_SENTENCE_STACK
ui.EditLine.OnIMEKeyDown(self, key)
@ -358,12 +358,12 @@ class ChatLine(ui.EditLine):
self.__ClearChat()
self.eventReturn()
return TRUE
return True
def OnPressEscapeKey(self):
self.__ClearChat()
self.eventEscape()
return TRUE
return True
def RunCloseEvent(self):
self.eventEscape()
@ -444,7 +444,7 @@ class ChatInputSet(ui.Window):
self.Show()
self.RefreshPosition()
return TRUE
return True
def Close(self):
self.chatLine.KillFocus()
@ -452,7 +452,7 @@ class ChatInputSet(ui.Window):
self.chatModeButton.Hide()
self.btnSend.Hide()
self.Hide()
return TRUE
return True
def SetEscapeEvent(self, event):
self.chatLine.SetEscapeEvent(event)
@ -517,7 +517,7 @@ class ChatWindow(ui.Window):
self.AddFlag("float")
self.AddFlag("movable")
self.AddFlag("restrict_x")
self.topFlag = FALSE
self.topFlag = False
self.SetWindowName("ChatWindow:ChatButton")
@ -534,12 +534,12 @@ class ChatWindow(ui.Window):
app.SetCursor(app.NORMAL)
def OnTop(self):
if TRUE == self.topFlag:
if True == self.topFlag:
return
self.topFlag = TRUE
self.topFlag = True
self.owner.SetTop()
self.topFlag = FALSE
self.topFlag = False
def __init__(self):
ui.Window.__init__(self)
@ -559,7 +559,7 @@ class ChatWindow(ui.Window):
self.curHeightBar = 0
self.visibleLineCount = 0
self.scrollBarPos = 1.0
self.scrollLock = FALSE
self.scrollLock = False
chatInputSet = ChatInputSet()
chatInputSet.SetParent(self)
@ -707,9 +707,9 @@ class ChatWindow(ui.Window):
def IsEditMode(self):
if chat.BOARD_STATE_EDIT == self.boardState:
return TRUE
return True
return FALSE
return False
def __RefreshSizingBar(self):
(x, y, width, height) = self.GetRect()
@ -870,7 +870,7 @@ class ChatLogWindow(ui.Window):
def __init__(self):
self.allChatMode = TRUE
self.allChatMode = True
self.chatInputSet = None
ui.Window.__init__(self)
@ -1025,7 +1025,7 @@ class ChatLogWindow(ui.Window):
if self.allChatMode:
return
self.allChatMode = TRUE
self.allChatMode = True
for i in self.CHAT_MODE_INDEX:
chat.EnableChatMode(self.chatID, i)
@ -1034,7 +1034,7 @@ class ChatLogWindow(ui.Window):
def ToggleChatMode(self, mode):
if self.allChatMode:
self.allChatMode = FALSE
self.allChatMode = False
for i in self.CHAT_MODE_INDEX:
chat.DisableChatMode(self.chatID, i)
chat.EnableChatMode(self.chatID, mode)
@ -1113,24 +1113,24 @@ class ChatLogWindow(ui.Window):
grp.SetColor(0x77000000)
grp.RenderBar(x, y, width, height)
grp.SetColor(0xff525552)
grp.SetColor(0x77000000)
grp.RenderBox(x, y, width-2, height)
grp.SetColor(0xff000000)
grp.SetColor(0x77000000)
grp.RenderBox(x+1, y+1, width-2, height)
grp.SetColor(0xff989898)
grp.RenderLine(x+width-13, y+height-1, 11, -11)
grp.RenderLine(x+width-9, y+height-1, 7, -7)
grp.RenderLine(x+width-5, y+height-1, 3, -3)
else:
else:
grp.SetColor(0x77000000)
grp.RenderBar(x+width-15, y+45, 13, height-45)
grp.SetColor(0x77000000)
grp.RenderBar(x, y, width, height)
grp.SetColor(0xff525552)
grp.SetColor(0x77000000)
grp.RenderBox(x, y, width-2, height)
grp.SetColor(0xff000000)
grp.SetColor(0x77000000)
grp.RenderBox(x+1, y+1, width-2, height)
grp.SetColor(0xff989898)
@ -1153,7 +1153,7 @@ class ChatLogWindow(ui.Window):
def OnPressEscapeKey(self):
self.Close()
return TRUE
return True
def BindInterface(self, interface):
self.interface = interface