Guest User

Untitled

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