ThuCommix / Sharpex2D

2D GameEngine for Indie games with alot of features
http://www.sharpex2d.de
MIT License
47 stars 9 forks source link

UIManager causes controls to tick enstead of render #9

Closed enbacode closed 10 years ago

enbacode commented 10 years ago

UIManager.cs Line 117

Rendering routine of UIManager calls _controls[i].OnTick(elapsed); instead of _controls[i].OnRender(elapsed);

Edit: Also, UIManager's Tick() routine should call _controls[i].Tick(elapsed); instead of _controls[i].OnTick(elapsed); to let the control set its focus states.

ThuCommix commented 10 years ago

Thank you.

https://github.com/ThuCommix/Sharpex2D/commit/d31557a43563f72bc6af57d099a3b3f59f3cbcb2