Text => Line
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user