mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Updated Skeleton Viewer.
This commit is contained in:
parent
e5d3d380c7
commit
22729a5628
@ -1,4 +1,5 @@
|
|||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
|
||||||
org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
|
org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
|
||||||
org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
|
org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
|
||||||
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
|
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
|
||||||
@ -47,6 +48,7 @@ org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warni
|
|||||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
|
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
|
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
|
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
|
||||||
|
org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
|
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
|
||||||
org.eclipse.jdt.core.compiler.problem.nullReference=warning
|
org.eclipse.jdt.core.compiler.problem.nullReference=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
|
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
|
||||||
@ -55,7 +57,7 @@ org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
|
|||||||
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
|
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
|
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
|
org.eclipse.jdt.core.compiler.problem.potentialNullReference=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=warning
|
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
|
org.eclipse.jdt.core.compiler.problem.rawTypeReference=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
|
org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
|
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning
|
||||||
@ -67,6 +69,7 @@ org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
|
|||||||
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
|
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
|
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
|
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
|
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
|
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
|
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
|
||||||
@ -90,6 +93,7 @@ org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=
|
|||||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
|
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
|
||||||
|
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
|
||||||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
|
||||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
||||||
org.eclipse.jdt.core.compiler.source=1.6
|
org.eclipse.jdt.core.compiler.source=1.6
|
||||||
|
|||||||
@ -1,71 +1,9 @@
|
|||||||
|
|
||||||
skin.png
|
skin.png
|
||||||
|
size: 256,128
|
||||||
format: RGBA8888
|
format: RGBA8888
|
||||||
filter: Nearest,Nearest
|
filter: Linear,Linear
|
||||||
repeat: none
|
repeat: none
|
||||||
default
|
|
||||||
rotate: false
|
|
||||||
xy: 1, 50
|
|
||||||
size: 254, 77
|
|
||||||
orig: 254, 77
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
default-window
|
|
||||||
rotate: false
|
|
||||||
xy: 1, 20
|
|
||||||
size: 27, 29
|
|
||||||
split: 4, 3, 20, 3
|
|
||||||
orig: 27, 29
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
default-select
|
|
||||||
rotate: false
|
|
||||||
xy: 29, 29
|
|
||||||
size: 27, 20
|
|
||||||
split: 4, 14, 4, 4
|
|
||||||
orig: 27, 20
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
default-round-large
|
|
||||||
rotate: false
|
|
||||||
xy: 57, 29
|
|
||||||
size: 20, 20
|
|
||||||
split: 5, 5, 5, 4
|
|
||||||
orig: 20, 20
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
default-scroll
|
|
||||||
rotate: false
|
|
||||||
xy: 78, 29
|
|
||||||
size: 20, 20
|
|
||||||
split: 2, 2, 2, 2
|
|
||||||
orig: 20, 20
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
default-slider-knob
|
|
||||||
rotate: false
|
|
||||||
xy: 1, 1
|
|
||||||
size: 9, 18
|
|
||||||
orig: 9, 18
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
default-round-down
|
|
||||||
rotate: false
|
|
||||||
xy: 99, 29
|
|
||||||
size: 12, 20
|
|
||||||
split: 5, 5, 5, 4
|
|
||||||
orig: 12, 20
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
default-round
|
|
||||||
rotate: false
|
|
||||||
xy: 112, 29
|
|
||||||
size: 12, 20
|
|
||||||
split: 5, 5, 5, 4
|
|
||||||
pad: 4, 4, 1, 1
|
|
||||||
orig: 12, 20
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
check-off
|
check-off
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 11, 5
|
xy: 11, 5
|
||||||
@ -88,27 +26,20 @@ check-on
|
|||||||
orig: 14, 14
|
orig: 14, 14
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
tree-minus
|
cursor
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 140, 35
|
xy: 23, 1
|
||||||
size: 14, 14
|
size: 3, 3
|
||||||
orig: 14, 14
|
split: 1, 1, 1, 1
|
||||||
|
orig: 3, 3
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
tree-plus
|
default
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 155, 35
|
xy: 1, 50
|
||||||
size: 14, 14
|
size: 253, 77
|
||||||
orig: 14, 14
|
orig: 254, 77
|
||||||
offset: 0, 0
|
offset: 1, 0
|
||||||
index: -1
|
|
||||||
default-slider
|
|
||||||
rotate: false
|
|
||||||
xy: 29, 20
|
|
||||||
size: 8, 8
|
|
||||||
split: 2, 2, 2, 2
|
|
||||||
orig: 8, 8
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
index: -1
|
||||||
default-pane
|
default-pane
|
||||||
rotate: false
|
rotate: false
|
||||||
@ -126,36 +57,12 @@ default-rect-pad
|
|||||||
orig: 5, 3
|
orig: 5, 3
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
default-splitpane
|
default-pane-noborder
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 17, 1
|
xy: 129, 33
|
||||||
size: 5, 3
|
size: 1, 1
|
||||||
split: 0, 5, 0, 0
|
split: 0, 0, 0, 0
|
||||||
orig: 5, 3
|
orig: 1, 1
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
cursor
|
|
||||||
rotate: false
|
|
||||||
xy: 23, 1
|
|
||||||
size: 3, 3
|
|
||||||
split: 1, 1, 1, 1
|
|
||||||
orig: 3, 3
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
default-splitpane-vertical
|
|
||||||
rotate: false
|
|
||||||
xy: 125, 29
|
|
||||||
size: 3, 5
|
|
||||||
split: 0, 0, 0, 5
|
|
||||||
orig: 3, 5
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
default-rect-down
|
|
||||||
rotate: false
|
|
||||||
xy: 170, 46
|
|
||||||
size: 3, 3
|
|
||||||
split: 1, 1, 1, 1
|
|
||||||
orig: 3, 3
|
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
default-rect
|
default-rect
|
||||||
@ -166,6 +73,56 @@ default-rect
|
|||||||
orig: 3, 3
|
orig: 3, 3
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
|
default-rect-down
|
||||||
|
rotate: false
|
||||||
|
xy: 170, 46
|
||||||
|
size: 3, 3
|
||||||
|
split: 1, 1, 1, 1
|
||||||
|
orig: 3, 3
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
default-round
|
||||||
|
rotate: false
|
||||||
|
xy: 112, 29
|
||||||
|
size: 12, 20
|
||||||
|
split: 5, 5, 5, 4
|
||||||
|
pad: 4, 4, 1, 1
|
||||||
|
orig: 12, 20
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
default-round-down
|
||||||
|
rotate: false
|
||||||
|
xy: 99, 29
|
||||||
|
size: 12, 20
|
||||||
|
split: 5, 5, 5, 4
|
||||||
|
pad: 4, 4, 1, 1
|
||||||
|
orig: 12, 20
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
default-round-large
|
||||||
|
rotate: false
|
||||||
|
xy: 57, 29
|
||||||
|
size: 20, 20
|
||||||
|
split: 5, 5, 5, 4
|
||||||
|
orig: 20, 20
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
default-scroll
|
||||||
|
rotate: false
|
||||||
|
xy: 78, 29
|
||||||
|
size: 20, 20
|
||||||
|
split: 2, 2, 2, 2
|
||||||
|
orig: 20, 20
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
default-select
|
||||||
|
rotate: false
|
||||||
|
xy: 29, 29
|
||||||
|
size: 27, 20
|
||||||
|
split: 4, 14, 4, 4
|
||||||
|
orig: 27, 20
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
default-select-selection
|
default-select-selection
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 26, 16
|
xy: 26, 16
|
||||||
@ -174,12 +131,43 @@ default-select-selection
|
|||||||
orig: 3, 3
|
orig: 3, 3
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
default-pane-noborder
|
default-slider
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 129, 33
|
xy: 29, 20
|
||||||
size: 1, 1
|
size: 8, 8
|
||||||
split: 0, 0, 0, 0
|
split: 2, 2, 2, 2
|
||||||
orig: 1, 1
|
orig: 8, 8
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
default-slider-knob
|
||||||
|
rotate: false
|
||||||
|
xy: 1, 1
|
||||||
|
size: 9, 18
|
||||||
|
orig: 9, 18
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
default-splitpane
|
||||||
|
rotate: false
|
||||||
|
xy: 17, 1
|
||||||
|
size: 5, 3
|
||||||
|
split: 0, 5, 0, 0
|
||||||
|
orig: 5, 3
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
default-splitpane-vertical
|
||||||
|
rotate: false
|
||||||
|
xy: 125, 29
|
||||||
|
size: 3, 5
|
||||||
|
split: 0, 0, 0, 5
|
||||||
|
orig: 3, 5
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
default-window
|
||||||
|
rotate: false
|
||||||
|
xy: 1, 20
|
||||||
|
size: 27, 29
|
||||||
|
split: 4, 3, 20, 3
|
||||||
|
orig: 27, 29
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
selection
|
selection
|
||||||
@ -189,6 +177,20 @@ selection
|
|||||||
orig: 1, 1
|
orig: 1, 1
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
|
tree-minus
|
||||||
|
rotate: false
|
||||||
|
xy: 140, 35
|
||||||
|
size: 14, 14
|
||||||
|
orig: 14, 14
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
tree-plus
|
||||||
|
rotate: false
|
||||||
|
xy: 155, 35
|
||||||
|
size: 14, 14
|
||||||
|
orig: 14, 14
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
white
|
white
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 174, 48
|
xy: 174, 48
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 28 KiB |
@ -32,12 +32,17 @@ package com.esotericsoftware.spine;
|
|||||||
|
|
||||||
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.*;
|
import static com.badlogic.gdx.scenes.scene2d.actions.Actions.*;
|
||||||
|
|
||||||
|
import java.awt.FileDialog;
|
||||||
|
import java.awt.Frame;
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
import com.badlogic.gdx.ApplicationAdapter;
|
import com.badlogic.gdx.ApplicationAdapter;
|
||||||
import com.badlogic.gdx.Gdx;
|
import com.badlogic.gdx.Gdx;
|
||||||
import com.badlogic.gdx.InputAdapter;
|
import com.badlogic.gdx.InputAdapter;
|
||||||
import com.badlogic.gdx.InputMultiplexer;
|
import com.badlogic.gdx.InputMultiplexer;
|
||||||
import com.badlogic.gdx.Preferences;
|
import com.badlogic.gdx.Preferences;
|
||||||
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
|
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
|
||||||
|
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
|
||||||
import com.badlogic.gdx.files.FileHandle;
|
import com.badlogic.gdx.files.FileHandle;
|
||||||
import com.badlogic.gdx.graphics.Color;
|
import com.badlogic.gdx.graphics.Color;
|
||||||
import com.badlogic.gdx.graphics.GL20;
|
import com.badlogic.gdx.graphics.GL20;
|
||||||
@ -67,11 +72,7 @@ import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
|
|||||||
import com.badlogic.gdx.utils.Array;
|
import com.badlogic.gdx.utils.Array;
|
||||||
import com.badlogic.gdx.utils.viewport.ScreenViewport;
|
import com.badlogic.gdx.utils.viewport.ScreenViewport;
|
||||||
|
|
||||||
import java.awt.FileDialog;
|
public class SkeletonViewer extends ApplicationAdapter {
|
||||||
import java.awt.Frame;
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
public class SkeletonTest extends ApplicationAdapter {
|
|
||||||
static final float checkModifiedInterval = 0.250f;
|
static final float checkModifiedInterval = 0.250f;
|
||||||
static final float reloadDelay = 1;
|
static final float reloadDelay = 1;
|
||||||
|
|
||||||
@ -291,6 +292,12 @@ public class SkeletonTest extends ApplicationAdapter {
|
|||||||
minimizeButton.getColor().a = 0.66f;
|
minimizeButton.getColor().a = 0.66f;
|
||||||
window.getButtonTable().add(minimizeButton).size(20, 20);
|
window.getButtonTable().add(minimizeButton).size(20, 20);
|
||||||
|
|
||||||
|
ScrollPane skinScroll = new ScrollPane(skinList, skin);
|
||||||
|
skinScroll.setFadeScrollBars(false);
|
||||||
|
|
||||||
|
ScrollPane animationScroll = new ScrollPane(animationList, skin);
|
||||||
|
animationScroll.setFadeScrollBars(false);
|
||||||
|
|
||||||
// Layout.
|
// Layout.
|
||||||
|
|
||||||
root.pad(2, 4, 4, 4).defaults().space(6);
|
root.pad(2, 4, 4, 4).defaults().space(6);
|
||||||
@ -320,11 +327,11 @@ public class SkeletonTest extends ApplicationAdapter {
|
|||||||
root.add("Alpha:");
|
root.add("Alpha:");
|
||||||
root.add(premultipliedCheckbox).row();
|
root.add(premultipliedCheckbox).row();
|
||||||
root.add("Skin:");
|
root.add("Skin:");
|
||||||
root.add(new ScrollPane(skinList, skin)).expand().fill().minHeight(75).row();
|
root.add(skinScroll).expand().fill().minHeight(75).row();
|
||||||
root.add("Setup Pose:");
|
root.add("Setup Pose:");
|
||||||
root.add(table(bonesSetupPoseButton, slotsSetupPoseButton, setupPoseButton)).row();
|
root.add(table(bonesSetupPoseButton, slotsSetupPoseButton, setupPoseButton)).row();
|
||||||
root.add("Animation:");
|
root.add("Animation:");
|
||||||
root.add(new ScrollPane(animationList, skin)).expand().fill().minHeight(75).row();
|
root.add(animationScroll).expand().fill().minHeight(75).row();
|
||||||
root.add("Mix:");
|
root.add("Mix:");
|
||||||
{
|
{
|
||||||
Table table = table();
|
Table table = table();
|
||||||
@ -487,7 +494,13 @@ public class SkeletonTest extends ApplicationAdapter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main (String[] args) throws Exception {
|
static public void main (String[] args) throws Exception {
|
||||||
new LwjglApplication(new SkeletonTest(), "SkeletonTest", 800, 600);
|
LwjglApplicationConfiguration.disableAudio = true;
|
||||||
|
LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
|
||||||
|
config.width = 800;
|
||||||
|
config.height = 600;
|
||||||
|
config.title = "Skeleton Viewer";
|
||||||
|
config.allowSoftwareMode = true;
|
||||||
|
new LwjglApplication(new SkeletonViewer(), config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user