DisplayMainMenuWithKid ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms TestWithMocksOrVisually
    CreepyTowers.Tests.GUI DisplayMainMenuWithKid

Namespace: CreepyTowers.Tests.GUI
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class DisplayMainMenuWithKid : TestWithMocksOrVisually

The DisplayMainMenuWithKid type exposes the following members.

Constructors

  NameDescription
Public methodDisplayMainMenuWithKid
Initializes a new instance of the DisplayMainMenuWithKid class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Public methodLoadMainMenuWithSceneLoadFromFile
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Public methodShowMainMenuBackgroundWithKid
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
Examples

[Test]
public void ShowMainMenuBackgroundWithKid()
{
    Settings.Current.Resolution = new Size(1280, 720);
    new Sprite("TextureBackgroundBlue", Rectangle.One);
    var kid = new Material(ShaderFlags.Position2DTextured, "MenuKid");
    new Picture(new Theme(), kid,
        new Rectangle(ScreenSpace.Current.Viewport.BottomRight - kid.MaterialRenderSize,
            kid.MaterialRenderSize));
    var cape = new Material(ShaderFlags.Position2DTextured, "MenuCape");
    new Picture(new Theme(), cape, new Rectangle(
        ScreenSpace.Current.Viewport.BottomRight - cape.MaterialRenderSize -
        new Vector2D(kid.MaterialRenderSize.Width, 0), cape.MaterialRenderSize));
}
[Test, Ignore]
public void LoadMainMenuWithSceneLoadFromFile()
{
    var scene = new Scene();
    scene.LoadFromFile(File.Open("Content\\CreepyTowers.Tests\\SceneMainMenu.deltascene",
        FileMode.Open));
}
See Also