Crusader Kings III

Crusader Kings III

(DISCONTINUED) Show Me Your Court
Big Uncle  [开发者] 2022 年 4 月 17 日 下午 7:03
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' )]" }
最后由 Big Uncle 编辑于; 2022 年 4 月 17 日 下午 7:26
< >
正在显示第 1 - 2 条,共 2 条留言
Ketaros 2022 年 4 月 17 日 下午 11:54 
So cool, please, give me my window_character.gui ready with all changes needed to downlooad. :P
TheGib770 2022 年 4 月 30 日 下午 7:01 
Folded into UniUI. Should be out soon(tm). Now don't go adding another mod the day after release :)
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50