Ludeon Forums

RimWorld => Mods => Unfinished => Topic started by: m1st4x on April 21, 2021, 12:23:55 PM

Title: Pawn display name
Post by: m1st4x on April 21, 2021, 12:23:55 PM
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
Title: Re: Pawn display name
Post by: Chicken Plucker on April 21, 2021, 12:38:09 PM
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
Title: Re: Pawn display name
Post by: m1st4x on April 21, 2021, 03:06:25 PM
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 ;)
Title: Re: Pawn display name
Post by: Canute on April 21, 2021, 03:55:32 PM
Why you just disable forname and surname and merge them all into the displayed nickname ?
Title: Re: Pawn display name
Post by: ChirpScree on April 21, 2021, 10:03:26 PM
I agree, a displayed nickname would be better.
Title: Re: Pawn display name
Post by: m1st4x on April 22, 2021, 05:06:55 PM
Thanks Canute, your approach is the right one.
I've found the cooresponding code in NameTriple.cs
-m1st4x