Pelialusta-Python-ohjelmointikurssille / pupupeli

Pelialusta Python-ohjelmointikurssille
MIT License
1 stars 1 forks source link

Editor should clear selection after changing theme #246

Closed thefakejj closed 6 days ago

thefakejj commented 6 days ago

When loading a game page, editor code is set but it is cleared right after with getEditor().clearSelection();. This isnt called when theme is updated and editor code is updated (chapter 1 task 1 for instance)

Here is when a page is first loaded: ui.js function createGamePage() window.addEventListener('load', function () { setEditorCode() getEditor().clearSelection(); createTaskButtons(); });