add Milk Choice topping

This commit is contained in:
Kenta420 2023-10-02 14:27:26 +07:00
parent 0534b70293
commit 141947e406
7 changed files with 76 additions and 45 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -41,6 +41,8 @@ Var TamatianEnable = 0
; September 9 - 16
Var MayDayRunEnable = 0
; Enable Milk Choice Vegan
Var MilkChoiceVeganEnable = 0
If SystemDateMonthInt = 9 Then
If SystemDateDayInt > 5 Then
@ -80,6 +82,11 @@ If SystemDateMonthInt = 10 Then
Var PepweenEnable = 1
EndIf
If SystemDateDayInt >= 13 Then
If SystemDateDayInt <= 24 Then
Var MilkChoiceVeganEnable = 1
EndIf
EndIf
EndIf
DEBUGVAR PepweenEnable
@ -191,6 +198,7 @@ EndIf
If InternationalEnable = 1 Then
Var MilkChoiceVeganEnable = 0
Var GameEnableFromTrickerEv = 0
Var TamatianEnable = 0
Var MayDayRunEnable = 0

View file

@ -85,7 +85,6 @@
;Var ShotCoffeePremium = "Enable"
;Var showOreoAddEnable = "Enable"
Var CerealMilkToppingEnable = "Invisible"
Var ExtraTopping = "Invisible"
@ -299,8 +298,15 @@
Var img_smth_dis = "/bt_smoothie_disable_no.png"
Var img_smth_dis2 = "/bt_smoothie_disable2_no.png"
If MilkChoiceVeganEnable = 1 Then
Var CerealMilkToppingEnable = "Invisible"
Var CerealMilkToppingVegan = "Enable"
Else
Var CerealMilkToppingEnable = "Enable"
Var CerealMilkToppingVegan = "Invisible"
EndIf
Var CerealMilkEnable = "Invisible"
Var CerealMilkEnable = "Enable"
Var topping_price_refresh = 1
@ -1485,8 +1491,7 @@
If MenuCodeName1 = "Cereal-Milk" Then
Var CerealMilkToppingEnable = "Enable"
Var CerealMilkPrice = SubMenuPrice1
Var ExtraTopping = "Enable"
Var CerealMilkEnable = "Enable"
EndIf
@ -1619,8 +1624,8 @@
<X> 52 </X>
<Y> 881 </Y>
<Width> 1080 </Width>
<Height> 900 </Height>
<ScrollHeight> "auto-all" </ScrollHeight>
<Height> 880 </Height>
<ScrollHeight> 880 </ScrollHeight>
<Scroll> "Vertical" </Scroll>
<Column> 1 </Column>
@ -2793,45 +2798,28 @@
;
;
;
;-BEGIN shot layout
<Block>
<State> ExtraTopping </State>
<Width> 1080 </Width>
<Height> "auto" </Height>
;
;
;
;
;-BEGIN milk choice
<Block>
<State> "Enable" </State>
<Width> 986 </Width>
<Height> 157 </Height>
<MarginTop> 20 </MarginTop>
<ListView1>
<Width> 986 </Width>
<Height> "auto" </Height>
<Align> "vertical"</Align>
<State> ExtraTopping </State>
;
<Row1>
<Width> 986 </Width>
<Height> 64 </Height>
<State> ExtraTopping </State>
<Image>
<Filename> Var( DirImage + "/bg_top.png" ) </Filename>
</Image>
</Row1>
;
;
;
<Row1>
<Width> 986 </Width>
<Height> "auto" </Height>
<State> CerealMilkToppingEnable </State>
;
<Image>
<X> 0 </X>
<Y> 0 </Y>
<Filename> Var( DirImage + "/bg_top_milk.png") </Filename>
<State> CerealMilkToppingEnable </State>
<Filename> Var( DirImage + "/bg_milk_choice.png" )</Filename>
</Image>
<Image>
<State> CerealMilkToppingVegan </State>
<Filename> Var( DirImage + "/bg_milk_choice_j.png" )</Filename>
</Image>
<Button>
<X> 40 </X>
<Y> 5 </Y>
<Y> 72 </Y>
<State> CerealMilkEnable </State>
<Mode> "No" </Mode>
<Filename> "ROOT/taobin_project/image/topping2/bn_cereal.png" </Filename>
@ -2857,7 +2845,7 @@
;
<Button>
<X> 896 </X>
<Y> 14 </Y>
<Y> 78 </Y>
<State> CerealMilkEnable </State>
<Mode> "No" </Mode>
<Filename> Var( DirImage + "/cb_notcheck.png" ) </Filename>
@ -2883,16 +2871,51 @@
</Button>
<Text>
<X> CerealMilkX </X>
<Y> 2 </Y>
<X> 237 </X>
<Y> 69 </Y>
<Font> KanitRegularTTF </Font>
<State> CerealMilkEnable</State>
<State> "Enable" </State>
<Size> 36 </Size>
<Color> 0x84776F </Color>
<Value> CerealMilkPrice </Value>
</Text>
</Block>
;
;
;
;
;
;
;
;
;
;
;
;
;
;-BEGIN shot layout
<Block>
<State> ExtraTopping </State>
<Width> 1080 </Width>
<Height> "auto" </Height>
<MarginTop> 20 </MarginTop>
<ListView1>
<Width> 986 </Width>
<Height> "auto" </Height>
<Align> "vertical"</Align>
<State> ExtraTopping </State>
;
<Row1>
<Width> 986 </Width>
<Height> 64 </Height>
<State> ExtraTopping </State>
<Image>
<Filename> Var( DirImage + "/bg_top.png" ) </Filename>
</Image>
</Row1>
;
;
;
@ -4162,13 +4185,13 @@
Var CerealMilkAddAmount = SubMenuPrice1 - PriceDrinkNoTop
If CerealMilkAddAmount = 0 Then
Var CerealMilkPrice = "(+฿10)"
Var CerealMilkPrice = "(+฿5)"
Else
Var CerealMilkPrice = "(+฿" + CerealMilkAddAmount
Var CerealMilkPrice = CerealMilkPrice + ")"
Var CerealMilkPrice = "(+฿10)"
Var CerealMilkPrice = "(+฿5)"
EndIf
DEBUGVAR SubMenuPrice1