Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - DrMrEd

#1
Outdated / [A17] Thrones+Crowns
October 23, 2017, 10:36:31 AM
My first released mod! Adds Thrones and Crowns to the game. XML only, so should be compatible, but I've only had a few folks test things. Happy to hear any feedback!

Steam link: http://steamcommunity.com/sharedfiles/filedetails/?id=1178644141
#2
Help / AssignOwner UI box?
October 12, 2017, 08:43:45 AM
Greetings modders. Newb modder here, but worked through a few basic mods and learned a lot, but now I'm stuck.

In my current project, I would like to use the AssignOwner button in the UI for my new object. I've been all through the Bed and Grave source code and Defs, but can't see where this is configured. I feel like I've missed something obvious regarding the UI buttons. Can anyone point me in the right direction?

My custom ThingClass implements IAssignableBuilding, but that doesn't take care of this bit of magic. I actually have all the code to claim/unclaim written and working through a cool bit of C# using Extensions to add new methods to the Pawn_Ownership class. I can test this by manually calling up the Dialog_AssignBuildingOwner from the ctor() in my ThingClass, which is interesting, but useless in-game.