本文整理汇总了C#中DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent类的典型用法代码示例。如果您正苦于以下问题:C# BaseScreenComponent类的具体用法?C# BaseScreenComponent怎么用?C# BaseScreenComponent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BaseScreenComponent类属于DaggerfallWorkshop.Game.UserInterface命名空间,在下文中一共展示了BaseScreenComponent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Ingredients_OnMouseClick
private void Ingredients_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
SelectTabPage(TabPages.Ingredients);
}
示例2: LoadRoll_OnMouseClick
void LoadRoll_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
if (rollSaved)
{
statsRollout.SetStats(savedRolledStats, savedWorkingStats, savedBonusPool);
UpdateSecondaryStatLabels();
}
}
示例3: RerollButton_OnMouseClick
void RerollButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
Reroll();
}
示例4: ConfirmButton_OnMouseClick
private void ConfirmButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
if (confirmEnabled)
RaiseOnConfirmPathEvent();
else
FolderList_OnUseSelectedItem();
}
示例5: PreviousButton_OnMouseClick
void PreviousButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
listBox.SelectPrevious();
}
示例6: RaiseComponentRemovedEvent
/// <summary>
/// Raise component removed event.
/// </summary>
protected virtual void RaiseComponentRemovedEvent(BaseScreenComponent component)
{
// Raise event
if (OnComponentRemoved != null)
{
// Popuate event arguments
ComponentEventArgs e = new ComponentEventArgs()
{
Component = component,
};
// Raise event
OnComponentRemoved(this, e);
}
}
示例7: ScreenComponentCollection
/// <summary>
/// Constructor.
/// </summary>
/// <param name="parent">Base component hosting this collection.</param>
public ScreenComponentCollection(BaseScreenComponent parent)
: base()
{
this.parent = parent;
}
示例8: RemoveButton_OnMouseClick
private void RemoveButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
SelectActionMode(ActionModes.Remove);
}
示例9: CancelButton_OnMouseClick
private void CancelButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
CloseWindow();
}
示例10: RemoteItemsButton_OnMouseClick
private void RemoteItemsButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
// Get index
int index = remoteItemsScrollBar.ScrollIndex + (int)sender.Tag;
if (index >= remoteItemsFiltered.Count)
return;
// Get item
DaggerfallUnityItem item = remoteItemsFiltered[index];
if (item == null)
return;
// Handle click based on action
if (selectedActionMode == ActionModes.Equip)
{
// Transfer to local items
if (localItems != null)
TransferItem(item, remoteItems, localItems);
EquipItem(item);
}
else if (selectedActionMode == ActionModes.Use)
{
NextVariant(item);
}
else if (selectedActionMode == ActionModes.Remove)
{
TransferItem(item, remoteItems, localItems);
}
else if (selectedActionMode == ActionModes.Info)
{
ShowInfoPopup(item);
}
}
示例11: RemoteItemsUpButton_OnMouseClick
private void RemoteItemsUpButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
remoteItemsScrollBar.ScrollIndex--;
}
示例12: PaperDoll_OnMouseClick
private void PaperDoll_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
// Get equip value
byte value = paperDoll.GetEquipIndex((int)position.x, (int)position.y);
if (value == 0xff)
return;
// Get item
EquipSlots slot = (EquipSlots)value;
DaggerfallUnityItem item = playerEntity.ItemEquipTable.GetItem(slot);
if (item == null)
return;
// Handle click based on action
if (selectedActionMode == ActionModes.Equip)
{
UnequipItem(item);
}
else if (selectedActionMode == ActionModes.Use)
{
NextVariant(item);
}
else if (selectedActionMode == ActionModes.Info)
{
ShowInfoPopup(item);
}
}
示例13: MagicItems_OnMouseClick
private void MagicItems_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
SelectTabPage(TabPages.MagicItems);
}
示例14: LocalItemsDownButton_OnMouseClick
private void LocalItemsDownButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
localItemsScrollBar.ScrollIndex++;
}
示例15: Add
/// <summary>
/// Adds a component to collection.
/// </summary>
/// <param name="component">Component to add.</param>
public void Add(BaseScreenComponent component)
{
components.Add(component);
component.Parent = parent;
RaiseComponentAddedEvent(component);
}