Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
启用MSAA,虽然没太大用处
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloento committed Jan 9, 2021
1 parent e049e96 commit e104418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void initialize(URL location, ResourceBundle resources) {

StackPane header = new StackPane();
AtomicReference<String> headerColor = new AtomicReference<>(getDefaultColor((int) ((Math.random() * 12) % 22)));
header.setStyle("-fx-background-radius: 0 5 0 0;-fx-min-height: 138; -fx-background-color: " + headerColor);
header.setStyle("-fx-background-radius: 0 5 0 0; -fx-min-height: 138; -fx-background-color: " + headerColor);

Label project = new Label("Waiting Loading...");
project.setStyle("-fx-text-fill: #f1f1f2;");
Expand Down Expand Up @@ -218,7 +218,7 @@ public void initialize(URL location, ResourceBundle resources) {
spine.setIsPlay(true);
playButton.setGraphic(pauseIcon);
headerColor.set(getDefaultColor((int) ((Math.random() * 12) % 22)));
header.setStyle("-fx-background-radius: 0 5 0 0; -fx-background-color: " + headerColor);
header.setStyle("-fx-background-radius: 0 5 0 0; -fx-min-height: 138; -fx-background-color: " + headerColor);
playButton.setStyle("-fx-background-radius: 40;-fx-background-color: " + getDefaultColor((int) ((Math.random() * 20) % 22)));
playButton.setRipplerFill(Color.valueOf(headerColor.get()));
}
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/QYun/SuperSpineViewer/RuntimesLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
public class RuntimesLoader extends Controller {

public static final SimpleIntegerProperty spineVersion = new SimpleIntegerProperty(0);
final LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
private final LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
private final String[] extraSuffixes = {"", ".txt", ".bytes"};
private final String[] dataSuffixes = {"", ".json", ".skel"};
private final String[] atlasSuffixes = {".atlas", "-pro.atlas", "-ess.atlas", "-pma.atlas"};
SuperSpine spine = new SuperSpine();
private final SuperSpine spine = new SuperSpine();

private boolean binaryVersion(File skelFile) {
try {
Expand Down Expand Up @@ -93,6 +93,7 @@ else if (json.contains("2.1."))
}

private boolean initLibDGX() {
config.samples = 16;
try {
switch (spineVersion.get()) {
case 40 -> new LwjglFXApplication(new Spine40(), spineRender, config);
Expand Down

0 comments on commit e104418

Please sign in to comment.