- Jun 22, 2020
- 6
- 0
HI,
i am creating an hud however I am unable to create a screen seperate for hud.
however I am unable to make a standalone function fot hud.I have to write hud code on eachnscreen with below approach.
Also how to call two screen one after the other
i am creating an hud however I am unable to create a screen seperate for hud.
however I am unable to make a standalone function fot hud.I have to write hud code on eachnscreen with below approach.
Python:
screen hud_map(n_map):
zorder 99
modal True
if n_map=="CityMap":
add "CityMap"
elif n_map=="mc_house":
add "mc_house"
imagebutton auto "./menu/hud_inventory_mask_%s.png":
focus_mask "hud_inventory_mask_idle"
action Notify ("hud_inventory_mask")
imagebutton auto "./menu/hud_memo_mask_%s.png":
focus_mask "hud_memo_mask_idle"
action Notify ("hud_memo_mask")
imagebutton auto "./menu/hud_phone_mask_%s.png":
focus_mask "hud_phone_mask_idle"
# action Notify ("hud_phone_mask")
action Jump("hud_phone_mask")#phone_call_test)
if n_map!="CityMap":
imagebutton auto "./menu/hud_map_mask_%s.png":
focus_mask "hud_map_mask_idle"
action Jump ("cityMap")
else:
imagebutton auto "./menu/hud_mcroom_%s.png":
focus_mask "hud_mcroom_idle"
action Notify ("hud_mcroom")
if n_map=="CityMap":
imagebutton auto "./menu/citymap_mc_house_%s.png":
focus_mask "citymap_mc_house_idle"
# action Notify ("mcHouse")
action Jump("mcHouse")
imagebutton auto "./menu/citymap_b1_%s.png":
focus_mask "citymap_b1_idle"
action Notify ("mcHouse")
imagebutton auto "./menu/citymap_b2_%s.png":
focus_mask "citymap_b2_idle"
action Notify ("mcHouse")
imagebutton auto "./menu/citymap_b3_%s.png":
focus_mask "citymap_b3_idle"
action Notify ("mcHouse")
imagebutton auto "./menu/underconstruction_%s.png":
focus_mask "underconstruction_idle"
action Notify ("Under Construction to greedy perv. Wait !!")
if n_map=="mc_house":
imagebutton auto "./house/mc_house_%s.png":
focus_mask "mc_house_idle"
action Notify ("Under Construction to greedy perv. Wait !!")
label cityMap:
call screen hud_map("CityMap")
Code:
label mcHouse:
call screen hud()
call screen mc_hose()