public override void UpdateElementDescriptor() { base.UpdateElementDescriptor(); ControlDescriptorButton controlDescriptor = (ControlDescriptorButton)ElementDescriptor; _button.Text = controlDescriptor.Text; }
private void OnButtonClick(BaseButton.ButtonEventArgs args) { ControlDescriptorButton controlDescriptor = (ControlDescriptorButton)ElementDescriptor; if (controlDescriptor.Command != null) { EntitySystem.Get <DreamCommandSystem>().RunCommand(controlDescriptor.Command); } }