mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 17:59:24 +01:00
allow changing an element's controls
This commit is contained in:
parent
b175df7397
commit
06ca5a8c04
1 changed files with 2 additions and 1 deletions
|
@ -30,11 +30,12 @@ namespace MLEM.Ui.Elements {
|
|||
get => this.system;
|
||||
internal set {
|
||||
this.system = value;
|
||||
this.Controls = value?.Controls;
|
||||
if (this.system != null)
|
||||
this.InitStyle(this.system.Style);
|
||||
}
|
||||
}
|
||||
protected UiControls Controls => this.System.Controls;
|
||||
protected UiControls Controls;
|
||||
protected InputHandler Input => this.Controls.Input;
|
||||
public Element Parent { get; private set; }
|
||||
public RootElement Root { get; internal set; }
|
||||
|
|
Loading…
Reference in a new issue