Removed construction menu dependence on tscn file
One minor issue remains with this that I can't resolve. The construction window starts off much larger than the tscn dependent version on master. It can be shrunk manually and it'll look the same, but it'd be nice to keep it as it was. Tried manually changing the window size and changing the size flags but couldn't get it to work as I wanted.
This commit is contained in:
@@ -8,7 +8,6 @@ namespace Content.Client.Construction
|
||||
public class ConstructionButton : Button
|
||||
{
|
||||
private readonly IDisplayManager _displayManager;
|
||||
protected override ResourcePath ScenePath => new ResourcePath("/Scenes/Construction/ConstructionButton.tscn");
|
||||
|
||||
public ConstructorComponent Owner
|
||||
{
|
||||
@@ -27,6 +26,15 @@ namespace Content.Client.Construction
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
AnchorLeft = 1.0f;
|
||||
AnchorTop = 1.0f;
|
||||
AnchorRight = 1.0f;
|
||||
AnchorBottom = 1.0f;
|
||||
MarginLeft = -110.0f;
|
||||
MarginTop = -70.0f;
|
||||
MarginRight = -50.0f;
|
||||
MarginBottom = -50.0f;
|
||||
Text = "Crafting";
|
||||
OnPressed += IWasPressed;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user