aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin
diff options
context:
space:
mode:
authorBryson Steck <brysonsteck@protonmail.com>2023-05-13 15:19:18 -0600
committerBryson Steck <brysonsteck@protonmail.com>2023-05-13 15:19:18 -0600
commit844a94226777e78553726c3d3e3798db7ea7107e (patch)
tree97d9e257958939b340846ae4e062237f89a4cd43 /app/src/main/kotlin
parentcab0715248aca5b381baff5270262c37c71c024d (diff)
downloadServerCraft-844a94226777e78553726c3d3e3798db7ea7107e.tar
ServerCraft-844a94226777e78553726c3d3e3798db7ea7107e.tar.gz
ServerCraft-844a94226777e78553726c3d3e3798db7ea7107e.tar.bz2
fixed spinner editing and forced window size
Diffstat (limited to 'app/src/main/kotlin')
-rw-r--r--app/src/main/kotlin/xyz/brysonsteck/serverfordummies/App.kt1
-rw-r--r--app/src/main/kotlin/xyz/brysonsteck/serverfordummies/PrimaryController.kt6
2 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/App.kt b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/App.kt
index a2c4bbd..8a00744 100644
--- a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/App.kt
+++ b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/App.kt
@@ -15,6 +15,7 @@ class App : Application() {
override fun start(stage: Stage) {
var scene = Scene(loadFXML("primary"), 963.0, 713.0)
stage.icons.add(Image(this.javaClass.getResourceAsStream("app-256x256.png")))
+ stage.setResizable(false)
stage.title = "Server For Dummies"
stage.scene = scene
stage.show()
diff --git a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/PrimaryController.kt b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/PrimaryController.kt
index 3b5c9ff..4939a26 100644
--- a/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/PrimaryController.kt
+++ b/app/src/main/kotlin/xyz/brysonsteck/serverfordummies/PrimaryController.kt
@@ -412,7 +412,8 @@ class PrimaryController {
private fun eulaDialog(): Boolean {
var result = false
val resources = this.javaClass.getResource("icons/warning.png")
- val dialog = Stage();
+ val dialog = Stage()
+ dialog.setResizable(false)
dialog.initModality(Modality.APPLICATION_MODAL);
dialog.title = directory
val scenePane = Pane()
@@ -470,7 +471,8 @@ class PrimaryController {
private fun createDialog(type: String, msg: String, yes: String, no: String, hold: Boolean): Boolean {
var result = false
val resources = this.javaClass.getResource("icons/$type.png")
- val dialog = Stage();
+ val dialog = Stage()
+ dialog.setResizable(false)
dialog.initModality(Modality.APPLICATION_MODAL);
dialog.title = directory
val scenePane = Pane()