本文整理汇总了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");
}
示例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);
}
示例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");
}
示例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");
}