Update uiguild.py

This commit is contained in:
rtw1x1
2025-12-27 21:28:01 +00:00
parent 9dcf7686a6
commit 5d4a0c8786

View File

@@ -636,7 +636,7 @@ class CommentSlot(ui.Window):
self.slotSimpleText = ui.MakeTextLine(self) self.slotSimpleText = ui.MakeTextLine(self)
self.slotSimpleText.SetPosition(2, 0) self.slotSimpleText.SetPosition(2, 0)
## 13.12.02 아랍수정 ## 13.12.02 Arabic modification
if app.IsRTL() : if app.IsRTL() :
self.slotSimpleText.SetWindowHorizontalAlignCenter() self.slotSimpleText.SetWindowHorizontalAlignCenter()
self.slotSimpleText.SetHorizontalAlignCenter() self.slotSimpleText.SetHorizontalAlignCenter()
@@ -1000,7 +1000,7 @@ class GuildWindow(ui.ScriptWindow):
page.Children.append(noticeMarkImage) page.Children.append(noticeMarkImage)
## Name ## Name
## 13.12.02 아랍수정 ## 13.12.02 Arabic modification
if app.IsRTL(): if app.IsRTL():
nameSlotImage = ui.MakeImageBox(page, "d:/ymir work/ui/public/Parameter_Slot_03.sub", 255, yPos) nameSlotImage = ui.MakeImageBox(page, "d:/ymir work/ui/public/Parameter_Slot_03.sub", 255, yPos)
else: else:
@@ -1018,7 +1018,7 @@ class GuildWindow(ui.ScriptWindow):
page.Children.append(deleteButton) page.Children.append(deleteButton)
## Comment ## Comment
## 13.12.02 아랍수정 ## 13.12.02 Arabic modification
commentSlot = CommentSlot() commentSlot = CommentSlot()
commentSlot.SetParent(page) commentSlot.SetParent(page)
if app.IsRTL(): if app.IsRTL():
@@ -1035,7 +1035,7 @@ class GuildWindow(ui.ScriptWindow):
page.boardDict[i] = boardSlotList page.boardDict[i] = boardSlotList
## PostComment - Have to make this here for that fit tooltip's position. ## PostComment - Have to make this here for that fit tooltip's position.
## 13.12.02 아랍수정 ## 13.12.02 Arabic modification
if app.IsRTL(): if app.IsRTL():
postCommentButton = ui.MakeButton(page, 3, 273, localeInfo.GUILD_COMMENT, "d:/ymir work/ui/game/taskbar/", "Send_Chat_Button_01.sub", "Send_Chat_Button_02.sub", "Send_Chat_Button_03.sub") postCommentButton = ui.MakeButton(page, 3, 273, localeInfo.GUILD_COMMENT, "d:/ymir work/ui/game/taskbar/", "Send_Chat_Button_01.sub", "Send_Chat_Button_02.sub", "Send_Chat_Button_03.sub")
else: else:
@@ -1054,7 +1054,7 @@ class GuildWindow(ui.ScriptWindow):
inverseLineIndex = self.MEMBER_LINE_COUNT - i - 1 inverseLineIndex = self.MEMBER_LINE_COUNT - i - 1
yPos = 28 + inverseLineIndex*lineStep yPos = 28 + inverseLineIndex*lineStep
## 13.12.02 아랍 수정 ## 13.12.02 Arabic modification
## Name ## Name
if app.IsRTL(): if app.IsRTL():
nameSlotImage = ui.MakeImageBox(page, "d:/ymir work/ui/public/Parameter_Slot_100x18.sub", 255, yPos) nameSlotImage = ui.MakeImageBox(page, "d:/ymir work/ui/public/Parameter_Slot_100x18.sub", 255, yPos)
@@ -1226,7 +1226,7 @@ class GuildWindow(ui.ScriptWindow):
yPos = 22 + i*lineStep yPos = 22 + i*lineStep
index = i+1 index = i+1
## 13.12.02 아랍 수정 ## 13.12.02 Arabic modification
## GradeNumber ## GradeNumber
if app.IsRTL(): if app.IsRTL():
gradeNumberSlotImage = ui.MakeImageBox(page, "d:/ymir work/ui/public/Parameter_Slot_00.sub", 310, yPos) gradeNumberSlotImage = ui.MakeImageBox(page, "d:/ymir work/ui/public/Parameter_Slot_00.sub", 310, yPos)
@@ -1299,7 +1299,7 @@ class GuildWindow(ui.ScriptWindow):
guildID = net.GetGuildID() guildID = net.GetGuildID()
self.largeMarkBox.SetIndex(guildID) self.largeMarkBox.SetIndex(guildID)
self.largeMarkBox.SetScale(3) self.largeMarkBox.SetScale(3)
## 13.12.02 아랍수정 ## 13.12.02 Arabic modification
if app.IsRTL(): if app.IsRTL():
self.largeMarkBox.SetPosition(self.largeMarkBox.GetWidth()+32,1) self.largeMarkBox.SetPosition(self.largeMarkBox.GetWidth()+32,1)
@@ -1419,7 +1419,7 @@ class GuildWindow(ui.ScriptWindow):
page.levelAverageSlot.SetText(str(guild.GetGuildMemberLevelAverage())) page.levelAverageSlot.SetText(str(guild.GetGuildMemberLevelAverage()))
## 길드장만 길드 마크와 길드전 신청 버튼을 볼 수 있음 ## Only guild master can see guild mark and guild war request buttons
mainCharacterName = player.GetMainCharacterName() mainCharacterName = player.GetMainCharacterName()
masterName = guild.GetGuildMasterName() masterName = guild.GetGuildMasterName()
@@ -1440,7 +1440,7 @@ class GuildWindow(ui.ScriptWindow):
page.declareWarButton.Hide() page.declareWarButton.Hide()
page.uploadSymbolButton.Hide() page.uploadSymbolButton.Hide()
## Refresh 시에 길드전 정보 업데이트 ## Update guild war information on refresh
for i in xrange(guild.ENEMY_GUILD_SLOT_MAX_COUNT): for i in xrange(guild.ENEMY_GUILD_SLOT_MAX_COUNT):
name = guild.GetEnemyGuildName(i) name = guild.GetEnemyGuildName(i)
nameTextLine = self.enemyGuildNameList[i] nameTextLine = self.enemyGuildNameList[i]
@@ -2110,7 +2110,7 @@ class BuildGuildBuildingWindow(ui.ScriptWindow):
line_width = line_maxX - line_minX line_width = line_maxX - line_minX
line_width_half = line_width / 2 line_width_half = line_width / 2
X_SIZE_STEP = 2 * 2 ## 2의 단위로만 증가해야 함 X_SIZE_STEP = 2 * 2 ## Must increase only in units of 2
Y_SIZE_STEP = 8 Y_SIZE_STEP = 8
sxPos = door_maxX - corner_minX + (line_width_half*X_SIZE_STEP) sxPos = door_maxX - corner_minX + (line_width_half*X_SIZE_STEP)
exPos = -sxPos exPos = -sxPos
@@ -2286,14 +2286,14 @@ class BuildGuildBuildingWindow(ui.ScriptWindow):
self.popup = None self.popup = None
def __EnablePCBlocker(self): def __EnablePCBlocker(self):
## PC Blocker 처리를 켠다. (투명해짐) ## Enable PC Blocker processing (becomes transparent)
chr.SetInstanceType(chr.INSTANCE_TYPE_BUILDING) chr.SetInstanceType(chr.INSTANCE_TYPE_BUILDING)
for idx in self.indexList: for idx in self.indexList:
chr.SetBlendRenderMode(idx, 1.0) chr.SetBlendRenderMode(idx, 1.0)
def __DisablePCBlocker(self): def __DisablePCBlocker(self):
## PC Blocker 처리를 끈다. (안투명해짐) ## Disable PC Blocker processing (stays opaque)
chr.SetInstanceType(chr.INSTANCE_TYPE_OBJECT) chr.SetInstanceType(chr.INSTANCE_TYPE_OBJECT)
for idx in self.indexList: for idx in self.indexList:
@@ -2544,13 +2544,13 @@ class BuildGuildBuildingWindow(ui.ScriptWindow):
return True return True
""" """
- 프로토콜 - Protocol
게임돌입시: On game entry:
RecvLandPacket: RecvLandPacket:
CPythonMiniMap::RegisterGuildArea CPythonMiniMap::RegisterGuildArea
게임이동중: During game movement:
PythonPlayer::Update() PythonPlayer::Update()
CPythonPlayer::__Update_NotifyGuildAreaEvent() CPythonPlayer::__Update_NotifyGuildAreaEvent()
game.py.BINARY_Guild_EnterGuildArea game.py.BINARY_Guild_EnterGuildArea
@@ -2559,15 +2559,15 @@ class BuildGuildBuildingWindow(ui.ScriptWindow):
uigameButton.GameButtonWindow.HideBuildButton() uigameButton.GameButtonWindow.HideBuildButton()
BuildButton: BuildButton:
!길드장인지 처리 없음 !No guild master check
!건물이 있어도 짓기 버튼은 있음 !Build button exists even if building present
!건물이 임시로 사용하는 VID 는 서버가 보내주는 것과 혼동될 염려가 있음 !Building temporary VID may be confused with server-sent VID
!건물 VNUM 은 BuildGuildBuildingWindow.BUILDING_VNUM_LIST 를 이용해 변환 !Building VNUM converted using BuildGuildBuildingWindow.BUILDING_VNUM_LIST
!건물 지을때는 /build c(reate) !To build: /build c(reate)
!건물 부술때는 /build d(estroy) !To destroy: /build d(estroy)
!rotation 의 단위는 degree !Rotation unit is degree
interfaceModule.interface.__OnClickBuildButton: interfaceModule.interface.__OnClickBuildButton:
interfaceModule.interface.BUILD_OpenWindow: interfaceModule.interface.BUILD_OpenWindow:
@@ -2580,7 +2580,7 @@ PreviewButton:
__OnPreviewMode: __OnPreviewMode:
__RestoreViewMode: __RestoreViewMode:
건물 부수기: Destroy building:
uiTarget.TargetBoard.__OnDestroyBuilding uiTarget.TargetBoard.__OnDestroyBuilding
net.SendChatPacket("/build d vid") net.SendChatPacket("/build d vid")
""" """
@@ -2822,13 +2822,13 @@ if __name__ == "__main__":
app.Loop() app.Loop()
""" """
- 프로토콜 - Protocol
게임돌입시: On game entry:
RecvLandPacket: RecvLandPacket:
CPythonMiniMap::RegisterGuildArea CPythonMiniMap::RegisterGuildArea
게임이동중: During game movement:
PythonPlayer::Update() PythonPlayer::Update()
CPythonPlayer::__Update_NotifyGuildAreaEvent() CPythonPlayer::__Update_NotifyGuildAreaEvent()
game.py.BINARY_Guild_EnterGuildArea game.py.BINARY_Guild_EnterGuildArea
@@ -2837,15 +2837,15 @@ if __name__ == "__main__":
uigameButton.GameButtonWindow.HideBuildButton() uigameButton.GameButtonWindow.HideBuildButton()
BuildButton: BuildButton:
!길드장인지 처리 없음 !No guild master check
!건물이 있어도 짓기 버튼은 있음 !Build button exists even if building present
!건물이 임시로 사용하는 VID 는 서버가 보내주는 것과 혼동될 염려가 있음 !Building temporary VID may be confused with server-sent VID
!건물 VNUM 은 BuildGuildBuildingWindow.BUILDING_VNUM_LIST 를 이용해 변환 !Building VNUM converted using BuildGuildBuildingWindow.BUILDING_VNUM_LIST
!건물 지을때는 /build c(reate) !To build: /build c(reate)
!건물 부술때는 /build d(estroy) !To destroy: /build d(estroy)
!rotation 의 단위는 degree !Rotation unit is degree
interfaceModule.interface.__OnClickBuildButton: interfaceModule.interface.__OnClickBuildButton:
interfaceModule.interface.BUILD_OpenWindow: interfaceModule.interface.BUILD_OpenWindow:
@@ -2854,13 +2854,13 @@ AcceptButton:
BuildGuildBuildingWindow.Build: BuildGuildBuildingWindow.Build:
net.SendChatPacket("/build c vnum x y x_rot y_rot z_rot") net.SendChatPacket("/build c vnum x y x_rot y_rot z_rot")
x_rot, y_rot AffectContainer에 저장 x_rot, y_rot stored in AffectContainer
PreviewButton: PreviewButton:
__OnPreviewMode: __OnPreviewMode:
__RestoreViewMode: __RestoreViewMode:
건물 부수기: Destroy building:
uiTarget.TargetBoard.__OnDestroyBuilding uiTarget.TargetBoard.__OnDestroyBuilding
net.SendChatPacket("/build d vid") net.SendChatPacket("/build d vid")
""" """