Commit Graph

185 Commits

Author SHA1 Message Date
halx99 a3a5203fb5
Mark AXLOG, AXLOGINFO, AXLOGWARN, AXLOGERROR deprecated (#2017)
* Mark AXLOG, AXLOGINFO, AXLOGWARN, AXLOGERROR deprecated

* Fix winuwp build
2024-07-05 07:51:36 +08:00
RH 78c7e0022a
Fix call to incorrect java method (#2015) 2024-07-04 21:17:09 +08:00
Purple 6cb7618ed0
Linux WebView implementation (#1985)
* linux webview start

* Linux UIWebView phase1

* update setup for linux uiwebview

* add depends for arch

* removed unnecessary XReparent call

* Fixed some XWayland issues

* finalizing linux webview implementation

* enabled webview tests on linux

* updated copyright link

* removed some unnecessary comments

* some formatting

* some more formatting

* fixed a test typo

* removed some unnecessary codes

* removed some unnecessary comments
2024-06-13 22:49:59 +08:00
halx99 ad051f353f
Update TLD to axmol.dev in sources (#1977) 2024-06-10 02:25:43 +08:00
Purple 22ecef1c77
just addressing some compiler warnings on windows (#1954)
* fixed UIWebViewImpl-win32 warning C4244 while changing LPWSTR to string

* use direct `socket_native_type`

* directly use HMENU instead of int

* not sure why it wasn't auto converted but msvc spitted warnings

* we're moving it, it doesn't need to be constant, using ntcvt::from_chars

* ignore it to reduce one more warning

* add some missing `noexcept`

* reverted some const removal didn't realize it was used for rvalues
2024-06-03 23:16:54 +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 1baf5cde3b Fixup 2024-05-11 01:22:27 +08:00
halx99 f0c24eee34 Improve UITextFieldEx 2024-05-11 00:21:38 +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
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
RH b6792383a2
Fix accidental removal of break statement. (#1861) 2024-04-29 09:15:33 +08:00
RH d69f0c0d91
Adjust media control positioning if video aspect ratio is maintained (#1851) 2024-04-26 02:06:02 +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
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
Deal 74612ef296
Remove deprecated pixel formats L8, A8, LA8 (#1839)
* Remove deprecated pixel formats

* Fix ci

* Fixup [skip ci]

* Fixup [skip ci]

* Update tests [skip ci]
2024-04-20 22:29:16 +08:00
Deal 1cfe6fcb3f
Improve MediaPlayer: handle video rotation properly (#1823)
* Improve MediaPlayer: handle video rotation properly

* Fix nativeHandleVideoSample prototype

* Fixup

* Fixup
2024-04-18 04:06:53 +08:00
Tyelor D. Klein 4f343c44ab
Fixed issue where UIWidget couldn't be reselected (#1827)
If a UIWidget gets focus, and then loses focus (but another UIWidget doesn't gain focus when it does so). Then that original UIWidget cannot be re-focused until a different UIWidget gets focus first.
2024-04-17 09:34:12 +08:00
halx99 fe29f50aa7 Improve wasm EditBox 2024-03-19 23:45:51 +08:00
宾晓皎 6caa3f895a
fix EditBox error (#1755)
1.fix fontsize in inputbox on wasm
2.fix fontname , fontsize in EditBox
2024-03-17 12:11:08 +08:00
halx99 cb12cbc366 Initial implement wasm EditBox 2024-03-13 01:20:37 +08:00
Deal 5d2c42e73f
Implement new axmol log system based on fmtlib (#1732)
* Implement new log macros based on fmtlib

* Fix ci

* Fix ci

* Fix android ci

* Fix warnings

* Replace more ax::log by AXLOGX

* Fix ci

* Fix linux build

* Use stack memory for log prefix

* Fix linux build

* Fix warning

* Add ILogOutput support

* Replace old log calls with new log macros

* Fixup

* Fixup

* Fixup

* Update ci msvc to 14.39

* Update Console.h [skip ci]

* Pass log level to ILogOutput
2024-03-07 08:47:00 +08:00
Deal 31da0f2917
Improve dll support (#1706)
* Improve dll support

* Tidy header include path

* Fix android build & symbol dup issue

* Fix android compile error

* Fixup
2024-02-20 05:37:12 +08:00
RH 978d15db78
RichText and ScrollView enhancements (#1696)
* Add id tag to several RichText elements to allow locating the nodes in RichText
Add font related styling to paragraph tags

* Move functionality out of ListView and into ScrollView to allow scrolling to a specific child node within a ScrollView

* Add function to allow finding protected child node by name

* Example of anchor tags to local RichText content in a ScrollView

* Fix string storage type
2024-02-18 20:09:54 +08:00
RH 8c23d32235
RichText enhancements (#1683)
* Add paragraph tag support
Add HTML header tags support
Add multi-new line rich text element
Add support for end of tag action
General code clean up

* Remove redundant additions

* Fix compilation issue on platforms other than Windows

* Remove redundant constructors and destructors.
Initialize member variables.
Remove explicit inline specifier since all member class functions are implicitly inlined.
2024-02-15 08:33:38 +08:00
j-jorge 583dcdc111
Use different global names and #undef the #defines to stay unity build friendly. (#1653) 2024-02-06 07:39:54 +08:00
BinTester 3cf419a35c
add some utils functions and lua support (#1629)
* UIButton bugfix

* add utils lua support

* add utils lua support
2024-01-24 21:42:39 +08:00
aismann 54daf354cd
Fix issue #1546 of UILayout (#1549) 2023-12-27 19:20:27 +08:00
halx99 affcf05b69 Prepare 2.1.0 release
* Update copyright notice
* Remove prebuilt libs from SCM
* Remove optional thirdparty sources/repo from SCM
* Remove tests resources  folder 'Content' from SCM
2023-12-08 01:04:43 +08:00
Paulo Coutinho 0aab228acc Rename glview to correct representative name (#1467) 2023-12-01 09:04:51 +08:00
RH 5374e6ecc0 Add support for Richtext vertical alignment (#1466)
* Add vertical alignment support for RichText

* Simplify RichTextTest implementation by reducing code duplication.
Add vertical alignment button to all RichText tests.

* Remove duplicate include

* [RichText] Vertical alignment support when ignoring size
2023-12-01 00:05:11 +08:00
Deal b062eb3dc2 Improve linux deps (#1441) 2023-11-19 09:38:12 +08:00
RH 213434462a Use weak and strong references to determine if 'this' pointer is valid. (#1427)
Check _textBox to ensure it is not null before usage.
2023-11-09 08:43:24 +08:00
halx99 13b4a5bc93 Make macro same with cmake in c++
- AX_ENABLE_EXT_SPINE
- AX_ENABLE_EXT_DRAGONBONES
- AX_ENABLE_MSEDGE_WEBVIEW2
2023-10-11 00:32:04 +08:00
halx99 4065b90039 Preferred use byte_buffer as APIs 2023-09-29 01:57:41 +08:00
Deal b892461a2b UWP: Migrating from C++/CX to C++/WinRT (#1355) 2023-09-26 00:11:33 +08:00
RH 6d6f3b1ae1 Fix issue where RichText URL touch listener does not activate on touch (#1330)
* Fix issue where URL touch listener would not receive touch inputs when certain conditions are met.

* Unused parameter [skip ci]

* Remove incorrect call to release() since RefPtr handles it automatically.
2023-09-14 16:43:22 +08:00
halx99 c66ac9dedc Merge: 41714a04fd 2631c8405b
Merge branch '1.x' into dev
2023-09-02 19:56:50 +08:00
halx99 b21fcb0272 Fix gendocs.ps1 2023-09-02 19:56:33 +08:00
halx99 8f8418c15d Merge: c8bfa8cdf1 062b510c38
Merge 1.x WASM support into 'dev'
2023-09-02 19:47:18 +08:00
nowasm 03f007fdbe Add webgl aka wasm build support (#1315) 2023-09-01 16:31:14 +08:00
halx99 4c0c328b80 Merge: 6d82d3a76c 5e3cba78a6
Merge branch '1.x' into dev
2023-09-01 16:29:02 +08:00
halx99 396313de47 consle-next: Looking both powershell 7.x and 5.x 2023-09-01 16:28:34 +08:00
iAndyHD3 ed39cf3996 Update AXBuildHelpers.cmake (#1316)
fix find_program call
2023-09-01 16:09:58 +08:00
halx99 b1ddb2fcce Sync #1316 2023-09-01 16:09:27 +08:00
halx99 a000ccbab5 Update site build 2023-09-01 14:49:03 +08:00
halx99 ada7deb002 Sync docs [skip ci] 2023-09-01 14:48:42 +08:00
halx99 310c5868ec Merge: 8f8814532d bdbbc55909
Merge branch '1.x' into dev
2023-09-01 13:36:38 +08:00
halx99 e5d984a4f8 Auto deploy wasm demo to gh pages 2023-09-01 13:36:23 +08:00
halx99 5fe4e6d61f Merge: 89955d901a 279ea746cc
Merge branch '1.x' into dev
2023-09-01 10:37:57 +08:00
halx99 e565645443 Auto get release list for doc build 2023-09-01 10:31:34 +08:00