Skip to content

Commit

Permalink
Prepare for v4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bladecoder committed Jan 22, 2021
1 parent 98d94a7 commit 5cd32a4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [4.0.2]
- Controller (gamepad) support.
- .aab package generation for Android.
- In panel showing choose options, up/down buttons now have animation.
- Update libgdx to latest version 1.9.13.
- Better Ink text extraction for I18N.
- Fix: Bug deleting animation if initial animation is not set.

## [4.0.1]
- Fix error serializing cb when Ink library is not used.
- Fix error creating resolution when there are atlases with subfolders.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import com.bladecoder.engineeditor.ui.panels.InputPanelFactory;

public class EditDialogDialog extends EditModelDialog<CharacterActor, Dialog> {
public static final String INFO = "Actors can have several dialogs defined. Dialogs have a list of options to choose.\nThis is the legacy option to create simple dialogs, for more complex dialogs use the *Ink* language.";
public static final String INFO = "[RED]DEPRECATED:[]\nActors can have several dialogs defined. Dialogs have a list of options to choose. This is the legacy option to create simple dialogs, for more complex dialogs use the *Ink* language.";

private InputPanel id;

Expand Down
2 changes: 1 addition & 1 deletion adventure-editor/src/main/resources/versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ bladeInkVersion=0.7.4
libgdxVersion=1.9.13
roboVMGradlePluginVersion=2.3.12
roboVMVersion=2.3.12
version=4.0.2-SNAPSHOT
version=4.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public int compare(Vector2 o1, Vector2 o2) {
});
} else {
positions.sort(new Comparator<Vector2>() {

@Override
public int compare(Vector2 o1, Vector2 o2) {
int val = (int) (o2.x - o1.x);
Expand Down Expand Up @@ -251,24 +252,15 @@ private void updateAxis(float delta) {
int vx = 0, vy = 0;

for (Controller controller : Controllers.getControllers()) {

for (int axisCode = 0; axisCode < controller.getAxisCount(); axisCode++) {

float inc = controller.getAxis(axisCode) * v;

if (axisCode == controller.getMapping().axisLeftX) {
vx += inc;
} else if (axisCode == controller.getMapping().axisLeftY) {
vy += inc;
} else if (axisCode == controller.getMapping().axisRightX) {
vx += inc / 2f;
} else if (axisCode == controller.getMapping().axisRightY) {
vy += inc / 2f;
}
}
vx += controller.getAxis(controller.getMapping().axisLeftX) * v;
vy += controller.getAxis(controller.getMapping().axisLeftY) * v;
vx += controller.getAxis(controller.getMapping().axisRightX) * v / 2f;
vy += controller.getAxis(controller.getMapping().axisRightY) * v / 2f;
}

if (vx != 0 || vy != 0) {
if (vx != 0 || vy != 0)

{
int x = Gdx.input.getX() + vx;
int y = Gdx.input.getY() + vy;

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=4.0.2-SNAPSHOT
version=4.0.2
libgdxVersion=1.9.13
roboVMVersion=2.3.12
roboVMGradlePluginVersion=2.3.12
Expand Down

0 comments on commit 5cd32a4

Please sign in to comment.