Skip to content

Refactor and bug fixes

Compare
Choose a tag to compare
@RonenNess RonenNess released this 24 Feb 20:40
· 337 commits to master since this release

Refactored UserInterface and some entity behaviors which were flawed.
The changes in this version break the API and may require some code changes on migration.

  • Changed UserInterface to be a fully static class.
  • Made DrawUtils a non-static class, instantiated by UserInterface. This gives the ability to create an alternative DrawUtils and change the basic behavior.
  • Changed Paragraphs default size to 1f, so fonts won't be scaled and blurry by default.
  • Renamed the UserInterface 'SCALE' property into 'GlobalScale'.
  • Refactored cursors and their types, Added IBeam cursor, and added an option to use custom cursors via the UserInterface.
  • Added 'PromiscuousClicksMode' to entities to make them behave similar to windows. Most entities by default won't be in 'Promiscuous' mode.
  • Added 'OnEntitySpawn' event, to make an easy place to init all newly created entities.