Crusader Kings III

Crusader Kings III

(DISCONTINUED) Show Me Your Court
Big Uncle  [developer] 17 Apr, 2022 @ 7:03pm
Adding Mod Compatibility
For modders:

Note: global value for UniUI was added

For compatibility, make the following changes to window_character.gui
(Add code between two ###SMYCP### to the corresponding positions)

state = { name = _show using = Animation_FadeIn_Quick using = Sound_WindowShow_Standard position_x = 0 on_start = "[GetVariableSystem.Set( 'hide_bottom_left_HUD', 'true' )]" ###SMYCP### on_start = "[GetVariableSystem.Set( 'SMYCP_player_court', 'true' )]" ###SMYCP### }


button_tab = { name = "court_button" datacontext = "[CharacterWindow.GetCharacter]" datacontext = "[GetVariableSystem]" # visible = "[Not(Character.IsPlayer)]" ###SMYCP### visible = "[Not(GetGlobalVariable('SMYCP_is_loaded').IsSet)]" ###SMYCP### layoutpolicy_horizontal = expanding


using = Animation_Character_Window_Refresh } } } ###SMYCP### SMYCP_court_button = {} SMYCP_player_court_button = {} ###SMYCP### button_tab = { name = "vassals_button" datacontext = "[CharacterWindow.GetCharacter]"

In window_court_positions.gui ,make the following changes:

button = { size = { 100% 100% } ###SMYCP### enabled = "[And(EmptyCourtPosition.CanHirePosition, And(GreaterThan_int32(EmptyCourtPosition.NumValidCourtiers, '(int32)0'), Or(Not(GetVariableSystem.Exists('SMYCP_player_court')),GetVariableSystem.HasValue( 'SMYCP_player_court', 'true' ) ) ) )]" ###SMYCP### onclick = "[EmptyCourtPosition.Appoint]" name = "position_portrait_tutorial_uses_this"

flowcontainer = { parentanchor = right margin_top = 4 button_change = { ###SMYCP### visible = "[Or(Not(GetVariableSystem.Exists('SMYCP_player_court')),GetVariableSystem.HasValue( 'SMYCP_player_court', 'true' ) )]" ###SMYCP### onclick = "[EmployedPositionItem.Replace)]" tooltip = "COURT_POSITION_REPLACE" } button_cancel = { ###SMYCP### visible = "[Or(Not(GetVariableSystem.Exists('SMYCP_player_court')),GetVariableSystem.HasValue( 'SMYCP_player_court', 'true' ) )]" ###SMYCP### onclick = "[EmployedPositionItem.Revoke)]" tooltip = "COURT_POSITION_REVOKE" }

In hud.gui ,make the following changes:

vbox = { vbox = { widget_hud_main_tab = { name = "tab_court_tutorial_uses_this" blockoverride "maintab_button" { texture = "gfx/interface/skinned/hud_maintab/maintab_court.dds" onclick = "[ToggleGameViewData( 'court_window', GetPlayer.GetID )]" ###SMYCP### onclick = "[GetVariableSystem.Set( 'SMYCP_player_court', 'true' )]" ###SMYCP### shortcut = "court_window" tooltip = "COURT_BUTTON" down = "[IsGameViewOpen( 'court_window' )]" }
Last edited by Big Uncle; 17 Apr, 2022 @ 7:26pm
< >
Showing 1-2 of 2 comments
Ketaros 17 Apr, 2022 @ 11:54pm 
So cool, please, give me my window_character.gui ready with all changes needed to downlooad. :P
TheGib770 30 Apr, 2022 @ 7:01pm 
Folded into UniUI. Should be out soon(tm). Now don't go adding another mod the day after release :)
< >
Showing 1-2 of 2 comments
Per page: 1530 50