DO inter
This commit is contained in:
parent
7c02385260
commit
7b9c04853e
7 changed files with 77 additions and 49 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
12
xml/menu_catalog_default_init.py
Normal file
12
xml/menu_catalog_default_init.py
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
if "v2" in param:
|
||||||
|
print("new menu_catalog_default_init catalog ============================> inter.")
|
||||||
|
f = open( directory_to_process + "/menu_catalog_default_init.lxml", "r")
|
||||||
|
#print(f.read())
|
||||||
|
out_xml(f.read())
|
||||||
|
f.close()
|
||||||
|
else:
|
||||||
|
print("new menu_catalog_default_init catalog enable.")
|
||||||
|
f = open( directory_to_process + "/menu_catalog_default_init.xml", "r")
|
||||||
|
#print(f.read())
|
||||||
|
out_xml(f.read())
|
||||||
|
f.close()
|
||||||
|
|
@ -13,29 +13,38 @@
|
||||||
DEBUGVAR ICE_PROCESS_STATUS
|
DEBUGVAR ICE_PROCESS_STATUS
|
||||||
DEBUGVAR ICE_PROCESS_TXT
|
DEBUGVAR ICE_PROCESS_TXT
|
||||||
|
|
||||||
|
|
||||||
If show_eng = "true" Then
|
DEBUGVAR LanguageShow
|
||||||
Var showthaiText = "Invisible"
|
If LanguageShow = "ENG" Then
|
||||||
Var showengText = "Enable"
|
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
|
||||||
|
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
|
||||||
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
||||||
Var show_btp = "ROOT/taobin_project/image/page2/bn_thai_lang_press_2.png"
|
|
||||||
Var show_btn = "ROOT/taobin_project/image/page2/bn_thai_lang_2.png"
|
|
||||||
|
|
||||||
Var ice_tab_text = "Ice will be ready at "
|
Var ice_tab_text = "Ice will be ready at "
|
||||||
Var text_unavailable = "UNAVAILABLE###size=16"
|
|
||||||
|
|
||||||
|
|
||||||
Else
|
|
||||||
Var showengText = "Invisible"
|
|
||||||
Var showthaiText = "Enable"
|
|
||||||
|
|
||||||
Var DirImage = "ROOT/taobin_project/image/page3"
|
|
||||||
Var show_btp = "ROOT/taobin_project/image/page2/bn_eng_lang_2.png"
|
|
||||||
Var show_btn = "ROOT/taobin_project/image/page2/bn_eng_lang_2.png"
|
|
||||||
|
|
||||||
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
|
|
||||||
Var text_unavailable = "หมด###size=32"
|
|
||||||
EndIf
|
EndIf
|
||||||
|
If LanguageShow = "THAI" Then
|
||||||
|
Var DirImage2 = "ROOT/taobin_project/image/drink_option/"
|
||||||
|
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
|
||||||
|
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/page3"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
If CountryName = "Malaysia" Then
|
||||||
|
If LanguageShow = "ENG" Then
|
||||||
|
Var DirImage2 = "ROOT/taobin_project/image/drink_option_en/"
|
||||||
|
Var DirImageAlter = "ROOT/taobin_project/image/page3_2_en/"
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/page3_en"
|
||||||
|
Var ice_tab_text = "Ice will be ready at "
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
If LanguageShow = "MALAY" Then
|
||||||
|
Var DirImage2 = "ROOT/taobin_project/image/drink_option_myr/"
|
||||||
|
Var DirImageAlter = "ROOT/taobin_project/image/page3_2/"
|
||||||
|
Var ice_tab_text = "น้ำแข็งจะพร้อมเวลา "
|
||||||
|
Var DirImage = "ROOT/taobin_project/image/page3"
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
If ICE_PROCESS_STATUS = 2 Then
|
If ICE_PROCESS_STATUS = 2 Then
|
||||||
Var ice_tab_process_show = "Enable"
|
Var ice_tab_process_show = "Enable"
|
||||||
|
|
@ -114,7 +123,6 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Var Menu4Selected = "PressForever"
|
Var Menu4Selected = "PressForever"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<EventOpen>
|
<EventOpen>
|
||||||
; On open
|
; On open
|
||||||
<?hurr
|
<?hurr
|
||||||
#include=menu_catalog_default_init.xml
|
#include=menu_catalog_default_init.py
|
||||||
?>
|
?>
|
||||||
|
|
||||||
Var Menu4Selected = "PressForever"
|
Var Menu4Selected = "PressForever"
|
||||||
|
|
|
||||||
|
|
@ -324,7 +324,7 @@
|
||||||
|
|
||||||
; arrow up
|
; arrow up
|
||||||
<Button>
|
<Button>
|
||||||
<X> 25 </X>
|
<X> 20 </X>
|
||||||
<Y> 888 </Y>
|
<Y> 888 </Y>
|
||||||
<Width>180</Width>
|
<Width>180</Width>
|
||||||
<Height>180</Height>
|
<Height>180</Height>
|
||||||
|
|
@ -334,18 +334,20 @@
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
SAVELOG "Allow up"
|
SAVELOG "Allow up"
|
||||||
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
If LivenessFramePositionY > 120 Then
|
||||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||||
DEBUGVAR LivenessFramePositionYTmp
|
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
DEBUGVAR LivenessFramePositionYTmp
|
||||||
LivenessCommand "start" 0
|
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||||
|
LivenessCommand "start" 0
|
||||||
|
EndIf
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
; arrow down
|
; arrow down
|
||||||
<Button>
|
<Button>
|
||||||
<X> 25 </X>
|
<X> 20 </X>
|
||||||
<Y> 1249 </Y>
|
<Y> 1249 </Y>
|
||||||
<Width>180</Width>
|
<Width>180</Width>
|
||||||
<Height>180</Height>
|
<Height>180</Height>
|
||||||
|
|
@ -355,19 +357,21 @@
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
SAVELOG "Allow down"
|
SAVELOG "Allow down"
|
||||||
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
If LivenessFramePositionY < 340 Then
|
||||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||||
DEBUGVAR LivenessFramePositionYTmp
|
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
DEBUGVAR LivenessFramePositionYTmp
|
||||||
LivenessCommand "start" 0
|
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||||
|
LivenessCommand "start" 0
|
||||||
|
EndIf
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
||||||
; arrow up
|
; arrow up
|
||||||
<Button>
|
<Button>
|
||||||
<X> 862 </X>
|
<X> 892 </X>
|
||||||
<Y> 888 </Y>
|
<Y> 888 </Y>
|
||||||
<Width>180</Width>
|
<Width>180</Width>
|
||||||
<Height>180</Height>
|
<Height>180</Height>
|
||||||
|
|
@ -377,18 +381,20 @@
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
SAVELOG "Allow up"
|
SAVELOG "Allow up"
|
||||||
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
If LivenessFramePositionY > 120 Then
|
||||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||||
DEBUGVAR LivenessFramePositionYTmp
|
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
DEBUGVAR LivenessFramePositionYTmp
|
||||||
LivenessCommand "start" 0
|
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||||
|
LivenessCommand "start" 0
|
||||||
|
EndIf
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
; arrow down
|
; arrow down
|
||||||
<Button>
|
<Button>
|
||||||
<X> 862 </X>
|
<X> 892 </X>
|
||||||
<Y> 1249 </Y>
|
<Y> 1249 </Y>
|
||||||
<Width>180</Width>
|
<Width>180</Width>
|
||||||
<Height>180</Height>
|
<Height>180</Height>
|
||||||
|
|
@ -398,12 +404,14 @@
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
SAVELOG "Allow down"
|
SAVELOG "Allow down"
|
||||||
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
If LivenessFramePositionY < 340 Then
|
||||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||||
DEBUGVAR LivenessFramePositionYTmp
|
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
DEBUGVAR LivenessFramePositionYTmp
|
||||||
LivenessCommand "start" 0
|
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||||
|
LivenessCommand "start" 0
|
||||||
|
EndIf
|
||||||
</EventClick>
|
</EventClick>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue