Add config and about windows
This commit is contained in:
parent
c808fafbca
commit
17e1e93a14
1 changed files with 3 additions and 7 deletions
|
@ -39,15 +39,11 @@ val osName =
|
|||
}
|
||||
//// OS CHECKER ////
|
||||
|
||||
const val windowWidth = 36
|
||||
const val windowHeight = 19
|
||||
const val textFieldWidth = 16
|
||||
|
||||
class LoginWindow private constructor(parent: TApplication, flags: Int) :
|
||||
TWindow(parent, "Login", 0, 0, windowWidth, windowHeight, flags) {
|
||||
TWindow(parent, "Login", 0, 0, 36, 19, flags) {
|
||||
constructor(parent: TApplication) : this(parent, CENTERED)
|
||||
|
||||
var loginField = addPasswordField(CENTERED + 5, CENTERED - 1, textFieldWidth, false, "",
|
||||
var loginField = addPasswordField(CENTERED + 5, CENTERED - 1, 16, false, "",
|
||||
// enterAction - function to call a when an enter key is pressed
|
||||
object : TAction() {
|
||||
override fun DO() {
|
||||
|
@ -70,7 +66,7 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) :
|
|||
}
|
||||
)
|
||||
|
||||
var serverField = addPasswordField(CENTERED + 5, CENTERED + 3, textFieldWidth, false, "",
|
||||
var serverField = addPasswordField(CENTERED + 5, CENTERED + 3, 16, false, "",
|
||||
// enterAction - function to call when enter key is pressed
|
||||
object : TAction() {
|
||||
override fun DO() {
|
||||
|
|
Loading…
Reference in a new issue