Text => Line
This commit is contained in:
parent
73dc6d5c1e
commit
cbe4523af4
@ -9,7 +9,7 @@ public partial class start_game_menu : Control {
|
|||||||
|
|
||||||
private const string _path = "/root/StartGameMenu/";
|
private const string _path = "/root/StartGameMenu/";
|
||||||
private Button _localMulti, _single, _LANMulti, _join, _host, _cancel, _quit, _yes, _no;
|
private Button _localMulti, _single, _LANMulti, _join, _host, _cancel, _quit, _yes, _no;
|
||||||
private TextEdit _ip;
|
private LineEdit _ip;
|
||||||
private Label _error, _lip;
|
private Label _error, _lip;
|
||||||
|
|
||||||
private string Error { set { _error.Set("text", value); } }
|
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");
|
_host = GetNode<Button>(_path + "Btn_Host");
|
||||||
_join = GetNode<Button>(_path + "Btn_Join");
|
_join = GetNode<Button>(_path + "Btn_Join");
|
||||||
_error = GetNode<Label>(_path + "lbl_err");
|
_error = GetNode<Label>(_path + "lbl_err");
|
||||||
_ip = GetNode<TextEdit>(_path + "txt_IP");
|
_ip = GetNode<LineEdit>(_path + "txt_IP");
|
||||||
_lip = GetNode<Label>(_path + "lbl_IP");
|
_lip = GetNode<Label>(_path + "lbl_IP");
|
||||||
_single.Pressed += () => startGame(_gameType.SINGLE);
|
_single.Pressed += () => startGame(_gameType.SINGLE);
|
||||||
_localMulti.Pressed += () => startGame(_gameType.LOCAL);
|
_localMulti.Pressed += () => startGame(_gameType.LOCAL);
|
||||||
@ -135,7 +135,7 @@ public partial class start_game_menu : Control {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
case _gameType.LAN:
|
case _gameType.LAN:
|
||||||
Error = "YIPPE! " + id.ToString();
|
|
||||||
break;
|
break;
|
||||||
default: return;
|
default: return;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ offset_bottom = 779.0
|
|||||||
text = "Join
|
text = "Join
|
||||||
"
|
"
|
||||||
|
|
||||||
[node name="txt_IP" type="TextEdit" parent="."]
|
[node name="txt_IP" type="LineEdit" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = 1034.0
|
offset_left = 1034.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user