Text => Line

This commit is contained in:
MarcEricMartel 2023-06-10 15:08:42 -04:00
parent 73dc6d5c1e
commit cbe4523af4
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ public partial class start_game_menu : Control {
private const string _path = "/root/StartGameMenu/";
private Button _localMulti, _single, _LANMulti, _join, _host, _cancel, _quit, _yes, _no;
private TextEdit _ip;
private LineEdit _ip;
private Label _error, _lip;
private string Error { set { _error.Set("text", value); } }
@ -112,7 +112,7 @@ public partial class start_game_menu : Control {
_host = GetNode<Button>(_path + "Btn_Host");
_join = GetNode<Button>(_path + "Btn_Join");
_error = GetNode<Label>(_path + "lbl_err");
_ip = GetNode<TextEdit>(_path + "txt_IP");
_ip = GetNode<LineEdit>(_path + "txt_IP");
_lip = GetNode<Label>(_path + "lbl_IP");
_single.Pressed += () => startGame(_gameType.SINGLE);
_localMulti.Pressed += () => startGame(_gameType.LOCAL);
@ -135,7 +135,7 @@ public partial class start_game_menu : Control {
break;
case _gameType.LAN:
Error = "YIPPE! " + id.ToString();
break;
default: return;
}

View File

@ -114,7 +114,7 @@ offset_bottom = 779.0
text = "Join
"
[node name="txt_IP" type="TextEdit" parent="."]
[node name="txt_IP" type="LineEdit" parent="."]
visible = false
layout_mode = 0
offset_left = 1034.0