SceneTests BackgroundImageChangesWhenButtonClicked Method Delta Engine Documentation

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

public void BackgroundImageChangesWhenButtonClicked()
Examples

[Test]
public void BackgroundImageChangesWhenButtonClicked()
{
    scene.SetQuadraticBackground("SimpleSubMenuBackground");
    var button = CreateButton();
    button.Clicked += () => scene.SetQuadraticBackground("SimpleMainMenuBackground");
    scene.Add(button);
}
See Also