Reorganize layout, and change Uname/Server fields to regular fields from passFields

This commit is contained in:
nelle 2024-02-16 17:15:45 -07:00
parent c2a268c8cf
commit ac258c51af

View file

@ -9,7 +9,7 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) :
TWindow(parent, "Login", 0, 0, 36, 19, 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, 16, false, "", var loginField = addField(CENTERED + 5, CENTERED - 1, 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() {
@ -39,7 +39,7 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) :
} }
); );
var serverField = addPasswordField(CENTERED + 5, CENTERED + 7, 16, false, "", var serverField = addField(CENTERED + 5, CENTERED + 7, 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() {