Improved map rendering, shops, light bugfix, junction boxes wont break as easily
This commit is contained in:
@@ -298,9 +298,9 @@ namespace Subsurface
|
||||
|
||||
public virtual void DrawChildren(SpriteBatch spriteBatch)
|
||||
{
|
||||
foreach (GUIComponent child in children)
|
||||
for (int i = 0; i < children.Count; i++ )
|
||||
{
|
||||
child.Draw(spriteBatch);
|
||||
children[i].Draw(spriteBatch);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -280,7 +280,10 @@ namespace Subsurface
|
||||
Debug.WriteLine("clicked");
|
||||
selected = child;
|
||||
if (OnSelected != null)
|
||||
OnSelected(child.UserData);
|
||||
{
|
||||
if (!OnSelected(child.UserData)) selected = null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user