From d3014f44fc12ad15f0b571889749630c1e9a7565 Mon Sep 17 00:00:00 2001 From: worawut Date: Wed, 5 Apr 2023 10:37:29 +0700 Subject: [PATCH 1/3] spiral makedrink --- spiral/product.json | 6 +- spiral/xml/page_catalog_vending_machine.xml | 319 +++++++++++++++++++- spiral/xml/page_spiral_select.xml | 6 +- 3 files changed, 321 insertions(+), 10 deletions(-) diff --git a/spiral/product.json b/spiral/product.json index f667203b..45f171a3 100644 --- a/spiral/product.json +++ b/spiral/product.json @@ -228,7 +228,7 @@ "id": 15, "code": "03-02-01-0013", "name": "บลูเบอรี่ พายป๊อปคอร์น", - "nameE": "Blueberry Pie Popcorn", + "nameE": "Blueberry Pie\nPopcorn", "desc": "TAO BIN SNACK STATION", "descE": "TAO BIN SNACK STATION", "image": "03-02-01-0013.png", @@ -243,8 +243,8 @@ { "id": 16, "code": "03-02-01-0014", - "name": "สตรอเบอร์รี่ ซันเดย์ป๊อปคอร์น", - "nameE": "Strawberry Sundea Popcorn", + "name": "สตรอเบอร์รี่ ซันเดย์\nป๊อปคอร์น", + "nameE": "Strawberry Sundea\nPopcorn", "desc": "TAO BIN SNACK STATION", "descE": "TAO BIN SNACK STATION", "image": "03-02-01-0014.png", diff --git a/spiral/xml/page_catalog_vending_machine.xml b/spiral/xml/page_catalog_vending_machine.xml index a8f4b512..944608ce 100644 --- a/spiral/xml/page_catalog_vending_machine.xml +++ b/spiral/xml/page_catalog_vending_machine.xml @@ -2640,6 +2640,320 @@ +; button i=1 03-02-01-0013 + + 33 + 22 + 225 + 296 + $03-02-01-0013.Button + + + + 49 + 117 + + eval( + If $03-02-01-0013.Button = "Disable" Then + Var return = "Enable" + + Else + Var return = "Invisible" + EndIf + ) + + "ROOT/taobin_project/image//img_menu_err2.png" + + + + 48 + 116 + 32 + 128 + 64 + MITRegularTTF + 0x5A5A5A + "disable-show" + $03-02-01-0013.Button + text_unavailable + center-vertical-horizontal + + + + + + 10 + 251 + ShowPrice + 67 + 62 + ImageShowPrice + + + + 57 + 260 + ShowPrice + "Hurr" + 150 + 17 + KanitMediumTTF + ColorBrown2 + $03-02-01-0013.Price + + + + 45 + 260 + ShowPrice + 20 + 17 + KanitMediumTTF + ColorBrown2 + "฿"" + + + + + + 16 + 180 + 22 + 220 + "multi2" + KanitMediumTTF + ColorBlack1 + showthaiText + $03-02-01-0013.Name + + + + 16 + 240 + 14 + 220 + KanitMediumTTF + ColorBrown + showthaiText + $03-02-01-0013.description + + + + 16 + 180 + 22 + 220 + "multi2" + KanitMediumTTF + ColorBlack1 + showengText + $03-02-01-0013.NameE + + + + 16 + 240 + 14 + 220 + KanitMediumTTF + ColorBrown + showengText + $03-02-01-0013.descriptionE + + + + + +; button i=1 03-02-01-0014 + + 33 + 22 + 225 + 296 + $03-02-01-0014.Button + + + + + 49 + 117 + + eval( + If $03-02-01-0014.Button = "Disable" Then + Var return = "Enable" + + Else + Var return = "Invisible" + EndIf + ) + + "ROOT/taobin_project/image//img_menu_err2.png" + + + + + 48 + 116 + 32 + 128 + 64 + MITRegularTTF + 0x5A5A5A + "disable-show" + $03-02-01-0014.Button + text_unavailable + center-vertical-horizontal + + + + 10 + 251 + ShowPrice + 67 + 62 + ImageShowPrice + + + + 57 + 260 + ShowPrice + "Hurr" + 150 + 17 + KanitMediumTTF + ColorBrown2 + $03-02-01-0014.Price + + + + 45 + 260 + ShowPrice + 20 + 17 + KanitMediumTTF + ColorBrown2 + "฿"" + + + + + + 16 + 180 + 22 + 220 + "multi2" + KanitMediumTTF + ColorBlack1 + showthaiText + $03-02-01-0014.Name + + + + 16 + 240 + 14 + 220 + KanitMediumTTF + ColorBrown + showthaiText + $03-02-01-0014.description + + + + 16 + 180 + 22 + 220 + "multi2" + KanitMediumTTF + ColorBlack1 + showengText + $03-02-01-0014.NameE + + + + 16 + 240 + 14 + 220 + KanitMediumTTF + ColorBrown + showengText + $03-02-01-0014.descriptionE + + + + + ; button i=1 01-00-00-0015 33 @@ -2651,7 +2965,7 @@ $01-00-00-0015.Button Var( "ROOT/taobin_project/spiral/image/page_spiral/" + $01-00-00-0015.image ) Var( "ROOT/taobin_project/spiral/image/page_spiral_press/" + $01-00-00-0015.image ) " - ; Var( "ROOT/taobin_project/spiral/image/page_spiral_disable/" + $01-00-00-0015.image ) " + ; Var( "ROOT/taobin_project/spiral/image/page_spiral_press/" + $01-00-00-0015.image ) " "/mnt/sdcard/coffeevending/wav/click.wav" SoundVolume @@ -2765,9 +3079,6 @@ - - - ; Cart + + + 49 + 117 + + eval( + If $03-02-01-0013.Button = "Disable" Then + Var return = "Enable" + + Else + Var return = "Invisible" + EndIf + ) + + "ROOT/taobin_project/image//img_menu_err2.png" + + + + 48 + 116 + 32 + 128 + 64 + MITRegularTTF + 0x5A5A5A + "disable-show" + $03-02-01-0013.Button + text_unavailable + center-vertical-horizontal + + + + + + 10 + 251 + ShowPrice + 67 + 62 + ImageShowPrice + + + + 57 + 260 + ShowPrice + "Hurr" + 150 + 17 + KanitMediumTTF + ColorBrown2 + $03-02-01-0013.Price + + + + 45 + 260 + ShowPrice + 20 + 17 + KanitMediumTTF + ColorBrown2 + "฿"" + + + + + + 16 + 180 + 22 + 220 + "multi2" + KanitMediumTTF + ColorBlack1 + showthaiText + $03-02-01-0013.Name + + + + 16 + 240 + 14 + 220 + KanitMediumTTF + ColorBrown + showthaiText + $03-02-01-0013.description + + + + 16 + 180 + 22 + 220 + "multi2" + KanitMediumTTF + ColorBlack1 + showengText + $03-02-01-0013.NameE + + + + 16 + 240 + 14 + 220 + KanitMediumTTF + ColorBrown + showengText + $03-02-01-0013.descriptionE + + + + + +; button i=1 03-02-01-0014 + + 33 + 22 + 225 + 296 + $03-02-01-0014.Button + + + + + 49 + 117 + + eval( + If $03-02-01-0014.Button = "Disable" Then + Var return = "Enable" + + Else + Var return = "Invisible" + EndIf + ) + + "ROOT/taobin_project/image//img_menu_err2.png" + + + + + 48 + 116 + 32 + 128 + 64 + MITRegularTTF + 0x5A5A5A + "disable-show" + $03-02-01-0014.Button + text_unavailable + center-vertical-horizontal + + + + 10 + 251 + ShowPrice + 67 + 62 + ImageShowPrice + + + + 57 + 260 + ShowPrice + "Hurr" + 150 + 17 + KanitMediumTTF + ColorBrown2 + $03-02-01-0014.Price + + + + 45 + 260 + ShowPrice + 20 + 17 + KanitMediumTTF + ColorBrown2 + "฿"" + + + + + + 16 + 180 + 22 + 220 + "multi2" + KanitMediumTTF + ColorBlack1 + showthaiText + $03-02-01-0014.Name + + + + 16 + 240 + 14 + 220 + KanitMediumTTF + ColorBrown + showthaiText + $03-02-01-0014.description + + + + 16 + 180 + 22 + 220 + "multi2" + KanitMediumTTF + ColorBlack1 + showengText + $03-02-01-0014.NameE + + + + 16 + 240 + 14 + 220 + KanitMediumTTF + ColorBrown + showengText + $03-02-01-0014.descriptionE + + + + + ; button i=1 03-02-01-0010 33 @@ -2640,319 +2955,6 @@ -; button i=1 03-02-01-0013 - - 33 - 22 - 225 - 296 - $03-02-01-0013.Button - - - - 49 - 117 - - eval( - If $03-02-01-0013.Button = "Disable" Then - Var return = "Enable" - - Else - Var return = "Invisible" - EndIf - ) - - "ROOT/taobin_project/image//img_menu_err2.png" - - - - 48 - 116 - 32 - 128 - 64 - MITRegularTTF - 0x5A5A5A - "disable-show" - $03-02-01-0013.Button - text_unavailable - center-vertical-horizontal - - - - - - 10 - 251 - ShowPrice - 67 - 62 - ImageShowPrice - - - - 57 - 260 - ShowPrice - "Hurr" - 150 - 17 - KanitMediumTTF - ColorBrown2 - $03-02-01-0013.Price - - - - 45 - 260 - ShowPrice - 20 - 17 - KanitMediumTTF - ColorBrown2 - "฿"" - - - - - - 16 - 180 - 22 - 220 - "multi2" - KanitMediumTTF - ColorBlack1 - showthaiText - $03-02-01-0013.Name - - - - 16 - 240 - 14 - 220 - KanitMediumTTF - ColorBrown - showthaiText - $03-02-01-0013.description - - - - 16 - 180 - 22 - 220 - "multi2" - KanitMediumTTF - ColorBlack1 - showengText - $03-02-01-0013.NameE - - - - 16 - 240 - 14 - 220 - KanitMediumTTF - ColorBrown - showengText - $03-02-01-0013.descriptionE - - - - - -; button i=1 03-02-01-0014 - - 33 - 22 - 225 - 296 - $03-02-01-0014.Button - - - - - 49 - 117 - - eval( - If $03-02-01-0014.Button = "Disable" Then - Var return = "Enable" - - Else - Var return = "Invisible" - EndIf - ) - - "ROOT/taobin_project/image//img_menu_err2.png" - - - - - 48 - 116 - 32 - 128 - 64 - MITRegularTTF - 0x5A5A5A - "disable-show" - $03-02-01-0014.Button - text_unavailable - center-vertical-horizontal - - - - 10 - 251 - ShowPrice - 67 - 62 - ImageShowPrice - - - - 57 - 260 - ShowPrice - "Hurr" - 150 - 17 - KanitMediumTTF - ColorBrown2 - $03-02-01-0014.Price - - - - 45 - 260 - ShowPrice - 20 - 17 - KanitMediumTTF - ColorBrown2 - "฿"" - - - - - - 16 - 180 - 22 - 220 - "multi2" - KanitMediumTTF - ColorBlack1 - showthaiText - $03-02-01-0014.Name - - - - 16 - 240 - 14 - 220 - KanitMediumTTF - ColorBrown - showthaiText - $03-02-01-0014.description - - - - 16 - 180 - 22 - 220 - "multi2" - KanitMediumTTF - ColorBlack1 - showengText - $03-02-01-0014.NameE - - - - 16 - 240 - 14 - 220 - KanitMediumTTF - ColorBrown - showengText - $03-02-01-0014.descriptionE - - - - ; button i=1 01-00-00-0015