
### yes/no chars for main window ###
defined_text = {

    name = get_resourcecheat_button_status
    text = {
        trigger = {
            has_country_flag = cheatgui_resourcecheat_enabled
        }
        localization_key = cheats_loc_yes
    }
    text = {
        localization_key = cheats_loc_no
    }
}


### Add Resources to State ###

defined_text = {
    name = resourcecheat_oil_icon
    text = {
        trigger = {
            check_variable = { ROOT.oil_button_state = 1 }
        }
        localization_key = "GFX_cheatgui_resourcecheat_oil_selected"
    }
    text = {
        localization_key = "GFX_cheatgui_resourcecheat_oil_idle"
    }

}

defined_text = {
    name = resourcecheat_rubber_icon
    text = {
        trigger = {
            check_variable = { ROOT.rubber_button_state = 1 }
        }
        localization_key = "GFX_cheatgui_resourcecheat_rubber_selected"
    }
    text = {
        localization_key = "GFX_cheatgui_resourcecheat_rubber_idle"
    }

}

defined_text = {
    name = resourcecheat_steel_icon
    text = {
        trigger = {
            check_variable = { ROOT.steel_button_state = 1 }
        }
        localization_key = "GFX_cheatgui_resourcecheat_steel_selected"
    }
    text = {
        localization_key = "GFX_cheatgui_resourcecheat_steel_idle"
    }

}

defined_text = {
    name = resourcecheat_aluminum_icon
    text = {
        trigger = {
            check_variable = { ROOT.aluminum_button_state = 1 }
        }
        localization_key = "GFX_cheatgui_resourcecheat_aluminum_selected"
    }
    text = {
        localization_key = "GFX_cheatgui_resourcecheat_aluminum_idle"
    }

}

defined_text = {
    name = resourcecheat_tungsten_icon
    text = {
        trigger = {
            check_variable = { ROOT.tungsten_button_state = 1 }
        }
        localization_key = "GFX_cheatgui_resourcecheat_tungsten_selected"
    }
    text = {
        localization_key = "GFX_cheatgui_resourcecheat_tungsten_idle"
    }

}

defined_text = {
    name = resourcecheat_chromium_icon
    text = {
        trigger = {
            check_variable = { ROOT.chromium_button_state = 1 }
        }
        localization_key = "GFX_cheatgui_resourcecheat_chromium_selected"
    }
    text = {
        localization_key = "GFX_cheatgui_resourcecheat_chromium_idle"
    }

}
