presentations = [
("game_start",prsntf_read_only,0,[
(ti_on_presentation_load,
[
(presentation_set_duration, 999999),
(set_fixed_point_multiplier, 1000),
(store_div, reg1, mod_version, 1000),
(store_mod, reg2, mod_version, 1000),
(try_begin),
(eq, reg2, 0),
(str_store_string, s1, "@{reg1}.0"),
(else_try),
(lt, reg2, 10),
(str_store_string, s1, "@{reg1}.00{reg2}"),
(else_try),
(lt, reg2, 100),
(try_begin),
(store_mod, ":result", reg2, 10),
(eq, ":result", 0),
(val_div, reg2, 10),
(try_end),
(str_store_string, s1, "@{reg1}.0{reg2}"),
(else_try),
(try_begin),
(store_mod, ":result", reg2, 100),
(eq, ":result", 0),
(val_div, reg2, 100),
(else_try),
(store_mod, ":result", reg2, 10),
(eq, ":result", 0),
(val_div, reg2, 10),
(try_end),
(str_store_string, s1, "@{reg1}.{reg2}"),
(try_end),
(create_mesh_overlay, reg0, "mesh_main_menu_dust"),
(position_set_x, pos1, 0),
(position_set_y, pos1, 0),
(overlay_set_position, reg0, pos1),
(create_mesh_overlay, reg0, "mesh_main_menu_static"),
(position_set_x, pos1, 0),
(position_set_y, pos1, 0),
(overlay_set_position, reg0, pos1),
(create_mesh_overlay, reg0, "mesh_main_menu_prs"),
(position_set_x, pos1, 0),
(position_set_y, pos1, 0),
(overlay_set_position, reg0, pos1),
(create_mesh_overlay, reg0, "mesh_main_menu_move_1"),
(position_set_x, pos1, 0),
(position_set_y, pos1, 0),
(overlay_set_position, reg0, pos1),
(assign, ":var0", 1400),
(assign, ":var1", 145),
(assign, ":var2", 452),
(assign, ":var3", -40),
(create_text_overlay, "$g_presentation_credits_obj_1", "str_mod_ui_new_game", tf_center_justify|tf_double_space|tf_vertical_align_center),
(position_set_x, pos1, ":var0"),
(position_set_y, pos1, ":var0"),
(overlay_set_size, "$g_presentation_credits_obj_1", pos1),
(position_set_x, pos1, ":var1"),
(position_set_y, pos1, ":var2"),
(overlay_set_position, "$g_presentation_credits_obj_1", pos1),
(val_add, ":var2", ":var3"),
(create_text_overlay, "$g_presentation_credits_obj_2", "str_mod_ui_load_saved_game", tf_center_justify|tf_double_space|tf_vertical_align_center),
(position_set_x, pos1, ":var0"),
(position_set_y, pos1, ":var0"),
(overlay_set_size, "$g_presentation_credits_obj_2", pos1),
(position_set_x, pos1, ":var1"),
(position_set_y, pos1, ":var2"),
(overlay_set_position, "$g_presentation_credits_obj_2", pos1),
(val_add, ":var2", ":var3"),
(create_text_overlay, "$g_presentation_credits_obj_3", "str_mod_ui_quick_battle", tf_center_justify|tf_double_space|tf_vertical_align_center),
(position_set_x, pos1, ":var0"),
(position_set_y, pos1, ":var0"),
(overlay_set_size, "$g_presentation_credits_obj_3", pos1),
(position_set_x, pos1, ":var1"),
(position_set_y, pos1, ":var2"),
(overlay_set_position, "$g_presentation_credits_obj_3", pos1),
(val_add, ":var2", ":var3"),
(create_text_overlay, "$g_presentation_credits_obj_4", "str_mod_ui_options", tf_center_justify|tf_double_space|tf_vertical_align_center),
(position_set_x, pos1, ":var0"),
(position_set_y, pos1, ":var0"),
(overlay_set_size, "$g_presentation_credits_obj_4", pos1),
(position_set_x, pos1, ":var1"),
(position_set_y, pos1, ":var2"),
(overlay_set_position, "$g_presentation_credits_obj_4", pos1),
(val_add, ":var2", ":var3"),
(create_text_overlay, "$g_presentation_credits_obj_5", "str_mod_ui_credits", tf_center_justify|tf_double_space|tf_vertical_align_center),
(position_set_x, pos1, ":var0"),
(position_set_y, pos1, ":var0"),
(overlay_set_size, "$g_presentation_credits_obj_5", pos1),
(position_set_x, pos1, ":var1"),
(position_set_y, pos1, ":var2"),
(overlay_set_position, "$g_presentation_credits_obj_5", pos1),
(val_add, ":var2", ":var3"),
(create_text_overlay, "$g_presentation_credits_obj_6", "str_mod_ui_exit", tf_center_justify|tf_double_space|tf_vertical_align_center),
(position_set_x, pos1, ":var0"),
(position_set_y, pos1, ":var0"),
(overlay_set_size, "$g_presentation_credits_obj_6", pos1),
(position_set_x, pos1, ":var1"),
(position_set_y, pos1, ":var2"),
(overlay_set_position, "$g_presentation_credits_obj_6", pos1),
]),
(ti_on_presentation_mouse_enter_leave,
[
(store_trigger_param_1, ":var0"),
(store_trigger_param_2, ":var1"),
(this_or_next|eq, ":var0", "$g_presentation_credits_obj_1"),
(this_or_next|eq, ":var0", "$g_presentation_credits_obj_2"),
(this_or_next|eq, ":var0", "$g_presentation_credits_obj_3"),
(this_or_next|eq, ":var0", "$g_presentation_credits_obj_4"),
(this_or_next|eq, ":var0", "$g_presentation_credits_obj_5"),
(eq, ":var0", "$g_presentation_credits_obj_6"),
(try_begin),
(eq, ":var1", 1),
(overlay_set_color, ":var0", 0x000000),
(assign, ":var2", 1400),
(position_set_x, pos1, ":var2"),
(position_set_y, pos1, ":var2"),
(overlay_set_size, ":var0", pos1),
(else_try),
(overlay_set_color, ":var0", 0xAA0000),
(assign, ":var2", 1600),
(position_set_x, pos1, ":var2"),
(position_set_y, pos1, ":var2"),
(overlay_set_size, ":var0", pos1),
(try_end),
]),
]),
("main_menu_dust", 0, "main_menu_dust", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("main_menu_move_1", 0, "main_menu_move_1", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("main_menu_prs", 0, "main_menu_prs", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("main_menu_static", 0, "main_menu_static", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("main_menu_background", 0, "main_menu_crusaders", 0, 0, 0, 0, 0, 0, 1, 1, 1),
Комментариев 2
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.