some stuffs >:D
This commit is contained in:
@@ -293,7 +293,7 @@ class CharacterAnimButton extends UIButton {
|
||||
|
||||
parent.character.animOffsets[anim].set(animData.x, animData.y);
|
||||
|
||||
if (parent.character.getAnimName() == anim)
|
||||
if (parent.character.getAnimName() == anim && Options.playAnimOnOffset)
|
||||
CharacterEditor.instance.playAnimation(anim);
|
||||
|
||||
updateText();
|
||||
@@ -371,7 +371,8 @@ class CharacterAnimButton extends UIButton {
|
||||
|
||||
try {
|
||||
if (animData.indices.length > 0) {
|
||||
// keeps on crashing, look at flxanimate FlxAnim.hx for refrence
|
||||
parent.character.animateAtlas.anim.addBySymbolIndices(animData.name, animData.anim, animData.indices, animData.fps, animData.loop);
|
||||
wasRefreshed = true;
|
||||
} else {
|
||||
for (name in parent.character.animateAtlas.anim.symbolDictionary.keys())
|
||||
if (parent.character.animateAtlas.anim.startsWith(name, animData.anim)) {
|
||||
|
||||
@@ -250,7 +250,13 @@ class CharacterEditor extends UIState {
|
||||
label: "Change Animation ↓",
|
||||
keybind: [S],
|
||||
onSelect: _animation_down
|
||||
}
|
||||
},
|
||||
null,
|
||||
{
|
||||
label: "Play Animation On Offset?",
|
||||
onSelect: _animation_toggle_anim_playing_offsets,
|
||||
icon: Options.playAnimOnOffset ? 1 : 0
|
||||
},
|
||||
]
|
||||
},
|
||||
];
|
||||
@@ -712,6 +718,10 @@ class CharacterEditor extends UIState {
|
||||
0, characterAnimsWindow.animsList.length-1
|
||||
)]
|
||||
);
|
||||
|
||||
function _animation_toggle_anim_playing_offsets(t) {
|
||||
t.icon = (Options.playAnimOnOffset = !Options.playAnimOnOffset) ? 1 : 0;
|
||||
}
|
||||
|
||||
// The animation thats playing regardless if its valid or not
|
||||
public var characterFakeAnim:String = "";
|
||||
|
||||
@@ -125,8 +125,6 @@ class UIImageExplorer extends UIFileExplorer {
|
||||
var image = null;
|
||||
if (isAtlas && spritemapImages.length > 0) {
|
||||
var spritemapPath:String = Path.join([directoryPath, spritemapImages[0]]);
|
||||
trace("Loading spritemap: " + spritemapImages, spritemaps);
|
||||
trace(directoryPath);
|
||||
|
||||
imagePath = Path.normalize(spritemapPath);
|
||||
directoryPath = Path.directory(imagePath);
|
||||
|
||||
@@ -83,7 +83,8 @@ class Options
|
||||
public static var characterHitbox:Bool = true;
|
||||
public static var characterCamera:Bool = true;
|
||||
public static var characterAxis:Bool = true;
|
||||
public static var characterDragging:Bool = false;
|
||||
public static var characterDragging:Bool = true;
|
||||
public static var playAnimOnOffset:Bool = false;
|
||||
|
||||
/**
|
||||
* PLAYER 1 CONTROLS
|
||||
|
||||
Reference in New Issue
Block a user