|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
# number = <int> #Which frame to use. Check dds files with multiple icons like icon_religion.dds
|
|
27
27
|
# trigger = { } #First matched frame clause will be used.
|
|
28
28
|
# }
|
|
29
|
+
# frame_variable = "variable_name" #Use the value of a variable to determine the icon frame
|
|
29
30
|
#}
|
|
30
31
|
|
|
31
32
|
#custom_shield = {
|
|
@@ -38,8 +39,14 @@
|
|
|
38
39
|
# open_country = <bool> #If clicking opens the country view
|
|
39
40
|
#}
|
|
40
41
|
|
|
42
|
+
#custom_window = {
|
|
43
|
+
# name = custom_window_testing #Must match a scripted windowType in a .gui file
|
|
44
|
+
# potential = { } #Determines when the window is visible, and will affect every other gui object inside it, not running their potentials if the window isn't visible.
|
|
45
|
+
#}
|
|
46
|
+
|
|
41
47
|
############################## Supported files with scopes ##############################
|
|
42
|
-
# The Gui objects must be
|
|
48
|
+
# The Gui objects must be in a descendant of any of the specified window Gui elements!
|
|
49
|
+
# It no longer needs to be directly inside province_window for example, it can be inside a normal non-scripted windowType inside province_window. There is no depth limit.
|
|
43
50
|
# FROM is always the country that clicks
|
|
44
51
|
# provinceview.gui:
|
|
45
52
|
# province_window (ROOT: Clicked province)
|
|
@@ -7,7 +7,10 @@ custom_button = {
|
|
|
7
7
|
has_preview_mission_flag = yes
|
|
8
8
|
can_preview_batch = { batch = 1 }
|
|
9
9
|
}
|
|
10
|
-
trigger = {
|
|
10
|
+
trigger = {
|
|
11
|
+
has_selected_a_branch = { batch = 1 }
|
|
12
|
+
can_select_current_branch = { batch = 1 }
|
|
13
|
+
}
|
|
11
14
|
effect = { select_current_branch = { batch = 1 } }
|
|
12
15
|
tooltip = select_current_branch_batch_1_missions_title
|
|
13
16
|
}
|
|
@@ -162,7 +165,10 @@ custom_button = {
|
|
|
162
165
|
has_preview_mission_flag = yes
|
|
163
166
|
can_preview_batch = { batch = 2 }
|
|
164
167
|
}
|
|
165
|
-
trigger = {
|
|
168
|
+
trigger = {
|
|
169
|
+
has_selected_a_branch = { batch = 2 }
|
|
170
|
+
can_select_current_branch = { batch = 2 }
|
|
171
|
+
}
|
|
166
172
|
effect = { select_current_branch = { batch = 2 } }
|
|
167
173
|
tooltip = select_current_branch_batch_2_missions_title
|
|
168
174
|
}
|
|
@@ -313,7 +319,10 @@ custom_button = {
|
|
|
313
319
|
has_preview_mission_flag = yes
|
|
314
320
|
can_preview_batch = { batch = 3 }
|
|
315
321
|
}
|
|
316
|
-
trigger = {
|
|
322
|
+
trigger = {
|
|
323
|
+
has_selected_a_branch = { batch = 3 }
|
|
324
|
+
can_select_current_branch = { batch = 3 }
|
|
325
|
+
}
|
|
317
326
|
effect = { select_current_branch = { batch = 3 } }
|
|
318
327
|
tooltip = select_current_branch_batch_3_missions_title
|
|
319
328
|
}
|