Skip to content

Commit

Permalink
Added About Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
raeleus committed Jan 29, 2019
1 parent c361f87 commit 3deec8c
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,23 +171,44 @@ size: 512,512
format: RGBA8888
filter: Linear,Linear
repeat: none
button-about
rotate: false
xy: 313, 189
size: 21, 22
orig: 21, 22
offset: 0, 0
index: -1
button-about-over
rotate: false
xy: 337, 237
size: 21, 22
orig: 21, 22
offset: 0, 0
index: -1
button-about-pressed
rotate: false
xy: 337, 213
size: 21, 22
orig: 21, 22
offset: 0, 0
index: -1
button-close
rotate: false
xy: 428, 224
xy: 313, 70
size: 20, 23
orig: 20, 23
offset: 0, 0
index: -1
button-close-over
rotate: false
xy: 428, 199
xy: 313, 45
size: 20, 23
orig: 20, 23
offset: 0, 0
index: -1
button-close-pressed
rotate: false
xy: 428, 249
xy: 313, 95
size: 20, 23
orig: 20, 23
offset: 0, 0
Expand Down Expand Up @@ -254,6 +275,15 @@ button-download-pressed
orig: 129, 68
offset: 0, 0
index: -1
button-link
rotate: false
xy: 334, 373
size: 32, 10
split: 0, 0, 0, 2
pad: 3, 3, 0, 4
orig: 32, 10
offset: 0, 0
index: -1
button-normal
rotate: false
xy: 303, 329
Expand Down Expand Up @@ -283,28 +313,28 @@ button-normal-pressed
index: -1
checkbox
rotate: false
xy: 474, 322
xy: 313, 120
size: 20, 21
orig: 20, 21
offset: 0, 0
index: -1
checkbox-over
rotate: false
xy: 452, 322
xy: 313, 166
size: 20, 21
orig: 20, 21
offset: 0, 0
index: -1
checkbox-selected
rotate: false
xy: 452, 299
xy: 313, 143
size: 20, 21
orig: 20, 21
offset: 0, 0
index: -1
checkbox-selected-over
rotate: false
xy: 428, 274
xy: 336, 190
size: 20, 21
orig: 20, 21
offset: 0, 0
Expand All @@ -318,7 +348,7 @@ color-box
index: -1
color-box-bg
rotate: false
xy: 346, 357
xy: 346, 285
size: 26, 26
split: 11, 12, 11, 12
pad: 7, 9, 6, 10
Expand All @@ -327,21 +357,21 @@ color-box-bg
index: -1
color-slider
rotate: false
xy: 401, 70
xy: 286, 10
size: 25, 273
orig: 25, 273
offset: 0, 0
index: -1
hue-slider
rotate: false
xy: 374, 90
xy: 259, 13
size: 25, 273
orig: 25, 273
offset: 0, 0
index: -1
hue-slider-bg
rotate: false
xy: 346, 313
xy: 376, 321
size: 26, 42
split: 11, 12, 19, 20
pad: 7, 9, 6, 10
Expand Down Expand Up @@ -385,21 +415,21 @@ icon-bgm-over
index: -1
icon-download
rotate: false
xy: 428, 177
xy: 313, 1
size: 20, 20
orig: 20, 20
offset: 0, 0
index: -1
icon-download-over
rotate: false
xy: 428, 155
xy: 77, 17
size: 20, 20
orig: 20, 20
offset: 0, 0
index: -1
icon-download-pressed
rotate: false
xy: 474, 300
xy: 313, 23
size: 20, 20
orig: 20, 20
offset: 0, 0
Expand Down Expand Up @@ -448,7 +478,7 @@ icon-sfx-over
index: -1
license-box
rotate: false
xy: 107, 1
xy: 404, 351
size: 12, 12
split: 1, 1, 1, 1
orig: 12, 12
Expand All @@ -465,7 +495,7 @@ list
index: -1
progress-bar-square
rotate: false
xy: 412, 507
xy: 99, 17
size: 4, 4
split: 1, 1, 2, 1
pad: 1, 1, 1, 1
Expand All @@ -483,28 +513,28 @@ progress-bar-square-knob
index: -1
radio
rotate: false
xy: 428, 297
xy: 313, 213
size: 22, 22
orig: 22, 22
offset: 0, 0
index: -1
radio-over
rotate: false
xy: 107, 15
xy: 313, 261
size: 22, 22
orig: 22, 22
offset: 0, 0
index: -1
radio-selected
rotate: false
xy: 428, 321
xy: 337, 261
size: 22, 22
orig: 22, 22
offset: 0, 0
index: -1
radio-selected-over
rotate: false
xy: 346, 289
xy: 313, 237
size: 22, 22
orig: 22, 22
offset: 0, 0
Expand All @@ -518,7 +548,7 @@ reticle
index: -1
scrollbar
rotate: false
xy: 401, 347
xy: 175, 48
size: 17, 16
split: 8, 7, 8, 7
orig: 17, 16
Expand All @@ -544,7 +574,7 @@ select-box-open
index: -1
selection
rotate: false
xy: 428, 73
xy: 212, 43
size: 16, 16
split: 2, 2, 2, 2
pad: 3, 3, 3, 3
Expand All @@ -560,35 +590,35 @@ slider-knob
index: -1
slider-knob-over
rotate: false
xy: 289, 277
xy: 361, 274
size: 9, 9
orig: 9, 9
offset: 0, 0
index: -1
spinner-down
rotate: false
xy: 175, 34
xy: 98, 1
size: 16, 14
orig: 16, 14
offset: 0, 0
index: -1
spinner-down-over
rotate: false
xy: 175, 50
xy: 62, 1
size: 16, 14
orig: 16, 14
offset: 0, 0
index: -1
spinner-down-pressed
rotate: false
xy: 428, 139
xy: 80, 1
size: 16, 14
orig: 16, 14
offset: 0, 0
index: -1
spinner-textfield
rotate: false
xy: 259, 258
xy: 346, 343
size: 28, 28
split: 2, 2, 14, 13
pad: 4, 4, 3, 3
Expand All @@ -597,7 +627,7 @@ spinner-textfield
index: -1
spinner-textfield-selected
rotate: false
xy: 77, 9
xy: 346, 313
size: 28, 28
split: 2, 2, 14, 13
pad: 4, 4, 3, 3
Expand All @@ -606,21 +636,21 @@ spinner-textfield-selected
index: -1
spinner-up
rotate: false
xy: 428, 91
xy: 194, 45
size: 16, 14
orig: 16, 14
offset: 0, 0
index: -1
spinner-up-over
rotate: false
xy: 428, 123
xy: 175, 32
size: 16, 14
orig: 16, 14
offset: 0, 0
index: -1
spinner-up-pressed
rotate: false
xy: 428, 107
xy: 99, 23
size: 16, 14
orig: 16, 14
offset: 0, 0
Expand Down Expand Up @@ -686,7 +716,7 @@ thumb-portal
index: -1
white
rotate: false
xy: 300, 285
xy: 286, 285
size: 1, 1
orig: 1, 1
offset: 0, 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ com.badlogic.gdx.graphics.Color: {
b: 0
a: 1
}
clear: {
r: 1
g: 0
b: 0
a: 0
}
dialog-bg: {
r: 0
g: 0
Expand Down Expand Up @@ -59,6 +65,12 @@ com.badlogic.gdx.graphics.Color: {
b: 0.5372549
a: 1
}
visited: {
r: 0.60840327
g: 0.07333338
b: 1
a: 1
}
white: {
r: 1
g: 1
Expand Down Expand Up @@ -87,6 +99,10 @@ com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
name: white
color: dialog-bg
}
button-link-clear: {
name: button-link
color: clear
}
}
com.badlogic.gdx.scenes.scene2d.utils.TiledDrawable: {
progress-bar-knob-t: {
Expand Down Expand Up @@ -125,6 +141,11 @@ com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle: {
checked: radio-selected
checkedOver: radio-selected-over
}
about: {
up: button-about
down: button-about-pressed
over: button-about-over
}
}
com.badlogic.gdx.scenes.scene2d.ui.CheckBox$CheckBoxStyle: {
default: {
Expand Down Expand Up @@ -327,6 +348,14 @@ com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle: {
down: button-download-pressed
over: button-download-over
}
link: {
font: font
fontColor: highlight
downFontColor: visited
up: button-link-clear
down: button-link-clear
over: button-link
}
}
com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle: {
default: {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class Core extends Game {
public IbeamListener iBeamListener;
public Preferences preferences;
public DesktopWorker desktopWorker;
public String version = "1";

@Override
public void create() {
Expand Down
Loading

0 comments on commit 3deec8c

Please sign in to comment.