Skip to content

Commit 5cd32a4

Browse files
committed
Prepare for v4.0.2
1 parent 98d94a7 commit 5cd32a4

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [4.0.2]
6+
- Controller (gamepad) support.
7+
- .aab package generation for Android.
8+
- In panel showing choose options, up/down buttons now have animation.
9+
- Update libgdx to latest version 1.9.13.
10+
- Better Ink text extraction for I18N.
11+
- Fix: Bug deleting animation if initial animation is not set.
12+
513
## [4.0.1]
614
- Fix error serializing cb when Ink library is not used.
715
- Fix error creating resolution when there are atlases with subfolders.

adventure-editor/src/main/java/com/bladecoder/engineeditor/ui/EditDialogDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import com.bladecoder.engineeditor.ui.panels.InputPanelFactory;
2626

2727
public class EditDialogDialog extends EditModelDialog<CharacterActor, Dialog> {
28-
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.";
28+
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.";
2929

3030
private InputPanel id;
3131

adventure-editor/src/main/resources/versions.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ bladeInkVersion=0.7.4
44
libgdxVersion=1.9.13
55
roboVMGradlePluginVersion=2.3.12
66
roboVMVersion=2.3.12
7-
version=4.0.2-SNAPSHOT
7+
version=4.0.2

blade-engine/src/com/bladecoder/engine/ui/defaults/ScreenControllerHandler.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ public int compare(Vector2 o1, Vector2 o2) {
202202
});
203203
} else {
204204
positions.sort(new Comparator<Vector2>() {
205+
205206
@Override
206207
public int compare(Vector2 o1, Vector2 o2) {
207208
int val = (int) (o2.x - o1.x);
@@ -251,24 +252,15 @@ private void updateAxis(float delta) {
251252
int vx = 0, vy = 0;
252253

253254
for (Controller controller : Controllers.getControllers()) {
254-
255-
for (int axisCode = 0; axisCode < controller.getAxisCount(); axisCode++) {
256-
257-
float inc = controller.getAxis(axisCode) * v;
258-
259-
if (axisCode == controller.getMapping().axisLeftX) {
260-
vx += inc;
261-
} else if (axisCode == controller.getMapping().axisLeftY) {
262-
vy += inc;
263-
} else if (axisCode == controller.getMapping().axisRightX) {
264-
vx += inc / 2f;
265-
} else if (axisCode == controller.getMapping().axisRightY) {
266-
vy += inc / 2f;
267-
}
268-
}
255+
vx += controller.getAxis(controller.getMapping().axisLeftX) * v;
256+
vy += controller.getAxis(controller.getMapping().axisLeftY) * v;
257+
vx += controller.getAxis(controller.getMapping().axisRightX) * v / 2f;
258+
vy += controller.getAxis(controller.getMapping().axisRightY) * v / 2f;
269259
}
270260

271-
if (vx != 0 || vy != 0) {
261+
if (vx != 0 || vy != 0)
262+
263+
{
272264
int x = Gdx.input.getX() + vx;
273265
int y = Gdx.input.getY() + vy;
274266

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=4.0.2-SNAPSHOT
1+
version=4.0.2
22
libgdxVersion=1.9.13
33
roboVMVersion=2.3.12
44
roboVMGradlePluginVersion=2.3.12

0 commit comments

Comments
 (0)