ambrosiogabe / MathAnimation

A simple C++/OpenGL application to create quick and dirty mathematically accurate animations
982 stars 49 forks source link

Feat: Add basic script editor #122

Closed ambrosiogabe closed 1 year ago

ambrosiogabe commented 1 year ago

Fixes #107 .

See the ticket above for more details, but this adds a basic built-in text editor for scripts. It automatically opens the script in the engine when you click on an error, and it supports all the basic text editing things you would expect (copy/paste, select, text cursor movement with hotkeys and arrows, etc). It also supports UTF8. You can only have 256 unique characters in a file right now, but I can make this scalable at some point in the future if it ever becomes a problem.