Hi,
When I write these codes:
Being like this:
There s no checkbox as you see. What's wrong?
When I write these codes:
插入代码块:
("soldier_creating_screen", 0, mesh_load_window, [
(ti_on_presentation_load,
[
(presentation_set_duration, 999999),
(set_fixed_point_multiplier, 1000),#create_text_overlay (create_mesh_overlay_with_item_id, reg0, ":item_id"),
(assign, ":cur_y", 700),
# (assign, "$unit_armor_or_civilian", 0),
(create_check_box_overlay, "$enabledisablearmors"),
(position_set_x, pos1, 850),
(position_set_y, pos1, 300),
(overlay_set_position, "$enabledisablearmors", pos1),
(create_combo_button_overlay, "$type_of_unit"),
(try_for_range, ":unit_will_be_selected", "trp_ct_inf_1", "trp_traveller"),
(str_store_string, s12, ":unit_will_be_selected"),
(overlay_add_item, "$type_of_unit", ":unit_will_be_selected"),
(position_set_x, pos1, 200),
(position_set_y, pos1, 850),
(try_end),
(try_begin),
(eq, "$player_custom_unit_faction", "fac_tsai"),
(try_begin),
(eq, "$unit_armor_or_civilian", 0),
(try_for_range, ":items", "itm_helm_tsai_a", "itm_turret_hat_blue"),
(val_sub, ":cur_y", 100),
(create_mesh_overlay_with_item_id, "$item_of_unit_helmet", ":items"),
(position_set_x, pos1, 300),
(position_set_y, pos1, ":cur_y"),
(overlay_set_position, "$item_of_unit_helmet", pos1),
(try_end),
(else_try),
(try_for_range, ":items", "itm_turret_hat_blue", "itm_straw_hat"),
(val_sub, ":cur_y", 100),
(create_mesh_overlay_with_item_id, "$item_of_unit_helmet", ":items"),
(position_set_x, pos1, 300),
(position_set_y, pos1, ":cur_y"),
(overlay_set_position, "$item_of_unit_helmet", pos1),
(try_end),
(try_end),
(try_end),
(try_begin),
(gt, "$chosen_helmet", 0),
(create_mesh_overlay_with_item_id, "$chosen_item_slot", "$chosen_helmet"),
(position_set_x, pos1, 800),
(position_set_y, pos1, 800),
(overlay_set_position, "$chosen_item_slot", pos1),
(position_set_x, pos1, 500),
(position_set_y, pos1, 500),
(overlay_set_size, "$chosen_item_slot", pos1),
(try_end),
# (try_for_range, ":cur_troop", quick_battle_troops_begin, quick_battle_troops_end),
# (str_store_troop_name, s0, ":cur_troop"),
# (overlay_add_item, "$g_presentation_obj_custom_battle_designer_18", s0),
# (try_end),
# (store_sub, ":cur_troop", "$g_quick_battle_troop", quick_battle_troops_begin),
# (overlay_set_val, "$g_presentation_obj_custom_battle_designer_18", ":cur_troop"),
(store_mul, ":cur_troop", ":unit_will_be_selected", 2), #with weapons
(create_mesh_overlay_with_tableau_material, "$image_warrior", -1, "tableau_game_party_window", ":cur_troop"),
(position_set_x, pos1, 100),
(position_set_y, pos1, 370),
(overlay_set_position, "$image_warrior", pos1),
(position_set_x, pos1, 1000),
(position_set_y, pos1, 1000),
(overlay_set_size, "$image_warrior", pos1),
(create_button_overlay, "$tamam_artik_cik_allahin_belasi", "@Done"),
(position_set_x, pos1, 800),
(position_set_y, pos1, 200),
(overlay_set_position, "$tamam_artik_cik_allahin_belasi", pos1),
(create_text_overlay, "$enable_disable_civic_armors", "@Show Civic Items", tf_center_justify),
(position_set_x, pos1, 700),
(position_set_y, pos1, 300),
(overlay_set_position, "$enable_disable_civic_armors", pos1),
(position_set_x, pos1, 800),
(position_set_y, pos1, 800),
(overlay_set_size, "$enable_disable_civic_armors", pos1),
]),
(ti_on_presentation_event_state_change,
[
(store_trigger_param_1, ":object"),
(store_trigger_param_2, ":val"),
(try_begin),
(eq, ":object", "$tamam_artik_cik_allahin_belasi"),
(presentation_set_duration, 0),
(else_try),
(eq, ":object", "$enabledisablearmors"),
(try_begin),
(eq, ":val", 1),
(assign, "$unit_armor_or_civilian", 1),
(presentation_set_duration, 0),
(start_presentation, "prsnt_soldier_creating_screen"),
(else_try),
(assign, "$unit_armor_or_civilian", 0),
(presentation_set_duration, 0),
(start_presentation, "prsnt_soldier_creating_screen"),
(try_end),
(else_try),
(eq, ":object", "$item_of_unit_helmet"),
(assign, "$chosen_helmet", "$item_of_unit_helmet"),
(presentation_set_duration, 0),
(start_presentation, "prsnt_soldier_creating_screen"),
(try_end),
]),
]),
There s no checkbox as you see. What's wrong?











