Polish up UI
This commit is contained in:
@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
readonly EditorActorLayer editorActorLayer;
|
||||
readonly EditorActionManager editorActionManager;
|
||||
readonly EditorViewportControllerWidget editor;
|
||||
readonly ContainerWidget actorEditPanel;
|
||||
readonly Widget actorEditPanel;
|
||||
readonly LabelWidget typeLabel;
|
||||
readonly TextFieldWidget actorIDField;
|
||||
readonly HashSet<TextFieldWidget> typableFields = new();
|
||||
@@ -72,8 +72,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
editor = widget.Parent.Parent.Get<EditorViewportControllerWidget>("MAP_EDITOR");
|
||||
editor.DefaultBrush.SelectionChanged += HandleSelectionChanged;
|
||||
|
||||
var selectTabContainer = widget.Parent.Parent.Get<ContainerWidget>("SELECT_WIDGETS");
|
||||
actorEditPanel = selectTabContainer.Get<ContainerWidget>("ACTOR_EDIT_PANEL");
|
||||
var selectTabContainer = widget.Parent.Parent.Get("SELECT_WIDGETS");
|
||||
actorEditPanel = selectTabContainer.Get("ACTOR_EDIT_PANEL");
|
||||
|
||||
typeLabel = actorEditPanel.Get<LabelWidget>("ACTOR_TYPE_LABEL");
|
||||
actorIDField = actorEditPanel.Get<TextFieldWidget>("ACTOR_ID");
|
||||
|
||||
@@ -49,8 +49,8 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
editor = widget.Get<EditorViewportControllerWidget>("MAP_EDITOR");
|
||||
editor.DefaultBrush.SelectionChanged += HandleSelectionChanged;
|
||||
var selectTabContainer = widget.Get("SELECT_WIDGETS");
|
||||
var actorEditPanel = selectTabContainer.Get<ContainerWidget>("ACTOR_EDIT_PANEL");
|
||||
var areaEditPanel = selectTabContainer.Get<ContainerWidget>("AREA_EDIT_PANEL");
|
||||
var actorEditPanel = selectTabContainer.Get("ACTOR_EDIT_PANEL");
|
||||
var areaEditPanel = selectTabContainer.Get("AREA_EDIT_PANEL");
|
||||
|
||||
actorEditPanel.IsVisible = () => editor.DefaultBrush.Selection.Actor != null;
|
||||
areaEditPanel.IsVisible = () => editor.DefaultBrush.Selection.Area != null;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
toolsDropdown = widget.Get<DropDownButtonWidget>("TOOLS_DROPDOWN");
|
||||
|
||||
var markerToolPanel = widget.Get<ScrollPanelWidget>("MARKER_TOOL_PANEL");
|
||||
var markerToolPanel = widget.Get("MARKER_TOOL_PANEL");
|
||||
toolPanels.Add(MapTool.MarkerTiles, markerToolPanel);
|
||||
|
||||
toolsDropdown.OnMouseDown = _ => ShowToolsDropDown(toolsDropdown);
|
||||
|
||||
Reference in New Issue
Block a user