Crusader Kings III

Crusader Kings III

Better Character UI
Zing 2 Jan, 2021 @ 3:19am
Show more traits with better transitions
It bugged me for a while like when number of traits crosses a certain threshold, they suddenly become tiny despite there being plenty of space to make them bigger. Spend some hours messing around in window_character.gui and improving how traits appear and make use of space.

Character with 3 personality traits can display up to 48 trait icons in 3 rows. The rows are filled out gradually depending on how many traits character has.
https://i.imgur.com/91HOERb.gif

Had to do the same for characters with 4 personality traits and make sure they can display up to 48 traits as well. The size is slightly smaller because personality traits take up some space.
https://i.imgur.com/kmPgKxv.gif

I only messed around with code in ## Traits section and left everything else as is. These changes are of course, not compatible with Better Character UI so I backported them into current version of Better Character UI.

https://pastebin.com/rjdMEYAU

Tested with and without Better UI Scaling, worked fine in both cases.
Last edited by Zing; 2 Jan, 2021 @ 4:22am
< >
Showing 1-5 of 5 comments
BlackShip  [developer] 18 Jan, 2021 @ 5:06am 
Great Job!!
The original mod is actually not changed to the trait column
Later, I copied the code because the modder of "Show more traits" wanted these two mods to be compatible.
The version at that time was 1.03, and it did not continue to update afterwards.
Next update of mod, have to wait for the first DLC...:steamsad:
Thank you for your comments and code.:steamhappy:
Zing 18 Jan, 2021 @ 5:23am 
The code has been added to the current version of the mod available on steam, see pastebin for it. Feel free to official add it to the mod and release a mini update to the mod before DLC release :)
Zing 5 Jan, 2022 @ 7:06am 
Hello, here is an update https://pastebin.com/qhLknYPk

Hello, I stole scrollbox from Carnalitas mode (not on steam) and added scrollbox to traits section for Better Character UI and did some adjustments to how traits appear. All credits goes to the team working on Carnalitas for making the box work, I just made it prettier :)

Feel free to add it to your own mode if you want, give credits where credits are due.
BlackShip  [developer] 7 Jan, 2022 @ 4:04am 
All right!
Thank you for your efforts. I will mark and thank the author of Carnalitas
Then I added you to Contributors, although I don’t know what's the use, I think you contributed a lot to this mod :steamhappy:
Zing 10 Jan, 2022 @ 5:59am 
Ah, noticed the contributor invite and accepted it, looks like it gives user admin access to the mod, including ability to view some stats and edit page. While I appreciate the gesture, I dont think it is necessary :)
< >
Showing 1-5 of 5 comments
Per page: 1530 50