private void Awake() { Ui = new Widgetry.Ui(); Widgetry.Widget.White = Layer.atlas.GetSprite("Giraffe/White"); Widgetry.Widget.Button_Left = Layer.atlas.GetSprite("Widgets_UpLeft"); Widgetry.Widget.Button_Right = Layer.atlas.GetSprite("Widgets_UpRight"); Widgetry.Widget.Button_Middle = Layer.atlas.GetSprite("Widgets_UpMiddle"); Widgetry.Widget.Tool_Up = Layer.atlas.GetSprite("Widgets_ToolUp"); Widgetry.Widget.Tool_Down = Layer.atlas.GetSprite("Widgets_ToolDown"); Widgetry.Widget.Up = Layer.atlas.GetSprite("Widgets_Up"); Widgetry.Widget.Down = Layer.atlas.GetSprite("Widgets_Down"); Widgetry.Widget.Font = Font; Widgetry.Widget.Layer = Layer; foreach (var editor in Editors) { editor.enabled = false; } }
public override void Setup(Widgetry.Ui ui) { Ui = ui; RefreshUi(); RefreshImage(); }