Skip to content

Commit c3ee6fe

Browse files
committed
MenuScreen refactor, moved fonts to folder, transition refactor.
1 parent 27acc42 commit c3ee6fe

File tree

18 files changed

+168
-294
lines changed

18 files changed

+168
-294
lines changed

adventure-composer/src/main/java/com/bladecoder/engineeditor/setup/BladeEngineSetup.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,19 +300,21 @@ public void build (ProjectBuilder builder, String outputDir, String appName, Str
300300
new File(outputDir + "/" + assetPath + "/spine").mkdirs();
301301
new File(outputDir + "/" + assetPath + "/test").mkdirs();
302302
new File(outputDir + "/" + assetPath + "/ui/1").mkdirs();
303+
new File(outputDir + "/" + assetPath + "/ui/fonts").mkdirs();
303304

304305

305306
project.files.add(new ProjectFile("android/assets/model/00.chapter", assetPath + "/model/00.chapter", false));
306307
project.files.add(new ProjectFile("android/assets/model/world.properties", assetPath + "/model/world.properties", false));
307308
project.files.add(new ProjectFile("android/assets/model/world.xml", assetPath + "/model/world.xml", false));
308309
project.files.add(new ProjectFile("android/assets/model/world_es.properties", assetPath + "/model/world_es.properties", false));
309310

310-
project.files.add(new ProjectFile("android/assets/ui/ArchitectsDaughter_fix.ttf", assetPath + "/ui/ArchitectsDaughter_fix.ttf", false));
311311
project.files.add(new ProjectFile("android/assets/ui/credits.txt", assetPath + "/ui/credits.txt", false));
312-
project.files.add(new ProjectFile("android/assets/ui/Roboto-Black.ttf", assetPath + "/ui/Roboto-Black.ttf", false));
313-
project.files.add(new ProjectFile("android/assets/ui/Roboto-Regular.ttf", assetPath + "/ui/Roboto-Regular.ttf", false));
314-
project.files.add(new ProjectFile("android/assets/ui/Roboto-Thin.ttf", assetPath + "/ui/Roboto-Thin.ttf", false));
315-
project.files.add(new ProjectFile("android/assets/ui/Ubuntu-M.ttf", assetPath + "/ui/Ubuntu-M.ttf", false));
312+
project.files.add(new ProjectFile("android/assets/ui/fonts/PaytoneOne.ttf", assetPath + "/ui/fonts/PaytoneOne.ttf", false));
313+
project.files.add(new ProjectFile("android/assets/ui/fonts/ArchitectsDaughter_fix.ttf", assetPath + "/ui/fonts/ArchitectsDaughter_fix.ttf", false));
314+
project.files.add(new ProjectFile("android/assets/ui/fonts/Roboto-Black.ttf", assetPath + "/ui/fonts/Roboto-Black.ttf", false));
315+
project.files.add(new ProjectFile("android/assets/ui/fonts/Roboto-Regular.ttf", assetPath + "/ui/fonts/Roboto-Regular.ttf", false));
316+
project.files.add(new ProjectFile("android/assets/ui/fonts/Roboto-Thin.ttf", assetPath + "/ui/fonts/Roboto-Thin.ttf", false));
317+
project.files.add(new ProjectFile("android/assets/ui/fonts/Ubuntu-M.ttf", assetPath + "/ui/fonts/Ubuntu-M.ttf", false));
316318
project.files.add(new ProjectFile("android/assets/ui/ui.json", assetPath + "/ui/ui.json", false));
317319

318320
project.files.add(new ProjectFile("android/assets/ui/1/blade_logo.png", assetPath + "/ui/1/blade_logo.png", false));

adventure-composer/src/main/java/com/bladecoder/engineeditor/setup/DependencyBank.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public class DependencyBank {
1212
static String libGDXReleaseUrl = "https://oss.sonatype.org/content/repositories/releases/";
1313

1414
//Project plugins
15-
static String gwtPluginImport = "de.richsource.gradle.plugins:gwt-gradle-plugin:0.5";
16-
static String androidPluginImport = "com.android.tools.build:gradle:0.13+";
17-
static String roboVMPluginImport = "org.robovm:robovm-gradle-plugin:1.0.0-alpha-04";
15+
static String gwtPluginImport = "de.richsource.gradle.plugins:gwt-gradle-plugin:0.6";
16+
static String androidPluginImport = "com.android.tools.build:gradle:1.0.0";
17+
static String roboVMPluginImport = "org.robovm:robovm-gradle-plugin:1.0.0-beta-01";
1818

1919
HashMap<ProjectDependency, Dependency> gdxDependencies = new HashMap<ProjectDependency, Dependency>();
2020
LinkedHashMap<ProjectDependency, String[]> gwtInheritances = new LinkedHashMap<ProjectDependency, String[]>();

adventure-composer/src/main/resources/projectTmpl/android/assets/ui/credits.txt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
t#SCRIPT
1+
t#BLADECODER ADVENTURE ENGINE
22
RAFAEL GARCÍA
3-
t#CHAPTER DESIGN
4-
ALMUDENA CASTILLEJO
5-
RAFAEL GARCÍA
6-
t#BACKGROUNDS
7-
ALMUDENA CASTILLEJO
8-
RAFAEL GARCÍA
9-
t#PROGRAMMING
10-
RAFAEL GARCÍA
11-
t#MUSIC
12-
Moonlight Sonata Op. 27 No. 2 Moonlight Sonata
13-
Performed by Paul Pitman - musopen.org
14-
t#SOUND FX
15-
freesound.org
163
s#120
174
i#libgdx_logo.png
185
s#250

adventure-composer/src/main/resources/projectTmpl/android/assets/ui/ui.json

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
com.badlogic.gdx.graphics.g2d.BitmapFont: {
3-
default: {file: Roboto-Regular.ttf, size: 20},
4-
debug: {file: Roboto-Regular.ttf, size: 15},
5-
big-font: {file: Roboto-Black.ttf, size: 35},
6-
title-font: {file: Roboto-Black.ttf, size: 60},
7-
dialog-font: {file: ArchitectsDaughter_fix.ttf, size: 20},
8-
text-manager-font: {file: ArchitectsDaughter_fix.ttf, size: 18},
9-
desc: {file: Ubuntu-M.ttf, size: 16},
10-
credits-title: {file: Ubuntu-M.ttf, size: 20},
11-
credits: {file: Ubuntu-M.ttf, size: 30}
3+
default: {file: fonts/Roboto-Regular.ttf, size: 20},
4+
debug: {file: fonts/Roboto-Regular.ttf, size: 15},
5+
big-font: {file: fonts/PaytoneOne.ttf, size: 35},
6+
dialog-font: {file: fonts/ArchitectsDaughter_fix.ttf, size: 20},
7+
text-manager-font: {file: fonts/ArchitectsDaughter_fix.ttf, size: 18},
8+
desc: {file: fonts/Ubuntu-M.ttf, size: 16},
9+
credits-title: {file: fonts/Ubuntu-M.ttf, size: 20},
10+
credits: {file: fonts/Ubuntu-M.ttf, size: 30}
1211
},
1312
com.badlogic.gdx.graphics.Color: {
1413
green: { a: 1, b: 0, g: 1, r: 0 },
@@ -24,7 +23,8 @@ com.badlogic.gdx.graphics.Color: {
2423
red500: { r: 0.90, g: 0.11, b: 0.13, a: 1 },
2524
red-dark: { r: 0.71, g: 0.04, b: 0.06, a: 1 },
2625
red-light: { r: 0.99, g: 0.45, b: 0.47, a: 1 },
27-
black-trans: { r: 0.1, g: 0.1, b: 0.1, a: 0.7 }
26+
black-trans: { r: 0.1, g: 0.1, b: 0.1, a: 0.7 },
27+
yellow: { r: 1, g: 1, b: 0.13, a: 1 }
2828
},
2929
com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
3030
black08: { name: white_pixel, color: { r: 0, g: 0, b: 0, a: 0.8 } },
@@ -38,33 +38,41 @@ com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
3838
circle-border-light: { name: circle_border, color: light-grey},
3939
border-rect-grey: { name: border_rect4, color: light-grey},
4040
border-rect-dark-grey: { name: border_rect2, color: { a: 1, b: 0.6, g: 0.6, r: 0.6 }},
41+
border-rect-trans: { name: border_rect4, color: { a: 0.2, b: 0.6, g: 0.6, r: 0.6 }},
42+
border-rect-trans-down: { name: border_rect4, color: { a: 0.5, b: 0.6, g: 0.6, r: 0.6 }},
4143
},
4244
com.badlogic.gdx.scenes.scene2d.ui.ImageButton$ImageButtonStyle: {
4345
pie_lookat: {up:circle-border, down: circle-border-light, imageUp: lookat},
4446
pie_pickup: {up:circle-border, down: circle-border-light, imageUp: pickup},
4547
pie_talkto: {up:circle-border, down: circle-border-light, imageUp: talkto},
4648
inventory: {up:inventory},
47-
menu: {up:circle, down: circle-light, imageUp: menu}
48-
},
49-
com.bladecoder.engine.ui.InventoryUI$InventoryUIStyle: {
50-
default: {background: border-rect-grey, itemBackground: border-rect-dark-grey, menuButtonStyle: menu}
49+
showMenu: {up:circle, down: circle-light, imageUp: menu}
5150
},
51+
5252
com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle: {
5353
default: { font: default, up: grey, fontColor: white , downFontColor: grey, overFontColor: light-grey, disabledFontColor: dark-grey},
54-
menu: { font: big-font, fontColor: white , downFontColor: grey, overFontColor: light-grey, disabledFontColor: dark-grey}
54+
menu: { up: border-rect-trans, down: border-rect-trans-down, font: big-font, fontColor: white , downFontColor: grey, overFontColor: yellow, disabledFontColor: dark-grey}
5555
},
5656
com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle: {
5757
default: { font: default, fontColor: white},
58-
title: { font: title-font, fontColor: white},
58+
title: { font: big-font, fontColor: white},
5959
},
6060

61+
com.bladecoder.engine.ui.MenuScreen$MenuScreenStyle: {
62+
default: {textButtonStyle: menu, showTitle: true, titleStyle: title}
63+
},
64+
com.bladecoder.engine.ui.InventoryUI$InventoryUIStyle: {
65+
default: {background: border-rect-grey, itemBackground: border-rect-dark-grey, menuButtonStyle: showMenu}
66+
},
6167
com.bladecoder.engine.ui.DialogUI$DialogUIStyle: {
6268
default: {background: black08, font: dialog-font, fontColor: white, overFontColor: light-grey}
6369
},
6470

6571
com.bladecoder.engine.ui.TextManagerUI$TextManagerUIStyle: {
6672
default: {rectBackground: border_black_rect4, talkBackground: white, font: text-manager-font, talkBubble: bubblepointer}
6773
},
74+
75+
6876
com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle: {
6977
default: { selection: grey, background: dark-grey, focusedBackground: dark-grey, disabledBackground: grey, font: default, fontColor: white, focusedFontColor: text-dark, disabledFontColor: text-dark, cursor: white, messageFont: default, messageFontColor: text-dark }
7078
},

0 commit comments

Comments
 (0)