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_TXT
|
||||
|
||||
|
||||
If show_eng = "true" Then
|
||||
Var showthaiText = "Invisible"
|
||||
Var showengText = "Enable"
|
||||
|
||||
DEBUGVAR LanguageShow
|
||||
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 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 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
|
||||
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
|
||||
Var ice_tab_process_show = "Enable"
|
||||
|
|
@ -114,7 +123,6 @@
|
|||
;
|
||||
|
||||
|
||||
|
||||
|
||||
Var Menu4Selected = "PressForever"
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<EventOpen>
|
||||
; On open
|
||||
<?hurr
|
||||
#include=menu_catalog_default_init.xml
|
||||
#include=menu_catalog_default_init.py
|
||||
?>
|
||||
|
||||
Var Menu4Selected = "PressForever"
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@
|
|||
|
||||
; arrow up
|
||||
<Button>
|
||||
<X> 25 </X>
|
||||
<X> 20 </X>
|
||||
<Y> 888 </Y>
|
||||
<Width>180</Width>
|
||||
<Height>180</Height>
|
||||
|
|
@ -334,18 +334,20 @@
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Allow up"
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
If LivenessFramePositionY > 120 Then
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
; arrow down
|
||||
<Button>
|
||||
<X> 25 </X>
|
||||
<X> 20 </X>
|
||||
<Y> 1249 </Y>
|
||||
<Width>180</Width>
|
||||
<Height>180</Height>
|
||||
|
|
@ -355,19 +357,21 @@
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Allow down"
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
If LivenessFramePositionY < 340 Then
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
||||
; arrow up
|
||||
<Button>
|
||||
<X> 862 </X>
|
||||
<X> 892 </X>
|
||||
<Y> 888 </Y>
|
||||
<Width>180</Width>
|
||||
<Height>180</Height>
|
||||
|
|
@ -377,18 +381,20 @@
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Allow up"
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
If LivenessFramePositionY > 120 Then
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition - FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition - FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
; arrow down
|
||||
<Button>
|
||||
<X> 862 </X>
|
||||
<X> 892 </X>
|
||||
<Y> 1249 </Y>
|
||||
<Width>180</Width>
|
||||
<Height>180</Height>
|
||||
|
|
@ -398,12 +404,14 @@
|
|||
<Volume> SoundVolume </Volume>
|
||||
<EventClick>
|
||||
SAVELOG "Allow down"
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
If LivenessFramePositionY < 340 Then
|
||||
Var LivenessFramePositionYTmp = LivenessFramePositionY + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceYPosition = FrameOfFaceYPosition + FrameOfFaceStepMoveY
|
||||
Var FrameOfFaceCropImageYPosition = FrameOfFaceCropImageYPosition + FrameOfFaceStepMoveY
|
||||
DEBUGVAR LivenessFramePositionYTmp
|
||||
LivenessCommand "SetY" LivenessFramePositionYTmp
|
||||
LivenessCommand "start" 0
|
||||
EndIf
|
||||
</EventClick>
|
||||
</Button>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue