Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ("game_profile_banner_selection", 0, mesh_load_window, [
- (ti_on_presentation_load, [
- (set_fixed_point_multiplier, 1000),
- (profile_get_banner_id, ":color"),
- (assign, "$g_presentation_profile_banner_selection_part", 0),
- (assign, "$g_tableau_randomness", 0),
- (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_jedi"),
- (create_mesh_overlay, reg1, "mesh_face_gen_window"),
- (str_store_string, s1, "@Design your character's appearance"),
- (create_text_overlay, reg1, s1, tf_center_justify),
- (position_set_x, pos1, 740),
- (position_set_y, pos1, 650),
- (overlay_set_position, reg1, pos1),
- (overlay_set_color, reg1, 0xFFFFFF),
- (create_game_button_overlay, "$g_presentation_obj_profile_banner_selection_1", "@Save"),
- (position_set_x, pos1, 750),
- (position_set_y, pos1, 60),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_1", pos1),
- (create_mesh_overlay_with_tableau_material, "$g_presentation_obj_profile_banner_selection_2", -1, "tableau_game_profile_window", 0),
- (position_set_x, pos1, 150),
- (position_set_y, pos1, 270),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_2", pos1),
- (create_image_button_overlay, "$g_presentation_obj_profile_banner_selection_3", "mesh_white_dot", "mesh_white_dot"),
- (create_image_button_overlay, "$g_presentation_obj_profile_banner_selection_4", "mesh_white_dot", "mesh_white_dot"),
- (create_image_button_overlay, "$g_presentation_obj_profile_banner_selection_5", "mesh_white_dot", "mesh_white_dot"),
- (str_store_string, s1, "@Jedi - Bounty H. A"),
- (create_text_overlay, reg1, s1, tf_center_justify),
- (str_store_string, s1, "@Jedi - Bounty H. B"),
- (create_text_overlay, reg2, s1, tf_center_justify),
- (str_store_string, s1, "@Clone - Droid"),
- (create_text_overlay, reg3, s1, tf_center_justify),
- (position_set_x, pos1, 680),
- (position_set_y, pos1, 600),
- (overlay_set_position, reg1, pos1),
- (position_set_y, pos1, 610),
- (position_set_x, pos1, 800),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_3", pos1),
- (position_set_x, pos1, 680),
- (position_set_y, pos1, 540),
- (overlay_set_position, reg2, pos1),
- (position_set_y, pos1, 550),
- (position_set_x, pos1, 800),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_4", pos1),
- (position_set_x, pos1, 700),
- (position_set_y, pos1, 480),
- (overlay_set_position, reg3, pos1),
- (position_set_y, pos1, 490),
- (position_set_x, pos1, 800),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_5", pos1),
- (position_set_x, pos1, 650),
- (position_set_x, pos1, 2000),
- (position_set_y, pos1, 2000),
- (overlay_set_size, "$g_presentation_obj_profile_banner_selection_3", pos1),
- (overlay_set_size, "$g_presentation_obj_profile_banner_selection_4", pos1),
- (overlay_set_size, "$g_presentation_obj_profile_banner_selection_5", pos1),
- (create_slider_overlay, "$g_presentation_obj_profile_banner_selection_6", 0, 7),
- (create_slider_overlay, "$g_presentation_obj_profile_banner_selection_7", 0, 7),
- (create_slider_overlay, "$g_presentation_obj_profile_banner_selection_8", 0, 7),
- (position_set_x, pos1, 710),
- (position_set_y, pos1, 380),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_6", pos1),
- (position_set_y, pos1, 320),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_7", pos1),
- (position_set_y, pos1, 260),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_8", pos1),
- (str_store_string, s1, "@Red"),
- (create_text_overlay, reg1, s1, tf_center_justify),
- (str_store_string, s1, "@Green"),
- (create_text_overlay, reg2, s1, tf_center_justify),
- (str_store_string, s1, "@Blue"),
- (create_text_overlay, reg3, s1, tf_center_justify),
- (position_set_x, pos1, 710),
- (position_set_y, pos1, 410),
- (overlay_set_position, reg1, pos1),
- (position_set_y, pos1, 350),
- (overlay_set_position, reg2, pos1),
- (position_set_y, pos1, 290),
- (overlay_set_position, reg3, pos1),
- (str_store_string, s1, "@Choose the class you want to color"),
- (create_text_overlay, reg1, s1, tf_center_justify),
- (position_set_x, pos1, 295),
- (position_set_y, pos1, 160),
- (overlay_set_position, reg1, pos1),
- (overlay_set_color, reg1, 0xFFFFFF),
- (create_combo_button_overlay, "$g_presentation_obj_profile_banner_selection_9"),
- (position_set_x, pos1, 280),
- (position_set_y, pos1, 120),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_9", pos1),
- (overlay_add_item, "$g_presentation_obj_profile_banner_selection_9", "@Jedi"),
- (overlay_add_item, "$g_presentation_obj_profile_banner_selection_9", "@Clone Trooper"),
- (overlay_add_item, "$g_presentation_obj_profile_banner_selection_9", "@Battle Droid"),
- (overlay_add_item, "$g_presentation_obj_profile_banner_selection_9", "@Bounty Hunter"),
- (create_mesh_overlay, "$g_presentation_obj_profile_banner_selection_10", "mesh_white_plane"),
- (position_set_x, pos1, 860),
- (position_set_y, pos1, 310),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_10", pos1),
- (position_set_x, pos1, 2000),
- (position_set_y, pos1, 4000),
- (overlay_set_size, "$g_presentation_obj_profile_banner_selection_10", pos1),
- (str_store_string, s1, "@Decal"),
- (create_text_overlay, reg1, s1, tf_center_justify),
- (position_set_x, pos1, 600),
- (position_set_y, pos1, 180),
- (overlay_set_position, reg1, pos1),
- (create_game_button_overlay, "$g_presentation_obj_profile_banner_selection_11", "@Next"),
- (create_game_button_overlay, "$g_presentation_obj_profile_banner_selection_12", "@Previous"),
- (position_set_x, pos1, 860),
- (position_set_y, pos1, 200),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_11", pos1),
- (position_set_y, pos1, 130),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_12", pos1),
- (call_script, "script_color_get_component", ":color", 4, 0),
- (store_add, ":decal", reg0, "mesh_decal0"),
- (create_mesh_overlay, "$g_presentation_obj_profile_banner_selection_13", ":decal"),
- (position_set_x, pos1, 680),
- (position_set_y, pos1, 140),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_13", pos1),
- (position_set_x, pos1, 4000),
- (position_set_y, pos1, 4000),
- (overlay_set_size, "$g_presentation_obj_profile_banner_selection_13", pos1),
- (create_game_button_overlay, "$g_presentation_obj_profile_banner_selection_14", "@Update"),
- (position_set_x, pos1, 920),
- (position_set_y, pos1, 260),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_14", pos1),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_3", 0xFF0000),
- (call_script, "script_color_get_part", ":color", "$g_presentation_profile_banner_selection_part"),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_10", reg0),
- (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 0),
- (overlay_set_val, "$g_presentation_obj_profile_banner_selection_8", reg0),
- (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 1),
- (overlay_set_val, "$g_presentation_obj_profile_banner_selection_7", reg0),
- (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 2),
- (overlay_set_val, "$g_presentation_obj_profile_banner_selection_6", reg0),
- (presentation_set_duration, 999999),
- ]),
- (ti_on_presentation_event_state_change, [
- (set_fixed_point_multiplier, 1000),
- (store_trigger_param_1, ":object"),
- (store_trigger_param_2, ":value"),
- (assign, ":update_color", 0),
- (assign, ":update_sliders", 0),
- (assign, ":update_troop", 0),
- (try_begin),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_1"),
- (presentation_set_duration, 0),
- (else_try),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_3"),
- (assign,"$g_presentation_profile_banner_selection_part", 0),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_3", 0xFF0000),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_4", 0xFFFFFF),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_5", 0xFFFFFF),
- (assign, ":update_color", 1),
- (assign, ":update_sliders", 1),
- (else_try),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_4"),
- (assign,"$g_presentation_profile_banner_selection_part", 1),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_3", 0xFFFFFF),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_4", 0xFF0000),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_5", 0xFFFFFF),
- (assign, ":update_color", 1),
- (assign, ":update_sliders", 1),
- (else_try),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_5"),
- (assign,"$g_presentation_profile_banner_selection_part", 2),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_3", 0xFFFFFF),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_4", 0xFFFFFF),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_5", 0xFF0000),
- (assign, ":update_color", 1),
- (assign, ":update_sliders", 1),
- (else_try),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_6"),
- (profile_get_banner_id, ":color"),
- (call_script, "script_color_set_component", ":color", "$g_presentation_profile_banner_selection_part", 2, ":value"),
- (profile_set_banner_id, reg0),
- (assign, ":update_color", 1),
- (else_try),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_7"),
- (profile_get_banner_id, ":color"),
- (call_script, "script_color_set_component", ":color", "$g_presentation_profile_banner_selection_part", 1, ":value"),
- (profile_set_banner_id, reg0),
- (assign, ":update_color", 1),
- (else_try),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_8"),
- (profile_get_banner_id, ":color"),
- (call_script, "script_color_set_component", ":color", "$g_presentation_profile_banner_selection_part", 0, ":value"),
- (profile_set_banner_id, reg0),
- (assign, ":update_color", 1),
- (else_try),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_9"),
- (try_begin),
- (eq, ":value", 0),
- (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_jedi"),
- (else_try),
- (eq, ":value", 1),
- (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_clone"),
- (else_try),
- (eq, ":value", 2),
- (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_droid"),
- (else_try),
- (eq, ":value", 3),
- (assign, "$g_presentation_profile_troop", "trp_multiplayer_profile_troop_bounty"),
- (try_end),
- (assign, ":update_color", 1),
- (else_try),
- (this_or_next|eq, ":object", "$g_presentation_obj_profile_banner_selection_11"),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_12"),
- (profile_get_banner_id, ":color"),
- (call_script, "script_color_get_component", ":color", 4, 0),
- (assign, ":decal", reg0),
- (try_begin),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_11"),
- (val_add, ":decal", 1),
- (else_try),
- (val_sub, ":decal", 1),
- (try_end),
- (val_mod, ":decal", 7),
- (call_script, "script_color_set_component", ":color", 4, 0, ":decal"),
- (profile_set_banner_id, reg0),
- (val_add, ":decal", "mesh_decal0"),
- (overlay_set_alpha, "$g_presentation_obj_profile_banner_selection_13", 0),
- (create_mesh_overlay, "$g_presentation_obj_profile_banner_selection_13", ":decal"),
- (position_set_x, pos1, 680),
- (position_set_y, pos1, 140),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_13", pos1),
- (position_set_x, pos1, 4000),
- (position_set_y, pos1, 4000),
- (overlay_set_size, "$g_presentation_obj_profile_banner_selection_13", pos1),
- (else_try),
- (eq, ":object", "$g_presentation_obj_profile_banner_selection_14"),
- (assign, ":update_color", 1),
- (assign, ":update_troop", 1),
- (try_end),
- (try_begin),
- (eq, ":update_sliders", 1),
- (profile_get_banner_id, ":color"),
- (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 0),
- (overlay_set_val, "$g_presentation_obj_profile_banner_selection_8", reg0),
- (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 1),
- (overlay_set_val, "$g_presentation_obj_profile_banner_selection_7", reg0),
- (call_script, "script_color_get_component", ":color", "$g_presentation_profile_banner_selection_part", 2),
- (overlay_set_val, "$g_presentation_obj_profile_banner_selection_6", reg0),
- (try_end),
- (try_begin),
- (eq, ":update_color", 1),
- (profile_get_banner_id, ":color"),
- (call_script, "script_color_get_part", ":color", "$g_presentation_profile_banner_selection_part"),
- (overlay_set_color, "$g_presentation_obj_profile_banner_selection_10", reg0),
- (eq, ":update_troop", 1),
- (overlay_set_alpha, "$g_presentation_obj_profile_banner_selection_2", 0),
- (create_mesh_overlay_with_tableau_material, "$g_presentation_obj_profile_banner_selection_2", -1, "tableau_game_profile_window", "$g_tableau_randomness"),
- (val_add, "$g_tableau_randomness", 2),
- (position_set_x, pos1, 150),
- (position_set_y, pos1, 270),
- (overlay_set_position, "$g_presentation_obj_profile_banner_selection_2", pos1),
- (try_end),
- ]),
- (ti_on_presentation_run, [
- (key_clicked, key_k),
- (call_script, "script_display_bits", -7),
- (store_div, reg1, -7, 2),
- (call_script, "script_display_bits", reg1),
- (val_div, reg1, 2),
- (call_script, "script_display_bits", reg1),
- (val_div, reg1, 2),
- (call_script, "script_display_bits", reg1),
- (val_div, reg1, 2),
- (call_script, "script_display_bits", reg1),
- ]),
- ]),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement