Commit Graph

4096 Commits

Author SHA1 Message Date
Purple eb0e6ef50d
Added glyph ranges manager for ImGuiPresenter, added ability to use glyph ranges for Inspector's font (#1936)
* Added glyph manager for ImGuiPresenter

* renamed glyph ranges constants

* for static code conduct

* for code of conduct 2

* removed some duplication and better format

* removed extra space
2024-05-29 23:56:03 +08:00
RH ccf31892a0
Update documentation for axmol build commands when targetting the iOS simulator (#1938) 2024-05-29 22:25:42 +08:00
RH b54775d11f
[Android] Calculate safe area inset values for devices with rounded corners (#1934)
* [Android] Add support for factoring in device rounded corner inset values for Android API 31 or higher

* Check for null pointer return values from Java.
2024-05-28 20:06:15 +08:00
Purple d826793cd0
Add ability to change Inspector's font size (#1932) 2024-05-27 08:55:35 +08:00
halx99 905fce52d0
Release 2.1.3 (#1925)
* Update CHANGELOG.md

* Update publish.ps1

* Enable lua bit module for all lua versions supported by axmol

* Fixup

* Enable build lua-tests on gh ci

* Update ChangeLog

* Update CHANGELOG.md

* updUpdate 1kdist to v86
2024-05-26 12:53:08 +08:00
RH 741472398f
Do image processing to reverse premultiplied alpha in separate thread (#1929)
* Add missing parameter names

* Move processing intensive operation to a separate thread

* FileUtils instance may not be thread safe
2024-05-26 09:26:06 +08:00
Paulo Coutinho 49ba0ddd67
Fix descriptor typo (#1928) 2024-05-25 14:39:18 +08:00
Paulo Coutinho e49a28fba7
Fix sol problem in emplace method (#1927) 2024-05-25 13:29:46 +08:00
smilediver 7ca10e7f0c
Fix passing non null terminated strings for null terminated params (#1924)
* Fix passing non null terminated strings for null terminated params

* Change stringWithUTF8String with initWithBytes
2024-05-25 08:07:31 +08:00
halx99 6b25f513e1 Update ChangeLog 2024-05-24 04:25:02 +08:00
halx99 3abf136a62 Fix emsdk 3.1.60 compile errors 2024-05-24 04:17:04 +08:00
halx99 76ce90c0b8 Update readme badges 2024-05-24 01:38:28 +08:00
halx99 a4e1c4cb1f Update emsdk to 3.1.60 2024-05-24 01:28:55 +08:00
halx99 54cec14c10 Fix wasm ci 2024-05-24 01:26:58 +08:00
halx99 2d8bc32454 Improve 1k code style 2024-05-24 01:18:30 +08:00
smilediver 02bb17d867
Set AX_USE_METAL and AX_USE_GL to 1 if defined (#1916) 2024-05-23 01:27:26 +08:00
RH db1b022128
Fix crash due to invalid pointer (#1920) 2024-05-23 01:25:59 +08:00
RH 6e321ae265
Update the CMake minimum version requirement to 3.23.0+ (#1918) 2024-05-23 01:23:56 +08:00
RH 93042d2ad9
[Android] Add x86_64 to example list of possible target architectures (#1919) 2024-05-23 01:22:18 +08:00
halx99 2f5bc186a5 Update ChangeLog 2024-05-22 21:42:04 +08:00
aismann e1b3023010
Remove box2d-optimized (#1913)
Removed Box2D-optimized

it's is now obsolete; Erin Catto has developed Box2D v3 with many performance improvements, so please use that instead
2024-05-22 20:32:05 +08:00
aismann 5b8a07413b
DrawNodeEx/DrawNodeExTest update (#1914)
* Fix issue #1546 of UILayout(#1549) and small performance boost

* add test

* Update DrawPrimitivesTest.cpp (Smaller tester code)

* Update DrawNodeEx.h

AX_EX_DLL

* Update AXLinkHelpers.cmake

* Update Console.cpp (removed the '\n' which creates an second (empty) line)

* segment stuff

* .

* add some more tests

* Issue  1888

* .

* add all DrawNode cocos2dx

* .

* .

* .

* add feature for drawing in correct order

* .

* Update DrawNodeEx.cpp

* .

* Update DrawNodeEx.cpp

* DRAWNODE_TRIANGLE_ONLY

* DRAWNODE_DRAW_LINE_POINT

* .

* Update DrawNodeExTest.cpp

* Update DrawNodeExTest.cpp

* .

* .

* Add round brackets

* commendet this both lines (check it in next version)

* .
2024-05-22 18:48:36 +08:00
halx99 1a15620f4e Fix #1906
The tools/ci/genbindings.ps1 now support windows,linux,mac
2024-05-22 08:50:32 +08:00
smilediver ddeb14c160
Fix shaders not copying to final build on macOS for non Xcode builds (2) (#1908)
* Fix shaders not copying to final build on macOS for non Xcode builds

* Fix macOS build after adding minimum CMake 3.20 requirement

* Refactor "Fix macOS build after adding minimum CMake 3.20 requirement"
2024-05-22 01:51:09 +08:00
halx99 cb142c6c4e Fix #1911 [skip ci] 2024-05-22 01:23:28 +08:00
RH 2f8579f189
Allow media controls to be rotated left or right by 90 degrees (#1910) 2024-05-21 23:41:02 +08:00
halx99 fcc282d116 Improve ci [skip ci] 2024-05-21 23:40:01 +08:00
Turky Mohammed ef3f14c2d7
[BUG] Fix system font blurring (#1907)
* Update Label.cpp

* Update core/2d/Label.cpp

---------

Co-authored-by: halx99 <halx99@live.com>
2024-05-21 21:49:06 +08:00
halx99 1e40692a6d Fix typo [skip ci] 2024-05-20 23:52:19 +08:00
halx99 d9563d1741 Fix docs menu_versions 2024-05-20 23:46:48 +08:00
halx99 c07139544b Update imgui to 1.90.6 2024-05-19 01:42:48 +08:00
halx99 b550d569a9 Update prebuilt tool `glslcc` to 1.9.5
- macos-arm64 support and built for macos-10.15+
2024-05-19 01:15:02 +08:00
halx99 53e2fbad14 Rename 1k/build.ps1 ==> 1k/1kiss.ps1 2024-05-18 23:30:26 +08:00
halx99 52288a2f14 Fix build-site.ps1 [skip ci] 2024-05-18 17:33:40 +08:00
halx99 5b70bf82c9 Update build site [skip ci]
Due to appveyor limit 1 hours build time and always failed with timeout, so we migrate ci:wasm to github action
2024-05-18 17:25:31 +08:00
halx99 c9b4d3caff
Try enable wasm on github action (#1903)
* Update build.yml

* Upload artifacts for wasm ci

* Fixup

* Improve tools/cmdline/build.ps1

- Improve unhandled args forward
- Fix parse unexpected arg with differrent args order

* Fixup
2024-05-18 14:22:46 +08:00
halx99 9bb13ac8a6 Prepare release 2.1.3 2024-05-17 23:56:54 +08:00
halx99 fda69b3391 Add build optimize flag: O0: Debug, O1: MinSizeRel, O2: RelWithDebInfo, O3: Release 2024-05-17 00:15:59 +08:00
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