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

@ -44,9 +44,9 @@ class CursorImage(object):
def IsImage(self):
if self.handle:
return TRUE
return True
return FALSE
return False
def SetPosition(self, x, y):
if self.handle:
@ -63,7 +63,7 @@ class CMouseController(object):
self.x = 0
self.y = 0
self.IsSoftwareCursor = FALSE
self.IsSoftwareCursor = False
self.curCursorName = ""
self.curCursorImage = 0
self.cursorPosX = 0
@ -71,7 +71,7 @@ class CMouseController(object):
self.AttachedIconHandle = 0
self.AttachedOwner = 0
self.AttachedFlag = FALSE
self.AttachedFlag = False
self.AttachedType = 0
self.AttachedSlotNumber = 0
self.AttachedCount = 1
@ -133,7 +133,7 @@ class CMouseController(object):
grpText.SetFontName(AttachedCountTextLineHandle, localeInfo.UI_DEF_FONT_SMALL)
grpText.SetText(AttachedCountTextLineHandle, "1234")
grpText.SetPosition(AttachedCountTextLineHandle, 100, 100)
grpText.SetOutline(AttachedCountTextLineHandle, TRUE)
grpText.SetOutline(AttachedCountTextLineHandle, True)
grpText.SetFontColor(AttachedCountTextLineHandle, 1.0, 1.0, 1.0)
grpText.SetHorizontalAlign(AttachedCountTextLineHandle, wndMgr.TEXT_HORIZONTAL_ALIGN_CENTER)
self.AttachedCountTextLineHandle = AttachedCountTextLineHandle
@ -143,7 +143,7 @@ class CMouseController(object):
self.countNumberLine.SetHorizontalAlignCenter()
self.countNumberLine.Hide()
return TRUE
return True
# Cursor Control
def ChangeCursor(self, cursorNum):
@ -152,7 +152,7 @@ class CMouseController(object):
self.curCursorImage = self.cursorDict[cursorNum]
(self.cursorPosX, self.cursorPosY) = self.cursorPosDict[cursorNum]
if FALSE == self.curCursorImage.IsImage():
if False == self.curCursorImage.IsImage():
self.curCursorNum = app.NORMAL
self.curCursorImage = self.cursorDict[app.NORMAL]
@ -166,7 +166,7 @@ class CMouseController(object):
self.LastAttachedSlotNumber = self.AttachedSlotNumber
self.AttachedFlag = TRUE
self.AttachedFlag = True
self.AttachedOwner = Owner
self.AttachedType = Type
self.AttachedSlotNumber = SlotNumber
@ -243,14 +243,14 @@ class CMouseController(object):
self.AttachedIconHandle = 0
def IsAttachedMoney(self):
if TRUE == self.isAttached():
if True == self.isAttached():
if player.ITEM_MONEY == self.GetAttachedItemIndex():
return TRUE
return True
return FALSE
return False
def GetAttachedMoneyAmount(self):
if TRUE == self.isAttached():
if True == self.isAttached():
if player.ITEM_MONEY == self.GetAttachedItemIndex():
return self.GetAttachedItemCount()
return 0
@ -259,7 +259,7 @@ class CMouseController(object):
self.LastAttachedSlotNumber = self.AttachedSlotNumber
self.AttachedFlag = TRUE
self.AttachedFlag = True
self.AttachedOwner = owner
self.AttachedType = type
self.AttachedSlotNumber = -1
@ -296,12 +296,12 @@ class CMouseController(object):
elif self.AttachedType == player.SLOT_TYPE_EMOTION:
grpImage.Delete(self.AttachedIconHandle)
self.AttachedFlag = FALSE
self.AttachedFlag = False
self.AttachedType = -1
self.AttachedItemIndex = -1
self.AttachedSlotNumber = -1
self.AttachedIconHandle = 0
wndMgr.SetAttachingFlag(FALSE)
wndMgr.SetAttachingFlag(False)
if self.countNumberLine:
self.countNumberLine.Hide()
@ -311,21 +311,21 @@ class CMouseController(object):
def GetAttachedOwner(self):
if FALSE == self.isAttached():
if False == self.isAttached():
return 0
return self.AttachedOwner
def GetAttachedType(self):
if FALSE == self.isAttached():
if False == self.isAttached():
return player.SLOT_TYPE_NONE
return self.AttachedType
def GetAttachedSlotNumber(self):
if FALSE == self.isAttached():
if False == self.isAttached():
return 0
return self.AttachedSlotNumber
@ -336,14 +336,14 @@ class CMouseController(object):
def GetAttachedItemIndex(self):
if FALSE == self.isAttached():
if False == self.isAttached():
return 0
return self.AttachedItemIndex
def GetAttachedItemCount(self):
if FALSE == self.isAttached():
if False == self.isAttached():
return 0
return self.AttachedCount
@ -354,7 +354,7 @@ class CMouseController(object):
self.x = x
self.y = y
if TRUE == self.isAttached():
if True == self.isAttached():
if 0 != self.AttachedIconHandle:
grpImage.SetDiffuseColor(self.AttachedIconHandle, 1.0, 1.0, 1.0, 0.5)
grpImage.SetPosition(self.AttachedIconHandle, self.x - self.AttachedIconHalfWidth, self.y - self.AttachedIconHalfHeight)
@ -367,17 +367,17 @@ class CMouseController(object):
# Render
def Render(self):
if TRUE == self.isAttached():
if True == self.isAttached():
if 0 != self.AttachedIconHandle:
grpImage.Render(self.AttachedIconHandle)
if self.IsSoftwareCursor:
if TRUE == app.IsShowCursor():
if True == app.IsShowCursor():
if 0 != self.curCursorImage:
self.curCursorImage.Render()
else:
if FALSE == app.IsShowCursor():
if TRUE == app.IsLiarCursorOn():
if False == app.IsShowCursor():
if True == app.IsLiarCursorOn():
if 0 != self.curCursorImage:
self.curCursorImage.SetPosition(self.x + self.cursorPosX, self.y + self.cursorPosY)
self.curCursorImage.Render()