Exemplo n.º 1
0
    private static UIContainer MakeUIContainerMainMenu()
    {
        UIContainer uiContainer = new UIContainer();

        uiContainer.AddUIElement(UILable.FactoryVersion((int)Bootstrap.UIRenderDepth.Menu));
        uiContainer.AddUIElement(UIButton.FactoryButton(
                                     UIButton.FactoryRect((UnityEngine.Screen.width * 0.5f) - 150.0f, (UnityEngine.Screen.height * 0.5f) - 75.0f, 300.0f, 150.0f),
                                     "anykey",
                                     (int)Bootstrap.UIRenderDepth.Menu,
                                     () => {
            Bootstrap.Log("onclick");
            Bootstrap.SetState("tutorial00");
        }
                                     ));
        return(uiContainer);
    }