





🌟 Special thanks to our amazing supporters:
✨ $10 Tier: [Geeks Love Detail]
🌈 $5 Tier: [Benedikt][David Martínez Martí]
Hello, and welcome to another EUIV Dev Diary! Today it will be a bit of a different one, as we will be addressing three topics that we think are of the most relevance to the upcoming DLC and update, which are: [list=1]
custom_button = {
name = select_current_branch_missions
potential = {
ai = no #make sure the AI gets an event or something similar where they can choose their branch the moment these buttons get unlocked for the player
has_branching_missions = yes
has_preview_mission_flag = yes
}
trigger = { has_selected_a_branch = yes }
effect = { select_current_branch = yes }
tooltip = select_current_branch_missions_title
}
And in the .gui file:
guiButtonType = {
name = "select_current_branch_missions"
position = { x = 545 y = 80 }
quadTextureSprite ="GFX_select_current_missions_button"
scripted = yes
}
This is just a very small example of what could be done, and I am looking forward to the very creative buttons and mechanics added via the custom buttons. Here is the readme file to give you an idea how the script works:
# The custom guiButtonType/instantTextBoxType/iconType must have a 'scripted = yes' line to work
#custom_button = {
# name = custom_button_testing #Must match a scripted guiButtonType in a .gui file
# potential = { } #Determines when the button is visible
# trigger = { } #Determines when the button is clickable
# effect = { } #Effect
# tooltip = localisation_key #Can use customizable localisation
# frame = { #Can define multiple frame clauses
# number = #Which frame to use. Check dds files with multiple icons like icon_religion.dds
# trigger = { } #First matched frame clause will be used.
# }
#}
#custom_text_box = {
# name = custom_text_testing #Must match a scripted instantTextBoxType in a .gui file
# potential = { } #Determines when the text is visible
# tooltip = localisation_key #Can use customizable localisation
# #To localize it, use the name of the button as a key, can also use customizable localisation
#}
#custom_icon = {
# name = custom_icon_testing #Must match a scripted iconType in a .gui file
# potential = { } #Determines when the icon is visible
# tooltip = localisation_key #Can use customizable localisation
# frame = { #Can define multiple frame clauses
# number = #Which frame to use. Check dds files with multiple icons like icon_religion.dds
# trigger = { } #First matched frame clause will be used.
# }
#}
#custom_shield = {
# name = custom_button_testing #Must match a scripted guiButtonType in a .gui file
# potential = { } #Determines when the shield is visible
# trigger = { } #Determines when the shield is clickable
# effect = { } #Effect for clicking
# tooltip = localisation_key #Can use customizable localisation
# global_event_target = # Global event target name
# open_country = #If clicking opens the country view
#}
############################## Supported files with scopes ##############################
# The Gui objects must be directly inside the specified window Gui element!
# FROM is always the country that clicks
# provinceview.gui:
# province_window (ROOT: Clicked province)
# buildings_window (ROOT: Clicked province)
# state_window (ROOT: Clicked province)
# countrycourtview.gui:
# countrycourtview (ROOT = FROM)
# countrygovernmentview.gui:
# countrygovernmentview (ROOT = FROM)
# countrydiplomacyview.gui:
# countrydiplimacyview (ROOT: Selected country)
# countryeconomyview.gui:
# countryeconomyview (ROOT = FROM)
# countrytradeview.gui:
# countrytradeview (ROOT = FROM)
# countrytechnologyview.gui:
# countrytechnologyview (ROOT = FROM)
# countryideasview.gui:
# countryideasview (ROOT = FROM)
# countrymissionsview.gui:
# countrymissionsview (ROOT: Selected country)
# countrydecisionview.gui:
# countrydecisionsview (ROOT = FROM)
# countrystabilityview.gui:
# countrystabilityview (ROOT = FROM)
# countryreligionview.gui:
# countryreligionview (ROOT = FROM)
# countrymilitaryview.gui:
# countrymilitaryview (ROOT = FROM)
# countrysubjectsview.gui:
# countrysubjectview (ROOT = FROM)
# countryestatesview.gui:
# countryestatesview (ROOT = FROM)
# ages_view.gui:
# ages_view (ROOT = FROM)
# tradeinterface.gui:
# TradeNodeInterface (ROOT: Trade capital of a trade node)
# hre.gui:
# hre_window (ROOT = FROM)
# papacy.gui:
# papacy_window (ROOT = FROM)
# faction.gui:
# All faction windows (ROOT = FROM)
# celestialempireview.gui:
# celestial_window (ROOT = FROM)
# countrynativesview.gui:
# natives_window (ROOT = FROM)
# religiousreforms.gui:
# reforms_window (ROOT = FROM)
# parliament.gui:
# parliament_window (ROOT = FROM)
So in the end when you add a new button you will have this connection at the end:
[ 6085 ]
[ 2065 ]
[ 1907 ]