Slight chatbox changes to fit existing code style and naming
This commit is contained in:
@@ -49,18 +49,17 @@ namespace Content.Client.Chat
|
|||||||
AnchorLeft = 1.0f;
|
AnchorLeft = 1.0f;
|
||||||
AnchorRight = 1.0f;
|
AnchorRight = 1.0f;
|
||||||
|
|
||||||
VBoxContainer VBox = new VBoxContainer("VBoxContainer");
|
var vBox = new VBoxContainer("VBoxContainer");
|
||||||
|
|
||||||
contents = new OutputPanel();
|
contents = new OutputPanel {SizeFlagsVertical = SizeFlags.FillExpand};
|
||||||
contents.SizeFlagsVertical = SizeFlags.FillExpand;
|
vBox.AddChild(contents);
|
||||||
VBox.AddChild(contents);
|
|
||||||
|
|
||||||
Input = new LineEdit("Input");
|
Input = new LineEdit("Input");
|
||||||
Input.OnKeyDown += InputKeyDown;
|
Input.OnKeyDown += InputKeyDown;
|
||||||
Input.OnTextEntered += Input_OnTextEntered;
|
Input.OnTextEntered += Input_OnTextEntered;
|
||||||
VBox.AddChild(Input);
|
vBox.AddChild(Input);
|
||||||
|
|
||||||
AddChild(VBox);
|
AddChild(vBox);
|
||||||
|
|
||||||
PanelOverride = new StyleBoxFlat { BackgroundColor = Color.Gray.WithAlpha(0.5f) };
|
PanelOverride = new StyleBoxFlat { BackgroundColor = Color.Gray.WithAlpha(0.5f) };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user