Commit Graph

3858 Commits

Author SHA1 Message Date
axmol-bot beb873ea2a
Committing luabindings for commit 49bd2bc (#1900) 2024-05-16 21:49:22 +08:00
RH 49bd2bc7de
Add support for ensuring sprite content size does not change on new texture (#1897)
* Add support for ensuring sprite content size does not change on new texture

* Use better method name for enabling sprite dynamic sizing
2024-05-16 19:33:09 +08:00
Tyelor D. Klein 99866d9462
Retain _debugDrawNode in Label (#1890)
* 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
2024-05-16 19:32:53 +08:00
halx99 1baf5cde3b Fixup 2024-05-11 01:22:27 +08:00
halx99 a50eb06322 Update astcenc: 4.7.0 ==> 4.8.0, libwebp: 1.3.2 ==> 1.4.0 2024-05-11 00:37:56 +08:00
halx99 893ccab0bb Update simdjson to 3.9.2 2024-05-11 00:27:08 +08:00
halx99 f0c24eee34 Improve UITextFieldEx 2024-05-11 00:21:38 +08:00
aismann 90586f8a76
Bring the latest extension::DrawNodeEx to axmol (#1883)
* latest version 0.91

* renamed all ensureCapacityGL* to ensureCapacity*

* replace  v2ToTex2F ->Tex2F
2024-05-07 23:07:04 +08:00
RH 5ee1c8e74f
[FairyGUI] Use content scale factor to correctly set up a scale 9 sprite (#1884)
* 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
2024-05-06 20:39:26 +08:00
halx99 1d8233d3ad Add AXLOGD,AXLOGI,... functions for lua 2024-05-06 09:10:26 +08:00
halx99 10d3e81329 Update emsdk to 3.1.59 2024-05-05 23:25:52 +08:00
axmol-bot ded98f57dd
Committing luabindings for commit 33c328e (#1879)
Co-authored-by: halx99 <6977319+halx99@users.noreply.github.com>
2024-05-05 00:56:36 +08:00
halx99 3ba2ef2d61 Remove unused fileds from ax::Objec 2024-05-05 00:42:16 +08:00
halx99 33c328e910 Update luabinding: ax::Ref ==> ax::Object 2024-05-05 00:34:51 +08:00
halx99 0580a4415a Fix templates 2024-05-05 00:22:53 +08:00
Deal 004065a054
Rename ax::Ref ==> ax::Object (#1877)
* Rename ax::Ref ==> ax::Object

* Update Object.h [skip ci]
2024-05-03 22:15:08 +08:00
halx99 b122a1b96a Fix linking prebuilt error
- Add missing preprocessors
- Use plain name for zlib & png to avoid linking prebuilt axmol error
2024-05-02 20:59:29 +08:00
halx99 13a7258150 Remove unused files[skip ci] 2024-05-02 15:56:04 +08:00
halx99 87e4174122 Update ChangeLog 2024-05-02 15:49:26 +08:00
halx99 e3e3460aca Update ImGui to v1.90.5 2024-05-02 15:37:12 +08:00
RH 8b4ac1d262
Setup vertex data before adding new RenderCommand to ensure data is copied across to backend buffers correctly. (#1875) 2024-05-02 10:33:04 +08:00
smilediver 561b8c2349
Enable running `unit-tests` in GitHub workflow (#1871)
* 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>
2024-05-01 22:24:53 +08:00
RH d6781284a5
Media controller content size should be based on video size not media player size. (#1873) 2024-05-01 12:49:08 +08:00
halx99 3e3628f1b3 Improve axmol run, add opiton: -wait to support run console app 2024-05-01 10:47:38 +08:00
halx99 d69fdfd038 Fix unit-tests working directory on vs debugger 2024-05-01 02:16:53 +08:00
halx99 d50b7aad0b Improve AXGLSLCC for winrt 2024-05-01 01:16:51 +08:00
smilediver dadd5fe983
Fix `unit-tests` build on macOS and Linux (#1870) 2024-04-30 23:26:42 +08:00
Deal d4a2aa93cc
Fix axmol.ps1 2024-04-30 21:07:10 +08:00
smilediver 9ac6db4384
Add unit tests (#1862)
* 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`
2024-04-30 20:52:28 +08:00
smilediver d845e54b49
Fix FileUtils on macOS (#1863)
* 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
2024-04-30 20:03:58 +08:00
RH edb4d47bc2
Update documentation to reflect latest changes (#1867) 2024-04-30 20:03:30 +08:00
halx99 4c59349ac7 Improve cmake scripts 2024-04-30 00:43:54 +08:00
RH b6792383a2
Fix accidental removal of break statement. (#1861) 2024-04-29 09:15:33 +08:00
smilediver 354f3abed9
Add ability to create console apps (#1859)
* Print cmake build command when running `axmol build`

* Add option to `ax_setup_app_config()` for building console applications

* Fix console app entrypoint

---------

Co-authored-by: halx99 <halx99@live.com>
2024-04-29 00:24:06 +08:00
halx99 37bb594ad6 Improve ChangLog break changes section 2024-04-27 23:43:32 +08:00
halx99 da2947e0f6 Update ChangeLog 2024-04-27 23:40:52 +08:00
halx99 35313f1cdc Check does Xcode installed 2024-04-27 23:32:27 +08:00
halx99 1e2ad6318c Fix #1857 2024-04-27 23:31:44 +08:00
Deal 1ba83b617e
Remove outdated section from DevSetup.md 2024-04-27 22:19:56 +08:00
Deal 32250c8355
Fix #1838
Change parameter 'sharedRT' of RenderTexture::create to false
2024-04-27 10:27:44 +08:00
RH f20be6ab95
Ensure the window size is correct (#1855) 2024-04-27 03:09:52 +08:00
RH d69f0c0d91
Adjust media control positioning if video aspect ratio is maintained (#1851) 2024-04-26 02:06:02 +08:00
kingy71 7bbcb86ec4
Remove Info.plist from mac Resources (#1849)
Set elsewhere and fails upload to MacAppStore with shared bundle path
2024-04-26 02:04:59 +08:00
RH 1fd770c5bf
[Apple] Fix media controls not appearing (#1848)
* 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
2024-04-25 23:20:41 +08:00
Deal aed58e6c28
Cleanup cc stubs (#1847)
* Cleanup cc stubs

1. Rename ax::ccMessageBox to ax::messageBox
2. Remove unused API: ax::LuaLog
3. Move ax::ccNextPOT to ax::utils::nextPOT

* Improve code style [skip ci]
2024-04-25 00:51:00 +08:00
halx99 96fd4e5522 Add libvlc prebuilt entry CMakeLists.txt[skip ci] 2024-04-25 00:01:58 +08:00
halx99 3b2cdace06 Update ChangeLog 2024-04-24 23:01:18 +08:00
RH 3916a2367b
Cross-platform media controller for video playback (#1845)
* Initial work on media controller

* Media player controller for WMF media engine

* Add getDuration and getCurrentTime methods to media engines

* Fix compilation

* Fix Android media timeline issues

* Fix compilation issue

* Fix WinRT compilation issue

* Fix compilation issue

* Add missing header include

* Make it simpler to create a custom media controller

* Ensure the basic media controller widget size is the same size as the media player on initialization

* Add dark media control underlay to give more contrast to the controls
ADd copyright notices

* Removing existing media controller from parent if required

* Adjust for view scaling since embedded resources are created for a scale of 1.

* Scale central media controls if required on content size change

* Remove pointless fast forward and fast reverse buttons
Ensure media controller correctly resizes on full-screen media playback

* Allow enable vlc on windows

* Improve media macro detect

* Add media controls drawn by DrawNode into single texture
Add fullscreen enter and exit controls
setUserInputEnabled and isUserInputEnabled replaced by setMediaControllerEnabled and isMediaControllerEnabled

* Update function calls to new names

* Revert back to setUserInputEnabled and isUserInputEnabled

* Remove embedded circle image and create it with DrawNode

* Change radius of drawn circle to half the total image size

---------

Co-authored-by: halx99 <halx99@live.com>
2024-04-24 22:28:59 +08:00
halx99 9d3eeded39 Update axmol version in cmake [skip ci] 2024-04-24 02:44:25 +08:00
Deal 9c63cb4b9e
Update .appveyor.yml 2024-04-24 02:43:24 +08:00