SGP: WIP member prompt page & change brew time to percent

This commit is contained in:
Pakin 2024-07-05 08:31:35 +07:00
parent b6e6011eb0
commit eaa428b707
23 changed files with 3266 additions and 15 deletions

View file

@ -186,6 +186,22 @@
DEBUGVAR ButtonGameCountDownState
Var ShowPercent = "Invisible"
Var ShowCountdown = "Enable"
If ShowCountDownAsPercent = 1 Then
Var ShowPercent = "Enable"
Var ShowCountdown = "Invisible"
Var IMG_CNT = "ROOT/taobin_project/inter/sgp/image/page_doing/img2_percent_eng.png"
EndIf
If XPercent = 0 Then
Else
Var XPercent = 0
EndIf
</EventOpen>
@ -318,6 +334,20 @@
Var Timeout = Timeout + 1
; percent
If ShowCountDownAsPercent = 1 Then
Var XPercent = InitCNT - ShowCountDownBrewing
If ShowCountDownBrewing <= 5 Then
Var XPercent = 95
Else
Var XPercent = XPercent * 100
DEBUGVAR XPercent
Var XPercent = XPercent / InitCNT
EndIf
DEBUGVAR XPercent
EndIf
If MOVE_CUP_TO_DOOR = "true" Then
Var MOVE_CUP_TO_DOOR = "false"
EndIf
@ -629,6 +659,11 @@
EndIf
EndIf
If UseSGPCollectFlag = 1 Then
Var Cid = 46
Var Seeker.PointTaobinStr = "SG/" + Seeker.PointTaobinStr
EndIf
AddData Cid Seeker.TNumberTaobinMember Seeker.PointTaobinStr PointCrm GetScore
EndIf
@ -749,6 +784,11 @@
EndIf
EndIf
If UseSGPCollectFlag = 1 Then
Var Cid = 46
Var Seeker.PointTaobinStr = "SG/" + Seeker.PointTaobinStr
EndIf
AddData Cid Seeker.TNumberTaobinMember Seeker.PointTaobinStr PointCrm GetScore
EndIf
@ -1055,6 +1095,7 @@
;
; zone show time remaining
<Image>
<X> 751 </X>
<Y> 413 </Y>
@ -1064,6 +1105,7 @@
<Text>
<X> XPosiShowCountDownBrew </X>
<Y> 470 </Y>
<State> ShowCountdown </State>
<Align> End </Align>
<Width> 153 </Width>
<Size> 88 </Size>
@ -1071,6 +1113,18 @@
<Color> 0x513C2F </Color>
<Value> ShowCountDownBrewing </Value>
</Text>
;
<Text>
<X> XPosiShowCountDownBrew </X>
<Y> 470 </Y>
<State> ShowPercent </State>
<Align> End </Align>
<Width> 153 </Width>
<Size> 88 </Size>
<Font> RobotoBold </Font>
<Color> 0x513C2F </Color>
<Value> XPercent </Value>
</Text>
<Button>
<X> 792 </X>