跑得快托管倒计时提交

master
罗家炜 2025-06-22 03:03:08 +08:00
parent 28e318dc64
commit d25daeb9bf
10 changed files with 69 additions and 29 deletions

View File

@ -101,12 +101,11 @@ function M:init()
end
end
function M:showmmm()
if self.totalTime>0 then
if self.totalTime > 0 then
self.starttimeflag = false
self.totalTime = self.totalTime - 0.0165
if self.totalTime<60 then
if self.totalTime < 60 then
if self.PlayerTGBg and self.PlayerTGBg.displayObject.gameObject then
self.PlayerTGBg.displayObject.gameObject:SetActive(true)
end
@ -114,29 +113,26 @@ function M:showmmm()
self.PlayerTGBorder.displayObject.gameObject:SetActive(true)
end
if self.PlayerTGBg then
self.PlayerTGBg.max = self.maxTime
self.PlayerTGBg.value =self.maxTime - self.totalTime
self.PlayerTGBg.max = self.maxTime
self.PlayerTGBg.value = self.maxTime - self.totalTime
end
if self.PlayerTGBorder then
self.PlayerTGBorder.max = self.maxTime
self.PlayerTGBorder.value = self.totalTime
end
end
else
if self.PlayerTGBg and self.PlayerTGBg.displayObject.gameObject then
self.PlayerTGBg.displayObject.gameObject:SetActive(false)
end
if self.PlayerTGBorder and self.PlayerTGBorder.displayObject.gameObject then
if self.PlayerTGBorder and self.PlayerTGBorder.displayObject.gameObject then
self.PlayerTGBorder.displayObject.gameObject:SetActive(false)
end
end
end
end
function M:IsShowTGTips(isShow, time)
printlog("isShowisShowisShow==== ",isShow," time ",time)
printlog("isShowisShowisShow==== ", isShow, " time ", time)
if time == nil then time = 0 end
self.totalTime = time
self.isShowTGTimer = isShow
@ -158,7 +154,7 @@ function M:IsShowTGTips(isShow, time)
self.maxTime = time
if self.timer~=nil then
if self.timer ~= nil then
self.timer:Stop()
end
self.timer = FrameTimer.New(function()
@ -168,7 +164,7 @@ function M:IsShowTGTips(isShow, time)
--[[ if self.PlayerTGBg then
--[[ if self.PlayerTGBg then
self.PlayerTGBg.max = time
end
if self.PlayerTGBorder then
@ -179,16 +175,15 @@ function M:IsShowTGTips(isShow, time)
--UpdateBeat:Add(self.OnUpdate,self)
-- printlog("aaaaaaaaa111111111111111111111111111111")
--TimerManager.RemoveTimer(self.OnUpdate)
-- TimerManager.AddTimer(self.OnUpdate, self)
-- TimerManager.AddTimer(self.OnUpdate, self)
--printlog(self)
else
if self.timer~=nil then
if self.timer ~= nil then
self.timer:Stop()
end
-- printlog("移除IsShowTGTips",self.isShow)
--UpdateBeat:Remove(self.OnUpdate,self)
-- TimerManager.RemoveTimer(self.OnUpdate, self)
-- TimerManager.RemoveTimer(self.OnUpdate, self)
end
end

View File

@ -2,7 +2,7 @@
<component size="1334,750" designImageAlpha="100" designImageLayer="1">
<controller name="state" pages="0,准备状态,1,游戏状态,2,,3,回放" selected="1"/>
<controller name="sdk" pages="0,,1," selected="0"/>
<controller name="action" pages="2,空,0,准备,1,开始,3,打鸟" selected="3"/>
<controller name="action" pages="2,空,0,准备,1,开始,3,打鸟" selected="0"/>
<controller name="time" pages="0,,1,,2,,3," selected="0"/>
<controller name="card_eff" pages="0,,1," selected="0"/>
<controller name="zidongtishi" pages="0,,1," selected="0"/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -10,6 +10,7 @@
<controller name="tuoguan" pages="0,,1," selected="0"/>
<controller name="text_color" pages="0,,1," selected="0"/>
<controller name="piao" pages="0,,1," selected="0"/>
<controller name="time" pages="0,,1," selected="1"/>
<displayList>
<image id="n28_e54q" name="n28" src="lwcl2m" fileName="font/images/head/index_bg_01.png" pkg="27vd145b" xy="26,-5" size="100,98" group="n33_e7qn" aspect="true" visible="false"/>
<component id="n34_u4l2" name="zhuang" src="prgzac" fileName="component/head/touxiang.xml" xy="-2,-33" group="n33_e7qn" visible="false">
@ -19,9 +20,12 @@
<graph id="n32_kba2" name="offLine" xy="29,-5" size="100,100" group="n33_e7qn" aspect="true" touchable="false" type="rect" lineSize="0" fillColor="#b3000000">
<gearDisplay controller="offline" pages="1"/>
</graph>
<text id="n37_aawn" name="n37" xy="46,29" size="64,41" group="n33_e7qn" fontSize="30" color="#ffffff" text="离线">
<text id="n37_aawn" name="n37" xy="46,29" size="64,42" group="n33_e7qn" fontSize="30" color="#ffffff" text="离线">
<gearDisplay controller="offline" pages="1"/>
</text>
<image id="n50_geab" name="zhuang" src="o49p1cl" fileName="component/Main/component/new_ui/touxiangkuang_img.png" pkg="v6yvqp7w" xy="32,0" size="90,90" group="n33_e7qn" aspect="true">
<gearDisplay controller="time" pages="1"/>
</image>
<image id="n6" name="fangzhu" src="e54q3y" fileName="font/images/head/owner.png" pkg="27vd145b" xy="130,-4" group="n33_e7qn" visible="false">
<gearDisplay controller="room_owner" pages="1"/>
</image>
@ -55,11 +59,17 @@
<text id="n45_kx91" name="text_jifen" xy="74,166" size="74,29" group="n47_kx91" fontSize="22" color="#ffffff" align="center" vAlign="middle" autoSize="none" text="1">
<gearColor controller="text_color" pages="1" values="#ff0000,#000000" default="#ffffff,#000000"/>
</text>
<text id="n46_kx91" name="n46" xy="23,166" size="48,31" group="n47_kx91" fontSize="22" color="#512e06" vAlign="middle" text="战绩"/>
<text id="n46_kx91" name="n46" xy="23,166" size="48,32" group="n47_kx91" fontSize="22" color="#512e06" vAlign="middle" text="战绩"/>
<group id="n47_kx91" name="zhanji" xy="17,164" size="132,35" visible="false" advanced="true"/>
<text id="n48_nkur" name="tuoguanTips" xy="8,-54" size="237,48" visible="false" fontSize="22" color="#ff0000" vAlign="middle" autoSize="none" text="开启托管剩余时间90S"/>
<component id="n49_imp5" name="mask_piao" src="imp5cjr" fileName="component/head/mask_piao.xml" xy="9,62">
<gearDisplay controller="piao" pages="1"/>
</component>
<component id="n51_geab" name="pb_tuoGuan_Bg" src="geabcjw" fileName="component/pb_tuoGuan_Bg.xml" xy="38,7" size="77,76">
<ProgressBar value="50" max="100"/>
</component>
<component id="n52_geab" name="pb_tuoGuan_Border" src="geabcjy" fileName="component/pb_tuoGuan_Border.xml" xy="39,6" size="77,77">
<ProgressBar max="100"/>
</component>
</displayList>
</component>

View File

@ -11,6 +11,7 @@
<controller name="tuoguan" pages="0,,1," selected="0"/>
<controller name="text_color" pages="0,,1," selected="0"/>
<controller name="piao" pages="0,,1," selected="0"/>
<controller name="time" pages="0,,1," selected="0"/>
<displayList>
<image id="n34_e7qn" name="n34" src="lwcl2m" fileName="font/images/head/index_bg_01.png" pkg="27vd145b" xy="22,0" size="100,98" group="n39_e7qn" aspect="true" visible="false"/>
<component id="n38_e7qn" name="zhuang" src="prgzac" fileName="component/head/touxiang.xml" xy="-20,-28" group="n39_e7qn" aspect="true" visible="false">
@ -20,7 +21,7 @@
<graph id="n36_e7qn" name="offLine" xy="22,3" size="100,100" group="n39_e7qn" aspect="true" touchable="false" type="rect" lineSize="0" fillColor="#b3000000">
<gearDisplay controller="offline" pages="1"/>
</graph>
<text id="n42_aawn" name="n42" xy="24,33" size="64,41" group="n39_e7qn" fontSize="30" color="#ffffff" text="离线">
<text id="n42_aawn" name="n42" xy="24,33" size="64,42" group="n39_e7qn" fontSize="30" color="#ffffff" text="离线">
<gearDisplay controller="offline" pages="1"/>
</text>
<image id="n37_e7qn" name="fangzhu" src="e54q3y" fileName="font/images/head/owner.png" pkg="27vd145b" xy="106,74" group="n39_e7qn" visible="false">
@ -59,11 +60,20 @@
<text id="n52_kx91" name="text_jifen" xy="67,166" size="74,29" group="n54_kx91" fontSize="22" color="#ffffff" align="center" vAlign="middle" autoSize="none" text="1">
<gearColor controller="text_color" pages="1" values="#ff0000,#000000" default="#ffffff,#000000"/>
</text>
<text id="n53_kx91" name="n53" xy="17,166" size="48,31" group="n54_kx91" fontSize="22" color="#512e06" vAlign="middle" text="战绩"/>
<text id="n53_kx91" name="n53" xy="17,166" size="48,32" group="n54_kx91" fontSize="22" color="#512e06" vAlign="middle" text="战绩"/>
<group id="n54_kx91" name="zhanji" xy="11,164" size="131,35" visible="false" advanced="true"/>
<text id="n55_nkur" name="tuoguanTips" xy="-97,-72" size="237,48" visible="false" fontSize="22" color="#ff0000" vAlign="middle" autoSize="none" text="开启托管剩余时间90S"/>
<component id="n56_imp5" name="mask_piao" src="imp5cjr" fileName="component/head/mask_piao.xml" xy="2,63">
<gearDisplay controller="piao" pages="1"/>
</component>
<image id="n58_geab" name="zhuang" src="o49p1cl" fileName="component/Main/component/new_ui/touxiangkuang_img.png" pkg="v6yvqp7w" xy="26,4" size="90,90">
<gearDisplay controller="time" pages="1"/>
</image>
<component id="n57_geab" name="pb_tuoGuan_Bg" src="geabcjw" fileName="component/pb_tuoGuan_Bg.xml" xy="33,10" size="76,76">
<ProgressBar value="68" max="50"/>
</component>
<component id="n59_geab" name="pb_tuoGuan_Border" src="geabcjy" fileName="component/pb_tuoGuan_Border.xml" xy="33,10" size="76,76">
<ProgressBar max="100"/>
</component>
</displayList>
</component>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="108,108" extention="ProgressBar" initName="pb_tuoGuan_Bg">
<displayList>
<image id="n5_psed" name="bar" src="geabcjx" fileName="component/bg.png" xy="0,0" pivot="0.5,0.5" size="108,108" alpha="0.5" fillMethod="radial360">
<relation target="" sidePair="width-width,height-height"/>
</image>
</displayList>
<ProgressBar titleType="value"/>
</component>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="108,108" extention="ProgressBar" initName="pb_tuoGuan_Border">
<displayList>
<image id="n1_p0ai" name="bar" src="geabcjz" fileName="component/tuoguan.png" xy="-10,-10" pivot="0.5,0.5" size="129,128" fillMethod="radial360" fillClockwise="false">
<relation target="" sidePair="width-width,height-height"/>
</image>
<text id="n2_p0ai" name="title" xy="-14,-12" size="135,129" font="Dubai" fontSize="60" color="#ffffff" align="center" vAlign="middle" autoSize="none" strokeColor="#000000" shadowColor="#000000" shadowOffset="1,1" text="">
<relation target="" sidePair="width-width,height-height"/>
</text>
</displayList>
<ProgressBar titleType="value"/>
</component>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -463,6 +463,10 @@
<component id="imp5cjq" name="Comp_OutCard.xml" path="/component/card_info/"/>
<component id="imp5cjr" name="mask_piao.xml" path="/component/head/" exported="true"/>
<image id="imp5cjs" name="di00.png" path="/component/head/"/>
<component id="geabcjw" name="pb_tuoGuan_Bg.xml" path="/component/" exported="true"/>
<image id="geabcjx" name="bg.png" path="/component/"/>
<component id="geabcjy" name="pb_tuoGuan_Border.xml" path="/component/" exported="true"/>
<image id="geabcjz" name="tuoguan.png" path="/component/" exported="true"/>
</resources>
<publish name="Extend_Poker_RunFastNew" path="..\wb_unity_pro\Assets\ART\extend\poker\runfast\ui" packageCount="2"/>
</packageDescription>

View File

@ -6,7 +6,7 @@
<controller name="offline" pages="0,,1," selected="0"/>
<controller name="mask_voice" pages="0,,1," selected="0"/>
<controller name="dismiss_room" pages="0,,1," selected="0"/>
<controller name="time" pages="0,,1," selected="0"/>
<controller name="time" pages="0,,1," selected="1"/>
<controller name="huxi" pages="0,,1," selected="0"/>
<controller name="tuo" pages="0,,1," selected="0"/>
<controller name="piao" pages="0,,1," selected="0"/>
@ -25,7 +25,7 @@
<image id="n79_cbxl" name="zhuang" src="o49p1cl" fileName="component/Main/component/new_ui/touxiangkuang_img.png" xy="11,-72" size="98,98" group="n33_e7qn">
<gearDisplay controller="time" pages="1"/>
</image>
<text id="n37_aawn" name="n37" xy="28,-36" size="64,41" group="n33_e7qn" fontSize="30" color="#ffffff" text="离线">
<text id="n37_aawn" name="n37" xy="28,-36" size="64,42" group="n33_e7qn" fontSize="30" color="#ffffff" text="离线">
<gearDisplay controller="offline" pages="1"/>
</text>
<image id="n81_cbxl" name="fangzhu" src="cbxl1gf" fileName="component/Main/component/new_ui/房主.png" xy="3,-75" group="n33_e7qn" visible="false">
@ -43,7 +43,7 @@
<image id="n57_fnpw" name="n57" src="fnpwwp" fileName="component/Main/images/niuniu_icon_12.png" xy="0,-85" group="n33_e7qn" visible="false">
<gearDisplay controller="bank" pages="1"/>
</image>
<text id="n62_vt54" name="n62" xy="30,-36" size="64,41" group="n33_e7qn" fontSize="30" color="#ffffff" text="死手">
<text id="n62_vt54" name="n62" xy="30,-36" size="64,42" group="n33_e7qn" fontSize="30" color="#ffffff" text="死手">
<gearDisplay controller="sishou" pages="1"/>
</text>
<image id="n80_cbxl" name="n80" src="cbxl1ge" fileName="component/Main/component/new_ui/zhuang_img.png" xy="82,-86" group="n33_e7qn">