当前位置: 首页>>代码示例>>C#>>正文


C# Window.Initialize方法代码示例

本文整理汇总了C#中Window.Initialize方法的典型用法代码示例。如果您正苦于以下问题:C# Window.Initialize方法的具体用法?C# Window.Initialize怎么用?C# Window.Initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Window的用法示例。


在下文中一共展示了Window.Initialize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Start

    void Start()
    {
        anim = GetComponent<Animator>();

        Window newWindow = new Window();
        newWindow.Initialize("animTest",5,5,150,200,AnimTest,Window.Align.TopLeft,"Animation Test");
        GUIManager.windows.Add(newWindow);
    }
开发者ID:Thefre,项目名称:ValkyrianQuest,代码行数:8,代码来源:SpriteController.cs

示例2: Start

    // Use this for initialization
    void Start()
    {
        Application.targetFrameRate = -1;

        // Assign Menus
        Window newWindow = new Window();
        newWindow.Initialize("main", 0, 0, 120, 150, MainMenu, Window.Align.Center, "Main Menu");
        GUIManager.windows.Add(newWindow);
    }
开发者ID:Thefre,项目名称:ValkyrianQuest,代码行数:10,代码来源:MainGame.cs

示例3: Start

 void Start()
 {
     Window newWindow = new Window();
     newWindow.Initialize("networkMenu", 0, 0, 120, 100, ShowMainMenu, Window.Align.Center, "Network Game");
     GUIManager.windows.Add(newWindow);
     newWindow = new Window();
     newWindow.Initialize("hostMenu", 0, 0, 220, 150, ShowHostMenu, Window.Align.Center, "Host Game");
     GUIManager.windows.Add(newWindow);
     newWindow = new Window();
     newWindow.Initialize("joinPublicMenu", 0, 0, 120, 150, ShowJoinPublic, Window.Align.Center, "Join Game");
     GUIManager.windows.Add(newWindow);
     newWindow = new Window();
     newWindow.Initialize("joinDirectMenu", 0, 0, 220, 150, ShowJoinPrivate, Window.Align.Center, "Direct Connect");
     GUIManager.windows.Add(newWindow);
 }
开发者ID:Thefre,项目名称:ValkyrianQuest,代码行数:15,代码来源:NetworkManager.cs

示例4: Start

    // Use this for initialization
    void Start()
    {
        selectedColor = new Texture2D(32,32);
        selectedColorStyle = new GUIStyle();

        sheetData = new SpriteSheetData();
        sheetData.Initialize();
        SetPalettes();
        canvas.material.mainTexture = sheetData.buffered;
        //NewCanvas();

        //GUI Elements
        Console.Bind("spriteEdit", 0, 0, 250, 120);
        Window newWindow = new Window();
        newWindow.Initialize("spriteEdit", 0, 0, 120, 25, Toolbar, Window.Align.TopLeft);
        GUIManager.windows.Add(newWindow);
        newWindow = new Window();
        newWindow.Initialize("spriteEdit", 0, 0, 290, 90, Palette, Window.Align.BottomLeft);
        GUIManager.windows.Add(newWindow);
        newWindow = new Window();
        newWindow.Initialize("spriteEdit", 0, 0, 138, 74, Swatches, Window.Align.Bottom);
        GUIManager.windows.Add(newWindow);
        mainColor = new RGBColor();
        mainColor.SetColor(0,0,0);

        selectedColorStyle.normal.background = selectedColor;
    }
开发者ID:Thefre,项目名称:ValkyrianQuest,代码行数:28,代码来源:SpriteEditMain.cs

示例5: Bind

 public static void Bind(string state, float xoffset, float yoffset, float width, float height)
 {
     Window newWindow = new Window();
     newWindow.Initialize(state, xoffset, yoffset, width, height, DevConsole, Window.Align.BottomRight);
     GUIManager.windows.Add(newWindow);
 }
开发者ID:Thefre,项目名称:ValkyrianQuest,代码行数:6,代码来源:Console.cs

示例6: Main

 static void Main(string[] args)
 {
     Window window = new Window();
     window.Initialize (new AdamoOpenGL.OpenGLDevice ());
     window.Start(new Game1());
 }
开发者ID:JonathanWe,项目名称:Shooterfornaow,代码行数:6,代码来源:Program.cs


注:本文中的Window.Initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。