未跟踪文件

master
1076390229 2025-08-06 22:40:17 +08:00
parent 3799bfece2
commit 6494295a0e
7 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,38 @@
local GameInfoWindow = {}
function GameInfoWindow.New()
setmetatable(GameInfoWindow, { __index = BaseWindow })
local ints = setmetatable({}, { __index = GameInfoWindow })
ints:init("ui://Main_Majiang/com_gameInfoWindow")
return ints
end
function GameInfoWindow:Reflash()
local config = self.room.room_config.config
local times = self.room.room_config.config.hpData.times
local game_id = self.room.game_id
local Info = ExtendManager.GetExtendConfig(game_id):GetGameInfo()
local text = Info:LoadConfigToDetail(config)
self.tex_tex.text = times / 1000 .. "倍," .. text
end
function GameInfoWindow:Show(room)
BaseWindow.Show(self)
self.room = room
self:Reflash()
end
function GameInfoWindow:init(url)
BaseWindow.init(self, url)
self.tex_tex = self._view:GetChild("tex_tex")
self.btn_quit = self._view:GetChild("btn_quit")
self.btn_quit.onClick:Set(function()
self:Close()
end)
end
return GameInfoWindow

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="122,122" extention="Button">
<Button/>
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver"/>
<displayList>
<image id="n0_q0vz" src="q0vz1en" name="n0" xy="0,0">
<relation target="" sidePair="width,height"/>
</image>
</displayList>
</component>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="1483,834">
<displayList>
<image id="n0_q0vz" name="n0" src="q0vz1em" fileName="Main_new/Image/bg 5.png" xy="0,0"/>
<text id="n1_q0vz" name="tex_tex" xy="124,184" size="1235,485" font="ui://27vd145bg2mo7ij0" fontSize="54" color="#5a2d0e" align="center" vAlign="middle" autoSize="none" autoClearText="true" text="1倍2人可点炮可自摸有精必博"/>
<component id="n2_q0vz" name="btn_quit" src="q0vz1ep" fileName="Main_new/GameInfoWindow/Component/btn_quit.xml" xy="1378,-14"/>
</displayList>
</component>

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 KiB