Ludeon Forums

RimWorld => Mods => Help => Topic started by: mipen on May 09, 2015, 06:45:51 AM

Title: {SOLVED] What draws the selection brackets?
Post by: mipen on May 09, 2015, 06:45:51 AM
I have been searching for what draws the little brackets around things that are selected. I want to draw something that moves, however the brackets around it when it moves only draw inside the IntVec3 that it is in, instead of using the DrawPos Vector3 that I have set. I have been trying to use the pawn class as a base, however I can't find anywhere that draws the selection brackets. If anyone knows where these are drawn or could point me in the right direction, it would be greatly appreciated :)

EDIT: I have just found it, the selection brackets are drawn by the SelectionDrawer class, unfortunately how it draws the brackets is hardcoded to use the objects IntVec3 TrueCentre if it isn't a pawn, so drawing a moving selection bracket isn't possible at the moment :(