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


C# Window.AddTab方法代码示例

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


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

示例1: Start

 // Use this for initialization
 private void Start()
 {
     Rect r = new Rect(20, Screen.height / 2 - 200, 200, 400);
     _commandWindow = new Window(r, 200, "Squad Commands");
     _commandWindow.AddTab(DrawSquadCommandWindow, "Squad Commands");
 }
开发者ID:sean-h,项目名称:spacegame,代码行数:7,代码来源:SquadronController.cs

示例2: Awake

    void Awake()
    {
        DontDestroyOnLoad(this);
        this.transform.parent = null;

        shipConfigurationManagerWindow = new Window(new Rect(Screen.width / 2 - 512, Screen.height / 2 - 384, 1024, 768), this.GetInstanceID(), "SHIP CONFIGURATION MANAGER");
        shipConfigurationManagerWindow.AddTab(DrawShipConfigurationManager, "SHIPS");

        SaveShipConfigurations saveConfigs = new SaveShipConfigurations();
        saveConfigs.Load(this);
    }
开发者ID:sean-h,项目名称:spacegame,代码行数:11,代码来源:ShipConfigurationManager.cs

示例3: Awake

    void Awake()
    {
        planetName = planetNames[Random.Range(0, planetNames.Length - 1)];
        planetInfo.SetPlanetName(planetName);

        planetSize = PlanetSizes.medium;

        switch (planetSize)
        {
        case PlanetSizes.tiny:
            break;
        case PlanetSizes.small:
            break;
        case PlanetSizes.medium:
            break;
        case PlanetSizes.large:
            break;
        case PlanetSizes.huge:
            break;
        }

        planetWindow = new Window(new Rect(Screen.width / 2 - 400, Screen.height / 2 - 200, 800, 400), 15, planetName);
        planetWindow.AddTab(DrawPlanetWindow, "PLANET");
    }
开发者ID:sean-h,项目名称:spacegame,代码行数:24,代码来源:Planet.cs

示例4: Start

    void Start()
    {
        noClickThroughAreas.Add(GUIManager.endTurnButton);

        player.faction.shipConfigurationManager.shipConfigurationManagerWindow.CloseWindow += CloseWindow;

        faction = player.faction;

        factionOverviewWindow = new Window(new Rect(Screen.width / 2 - 300, Screen.height / 2 - 200, 600, 400), 7, "Faction Overview");
        factionOverviewWindow.AddTab(DrawFactionOverviewWindow, "Summary");
        diplomacyWindow = new Window(new Rect(Screen.width / 2 - 300, Screen.height / 2 - 200, 600, 400), 8, "Diplomacy");
        diplomacyWindow.AddTab(DrawDiplomacyWindow, "Summary");
        researchWindow = new Window(new Rect(Screen.width / 2 - 300, Screen.height / 2 - 200, 600, 400), 9, "Research");
        researchWindow.AddTab(DrawResearchWindow, "Summary");
    }
开发者ID:sean-h,项目名称:spacegame,代码行数:15,代码来源:CampaignPlayerGUI.cs


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