Jump to content

[mod] Show All Traits Carnalitas Patch


Recommended Posts

Posted

Show All Traits Carnalitas Patch


Adds a + button to the character UI screen that will show all the traits and timed modifiers on a character.

 

Tired of having a lot of character traits but only seeing half of them on screen? Well this is the solution for you. Click on the + button to see a window of all the character traits, click again to hide screen.

 

It's a simple patch for Carnalitas v 2.0

Load right after carnalitas.


 

Posted

I was tired of not having all my traits show up. So I added this little button that shows it. If you don't want to load the patch just add in the follow code to the carnalitas file yourself

edit the file mod\Carnalitas\gui\window_character.gui

below line 3888 below the follow section of code

        icon = {
            visible = "[Character.IsFemale]"
            size = { 20 20 }
            framesize = { 40 40 }
            frame = "[Character.GetSexualityFrame]"
            texture = "gfx/interface/icons/character_status/sexuality_icons_female.dds"
            tooltip = "SEXUALITY_TT"
        }

add the following lines

        button_plus = {
            visible = "[Or(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)22'), GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTimedModifiers), '(int32)10') )]"
            onclick = "[CharacterWindow.ToggleExpandedTraits]"
        }

 

Posted

does this work with Coetus Anima? because I use it with that mod and it didn't work. or do I just need to put this mod below that mod?
Coetus Anima: here

Posted (edited)
7 hours ago, jcjonesacp76 said:

Yeah I need this to work with

, cause thats where the problem is for me.

 

21 hours ago, angelo0015 said:

Can you make this compatible with Physical Attributes. I try adding the code to it, but it still does not show up.

Don't want to add your mod below Physical Attribute to overwrite its features, unless compatible

 

Okay so I got it to work, right above the traits menu.

sgfs.png.e9c4693817eb91e8e3e49aa9af083aff.png

 

 

Go into your Physical Attributes gui folder : Crusader Kings III\mod\physical_attributes\gui

Edit the window_character.gui located in it and enter the code provided by @TentaclePentacle

 

Note: This would only work if Physical Attributes is the last mod in your load order that used the gui "window_character.gui". In other words, if another mod is higher in priority(lower in the mod list), you should edit that one instead accordingly.

 

Enter the mod code:

        button_plus = {
            visible = "[Or(GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTraits), '(int32)22'), GreaterThan_int32(GetDataModelSize(CharacterWindow.GetTimedModifiers), '(int32)10') )]"
            onclick = "[CharacterWindow.ToggleExpandedTraits]"
        }

 

 

Before here:

					## Traits
					hbox_traits_list = {
						name = "tutorial_highlight_traits"
						datacontext = "[CharacterWindow.GetTraitArrays]"
						margin_bottom = 2
					}

 

 

This is how it should look:

image.png.923b75e4264884242dd033983710ddb8.png

 

 

Edited by angelo0015
grammer
Posted
15 hours ago, NoNickNeeded said:

With Carnalitas own intercace and this mod as well, I don't have the known languages symbol for characters. Any chance you could add that?

 

Try adding in the code for yourself. No problems on my side. Maybe some other mod you have, editing the same window gui. Languages known/symbol is working fine for me, even if I just use Carnalitas and this mod code.

  • 2 weeks later...
  • 1 month later...
Posted (edited)
On 7/17/2023 at 8:11 PM, jcjonesacp76 said:

Is their anything about making this compatible for the Princes of Darkness mod?

Or supernatural. Got it to load putting that after better barbershop but before carn / cbo and the trait tweak mods.

 

Loaded game with preset rulers having traits from both ends (ie giant tits / dicks , a hunter , a magic user , a demon, a vampire)

 

It loads and that stopped the crashed related to clicking on profiles but without an actual compatibility patch Im not very optimistic it will play stable.

Edited by gthu765
  • 3 weeks later...
Posted
On 9/2/2023 at 12:19 PM, gthu765 said:

Or supernatural. Got it to load putting that after better barbershop but before carn / cbo and the trait tweak mods.

 

Loaded game with preset rulers having traits from both ends (ie giant tits / dicks , a hunter , a magic user , a demon, a vampire)

 

It loads and that stopped the crashed related to clicking on profiles but without an actual compatibility patch Im not very optimistic it will play stable.

I found out, it was due to the Lifestyle effects one of the mods does to another, at least fo PoD

  • 1 month later...
Posted (edited)

ck3 更新后,宗族和伯爵领的buff不显示

After ck3 update, clan and count collar buffs are not displayed

Edited by TomLuo
  • 2 months later...
Posted (edited)

For some reason, no matter if I expand all traits by button or not, I can no longer check my modifiers. I mean those little green icons next to the traits. Without this patch I could just hover mouse over them, and game would display information. Now it's not working, and while it's not gamebreaking bug, I'd like to have option to check my modifiers too.

Edited by zaqwer132
fixing typos
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...