openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

trying to display `UI` elements outside of render loop crashes game #447

Open ezio416 opened 5 months ago

ezio416 commented 5 months ago

I was mistakenly calling UI::Text (also happens for UI::Checkbox, surely other elements as well) within Main(). This crashes the game, when instead there should be a warning or compilation error telling the user not to call these outside of Render, RenderInterface, etc.