This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The most significant changes involve the refactoring of thread creati…
…on in `Loader.java` and `RecordFX.java`, the addition of a new dependency in the `pom.xml` file, and the replacement of the `toPixmap()` method with `flipY()` in `RecordFX.java`. 1. The `pom.xml` file has been updated to include a new dependency for `javafx-swing` version `21.0.2`. This change suggests that the project is transitioning to use JavaFX for its GUI components. 2. In `Loader.java` and `RecordFX.java`, the creation of new threads has been refactored. Instead of directly creating and starting a new thread, a `Thread` object named `load` is created, set as a daemon thread, and then started. This change improves the manageability of threads in the application. 3. The `RecordFX.java` file has seen several changes. Import statements for `com.badlogic.gdx.Gdx`, `com.badlogic.gdx.graphics.Pixmap`, and `com.badlogic.gdx.graphics.PixmapIO` have been removed, while import statements for `javafx.embed.swing.SwingFXUtils`, `javafx.scene.image.PixelWriter`, `javafx.scene.image.WritableImage`, `javafx.scene.paint.Color`, and `javax.imageio.ImageIO` have been added. This indicates a shift from using the libGDX library to the JavaFX library for image processing. 4. The `toPixmap()` method in `RecordFX.java` has been replaced with `flipY()`, which creates a `WritableImage` instead of a `Pixmap`. The `writePNG()` method has also been updated to work with `WritableImage` instead of `Pixmap`, and now uses `ImageIO.write()` instead of `PixmapIO.writePNG()`. These changes further confirm the transition from libGDX to JavaFX for image processing. 5. In `SpineController.java`, the `fitWidthProperty()` and `fitHeightProperty()` listeners and bindings have been updated to add `350` and `50` respectively, instead of `368` and `103`. This change suggests a modification in the dimensions of some GUI components. 6. The `Main.recording` boolean is now set to `true` on the JavaFX Application Thread using `Platform.runLater()`. This ensures that the recording status is updated in a thread-safe manner. 7. In `ExporterController.java`, the `Start()` method of `RecordFX` is now called on a new virtual thread. This change improves the responsiveness of the application by offloading potentially time-consuming operations to a separate thread.
- Loading branch information
Showing
7 changed files
with
57 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,18 @@ A tool to load and export Spine animations | |
**Java 21** required | ||
Pixel Buffers support required | ||
Exporting MOV requires FFmpeg | ||
Current version: 2.0.5 | ||
Current version: 2.1.0 | ||
|
||
![霜叶](https://i0.hdslb.com/bfs/album/[email protected] "明日方舟 - 霜叶") | ||
|
||
## Get SuperSpineViewer | ||
|
||
[**Released Stable Version**](https://github.com/Aloento/SuperSpineViewer/releases/latest) | ||
|
||
```bash | ||
java -XX:MaxRAMPercentage=75.0 --enable-preview -jar SuperSpineViewer.jar | ||
``` | ||
|
||
### Performance Settings Reference | ||
|
||
* High Resolution (Camera) = High Memory Requirements | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,18 @@ | |
需要 **Java 21 21 21** | ||
需要 像素缓冲区支持 | ||
导出 MOV 需要 FFmpeg | ||
当前版本:2.0.5 | ||
当前版本:2.1.0 | ||
|
||
![霜叶](https://i0.hdslb.com/bfs/album/[email protected] "明日方舟 - 霜叶") | ||
|
||
## 获得SuperSpineViewer | ||
|
||
[**发布的稳定版本**](https://github.com/Aloento/SuperSpineViewer/releases/latest) | ||
|
||
```bash | ||
java -XX:MaxRAMPercentage=75.0 --enable-preview -jar SuperSpineViewer.jar | ||
``` | ||
|
||
### 性能设置参考 | ||
|
||
* 高分辨率 (Camera) = 高内存需求 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters