Skip to content

Commit

Permalink
Redraw skin Images, edit skin load method (#4080)
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaoxia1985 authored Jun 10, 2021
1 parent 91154ae commit 7e284f9
Show file tree
Hide file tree
Showing 26 changed files with 737 additions and 832 deletions.
Binary file added android/Skin/checkbox-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/Skin/checkbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/Skin/rectangleWithOutline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added android/Skin/select-box-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/Skin/select-box.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/assets/BuildingIcons.atlas
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BuildingIcons.png
size: 2048, 1024
format: RGBA8888
filter: MipMapLinearLinear, MipMapLinearLinear
filter: Nearest, Nearest
repeat: none
Alhambra
rotate: false
Expand Down
2 changes: 1 addition & 1 deletion android/assets/FlagIcons.atlas
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FlagIcons.png
size: 2048, 512
format: RGBA8888
filter: MipMapLinearLinear, MipMapLinearLinear
filter: Nearest, Nearest
repeat: none
Brazilian_Portuguese
rotate: false
Expand Down
48 changes: 48 additions & 0 deletions android/assets/Skin.atlas
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

Skin.png
size: 256, 64
format: RGBA8888
filter: Linear, Linear
repeat: none
checkbox
rotate: false
xy: 140, 26
size: 31, 31
orig: 31, 31
offset: 0, 0
index: -1
checkbox-pressed
rotate: false
xy: 173, 26
size: 31, 31
orig: 31, 31
offset: 0, 0
index: -1
rectangleWithOutline
rotate: false
xy: 2, 2
size: 3, 3
orig: 3, 3
offset: 0, 0
index: -1
roundedEdgeRectangle
rotate: false
xy: 2, 7
size: 52, 50
orig: 52, 50
offset: 0, 0
index: -1
select-box
rotate: false
xy: 56, 27
size: 40, 30
orig: 40, 30
offset: 0, 0
index: -1
select-box-pressed
rotate: false
xy: 98, 27
size: 40, 30
orig: 40, 30
offset: 0, 0
index: -1
117 changes: 35 additions & 82 deletions android/assets/skin/flat-earth-ui.json → android/assets/Skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,128 +50,88 @@ com.badlogic.gdx.graphics.Color: {
}
com.badlogic.gdx.scenes.scene2d.ui.Skin$TintedDrawable: {
button-c: {
name: "Button"
name: "RoundedEdgeRectangle"
color: color
}
button-pressed-c: {
name: "Button"
color: color
button-p: {
name: "RoundedEdgeRectangle"
color: pressed
}
button-h: {
name: "Button"
name: "RoundedEdgeRectangle"
color: highlight
}
checkbox-c: {
name: checkbox
name: "Checkbox"
color: color
}
checkbox-pressed-c: {
name: checkbox-pressed
name: "Checkbox-pressed"
color: color
}
list-c: {
name: list
name: "RectangleWithOutline"
color: color
}
scrollbar-c: {
name: scrollbar
name: "Scrollbar"
color: color
}
select-box-c: {
name: select-box
name: "Select-box"
color: color
}
select-box-pressed-c: {
name: select-box-pressed
name: "Select-box-pressed"
color: color
}
slider-horizontal-c: {
name: slider-horizontal
color: color
select-box-h: {
name: "Select-box"
color: highlight
}
slider-knob-c: {
name: slider-knob
color: color
}
slider-vertical-c: {
name: slider-vertical
color: color
}
splitpane-horizontal-c: {
name: splitpane-horizontal
color: color
}
splitpane-vertical-c: {
name: splitpane-vertical
color: color
}
textfield-c: {
name: "Button"
color: color
}
color: {
name: white
name: "Circle"
color: color
}
selection: {
name: white
color: selection
}
slider-horizontal-s: {
name: slider-horizontal
name: "Rectangle"
color: selection
}
slider-vertical-s: {
name: slider-vertical
name: "Rectangle"
color: selection
}
select-box-pressed-h: {
name: select-box-pressed
color: highlight
}
select-box-h: {
name: select-box
color: highlight
}
slider-knob-h: {
name: slider-knob
name: "Circle"
color: highlight
}
slider-horizontal-p: {
name: slider-horizontal
name: "Rectangle"
color: pressed
}
slider-vertical-p: {
name: slider-vertical
color: pressed
}
black: {
name: white
color: black
}
button-p: {
name: "Button"
name: "Rectangle"
color: pressed
}
slider-fancy-p: {
name: slider-fancy
color: pressed
splitpane-horizontal-c: {
name: "RectangleWithOutline"
color: color
}
checkbox-h: {
name: checkbox
color: highlight
splitpane-vertical-c: {
name: "RectangleWithOutline"
color: color
}
checkbox-pressed-h: {
name: checkbox-pressed
color: highlight
textfield-c: {
name: "RoundedEdgeRectangle"
color: color
}
checkbox-p: {
name: checkbox
color: pressed
selection: {
name: "Rectangle"
color: selection
}
checkbox-pressed-p: {
name: checkbox-pressed
color: pressed
white: {
name: "Rectangle"
color: white
}
}
com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle: {
Expand Down Expand Up @@ -238,13 +198,6 @@ com.badlogic.gdx.scenes.scene2d.ui.Slider$SliderStyle: {
knob: slider-knob-c
knobBefore: slider-vertical-s
}
fancy: {
knobOver: slider-knob-h
knobDown: slider-knob-h
background: slider-fancy-p
knob: slider-knob-c
knobBefore: slider-fancy-knob
}
}
com.badlogic.gdx.scenes.scene2d.ui.SplitPane$SplitPaneStyle: {
default-horizontal: {
Expand Down
Binary file added android/assets/Skin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/assets/UnitIcons.atlas
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
UnitIcons.png
size: 2048, 512
format: RGBA8888
filter: MipMapLinearLinear, MipMapLinearLinear
filter: Nearest, Nearest
repeat: none
Anti-Aircraft Gun
rotate: false
Expand Down
Loading

0 comments on commit 7e284f9

Please sign in to comment.