protected void UpdatePositions () { /* TODO: variable heights need to be handled */ float x = marginX; float y = marginY; text.Hide (); foreach (Actor actor in this) { if (actor!=text) { actor.Hide (); actor.SetPosition (x, y); x += actor.Width + spacing; actor.Show (); } } UpdateTexture (); }
Tutorial: Adding Syntax Highlighting to Blogger
No comments:
Post a Comment