Add config and about windows

This commit is contained in:
nelle 2024-02-17 17:29:08 -07:00
parent c808fafbca
commit 17e1e93a14

View file

@ -39,15 +39,11 @@ val osName =
} }
//// OS CHECKER //// //// OS CHECKER ////
const val windowWidth = 36
const val windowHeight = 19
const val textFieldWidth = 16
class LoginWindow private constructor(parent: TApplication, flags: Int) : 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) 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 // enterAction - function to call a when an enter key is pressed
object : TAction() { object : TAction() {
override fun DO() { 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 // enterAction - function to call when enter key is pressed
object : TAction() { object : TAction() {
override fun DO() { override fun DO() {