Select box, text field and picker screens now look much nicer

This commit is contained in:
Yair Morgenstern
2018-06-12 22:46:23 +03:00
parent 66f2ad1f3e
commit 0eb28ab679
5 changed files with 12 additions and 9 deletions

View File

@ -5,27 +5,27 @@
/* Ancient Era */ /* Ancient Era */
{ {
name:"Worker", name:"Worker",
unitType:"Civilian",
baseDescription: "Can build improvements on tiles", baseDescription: "Can build improvements on tiles",
movement:2, movement:2,
unitType:"Civilian",
hurryCostModifier:20, hurryCostModifier:20,
cost:70 cost:70
}, },
{ {
name:"Settler", name:"Settler",
unitType:"Civilian",
baseDescription: "Founds a new city", baseDescription: "Founds a new city",
movement:2, movement:2,
unitType:"Civilian",
cost:106, cost:106,
hurryCostModifier:20 hurryCostModifier:20
}, },
{ {
name:"Scout", name:"Scout",
cost:25,
unitType:"Scout", unitType:"Scout",
movement:2,
strength:5, strength:5,
cost:25,
uniques:["Ignores terrain cost"] uniques:["Ignores terrain cost"]
movement:2
}, },
{ {
name:"Warrior", name:"Warrior",

View File

@ -21,8 +21,8 @@ android {
applicationId "com.unciv.game" applicationId "com.unciv.game"
minSdkVersion 14 minSdkVersion 14
targetSdkVersion 26 targetSdkVersion 26
versionCode 81 versionCode 82
versionName "2.4.11" versionName "2.4.11.2"
} }
buildTypes { buildTypes {
release { release {

View File

@ -29,7 +29,6 @@ open class PickerScreen : CameraStageBaseScreen() {
descriptionLabel = Label("", CameraStageBaseScreen.skin) descriptionLabel = Label("", CameraStageBaseScreen.skin)
descriptionLabel.setWrap(true) descriptionLabel.setWrap(true)
descriptionLabel.setFontScale(1.5f)
val labelScroll = ScrollPane(descriptionLabel) val labelScroll = ScrollPane(descriptionLabel)
bottomTable.add(labelScroll).pad(5f).width(stage.width / 2) bottomTable.add(labelScroll).pad(5f).width(stage.width / 2)

View File

@ -69,7 +69,7 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo) : PickerScreen()
} else } else
civTech.techsToResearch = techsToResearch civTech.techsToResearch = techsToResearch
game.setWorldScreen() game.setWorldScreen()
game.worldScreen!!.update() game.worldScreen.update()
dispose() dispose()
} }

View File

@ -93,7 +93,11 @@ open class CameraStageBaseScreen : Screen {
var skin = Skin(Gdx.files.internal("skin/flat-earth-ui.json")) var skin = Skin(Gdx.files.internal("skin/flat-earth-ui.json"))
.apply { .apply {
get<TextButton.TextButtonStyle>(TextButton.TextButtonStyle::class.java).font = getFont(20) get<TextButton.TextButtonStyle>(TextButton.TextButtonStyle::class.java).font = getFont(20)
get<Label.LabelStyle>(Label.LabelStyle::class.java).font = getFont(18) } get<Label.LabelStyle>(Label.LabelStyle::class.java).font = getFont(18)
get<TextField.TextFieldStyle>(TextField.TextFieldStyle::class.java).font = getFont(18)
get<SelectBox.SelectBoxStyle>(SelectBox.SelectBoxStyle::class.java).font = getFont(20)
get<SelectBox.SelectBoxStyle>(SelectBox.SelectBoxStyle::class.java).listStyle.font = getFont(20)
}
internal var batch: Batch = SpriteBatch() internal var batch: Batch = SpriteBatch()
} }