本文整理汇总了C#中TabState类的典型用法代码示例。如果您正苦于以下问题:C# TabState类的具体用法?C# TabState怎么用?C# TabState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TabState类属于命名空间,在下文中一共展示了TabState类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnTabStateRemoved
void OnTabStateRemoved(TabState tabState) {
var hts = tabState as HexTabState;
if (hts == null)
return;
hts.HexBox.OnWrite -= HexBox_OnWrite;
}
示例2: WeaponTab
void WeaponTab()
{
if (GUILayout.Button("Weapons"))
{
tabState = TabState.WEAPON;
}
}
示例3: ArmorTab
void ArmorTab()
{
if (GUILayout.Button("Armor"))
{
tabState = TabState.ARMOR;
}
}
示例4: PotionTab
void PotionTab()
{
if (GUILayout.Button("Potions"))
{
tabState = TabState.POTION;
}
}
示例5: AboutTab
void AboutTab()
{
if (GUILayout.Button("About"))
{
tabState = TabState.ABOUT;
}
}
示例6: OnTabStateChanged
void OnTabStateChanged(TabState oldTabState, TabState newTabState) {
var oldTsd = oldTabState as DecompileTabState;
if (oldTsd != null)
oldTsd.TextView.OnShowOutput -= DecompilerTextView_OnShowOutput;
var newTsd = newTabState as DecompileTabState;
if (newTsd != null)
newTsd.TextView.OnShowOutput += DecompilerTextView_OnShowOutput;
}
示例7: OnEnable
void OnEnable()
{
tabState = TabState.QUALITY;
weaponDatabase = new ISObjectDatabaseType<ISWeaponDatabase, ISWeapon>(DatabaseManager.weaponDatabase, "Weapon");
armorDatabase = new ISObjectDatabaseType<ISArmorDatabase, ISArmor>(DatabaseManager.armorDatabase, "Armor");
consumableDatabase = new ISObjectDatabaseType<ISConsumableDatabase, ISConsumable>(DatabaseManager.consumableDatabase, "Consumable");
qualityDatabase = new ISObjectDatabaseType<ISQualityDatabase, ISQuality>(DatabaseManager.qualityDatabase, "Quality");
}
示例8: TabStateEventArgs
public TabStateEventArgs(TabState tabState)
{
this.TabState = tabState;
}
示例9: TabStateChangedEventArgs
public TabStateChangedEventArgs(TabState oldTabState, TabState newTabState)
{
this.OldTabState = oldTabState;
this.NewTabState = newTabState;
}
示例10: ZoomReset
void ZoomReset(TabState tabState)
{
if (tabState == null)
return;
SetScaleValue(tabState, 1);
}
示例11: tabManager_OnSelectionChanged
internal void tabManager_OnSelectionChanged(TabManager<TabState> tabManager, TabState oldState, TabState newState)
{
UninitializeActiveTab(oldState, false);
InitializeActiveTab(newState, false);
if (IsActiveTab(newState))
SetTabFocus(newState);
if (OnTabStateChanged != null)
OnTabStateChanged(this, new TabStateChangedEventArgs(oldState, newState));
}
示例12: OnTabStateChanged
void OnTabStateChanged(TabState oldTabState, TabState newTabState)
{
var oldTsd = oldTabState as DecompileTabState;
if (oldTsd != null) {
oldTsd.TextView.OnBeforeShowOutput -= DecompilerTextView_OnBeforeShowOutput;
oldTsd.TextView.OnShowOutput -= DecompilerTextView_OnShowOutput;
}
var newTsd = newTabState as DecompileTabState;
if (newTsd != null) {
newTsd.TextView.OnBeforeShowOutput += DecompilerTextView_OnBeforeShowOutput;
newTsd.TextView.OnShowOutput += DecompilerTextView_OnShowOutput;
}
if (oldTsd != null)
Remove(oldTsd.TextView);
if (newTsd != null)
UpdateStackFrameLines(newTsd.TextView);
}
示例13: IgnoreSelectionChanged_HACK
internal bool IgnoreSelectionChanged_HACK(TabState tabState)
{
var tabManager = tabState.Owner;
bool value;
tabManager_dontSelectHack.TryGetValue(tabManager, out value);
tabManager_dontSelectHack[tabManager] = true;
return value;
}
示例14: CloneTabMakeActive
internal TabState CloneTabMakeActive(TabState tabState, bool decompile = true)
{
var clonedTabState = CloneTab(tabState, decompile);
if (clonedTabState != null)
tabGroupsManager.ActiveTabGroup.SetSelectedTab(clonedTabState);
return clonedTabState;
}
示例15: SetTabFocus
void SetTabFocus(TabState tabState)
{
if (disable_SetTabFocus)
return;
if (tabState == null)
return;
if (!IsActiveTab(tabState))
return;
if (tabState.TabItem.Content == null)
return;
var uiElem = tabState.FocusedElement;
Debug.Assert(uiElem != null);
if (uiElem == null)
return;
if (!uiElem.IsVisible)
new SetFocusWhenVisible(tabState, uiElem);
else
SetFocusIfNoMenuIsOpened(uiElem);
}