Skip to content

Commit

Permalink
Advanced Military Aircrafts Button GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
LordR19 committed Dec 11, 2023
1 parent 8c14be9 commit e143877
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
35 changes: 35 additions & 0 deletions common/scripted_guis/MR_engineer_sguis.txt
Original file line number Diff line number Diff line change
Expand Up @@ -687,3 +687,38 @@ mr_aeronautical_engineer_airport_button = {
}
}
}

#MR_AERONAUTICAL_ENGINEER_ADVANCED_AIRCRAFTS_BUTTON
mr_aeronautical_engineer_advanced_aicrafts_button = {
scope = country
is_shown = {
gaudi_has_aeronautical_engineer_trigger = yes
}
is_valid = {
gaudi_has_active_engineer = yes
custom_tooltip = {
text = MR_ELECTRICAL_ENGINEER_MILITARY_AVIATION_TECH_TRIGGER_TT
has_technology_researched = military_aviation
}
custom_tooltip = {
text = gaudi_not_most_advanced_airplanes_trigger_tt
trigger_if = {
limit = { has_variable = gaudi_aeronautical_engineer_advanced_aircrafts_var }
NOT = { var:gaudi_aeronautical_engineer_advanced_aircrafts_var > 2 }
}
trigger_else = {
always = yes
}
}
}
effect = {
add_journal_entry = { type = je_gaudi_advanced_airplanes_project }
add_modifier = {
name = gaudi_engineer_project_medium_cost_modifier
multiplier = money_amount_multiplier_small
}
var:gaudi_engineer_var = {
set_character_busy_and_immortal = yes
}
}
}
14 changes: 12 additions & 2 deletions gui/tech_mr_academy_tab.gui
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,19 @@ types academy_view
enabled = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]"
tooltip = "MR_AERONAUTICAL_ENGINEER_AIRPORT_BUTTON_TT"
}
button = {
#Aeronautical Engineer Advanced Aircrafts Project
using = default_button_primary_big_action
size = { 220 35 }
raw_text = "MR_AERONAUTICAL_ENGINEER_ADVANCED_AIRCRAFTS_BUTTON"
using = fontsize_medium



datacontext = "[GetScriptedGui('mr_aeronautical_engineer_advanced_aicrafts_button')]"
onclick = "[ScriptedGui.Execute( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]"
visible = "[ScriptedGui.IsShown( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]"
enabled = "[ScriptedGui.IsValid( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]"
tooltip = "MR_AERONAUTICAL_ENGINEER_ADVANCED_AIRCRAFTS_BUTTON_TT"
}
button = {
#Stop engineering project
using = default_button_primary_big_action
Expand Down
4 changes: 4 additions & 0 deletions localization/english/1_update_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
MR_AERONAUTICAL_ENGINEER_AIRPORT_BUTTON_TT: "#T Modernizing Airports#!\nLet your [concept_gaudi_engineer] focus on modernizing your [GetBuildingType('building_airport').GetName]. The Airports will get modifiers that increase [concept_throughput] and [concept_good_production] and lower [concept_input_mult]. This will add #n expenses#! to your country.\n\n[ScriptedGui.BuildTooltip( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]"
MR_AERONAUTICAL_ENGINEER_AIRPORT_TRIGGER_TT: "#default_text [GetPlayer.GetName] has an [GetBuildingType('building_airport').GetName] of level 1 or higher that does not have the three [Concept('concept_modifier','$concept_modifiers$')] yet.#!"

MR_AERONAUTICAL_ENGINEER_ADVANCED_AIRCRAFTS_BUTTON: "Military Aircrafts"
MR_AERONAUTICAL_ENGINEER_ADVANCED_AIRCRAFTS_BUTTON_TT: "#T Develop Advanced Military Aircrafts#!\nLet your [concept_gaudi_engineer] focus on developing advanced military aircrafts. This will allow you to use a new [concept_mobilization_option] or raise its tier. This project will add #n expenses#! to your country.\n\n[ScriptedGui.BuildTooltip( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]"
MR_ELECTRICAL_ENGINEER_MILITARY_AVIATION_TECH_TRIGGER_TT: "#default_text [GetPlayer.GetName] has researched the #V Airplanes [concept_technology]#!.#!"

VISIT_IOC_BUTTON_TT: "#T Visit the International Olympic Comitee#!\nVisit the International Olympic Committee to obtain information about members, the next Olympics or the international medal table.\n\n[ScriptedGui.BuildTooltip( GuiScope.SetRoot( GetPlayer.MakeScope ).End )]" #Please replace

### Curtiss ###
Expand Down

0 comments on commit e143877

Please sign in to comment.