Pawn display name

Started by m1st4x, April 21, 2021, 12:23:55 PM

Previous topic - Next topic

m1st4x

Hi there, I wanna make a mod which let you change the displayed name of your pawns on the main screen [forename|surename|nickname].
Can anyone point me to the code section where I can apply this?
Btw what do you think about this idea?

Chers,
m1st4x

Chicken Plucker

Hello! I know this stuff would be in C#. I do know of mods that do it already, such as "Prepare Carefully" and "Character Editor" but those go a lot more in depth than changing a name, it lets you edit your character too

m1st4x

Hi CP,
the mods you suggested alter the 'definition' of a character. I want to hook the rendering of the pawn's name inside the game loop. Please correct me if I'm thinking wrong...
Thx ;)

Canute

Why you just disable forname and surname and merge them all into the displayed nickname ?

ChirpScree

I agree, a displayed nickname would be better.

m1st4x

#5
Thanks Canute, your approach is the right one.
I've found the cooresponding code in NameTriple.cs
-m1st4x