Guest User

Untitled

a guest
Nov 13th, 2022
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.30 KB | None | 0 0
  1. # vgl. game > gui > window_faith_creation.gui
  2.  
  3. # unmodified code by karax
  4.  
  5. ######################################################
  6. ################## FAITH CREATION ####################
  7. ######################################################
  8.  
  9. window = {
  10. name = "faith_creation_window"
  11. datacontext = "[FaithCreationWindow.GetVassalConversionWindow]"
  12. datacontext = "[GetVariableSystem]"
  13. parentanchor = center
  14. size = { 1300 950 }
  15. layer = middle
  16.  
  17. using = Window_Background
  18. using = Window_Decoration
  19.  
  20. state = {
  21. name = _show
  22. using = Animation_FadeIn_Quick
  23. on_start = "[GetVariableSystem.Set( 'faith_creation_doctrine_page', 'main_group' )]"
  24. on_start = "[GetVariableSystem.Set( 'faith_creation_icon_selection', 'false' )]"
  25. on_start = "[GetVariableSystem.Clear('faith_creation_right_view')]"
  26. on_start = "[GetVariableSystem.Clear('conversion_view_vassals')]"
  27.  
  28. # EK EDIT these are to show/hide stuff
  29. on_start = "[GetVariableSystem.Clear('show_hide_tenets')]"
  30. on_start = "[GetVariableSystem.Clear('show_hide_main_group')]"
  31. on_start = "[GetVariableSystem.Clear('show_hide_marriage')]"
  32. on_start = "[GetVariableSystem.Clear('show_hide_crimes')]"
  33. on_start = "[GetVariableSystem.Clear('show_hide_clergy')]"
  34. on_start = "[GetVariableSystem.Clear('show_hide_daedric_princes')]"
  35. on_start = "[GetVariableSystem.Clear('show_hide_virtues_sins')]"
  36. }
  37.  
  38. state = {
  39. name = _hide
  40. using = Animation_FadeOut_Quick
  41. }
  42.  
  43. vbox = {
  44. using = Window_Margins
  45.  
  46. header_pattern = {
  47. layoutpolicy_horizontal = expanding
  48. visible = "[Not( GetPlayer.GetFaith.IsUnreformed )]"
  49.  
  50. blockoverride "header_text"
  51. {
  52. text = "CREATE_FAITH_WINDOW_TITLE"
  53. }
  54.  
  55. blockoverride "button_close"
  56. {
  57. onclick = "[FaithCreationWindow.Close]"
  58. }
  59.  
  60. blockoverride "button_back"
  61. {
  62. visible = "[HasViewHistory]"
  63. onclick = "[OpenFromViewHistory]"
  64. tooltip = "[GetViewHistoryTooltip]"
  65. }
  66. }
  67.  
  68. header_pattern = {
  69. layoutpolicy_horizontal = expanding
  70. visible = "[GetPlayer.GetFaith.IsUnreformed]"
  71.  
  72. blockoverride "header_text"
  73. {
  74. text = "REFORM_FAITH_WINDOW_TITLE"
  75. }
  76.  
  77. blockoverride "button_close"
  78. {
  79. onclick = "[FaithCreationWindow.Close]"
  80. }
  81. }
  82.  
  83. hbox = {
  84. layoutpolicy_horizontal = expanding
  85. layoutpolicy_vertical = expanding
  86.  
  87. widget = {
  88. name = "left_side"
  89. layoutpolicy_horizontal = expanding
  90. layoutpolicy_vertical = expanding
  91.  
  92. vbox = {
  93. visible = "[Not(VariableSystem.Exists( 'conversion_view_vassals' ))]"
  94. spacing = 10
  95.  
  96. hbox = {
  97. name = "name_and_icon"
  98. margin_top = 15
  99. spacing = 10
  100.  
  101. button_standard = {
  102. size = { 60 60 }
  103. visible = "[Not( GetPlayer.GetFaith.IsUnreformed )]"
  104. onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'icon_selection' )]"
  105. tooltip = "CHANGE_FAITH_ICON"
  106.  
  107. highlight_icon = {
  108. name = "faith_icon"
  109. visible = "[GetVariableSystem.HasValue( 'faith_creation_icon_selection', 'true' )]"
  110. parentanchor = center
  111. size = { 52 52 }
  112. texture = "[FaithCreationWindow.GetFaithIcon]"
  113. onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'icon_selection' )]"
  114. tooltip = "CHANGE_FAITH_ICON"
  115. }
  116.  
  117. animation_attention_text = {
  118. visible = "[Not(GetVariableSystem.HasValue( 'faith_creation_icon_selection', 'true' ))]"
  119. }
  120. }
  121.  
  122. hbox = {
  123. visible = "[GetPlayer.GetFaith.IsUnreformed]"
  124. layoutpolicy_horizontal = expanding
  125.  
  126. icon = {
  127. visible = "[GetPlayer.GetFaith.IsUnreformed]"
  128. name = "faith_icon"
  129. size = { 45 45 }
  130. texture = "[FaithCreationWindow.GetFaithIcon]"
  131. }
  132.  
  133. text_single = {
  134. name = "faith_name_static"
  135. visible = "[GetPlayer.GetFaith.IsUnreformed]"
  136. text = "FAITH_WINDOW_FAITH_NAME"
  137. default_format = "#high"
  138. using = Font_Size_Big
  139. }
  140. }
  141.  
  142. button_standard = {
  143. name = "faith_name"
  144. size = { 550 60 }
  145. visible = "[Not( GetPlayer.GetFaith.IsUnreformed )]"
  146. onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'name_selection' )]"
  147. tooltip = FAITH_WINDOW_FAITH_NAME_TOOLTIP
  148.  
  149. text_multi = {
  150. name = "faith_name_label"
  151. size = { 100% 100% }
  152. margin = { 10 0 }
  153. fontsize_min = 16
  154. text = "FAITH_WINDOW_FAITH_NAME"
  155. default_format = "#high"
  156. using = Font_Size_Big
  157. align = center|nobaseline
  158. }
  159.  
  160. button_replace = {
  161. name = "reset"
  162. parentanchor = right|vcenter
  163. position = { -6 0 }
  164. size = { 40 40 }
  165. }
  166. }
  167.  
  168. map_color_button = {
  169. tooltip = "CREATE_FAITH_SELECT_COLOR"
  170. blockoverride "mcb_click"
  171. {
  172. onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'color_selection' )]"
  173. }
  174. blockoverride "mcb_color"
  175. {
  176. tintcolor = "[FaithCreationWindow.GetColor]"
  177. }
  178. }
  179. }
  180.  
  181. divider = {
  182. layoutpolicy_horizontal = expanding
  183. }
  184.  
  185. vbox = {
  186. name = "tenets"
  187. layoutpolicy_horizontal = expanding
  188. layoutpolicy_vertical = expanding
  189. spacing = 5
  190.  
  191. text_label_center = {
  192. text = "[core_tenets|E]"
  193. }
  194.  
  195.  
  196. scrollbox = {
  197. layoutpolicy_vertical = expanding
  198. layoutpolicy_horizontal = expanding
  199. #margin_top = 15
  200. #spacing = 10
  201.  
  202. blockoverride "scrollbox_content"
  203. {
  204.  
  205. fixedgridbox = {
  206.  
  207. name = "tenets_grid"
  208. datamodel = "[FaithCreationWindow.GetGroupingHelper( 'core_tenets' ).GetGrouping]"
  209. flipdirection = yes
  210. addcolumn = 140
  211. addrow = 210
  212. setitemsizefromcell = yes
  213. datamodel_wrap = 5
  214. maxhorizontalslots = -1
  215. maxverticalslots = 10
  216. layoutpolicy_vertical = expanding
  217. layoutpolicy_horizontal = expanding
  218.  
  219. item = {
  220. button_group = {
  221. datacontext = "[GuiFaithCreationDoctrineItem.GetGuiFaithDoctrineItem]"
  222. datacontext = "[GuiFaithDoctrineItem.GetDoctrine]"
  223. datacontext = "[GuiFaithDoctrineItem.GetFaith]"
  224.  
  225. icon = {
  226. size = { 130 160 }
  227. scale = 1.5
  228. parentanchor = center
  229. visible = "[EqualTo_int32( GuiFaithCreationDoctrineItem.GetSlotIndex, GuiFaithCreationDoctrineItem.GetFaithCreationWindow.GetDoctrineGroupWindow.GetSlotIndex ) ]"
  230. texture = "gfx/portraits/portrait_glow.dds"
  231. using = Color_Orange
  232. }
  233.  
  234. container_tenet_item = {
  235. tooltip = "FAITH_WINDOW_DOCTRINE_CHANGE_TOOLTIP"
  236. }
  237.  
  238. onclick = "[GuiFaithCreationDoctrineItem.GetFaithCreationWindow.GetDoctrineGroupWindow.ShowWindowSortList( GuiFaithCreationDoctrineItem.GetSlotIndex )]"
  239. onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'doctrine_selection' )]"
  240. onclick = "[GetVariableSystem.Set( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) )]"
  241. }
  242. }
  243.  
  244. onclick = "[GuiFaithCreationDoctrineItem.GetFaithCreationWindow.GetDoctrineGroupWindow.ShowWindowSortList( GuiFaithCreationDoctrineItem.GetSlotIndex )]"
  245. onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'doctrine_selection' )]"
  246. onclick = "[GetVariableSystem.Set( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) )]"
  247. }
  248. }
  249. }
  250. }
  251.  
  252. divider = {
  253. layoutpolicy_horizontal = expanding
  254. }
  255.  
  256. vbox = {
  257. name = "doctrines"
  258. layoutpolicy_horizontal = expanding
  259. layoutpolicy_vertical = expanding
  260. spacing = 15
  261.  
  262. text_label_center = {
  263. text = "[doctrines|E]"
  264. }
  265.  
  266. scrollbox = {
  267. layoutpolicy_horizontal = expanding
  268. layoutpolicy_vertical = expanding
  269.  
  270. blockoverride "scrollbox_content"
  271. {
  272. vbox = {
  273. layoutpolicy_horizontal = expanding
  274. spacing = 10
  275.  
  276. hbox = {
  277. layoutpolicy_horizontal = expanding
  278. #margin_right = 15
  279. text_label_left = {
  280. layoutpolicy_horizontal = expanding
  281. text = "FAITH_DOCTRINES_IMPORTANT"
  282. default_format = "#low"
  283. }
  284. button_expand = {
  285. tooltip = "[SelectLocalization( VariableSystem.Exists('show_hide_main_group'), 'show_main_group', 'hide_main_group' )]"
  286. using = tooltip_nw
  287. onclick = "[VariableSystem.Toggle('show_hide_main_group')]"
  288.  
  289. texture = "gfx/interface/buttons/button_tree_expand.dds"
  290. frame = "[Select_int32( VariableSystem.Exists('show_hide_main_group'), '(int32)1', '(int32)2' )]"
  291. mirror = horizontal
  292.  
  293. oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over"
  294. clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select"
  295. }
  296. }
  297.  
  298. fixedgridbox = {
  299. name = "doctrines_grid_main_group"
  300. visible = "[Not(VariableSystem.Exists('show_hide_main_group'))]"
  301. datamodel = "[FaithCreationWindow.GetGroupingHelper( 'main_group' ).GetGrouping]"
  302.  
  303. flipdirection = yes
  304. addcolumn = 270
  305. addrow = 65
  306. datamodel_wrap = 2
  307.  
  308. item = {
  309. widget_doctrine_selection_item = {
  310. blockoverride "doctrine_icon_texture"
  311. {
  312. texture = "[FaithDoctrine.GetIcon]"
  313. }
  314. }
  315. }
  316. }
  317. }
  318.  
  319. vbox = {
  320. layoutpolicy_horizontal = expanding
  321. spacing = 10
  322.  
  323. hbox = {
  324. layoutpolicy_horizontal = expanding
  325. #margin_right = 15
  326. text_label_left = {
  327. layoutpolicy_horizontal = expanding
  328. text = "FAITH_DOCTRINES_PANTHEON"
  329. default_format = "#low"
  330. }
  331. button_expand = {
  332. tooltip = "[SelectLocalization( VariableSystem.Exists('show_hide_pantheon'), 'show_pantheon', 'hide_pantheon' )]"
  333. using = tooltip_nw
  334. onclick = "[VariableSystem.Toggle('show_hide_pantheon')]"
  335.  
  336. texture = "gfx/interface/buttons/button_tree_expand.dds"
  337. frame = "[Select_int32( VariableSystem.Exists('show_hide_pantheon'), '(int32)1', '(int32)2' )]"
  338. mirror = horizontal
  339.  
  340. oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over"
  341. clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select"
  342. }
  343. }
  344.  
  345. fixedgridbox = {
  346. name = "doctrines_grid_pantheon"
  347. visible = "[Not(VariableSystem.Exists('show_hide_pantheon'))]"
  348. datamodel = "[FaithCreationWindow.GetGroupingHelper( 'pantheon' ).GetGrouping]"
  349. datacontext = "[GetScriptedGui('show_second_pantheon_doctrines')]"
  350.  
  351. flipdirection = yes
  352. addcolumn = 270
  353. addrow = 65
  354. datamodel_wrap = 2
  355.  
  356. item = {
  357. widget_doctrine_selection_item = {
  358. visible = "[And( Not( And( Not( FaithCreationWindow.HasParameter( 'uses_monolatry_aspect_active' )), EqualTo_string(FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith ), Localize('doctrine_pantheon_no_aspect_name')) )), Not( And( FaithCreationWindow.HasParameter( 'no_secondary_pantheon_active' ), EqualTo_string(FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith ), Localize('doctrine_sp_no_deity_name')) )))]"
  359. blockoverride "doctrine_icon_texture"
  360. {
  361. texture = "[FaithDoctrine.GetIcon]"
  362. }
  363. }
  364. }
  365. }
  366.  
  367. fixedgridbox = {
  368. name = "doctrines_grid_secondary_pantheon"
  369. visible = "[Not(VariableSystem.Exists('show_hide_pantheon'))]"
  370. datamodel = "[FaithCreationWindow.GetGroupingHelper( 'secondary_pantheon' ).GetGrouping]"
  371. datacontext = "[GetScriptedGui('show_second_pantheon_doctrines')]"
  372.  
  373. flipdirection = yes
  374. addcolumn = 270
  375. addrow = 65
  376. datamodel_wrap = 2
  377.  
  378. item = {
  379. widget_doctrine_selection_item = {
  380. visible = "[And( Not( And( Not( FaithCreationWindow.HasParameter( 'uses_monolatry_aspect_active' )), EqualTo_string(FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith ), Localize('doctrine_pantheon_no_aspect_name')) )), Not( And( FaithCreationWindow.HasParameter( 'no_secondary_pantheon_active' ), EqualTo_string(FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith ), Localize('doctrine_sp_no_deity_name')) )))]"
  381. blockoverride "doctrine_icon_texture"
  382. {
  383. texture = "[FaithDoctrine.GetIcon]"
  384. }
  385. }
  386. }
  387. }
  388. }
  389.  
  390. vbox = {
  391. layoutpolicy_horizontal = expanding
  392. spacing = 10
  393.  
  394. hbox = {
  395. layoutpolicy_horizontal = expanding
  396. #margin_right = 15
  397. text_label_left = {
  398. layoutpolicy_horizontal = expanding
  399. text = "FAITH_DOCTRINES_MARRIAGE"
  400. default_format = "#low"
  401. }
  402. button_expand = {
  403. tooltip = "[SelectLocalization( VariableSystem.Exists('show_hide_marriage'), 'show_marriage', 'hide_marriage' )]"
  404. using = tooltip_nw
  405. onclick = "[VariableSystem.Toggle('show_hide_marriage')]"
  406.  
  407. texture = "gfx/interface/buttons/button_tree_expand.dds"
  408. frame = "[Select_int32( VariableSystem.Exists('show_hide_marriage'), '(int32)1', '(int32)2' )]"
  409. mirror = horizontal
  410.  
  411. oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over"
  412. clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select"
  413. }
  414. }
  415.  
  416. fixedgridbox = {
  417. name = "doctrines_grid_marriage"
  418. visible = "[Not(VariableSystem.Exists('show_hide_marriage'))]"
  419. datamodel = "[FaithCreationWindow.GetGroupingHelper( 'marriage' ).GetGrouping]"
  420. flipdirection = yes
  421. addcolumn = 270
  422. addrow = 65
  423. datamodel_wrap = 2
  424.  
  425. item = {
  426. widget_doctrine_selection_item = {}
  427. }
  428. }
  429.  
  430. }
  431.  
  432. vbox = {
  433. layoutpolicy_horizontal = expanding
  434. spacing = 10
  435.  
  436. hbox = {
  437. layoutpolicy_horizontal = expanding
  438. #margin_right = 15
  439. text_label_left = {
  440. layoutpolicy_horizontal = expanding
  441. text = "FAITH_DOCTRINES_CRIMES"
  442. default_format = "#low"
  443. }
  444. button_expand = {
  445. tooltip = "[SelectLocalization( VariableSystem.Exists('show_hide_crimes'), 'show_crimes', 'hide_crimes' )]"
  446. using = tooltip_nw
  447. onclick = "[VariableSystem.Toggle('show_hide_crimes')]"
  448.  
  449. texture = "gfx/interface/buttons/button_tree_expand.dds"
  450. frame = "[Select_int32( VariableSystem.Exists('show_hide_crimes'), '(int32)1', '(int32)2' )]"
  451. mirror = horizontal
  452.  
  453. oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over"
  454. clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select"
  455. }
  456. }
  457.  
  458. fixedgridbox = {
  459. name = "doctrines_grid_crimes"
  460. visible = "[Not(VariableSystem.Exists('show_hide_crimes'))]"
  461. datamodel = "[FaithCreationWindow.GetGroupingHelper( 'crimes' ).GetGrouping]"
  462.  
  463. flipdirection = yes
  464. addcolumn = 270
  465. addrow = 65
  466. datamodel_wrap = 2
  467.  
  468. item = {
  469. widget_doctrine_selection_item = {}
  470. }
  471. }
  472. }
  473.  
  474. vbox = {
  475. layoutpolicy_horizontal = expanding
  476. spacing = 10
  477.  
  478. hbox = {
  479. layoutpolicy_horizontal = expanding
  480. #margin_right = 15
  481. text_label_left = {
  482. layoutpolicy_horizontal = expanding
  483. text = "FAITH_DOCTRINES_CLERGY"
  484. default_format = "#low"
  485. }
  486. button_expand = {
  487. tooltip = "[SelectLocalization( VariableSystem.Exists('show_hide_clergy'), 'show_clergy', 'hide_clergy' )]"
  488. using = tooltip_nw
  489. onclick = "[VariableSystem.Toggle('show_hide_clergy')]"
  490.  
  491. texture = "gfx/interface/buttons/button_tree_expand.dds"
  492. frame = "[Select_int32( VariableSystem.Exists('show_hide_clergy'), '(int32)1', '(int32)2' )]"
  493. mirror = horizontal
  494.  
  495. oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over"
  496. clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select"
  497. }
  498. }
  499.  
  500. fixedgridbox = {
  501. name = "doctrines_grid_clergy"
  502. visible = "[Not(VariableSystem.Exists('show_hide_clergy'))]"
  503. datamodel = "[FaithCreationWindow.GetGroupingHelper( 'clergy' ).GetGrouping]"
  504.  
  505. flipdirection = yes
  506. addcolumn = 270
  507. addrow = 65
  508. datamodel_wrap = 2
  509.  
  510. item = {
  511. widget_doctrine_selection_item = {}
  512. }
  513. }
  514. }
  515.  
  516. ### EK EDIT: Added our Daedric Princes group
  517. vbox = {
  518. layoutpolicy_horizontal = expanding
  519. spacing = 10
  520.  
  521. hbox = {
  522. layoutpolicy_horizontal = expanding
  523. #margin_right = 15
  524. text_label_left = {
  525. layoutpolicy_horizontal = expanding
  526. text = "FAITH_DOCTRINES_DAEDRIC_PRINCES"
  527. default_format = "#low"
  528. }
  529. button_expand = {
  530. tooltip = "[SelectLocalization( VariableSystem.Exists('show_hide_daedric_princes'), 'show_daedric_princes', 'hide_daedric_princes' )]"
  531. using = tooltip_nw
  532. onclick = "[VariableSystem.Toggle('show_hide_daedric_princes')]"
  533.  
  534. texture = "gfx/interface/buttons/button_tree_expand.dds"
  535. frame = "[Select_int32( VariableSystem.Exists('show_hide_daedric_princes'), '(int32)1', '(int32)2' )]"
  536. mirror = horizontal
  537.  
  538. oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over"
  539. clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select"
  540. }
  541. }
  542.  
  543. fixedgridbox = {
  544. name = "doctrines_grid_daedric_princes"
  545. visible = "[Not(VariableSystem.Exists('show_hide_daedric_princes'))]"
  546. datamodel = "[FaithCreationWindow.GetGroupingHelper( 'daedric_princes' ).GetGrouping]"
  547.  
  548. flipdirection = yes
  549. addcolumn = 270
  550. addrow = 65
  551. datamodel_wrap = 2
  552.  
  553. item = {
  554. widget_doctrine_selection_item = {}
  555. }
  556. }
  557. }
  558.  
  559. ### EK EDIT: Added our Virtues & Sins group
  560. vbox = {
  561. layoutpolicy_horizontal = expanding
  562. spacing = 10
  563.  
  564. hbox = {
  565. layoutpolicy_horizontal = expanding
  566. #margin_right = 15
  567. text_label_left = {
  568. layoutpolicy_horizontal = expanding
  569. text = "FAITH_DOCTRINES_VIRTUES_SINS"
  570. default_format = "#low"
  571. }
  572. button_expand = {
  573. tooltip = "[SelectLocalization( VariableSystem.Exists('show_hide_virtues_sins'), 'show_virtues_sins', 'hide_virtues_sins' )]"
  574. using = tooltip_nw
  575. onclick = "[VariableSystem.Toggle('show_hide_virtues_sins')]"
  576.  
  577. texture = "gfx/interface/buttons/button_tree_expand.dds"
  578. frame = "[Select_int32( VariableSystem.Exists('show_hide_virtues_sins'), '(int32)1', '(int32)2' )]"
  579. mirror = horizontal
  580.  
  581. oversound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_pointer_over"
  582. clicksound = "event:/SFX/UI/Generic/sfx_ui_generic_icon_select"
  583. }
  584. }
  585.  
  586. fixedgridbox = {
  587. name = "doctrines_grid_virtues_sins"
  588. visible = "[Not(VariableSystem.Exists('show_hide_virtues_sins'))]"
  589. datamodel = "[FaithCreationWindow.GetGroupingHelper( 'virtues_sins' ).GetGrouping]"
  590.  
  591. flipdirection = yes
  592. addcolumn = 270
  593. addrow = 65
  594. datamodel_wrap = 2
  595.  
  596. item = {
  597. widget_doctrine_selection_item = {}
  598. }
  599. }
  600. }
  601. }
  602. }
  603. }
  604.  
  605. hbox = {
  606. name = "footer_area"
  607. layoutpolicy_horizontal = expanding
  608. margin = { 15 0 }
  609. margin_bottom = 15
  610.  
  611. hbox = {
  612. name = "sins_and_virtues"
  613. spacing = 10
  614.  
  615. vbox = {
  616. name = "sins"
  617. spacing = 3
  618.  
  619. hbox = {
  620. spacing = 5
  621. icon = {
  622. texture = "gfx/interface/icons/traits/sin_big.dds"
  623. }
  624.  
  625. text_single = {
  626. text = "FAITH_WINDOW_SINS"
  627. align = right|nobaseline
  628. }
  629. }
  630.  
  631. hbox = {
  632. name = "virtues_grid"
  633. datamodel = "[FaithCreationWindow.GetSins]"
  634.  
  635. item = {
  636. icon = {
  637. datacontext = "[GuiVirtueOrSinItem.GetTrait]"
  638. size = { 40 40 }
  639. alwaystransparent = yes
  640. texture = "[Trait.GetIcon( GetPlayer )]"
  641.  
  642. tooltipwidget = {
  643. using = faith_window_trait_tooltip
  644. }
  645.  
  646. block "tooltip_placement"
  647. {
  648. using = tooltip_ne
  649. tooltip_offset = { 0 20 }
  650. }
  651. }
  652. }
  653. }
  654. }
  655.  
  656. divider_light = {
  657. layoutpolicy_vertical = expanding
  658. }
  659.  
  660. vbox = {
  661. name = "virtues"
  662. spacing = 3
  663.  
  664. hbox = {
  665. spacing = 5
  666. icon = {
  667. texture = "gfx/interface/icons/traits/virtue_big.dds"
  668. }
  669.  
  670. text_single = {
  671. text = "FAITH_WINDOW_VIRTUES"
  672. align = nobaseline
  673. }
  674. }
  675.  
  676. hbox = {
  677. name = "virtues_grid"
  678. datamodel = "[FaithCreationWindow.GetVirtues]"
  679.  
  680. item = {
  681. icon = {
  682. datacontext = "[GuiVirtueOrSinItem.GetTrait]"
  683. size = { 40 40 }
  684. alwaystransparent = yes
  685. texture = "[Trait.GetIcon( GetPlayer )]"
  686.  
  687. tooltipwidget = {
  688. using = faith_window_trait_tooltip
  689. }
  690.  
  691. block "tooltip_placement"
  692. {
  693. using = tooltip_ne
  694. tooltip_offset = { 0 20 }
  695. }
  696. }
  697. }
  698. }
  699. }
  700. }
  701. }
  702. }
  703.  
  704. # Vassal conversion list
  705. vassal_conversion_preview = {
  706. visible = "[VariableSystem.Exists( 'conversion_view_vassals')]"
  707. size = { 100% 100% }
  708. }
  709. }
  710.  
  711. divider = {
  712. layoutpolicy_vertical = expanding
  713. }
  714.  
  715. ### RIGHT PANEL
  716. widget = {
  717. name = "right_side"
  718. minimumsize = { 500 0 }
  719. layoutpolicy_vertical = expanding
  720.  
  721. ## Main right side view
  722. vbox = {
  723. name = "primary_view"
  724. visible = "[Not( VariableSystem.Exists('faith_creation_right_view') )]"
  725. margin_bottom = 20
  726.  
  727. state = {
  728. name = _show
  729. using = Animation_FadeIn_Quick
  730. }
  731.  
  732. state = {
  733. name = _hide
  734. alpha = 0
  735. }
  736.  
  737. spacer = { size = {0 20}}
  738.  
  739.  
  740. vbox = {
  741. name = "confirm_and_preview"
  742. layoutpolicy_horizontal = expanding
  743. spacing = 20
  744. margin = { 30 0 }
  745.  
  746. vbox = {
  747. layoutpolicy_horizontal = expanding
  748. spacing = 10
  749. visible = "[Not( FaithCreationWindow.CanCreateFaith )]"
  750. text_label_left = {
  751. layoutpolicy_horizontal = expanding
  752. text = "FAITH_CREATION_BLOCKERS_HEADER"
  753. default_format = "#low"
  754. }
  755.  
  756. hbox = {
  757. layoutpolicy_horizontal = expanding
  758.  
  759. text_multi = {
  760. autoresize = yes
  761. max_width = 440
  762. text = "[FaithCreationWindow.GetCreationBlockers]"
  763. }
  764.  
  765. expand = {}
  766. }
  767. }
  768.  
  769. vbox = {
  770. name = "old_faith_tolerance"
  771. layoutpolicy_horizontal = expanding
  772.  
  773. text_label_left = {
  774. name = "header"
  775. layoutpolicy_horizontal = expanding
  776. text = "FAITH_CREATION_TOLERANCE"
  777. default_format = "#low"
  778. }
  779.  
  780. expand = {
  781. size = { 0 10 }
  782. }
  783.  
  784. text_single = {
  785. name = "desc"
  786. layoutpolicy_horizontal = expanding
  787. text = "FAITH_CREATION_TOLERANCE_TEXT"
  788. }
  789. }
  790.  
  791.  
  792. vbox = {
  793. name = "realm_adoption"
  794. layoutpolicy_horizontal = expanding
  795. layoutpolicy_vertical = expanding
  796.  
  797. text_label_left = {
  798. layoutpolicy_horizontal = expanding
  799. name = "header"
  800. text = "FAITH_CREATION_ADOPTION"
  801. default_format = "#low"
  802. }
  803.  
  804. expand = {
  805. size = { 0 10 }
  806. }
  807.  
  808. text_single = {
  809. layoutpolicy_horizontal = expanding
  810. name = "desc"
  811. text = "FAITH_CREATION_ADOPTION_TEXT"
  812. }
  813.  
  814. hbox = {
  815. layoutpolicy_horizontal = expanding
  816. layoutpolicy_vertical = expanding
  817. margin = { 0 5 }
  818.  
  819. button_standard = {
  820. name = "see_vassals"
  821. onclick = "[VariableSystem.Toggle( 'conversion_view_vassals' )]"
  822. text = "FAITH_CREATION_OPEN_VASSAL_LIST"
  823. down = "[VariableSystem.HasValue( 'conversion_view_vassals', 'true' )]"
  824. }
  825.  
  826. expand = {}
  827. }
  828. }
  829.  
  830. vbox = {
  831. name = "pagan_reformation"
  832. ### EK EDIT: We don't use the Western African Pagan religion
  833. visible = "[GetPlayer.GetFaith.HasDoctrineByKey('unreformed_faith_doctrine')]"
  834. layoutpolicy_horizontal = expanding
  835.  
  836. text_single = {
  837. name = "header"
  838. layoutpolicy_horizontal = expanding
  839. text = "FAITH_CREATION_PAGAN_REFORM"
  840. default_format = "#low"
  841. }
  842.  
  843. hbox = {
  844. layoutpolicy_horizontal = expanding
  845.  
  846. text_multi = {
  847. name = "desc"
  848. minimumsize = { 0 70 }
  849. autoresize = yes
  850. max_width = 440
  851. text = "FAITH_CREATION_PAGAN_REFORM_TEXT"
  852. }
  853.  
  854. expand = {}
  855. }
  856. }
  857.  
  858. vbox = {
  859. name = "theocracy_info"
  860. layoutpolicy_horizontal = expanding
  861. layoutpolicy_vertical = expanding
  862. visible = "[Not( ObjectsEqual( GetPlayer.GetFaith.HasParameterByKey( 'lay_clergy' ), FaithCreationWindow.HasParameter( 'lay_clergy' ) ) ) )]"
  863.  
  864. text_label_left = {
  865. layoutpolicy_horizontal = expanding
  866. name = "header"
  867. text = "FAITH_CREATION_THEOCRACY_INFO"
  868. default_format = "#low"
  869. }
  870.  
  871. expand = {
  872. size = { 0 10 }
  873. }
  874.  
  875. hbox = {
  876. name = "church_property"
  877. visible = "[Not( FaithCreationWindow.HasParameter( 'lay_clergy' ) )]"
  878. layoutpolicy_horizontal = expanding
  879. spacing = 10
  880.  
  881. icon_doctrine = {
  882. texture = "[GetDoctrine( 'doctrine_theocracy_temporal' ).GetIcon]"
  883. size = { 35 35 }
  884. }
  885.  
  886. text_multi = {
  887. name = "desc"
  888. max_width = 390
  889. autoresize = yes
  890.  
  891. text = "FAITH_CREATION_ADDS_CHURCH_PROPERTY_TEXT"
  892. }
  893.  
  894. expand = {}
  895. }
  896.  
  897. hbox = {
  898. name = "lay_clergy"
  899. visible = "[FaithCreationWindow.HasParameter( 'lay_clergy' )]"
  900. layoutpolicy_horizontal = expanding
  901. spacing = 10
  902.  
  903. icon_doctrine = {
  904. texture = "[GetDoctrine( 'doctrine_theocracy_lay_clergy' ).GetIcon]"
  905. size = { 35 35 }
  906. }
  907.  
  908. text_multi = {
  909. name = "desc"
  910. max_width = 390
  911. autoresize = yes
  912.  
  913. text = "FAITH_CREATION_ADDS_LAY_CLERGY_TEXT"
  914. }
  915.  
  916. expand = {}
  917. }
  918. }
  919.  
  920. vbox = {
  921. name = "head_of_faith_info"
  922. layoutpolicy_horizontal = expanding
  923. layoutpolicy_vertical = expanding
  924.  
  925. visible = "[Not( FaithCreationWindow.HasParameter( 'no_head_of_faith' ) )]"
  926.  
  927. text_label_left = {
  928. layoutpolicy_horizontal = expanding
  929. name = "header"
  930. text = "FAITH_CREATION_HEAD_OF_FAITH_INFO"
  931. default_format = "#low"
  932. }
  933.  
  934. expand = {
  935. size = { 0 10 }
  936. }
  937.  
  938. hbox = {
  939. name = "spiritual"
  940. visible = "[FaithCreationWindow.HasParameter( 'spiritual_head_of_faith' )]"
  941. layoutpolicy_horizontal = expanding
  942. spacing = 10
  943.  
  944. icon_doctrine = {
  945. texture = "[GetDoctrine( 'doctrine_spiritual_head' ).GetIcon]"
  946. size = { 35 35 }
  947. }
  948.  
  949. text_multi = {
  950. name = "desc"
  951. max_width = 390
  952. autoresize = yes
  953.  
  954. text = "FAITH_CREATION_ADDS_SPIRITUAL_HEAD_TEXT"
  955. }
  956.  
  957. expand = {}
  958. }
  959.  
  960. hbox = {
  961. name = "temporal"
  962. visible = "[FaithCreationWindow.HasParameter( 'temporal_head_of_faith' )]"
  963. layoutpolicy_horizontal = expanding
  964. spacing = 10
  965.  
  966. icon_doctrine = {
  967. texture = "[GetDoctrine( 'doctrine_temporal_head' ).GetIcon]"
  968. size = { 35 35 }
  969. }
  970.  
  971. text_multi = {
  972. name = "desc"
  973. max_width = 390
  974. autoresize = yes
  975.  
  976. text = "FAITH_CREATION_ADDS_TEMPORAL_HEAD_TEXT"
  977. }
  978.  
  979. expand = {}
  980. }
  981. }
  982.  
  983.  
  984. }
  985.  
  986. expand = {}
  987.  
  988.  
  989. vbox = {
  990. name = "cost"
  991. tooltip = "FAITH_CREATION_COST_TOOLTIP"
  992.  
  993. text_single = {
  994. layoutpolicy_horizontal = expanding
  995. text = "FAITH_CREATION_TOTAL_COST"
  996. default_format = "#high"
  997. using = Font_Size_Medium
  998. align = right
  999.  
  1000. background = {
  1001. visible = "[GreaterThan_int32( FaithCreationWindow.CalcPietyMissing, '(int32)0' )]"
  1002. margin = { 5 0 }
  1003. using = Status_Bad
  1004. }
  1005. }
  1006. }
  1007.  
  1008. spacer = { size = {0 10}}
  1009.  
  1010. text_multi = {
  1011. align = center
  1012. name = "cooldown"
  1013. layoutpolicy_horizontal = expanding
  1014. text = "FAITH_CREATION_COOLDOWN"
  1015. default_format = "#low"
  1016. using = Font_Size_Medium
  1017. autoresize = yes
  1018. max_width = 400
  1019. }
  1020.  
  1021. spacer = { size = {0 10}}
  1022.  
  1023. button_primary = {
  1024. name = "create_faith"
  1025. size = { 400 60 }
  1026. visible = "[Not( GetPlayer.GetFaith.IsUnreformed )]"
  1027.  
  1028. enabled = "[FaithCreationWindow.CanCreateFaith]"
  1029. onclick = "[FaithCreationWindow.CreateFaith]"
  1030.  
  1031. text = "FAITH_CREATION_CREATE"
  1032. using = Font_Size_Medium
  1033.  
  1034. tooltip = "FAITH_CREATION_BUTTON_TOOLTIP"
  1035. }
  1036.  
  1037. button_primary = {
  1038. name = "reform_faith"
  1039. size = { 400 60 }
  1040. visible = "[GetPlayer.GetFaith.IsUnreformed]"
  1041.  
  1042. enabled = "[FaithCreationWindow.CanCreateFaith]"
  1043. onclick = "[FaithCreationWindow.CreateFaith]"
  1044.  
  1045. text = "FAITH_CREATION_REFORM"
  1046. using = Font_Size_Big
  1047.  
  1048. tooltip = "FAITH_REFORM_BUTTON_TOOLTIP"
  1049. }
  1050. }
  1051.  
  1052. ## Name selection
  1053. vbox = {
  1054. name = "name_selection"
  1055. visible = "[VariableSystem.HasValue( 'faith_creation_right_view', 'name_selection' )]"
  1056. margin = { 0 15 }
  1057. spacing = 20
  1058.  
  1059. state = {
  1060. name = _show
  1061. using = Animation_FadeIn_Quick
  1062. }
  1063.  
  1064. state = {
  1065. name = _hide
  1066. alpha = 0
  1067. }
  1068.  
  1069. text_single = {
  1070. name = "header_label"
  1071. text = "FAITH_CREATION_NAMING_HEADER"
  1072. default_format = "#I"
  1073. }
  1074.  
  1075. vbox = {
  1076. layoutpolicy_horizontal = expanding
  1077. margin = {50 0}
  1078. # The names of these four are referenced in code. If you change them, they'll no longer get blanked after creating a faith
  1079. name_entry_big = {
  1080. blockoverride "label"
  1081. {
  1082. text = "FAITH_CREATION_NAMING_NAME"
  1083. }
  1084.  
  1085. blockoverride "editbox_properties"
  1086. {
  1087. name = "faith_name_edit"
  1088. ontextedited = "[FaithCreationWindow.OnEditName]"
  1089. maxcharacters = 30
  1090. }
  1091. }
  1092.  
  1093. widget = {
  1094. size = { 10 10 }
  1095. }
  1096.  
  1097. name_entry_big = {
  1098. blockoverride "label"
  1099. {
  1100. text = "FAITH_CREATION_NAMING_ADJECTIVE"
  1101. }
  1102.  
  1103. blockoverride "editbox_properties"
  1104. {
  1105. name = "faith_adjective_edit"
  1106. ontextedited = "[FaithCreationWindow.OnEditAdjective]"
  1107. maxcharacters = 30
  1108. }
  1109.  
  1110. }
  1111.  
  1112. widget = {
  1113. size = { 10 10 }
  1114. }
  1115.  
  1116. name_entry_big = {
  1117. blockoverride "label"
  1118. {
  1119. text = "FAITH_CREATION_NAMING_FOLLOWER"
  1120. }
  1121.  
  1122. blockoverride "editbox_properties"
  1123. {
  1124. name = "faith_adherent_edit"
  1125. ontextedited = "[FaithCreationWindow.OnEditAdherent]"
  1126. maxcharacters = 30
  1127. }
  1128. }
  1129.  
  1130. widget = {
  1131. size = { 10 10 }
  1132. }
  1133.  
  1134. name_entry_big = {
  1135. blockoverride "label"
  1136. {
  1137. text = "FAITH_CREATION_NAMING_FOLLOWERS"
  1138. }
  1139.  
  1140. blockoverride "editbox_properties"
  1141. {
  1142. name = "faith_adherent_plural_edit"
  1143. ontextedited = "[FaithCreationWindow.OnEditAdherentPlural]"
  1144. maxcharacters = 30
  1145. }
  1146. }
  1147.  
  1148. widget = {
  1149. size = { 10 10 }
  1150. }
  1151.  
  1152.  
  1153. editbox_standard_with_label = {
  1154. layoutpolicy_horizontal = expanding
  1155.  
  1156. minimumsize = {0 220}
  1157.  
  1158. blockoverride "editbox_label"
  1159. {
  1160. text = "FAITH_CREATION_NAMING_DESC"
  1161. }
  1162.  
  1163. blockoverride "editbox_properties"
  1164. {
  1165. name = "faith_desc_edit"
  1166. multiline = yes
  1167. ontextedited = "[FaithCreationWindow.OnEditDescription]"
  1168. maxcharacters = 240
  1169. }
  1170. }
  1171.  
  1172.  
  1173. }
  1174.  
  1175. expand = {}
  1176.  
  1177.  
  1178. button_standard = {
  1179. name = "done"
  1180. onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]"
  1181. text = "DONE"
  1182. default_format = "#high"
  1183. }
  1184. }
  1185.  
  1186. vbox = {
  1187. name = "color_selection"
  1188. visible = "[VariableSystem.HasValue( 'faith_creation_right_view', 'color_selection' )]"
  1189. margin = { 0 20 }
  1190. margin_top = 15
  1191. margin_left = 2
  1192. spacing = 10
  1193.  
  1194. text_label_center = {
  1195. layoutpolicy_horizontal = expanding
  1196. text = "MAP_COLOR_SELECTION_LABEL"
  1197. max_width = 280
  1198. }
  1199.  
  1200. colorpicker_simple = {
  1201. visible = yes
  1202. color = "[FaithCreationWindow.GetColor]"
  1203. oncoloredited = "[FaithCreationWindow.SetColor]"
  1204. }
  1205.  
  1206. expand = {}
  1207.  
  1208. button_standard = {
  1209. name = "done"
  1210. onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]"
  1211. text = "DONE"
  1212. default_format = "#high"
  1213. }
  1214. }
  1215.  
  1216.  
  1217. ## Doctrine selection
  1218. vbox = {
  1219. name = "doctrine_selection"
  1220. visible = "[VariableSystem.HasValue( 'faith_creation_right_view', 'doctrine_selection' )]"
  1221. margin = { 0 15 }
  1222. spacing = 20
  1223.  
  1224. state = {
  1225. name = _show
  1226. using = Animation_FadeIn_Quick
  1227. }
  1228.  
  1229. state = {
  1230. name = _hide
  1231. alpha = 0
  1232. }
  1233.  
  1234. text_label_center = {
  1235. layoutpolicy_horizontal = expanding
  1236. text = "[VariableSystem.Get( 'doctrine_group_name' )]"
  1237. max_width = 280
  1238. }
  1239.  
  1240. scrollbox = {
  1241. name = "contents"
  1242. layoutpolicy_horizontal = expanding
  1243. layoutpolicy_vertical = expanding
  1244.  
  1245. blockoverride "scrollbox_content"
  1246. {
  1247. vbox = {
  1248. datacontext = "[FaithCreationWindow.GetDoctrineGroupWindow]"
  1249. datamodel = "[DoctrineGroupWindow.GetDoctrines]"
  1250. layoutpolicy_horizontal = expanding
  1251.  
  1252. item = {
  1253. vbox = {
  1254. layoutpolicy_horizontal = expanding
  1255.  
  1256. button_standard_hover = {
  1257. name = "faith_list_item"
  1258. layoutpolicy_horizontal = expanding
  1259. datacontext = "[GuiFaithCreationDoctrineItem.GetGuiFaithDoctrineItem]"
  1260. datacontext = "[GuiFaithDoctrineItem.GetDoctrine]"
  1261. datacontext = "[GuiFaithDoctrineItem.GetFaith]"
  1262. datacontext = "[GetVariableSystem]"
  1263. size = { 430 80 }
  1264.  
  1265. onclick = "[GuiFaithCreationDoctrineItem.GetFaithCreationWindow.SelectDoctrine( GuiFaithCreationDoctrineItem.Self )]"
  1266. onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]"
  1267. visible = "[GuiFaithCreationDoctrineItem.ShouldDisplay]"
  1268. enabled = "[GuiFaithCreationDoctrineItem.CanPick]"
  1269. down = "[GuiFaithCreationDoctrineItem.IsSelected]"
  1270. tooltip = "FAITH_WINDOW_DOCTRINE_SELECT_TOOLTIP"
  1271.  
  1272. icon_doctrine = {
  1273. name = "doctrine_icon_main"
  1274. visible = "[EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'main_group' )]"
  1275. texture = "[FaithDoctrine.GetIcon]"
  1276. size = { 60 60 }
  1277. position = { 5 10 }
  1278. }
  1279.  
  1280. icon_doctrine = {
  1281. name = "doctrine_icon_pantheon"
  1282. visible = "[EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'pantheon' )]"
  1283. texture = "[FaithDoctrine.GetIcon]"
  1284. size = { 60 60 }
  1285. position = { 5 10 }
  1286. }
  1287.  
  1288. icon_doctrine = {
  1289. name = "doctrine_icon_secondary_pantheon"
  1290. visible = "[EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'secondary_pantheon' )]"
  1291. texture = "[FaithDoctrine.GetIcon]"
  1292. size = { 60 60 }
  1293. position = { 5 10 }
  1294. }
  1295.  
  1296. icon_doctrine = {
  1297. name = "doctrine_icon_other"
  1298. visible = "[And( And( And( Not(EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'main_group' )), Not(EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'core_tenets' )) ), Not(EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'pantheon' )) ), Not(EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'secondary_pantheon' )))]"
  1299. texture = "[FaithDoctrine.GetGroup.GetIcon]"
  1300. size = { 60 60 }
  1301. position = { 5 10 }
  1302. }
  1303.  
  1304. widget = {
  1305. name = "doctrine_icon_core_bg"
  1306. visible = "[EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'core_tenets' )]"
  1307.  
  1308. background = {
  1309. using = Background_Area_Dark
  1310. alpha = 0.4
  1311. }
  1312.  
  1313. size = { 45 70 }
  1314. position = { 15 5 }
  1315. }
  1316.  
  1317. icon = {
  1318. name = "doctrine_icon_core"
  1319. visible = "[EqualTo_string( FaithDoctrine.GetGroup.GetGroupingKey, 'core_tenets' )]"
  1320. texture = "[FaithDoctrine.GetIcon]"
  1321. size = { 45 70 }
  1322. position = { 15 5 }
  1323. }
  1324.  
  1325. text_single = {
  1326. name = "doctrine_name"
  1327. position = { 75 25 }
  1328. text = "[FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith )]"
  1329. default_format = "#high"
  1330. using = Font_Size_Medium
  1331. max_width = 270
  1332. }
  1333.  
  1334. text_single = {
  1335. name = "piety_cost"
  1336. position = { 350 23 }
  1337. text = "[piety_i][FaithDoctrine.CalcPietyCostWithFervorDiscount( GuiFaithDoctrineItem.GetFaith )]"
  1338. using = Font_Size_Medium
  1339. }
  1340. }
  1341.  
  1342. divider_light = {
  1343. layoutpolicy_horizontal = expanding
  1344. }
  1345. }
  1346. }
  1347. }
  1348. }
  1349. }
  1350.  
  1351. button_standard = {
  1352. name = "cancel"
  1353. onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]"
  1354. text = "CANCEL"
  1355. default_format = "#high"
  1356. }
  1357. }
  1358.  
  1359.  
  1360. ## Icon selection
  1361. vbox = {
  1362. name = "icon_selection"
  1363. visible = "[VariableSystem.HasValue( 'faith_creation_right_view', 'icon_selection' )]"
  1364. margin = { 0 15 }
  1365. spacing = 20
  1366.  
  1367. state = {
  1368. name = _show
  1369. using = Animation_FadeIn_Quick
  1370. }
  1371.  
  1372. state = {
  1373. name = _hide
  1374. alpha = 0
  1375. }
  1376.  
  1377. text_single = {
  1378. name = "header_label"
  1379. text = "SELECT_FAITH_ICON"
  1380. default_format = "#I"
  1381. }
  1382.  
  1383. scrollbox = {
  1384. name = "contents"
  1385. layoutpolicy_horizontal = expanding
  1386. layoutpolicy_vertical = expanding
  1387.  
  1388. blockoverride "scrollbox_content"
  1389. {
  1390. fixedgridbox = {
  1391. name = "icons_grid"
  1392. datamodel = "[FaithCreationWindow.GetFaithIcons]"
  1393. size = { 500 240 }
  1394. addcolumn = 60
  1395. addrow = 70
  1396. datamodel_wrap = 8
  1397. flipdirection = yes
  1398.  
  1399. item = {
  1400. button_normal = {
  1401. size = { 60 60 }
  1402. texture = "[GuiFaithIcon.GetIconTexture]"
  1403. onclick = "[GuiFaithIcon.GetFaithCreationWindow.SelectFaithIcon( GuiFaithIcon.GetIconName )]"
  1404. onclick = "[GetVariableSystem.Set( 'faith_creation_icon_selection', 'true' )]"
  1405. tooltip = "SELECT_FAITH_ICON_TOOLTIP"
  1406.  
  1407. glow = {
  1408. using = Color_Orange
  1409. visible = "[GuiFaithIcon.IsSelected]"
  1410.  
  1411. glow_radius = 5
  1412. using = Glow_Standard
  1413. }
  1414. }
  1415. }
  1416. }
  1417. }
  1418. }
  1419.  
  1420. button_standard = {
  1421. name = "close"
  1422. onclick = "[VariableSystem.Clear( 'faith_creation_right_view' )]"
  1423. text = "DONE"
  1424. default_format = "#high"
  1425. }
  1426. }
  1427. }
  1428. }
  1429. }
  1430. }
  1431.  
  1432. template faith_creation_doctrine_grid
  1433. {
  1434. datamodel_wrap = 2
  1435. flipdirection = yes
  1436. addcolumn = 350
  1437. addrow = 65
  1438. item = {
  1439. button_group = {
  1440. name = "doctrine_list_item"
  1441. tooltip = "FAITH_WINDOW_DOCTRINE_CHANGE_TOOLTIP"
  1442. datacontext = "[GuiFaithCreationDoctrineItem.GetGuiFaithDoctrineItem]"
  1443. datacontext = "[GuiFaithDoctrineItem.GetDoctrine]"
  1444. onclick = "[GuiFaithCreationDoctrineItem.GetFaithCreationWindow.GetDoctrineGroupWindow.ShowWindow( GuiFaithCreationDoctrineItem.GetSlotIndex )]"
  1445. onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'doctrine_selection' )]"
  1446. onclick = "[GetVariableSystem.Set( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) )]"
  1447. down = "[GetVariableSystem.HasValue( 'faith_creation_right_view', 'doctrine_selection' )]"
  1448.  
  1449. button_standard_hover = {
  1450. position = { 0 0 }
  1451. size = { 350 80 }
  1452. name = "select_doctrine"
  1453. down = "[And(GetVariableSystem.HasValue( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) ), GetVariableSystem.HasValue( 'faith_creation_right_view', 'doctrine_selection' ))]"
  1454. }
  1455.  
  1456. icon = {
  1457. name = "doctrine_group_icon"
  1458. size = { 60 60 }
  1459. position = { 5 5 }
  1460. texture = "[FaithDoctrine.GetGroup.GetIcon]"
  1461. }
  1462.  
  1463. text_single = {
  1464. name = "doctrine_group_name"
  1465. autoresize = yes
  1466. position = { 80 7 }
  1467. align = left
  1468. text = "[FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith )]"
  1469. }
  1470.  
  1471. text_single = {
  1472. name = "doctrine_name"
  1473. position = { 80 33 }
  1474. align = left
  1475. text = "[FaithDoctrine.GetName( GuiFaithDoctrineItem.GetFaith )]"
  1476. }
  1477. }
  1478. }
  1479. }
  1480.  
  1481. template faith_window_trait_tooltip
  1482. {
  1483. object_tooltip_pop_out = {
  1484. blockoverride "header_additions"
  1485. {
  1486. hbox = {
  1487. margin_right = 5
  1488. margin_top = 5
  1489.  
  1490. icon = {
  1491. size = { 52 52 }
  1492. texture = "[Trait.GetIcon( GetPlayer )]"
  1493. tintcolor = "[TooltipInfo.GetTintColor]"
  1494. }
  1495. }
  1496. }
  1497. blockoverride "title_text"
  1498. {
  1499. text = "[Trait.GetNameNoTooltip( GetPlayer )]"
  1500. }
  1501. blockoverride "concept_link" {
  1502. text = [trait|E]
  1503. }
  1504. blockoverride "description_text"
  1505. {
  1506. text = "[GuiVirtueOrSinItem.GetFullDescription]"
  1507. }
  1508. }
  1509. }
  1510.  
  1511. types "FaithCreation"
  1512. {
  1513. type widget_doctrine_selection_item = button_standard_hover {
  1514. size = { 240 53 }
  1515. tooltip = "FAITH_WINDOW_DOCTRINE_CHANGE_TOOLTIP"
  1516. datacontext = "[GuiFaithCreationDoctrineItem.GetGuiFaithDoctrineItem]"
  1517. datacontext = "[GuiFaithDoctrineItem.GetDoctrine]"
  1518. onclick = "[GuiFaithCreationDoctrineItem.GetFaithCreationWindow.GetDoctrineGroupWindow.ShowWindow( GuiFaithCreationDoctrineItem.GetSlotIndex )]"
  1519. onclick = "[GetVariableSystem.Set( 'faith_creation_right_view', 'doctrine_selection' )]"
  1520. onclick = "[GetVariableSystem.Set( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) )]"
  1521. down = "[And(GetVariableSystem.HasValue( 'doctrine_group_name', FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith ) ), GetVariableSystem.HasValue( 'faith_creation_right_view', 'doctrine_selection' ))]"
  1522.  
  1523. background = {
  1524. using = Background_Area
  1525. margin = { 5 5 }
  1526. }
  1527.  
  1528. hbox = {
  1529. name = "faith_list_item"
  1530. datacontext = "[GuiFaithDoctrineItem.GetDoctrine]"
  1531. spacing = 5
  1532. using = tooltip_nw
  1533. tooltip = "FAITH_WINDOW_DOCTRINE_TOOLTIP"
  1534.  
  1535. icon_doctrine = {
  1536. name = "doctrine_icon"
  1537. size = { 50 50 }
  1538. block "doctrine_icon_texture"
  1539. {
  1540. texture = "[FaithDoctrine.GetGroup.GetIcon]"
  1541. }
  1542.  
  1543. alpha = "[Select_float( GetPlayer.GetFaith.HasDoctrine( GuiFaithDoctrineItem.GetDoctrine ), '(float)0.4', '(float)1.0' )]"
  1544. }
  1545.  
  1546. vbox = {
  1547. layoutpolicy_horizontal = expanding
  1548.  
  1549. text_single = {
  1550. name = "doctrine_group_name"
  1551. text = "[FaithDoctrine.GetGroup.GetName( GuiFaithDoctrineItem.GetFaith )]"
  1552. align = left
  1553. default_format = "#low"
  1554. layoutpolicy_horizontal = expanding
  1555. autoresize = no
  1556. fontsize_min = 12
  1557. }
  1558.  
  1559. text_single = {
  1560. name = "faith_name"
  1561. text = "[FaithDoctrine.GetNameNoTooltip( GuiFaithDoctrineItem.GetFaith )]"
  1562. datacontext = "[GuiFaithDoctrineItem.GetFaith]"
  1563. layoutpolicy_horizontal = expanding
  1564. elide = right
  1565. autoresize = no
  1566. fontsize_min = 12
  1567. align = left
  1568. }
  1569. }
  1570. }
  1571. }
  1572.  
  1573. type vassal_conversion_preview = widget {
  1574. name = "vassal_conversion_preview_list"
  1575.  
  1576. vbox = {
  1577. margin = { 0 15 }
  1578. spacing = 5
  1579.  
  1580. text_label_center = {
  1581. name = "header"
  1582. text = "[vassals|E]"
  1583. using = Font_Size_Medium
  1584. }
  1585.  
  1586. hbox = {
  1587. layoutpolicy_horizontal = expanding
  1588. margin = { 10 0 }
  1589.  
  1590. datacontext = "[VassalConversionWindow.GetVassalList]"
  1591.  
  1592. widget = {
  1593. name = "sort_area"
  1594. size = { 0 33 }
  1595. layoutpolicy_horizontal = expanding
  1596.  
  1597. hbox = {
  1598. margin_left = 8
  1599. spacing = 5
  1600.  
  1601. text_single = {
  1602. text = "SORT_BY"
  1603. align = nobaseline
  1604. }
  1605.  
  1606. dropdown_sort_characterlist = {}
  1607.  
  1608. button_standard = {
  1609. name = "sort_order"
  1610. size = { 25 25 }
  1611. tooltip = "CHARACTER_SORT_BY"
  1612. onclick = "[CharacterSelectionList.RevertSortOrder]"
  1613.  
  1614. button_icon = {
  1615. texture = "gfx/interface/icons/flat_icons/sort_icon.dds"
  1616. framesize = { 66 66 }
  1617. size = { 25 25 }
  1618. frame = "[BoolTo1And2(CharacterSelectionList.GetSortOrder)]"
  1619. alwaystransparent = yes
  1620. }
  1621. }
  1622.  
  1623. expand = {}
  1624. }
  1625. }
  1626. }
  1627.  
  1628. scrollbox = {
  1629. name = "list_area"
  1630. layoutpolicy_horizontal = growing
  1631. layoutpolicy_vertical = growing
  1632.  
  1633. blockoverride "scrollbox_content"
  1634. {
  1635. visible = "[GreaterThan_int32( VassalConversionWindow.GetNumberOfVassals, '(int32)0' )]"
  1636.  
  1637. vbox = {
  1638. name = "vassals_grid"
  1639. datacontext = "[VassalConversionWindow.GetVassalList]"
  1640. datamodel = "[CharacterSelectionList.GetList]"
  1641. layoutpolicy_horizontal = expanding
  1642.  
  1643. item = {
  1644.  
  1645. vbox = {
  1646. layoutpolicy_horizontal = expanding
  1647. layoutpolicy_vertical = expanding
  1648.  
  1649. divider = {
  1650. layoutpolicy_horizontal = expanding
  1651. }
  1652.  
  1653. hbox = {
  1654. datacontext = "[CharacterListItem.GetCharacter]"
  1655. layoutpolicy_horizontal = expanding
  1656. margin = { 10 0 }
  1657. spacing = 10
  1658.  
  1659. tooltip = "[CharacterListItem.GetText('tooltip')]"
  1660.  
  1661. portrait_head = {
  1662. using = tooltip_ws
  1663.  
  1664. blockoverride "coa" {}
  1665. }
  1666.  
  1667. coa_realm_small_crown = {
  1668. #visible = "[Character.HasLandedTitles]"
  1669. }
  1670.  
  1671. vbox = {
  1672. layoutpolicy_horizontal = expanding
  1673.  
  1674. text_single = {
  1675. name = "name"
  1676. layoutpolicy_horizontal = expanding
  1677. text = "[Character.GetUINameNoTooltip]"
  1678. using = Font_Size_Medium
  1679. }
  1680.  
  1681. ### acceptance
  1682. text_single = {
  1683. name = "acceptance"
  1684. layoutpolicy_horizontal = expanding
  1685. text = "[CharacterListItem.GetText( 'acceptance' )]"
  1686. tooltip = "[CharacterListItem.GetText( 'acceptance_desc' )]"
  1687. }
  1688. }
  1689. }
  1690. }
  1691. }
  1692. }
  1693. }
  1694.  
  1695. vbox = {
  1696. visible = "[EqualTo_int32( VassalConversionWindow.GetNumberOfVassals, '(int32)0' )]"
  1697. text_single = {
  1698. text = "NO_CONVERSION_VASSALS_TO_DISPLAY"
  1699. }
  1700. }
  1701. }
  1702.  
  1703. vbox = {
  1704. margin_top = 10
  1705.  
  1706. block "footer" {}
  1707.  
  1708. button_standard = {
  1709. name = "close"
  1710. text = "CLOSE_LABEL"
  1711. onclick = "[VariableSystem.Toggle( 'conversion_view_vassals' )]"
  1712. }
  1713. }
  1714.  
  1715.  
  1716. }
  1717. }
  1718. }
  1719.  
Advertisement
Add Comment
Please, Sign In to add comment