A11 <GraphicOverdraw> to <?> help.

Started by pktongrimworld, June 27, 2015, 09:43:49 PM

Previous topic - Next topic

pktongrimworld

so, spend the two last 2 hours digging though core.

and cant find what <GraphicOverdraw> turned into in Alpha 11.

T.T


help?

RemingtonRyder

I think it's been dropped entirely. Notice that turrets, despite having a placement size of 1x1, have a texture which is 3x3? There's a new tag to account for that, without needing the GraphicOverdraw.

Shinzy

What Marv said!

    <graphicData>
      <texPath>Things/Building/Furniture/Bed/SleepSpot</texPath>
      <graphicClass>Graphic_Multi</graphicClass>
      <drawSize>(3,4)</drawSize>
    </graphicData>

this is from the sleeping spot def (duh!)
drawSize is the new black overdraw

1000101

Yes, you have a <size> tag to say how large the building really is and in <graphicData> a <drawSize> tag to say how large the graphic for the building is.

drawSize used to be an internal function which derived from <size> and <GraphicOverdraw> but is now an xml tag.

If your building is 1x1, <size> can be omitted and if the texture is 1x1 then <drawSize> can be omitted.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

pktongrimworld

thanks people.

*this helps me understand it better.