scripted_gui = {
rq_apw_gui = {
context_type = player_context
dirty = rq_dirty
window_name = "rq_apw_window"
parent_window_name = "rq_apw_host"
visible = {
has_country_flag = rq_active
has_country_flag = rq_q_open
check_variable = { rq_ap_win = 1 }
check_variable = { rq_ml_t < 1 }
check_variable = { rq_dlg < 1 }
check_variable = { rq_clr < 1 }
check_variable = { rq_d_apw = 1 }
}
triggers = {
rq_aps_bg_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_title_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_close_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_jump_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_jumpn_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_mio_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_mion_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_jg_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_jgn_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_xp_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_xpn_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_bnh_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_bnhn_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_pri_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_reset_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_clearpri_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_aps_note_visible = { has_country_flag = rq_q_open check_variable = { rq_ap_win = 1 } }
rq_apw_n_visible = { NOT = { OR = { AND = { check_variable = { rq_aps_lv > 100 } check_variable = { rq_aps_lv < 200 } } check_variable = { rq_aps_lv > 300 } } } }
rq_apw_sn_visible = { OR = { AND = { check_variable = { rq_aps_lv > 100 } check_variable = { rq_aps_lv < 200 } } check_variable = { rq_aps_lv > 300 } } }
rq_apw_sd_visible = { is_in_array = { array = rq_apw_dd value = rq_aps_lv } NOT = { is_in_array = { array = rq_apw_ddo value = rq_aps_lv } } }
rq_apw_su_visible = { is_in_array = { array = rq_apw_ddo value = rq_aps_lv } }
}
properties = {
rq_aps_jump = { frame = rq_ap_jumpf x = rq_pa_12 }
rq_aps_mio = { frame = rq_ap_miof x = rq_pa_12 }
rq_aps_jg = { frame = rq_ap_jgf x = rq_pa_12 }
rq_aps_xp = { frame = rq_ap_xpf x = rq_pa_12 }
rq_aps_bnh = { frame = rq_ap_bnhf x = rq_pa_12 }
rq_aps_bg = { x = rq_pa_0 }
rq_aps_title = { x = rq_pa_18 }
rq_aps_close = { x = rq_pa_366 }
rq_aps_jumpn = { x = rq_pa_52 }
rq_aps_mion = { x = rq_pa_52 }
rq_aps_jgn = { x = rq_pa_52 }
rq_aps_xpn = { x = rq_pa_52 }
rq_aps_bnhn = { x = rq_pa_52 }
rq_aps_pri = { x = rq_pa_16 }
rq_aps_reset = { x = rq_pa_16 }
rq_aps_clearpri = { x = rq_pa_180 }
rq_aps_note = { x = rq_pa_16 }
rq_apw_sd = { frame = 1 }
rq_apw_su = { frame = 2 }
}
effects = {
rq_aps_close_click = { add_to_variable = { rq_dirty = 1 }
rq_aps_close = yes
rq_update = yes
}
rq_aps_jump_click = { add_to_variable = { rq_dirty = 1 } rq_aps_jump = yes }
rq_aps_mio_click = { add_to_variable = { rq_dirty = 1 } rq_aps_mio = yes }
rq_aps_jg_click = { add_to_variable = { rq_dirty = 1 } rq_aps_jg = yes }
rq_aps_xp_click = { add_to_variable = { rq_dirty = 1 } rq_aps_xp = yes }
rq_aps_bnh_click = { add_to_variable = { rq_dirty = 1 } rq_aps_bnh = yes }
rq_aps_reset_click = { add_to_variable = { rq_dirty = 1 } rq_aps_reset = yes }
rq_aps_clearpri_click = { add_to_variable = { rq_dirty = 1 } rq_aps_clearpri = yes }
rq_apw_minus_click = { add_to_variable = { rq_dirty = 1 }
set_temp_variable = { rq_apk = rq_aps_lv }
set_temp_variable = { rq_apw_big = 0 }
rq_apw_step = yes
multiply_temp_variable = { rq_apd = -1 }
rq_aps_change = yes
}
rq_apw_minus_shift_click = { add_to_variable = { rq_dirty = 1 }
set_temp_variable = { rq_apk = rq_aps_lv }
set_temp_variable = { rq_apw_big = 1 }
rq_apw_step = yes
multiply_temp_variable = { rq_apd = -1 }
rq_aps_change = yes
}
rq_apw_plus_click = { add_to_variable = { rq_dirty = 1 }
set_temp_variable = { rq_apk = rq_aps_lv }
set_temp_variable = { rq_apw_big = 0 }
rq_apw_step = yes
rq_aps_change = yes
}
rq_apw_plus_shift_click = { add_to_variable = { rq_dirty = 1 }
set_temp_variable = { rq_apk = rq_aps_lv }
set_temp_variable = { rq_apw_big = 1 }
rq_apw_step = yes
rq_aps_change = yes
}
rq_apw_sd_click = { add_to_variable = { rq_dirty = 1 }
set_temp_variable = { rq_apk = rq_aps_lv }
rq_apw_ddg = yes
if = {
limit = { check_variable = { rq_ap_sub = rq_apw_g } }
set_variable = { rq_ap_sub = 0 }
}
else = {
set_variable = { rq_ap_sub = rq_apw_g }
}
rq_apw_build = yes
}
rq_apw_su_click = { add_to_variable = { rq_dirty = 1 }
set_temp_variable = { rq_apk = rq_aps_lv }
rq_apw_ddg = yes
if = {
limit = { check_variable = { rq_ap_sub = rq_apw_g } }
set_variable = { rq_ap_sub = 0 }
}
else = {
set_variable = { rq_ap_sub = rq_apw_g }
}
rq_apw_build = yes
}
}
dynamic_lists = {
rq_apw_list = {
array = rq_aps_l
value = rq_aps_lv
entry_container = "rq_apw_row"
}
}
}
}
