MalisisCore

48M Downloads

UIContainer#draw(Background|Foreground) don't reset GuiRenderer#currentComponent back to this

Barteks2x opened this issue ยท 0 comments

commented

When trying to draw something in UIContainer, it will be drawn at the position of the last drawn component if this line isn't included at the beginning:
renderer.currentComponent = this;

(My use case is rendering a user-draggable separator between 2 components in that container)