Control State Property Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Controls
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public InteractiveState State { get; }

Property Value

Type: InteractiveState
Remarks

Tests: FindTheWord.Tests.CharacterButtonTests
Examples

1 unit tests call DeltaEngine.Scenes.Controls.Control.State
[Test]
public void SettingCharactersSetsState()
{
    var characterButton = new CharacterButton(0.5f, 0.5f, null);
    characterButton.Letter = 'S';
    characterButton.ShowLetter();
    Assert.IsTrue(characterButton.IsClickable());
    Assert.AreEqual("CharacterButton(0 - S)", characterButton.ToString());
}
See Also