-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Som bugfix and implement minecraft launcher
- Loading branch information
Showing
9 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/main/kotlin/ru/lionzxy/tplauncher/view/main/listener/CloseListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package ru.lionzxy.tplauncher.view.main.listener | ||
|
||
import javafx.application.Platform | ||
import javafx.event.EventHandler | ||
import javafx.scene.input.MouseEvent | ||
import tornadofx.View | ||
|
||
class CloseListener : EventHandler<MouseEvent> { | ||
class CloseListener(val view: View) : EventHandler<MouseEvent> { | ||
override fun handle(p0: MouseEvent?) { | ||
Platform.exit() | ||
view.close() | ||
} | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/ru/lionzxy/tplauncher/view/main/states/GameLoadingState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/kotlin/ru/lionzxy/tplauncher/view/main/states/MinecraftLaunchedState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package ru.lionzxy.tplauncher.view.main.states | ||
|
||
class MinecraftLaunchedState(state: LoggedState) : GameLoadingState(state) { | ||
override var isOpen = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters