* Retain _debugDrawNode in Label
This fixes a memory corruption bug and resulting crash in the TextFieldTTF (and likely other TextField classes) where the _debugDrawNode wasn't being retained, and the label isn't added to the scene for a TextField, but is maintained by the TextField. This caused _debugDrawNode in the Label class to get cleaned up, even though Label still thought it had a valid reference to a DrawNode.
* Added missing Axmol copyright
* Changed Label to use visit for _debugDrawNode
* Ensure that the content scale factor is used to correctly set up a scale 9 sprite
* Insets defined in FairyGUI editor should be scaled too, which simplifies the fix.
* Update copyright for Axmol related modifications
* Enable running `unit-tests` in GitHub workflow
* Attempt to fix macOS unit-tests run
* Use axmol run to run unit-tests
* Skip launch when desktop cpu mismatch
* Skip launch when desktop cpu mismatch
* Fix unit-tests crash on linux
* GitHub Action: divide osx arm64, x64 to differrent runner image
---------
Co-authored-by: Deal <halx99@live.com>
* Add unit-tests app for running automatic unit tests
* Move unit tests from cpp-tests to unit-tests
* TEMP
* Add FileUtils::fullPathForDirectory() tests
* Use test assets from `axmol-sample-assets` repo
* Add more FileUtils::isFileExist(), FileUtils::isDirectoryExist() tests
* Add `unit-tests` builds to GitHub's workflows
* Fix `.github/worflows/build.yml`
* Fix FileUtils::getFileSize() not returning -1 when file is not found
* Fix FileUtils::fullPathForDirectory() not appending a trailing slash
* Fix `not` and `and` keyword usage
* Fix FileUtils::getDefaultResourceRootPath() returning nothing on macOS
* Fix FileUtils::isFileExist() returning true for directories on macOS
* Create media controls in onEnter to work around issue with Metal renderer when creating a RenderTexture
* Add support for setting timeline bar height in media player controller
* Use consistent positions for fullscreen enter and exit controls
* Update core/ui/UIMediaPlayer.cpp
* Create media controls on the next update cycle to work around RenderTexture creation issue with Metal renderer backend
* Add event notification for when video player full screen state changes
* Add full screen switching event to normal media player event handler