本文整理汇总了C#中DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent类的典型用法代码示例。如果您正苦于以下问题:C# BaseScreenComponent类的具体用法?C# BaseScreenComponent怎么用?C# BaseScreenComponent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BaseScreenComponent类属于DaggerfallWorkshop.Game.UserInterface命名空间,在下文中一共展示了BaseScreenComponent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Ingredients_OnMouseClick
private void Ingredients_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
SelectTabPage(TabPages.Ingredients);
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:4,代码来源:DaggerfallInventoryWindow.cs
示例2: LoadRoll_OnMouseClick
void LoadRoll_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
if (rollSaved)
{
statsRollout.SetStats(savedRolledStats, savedWorkingStats, savedBonusPool);
UpdateSecondaryStatLabels();
}
}
开发者ID:my0pic,项目名称:daggerfall-unity,代码行数:8,代码来源:CreateCharAddBonusStats.cs
示例3: RerollButton_OnMouseClick
void RerollButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
Reroll();
}
开发者ID:my0pic,项目名称:daggerfall-unity,代码行数:4,代码来源:CreateCharAddBonusStats.cs
示例4: ConfirmButton_OnMouseClick
private void ConfirmButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
if (confirmEnabled)
RaiseOnConfirmPathEvent();
else
FolderList_OnUseSelectedItem();
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:7,代码来源:FolderBrowser.cs
示例5: PreviousButton_OnMouseClick
void PreviousButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
listBox.SelectPrevious();
}
开发者ID:my0pic,项目名称:daggerfall-unity,代码行数:4,代码来源:DaggerfallListPickerWindow.cs
示例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);
}
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:18,代码来源:ScreenComponentCollection.cs
示例7: ScreenComponentCollection
/// <summary>
/// Constructor.
/// </summary>
/// <param name="parent">Base component hosting this collection.</param>
public ScreenComponentCollection(BaseScreenComponent parent)
: base()
{
this.parent = parent;
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:9,代码来源:ScreenComponentCollection.cs
示例8: RemoveButton_OnMouseClick
private void RemoveButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
SelectActionMode(ActionModes.Remove);
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:4,代码来源:DaggerfallInventoryWindow.cs
示例9: CancelButton_OnMouseClick
private void CancelButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
CloseWindow();
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:4,代码来源:DaggerfallUnitySaveGameWindow.cs
示例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);
}
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:34,代码来源:DaggerfallInventoryWindow.cs
示例11: RemoteItemsUpButton_OnMouseClick
private void RemoteItemsUpButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
remoteItemsScrollBar.ScrollIndex--;
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:4,代码来源:DaggerfallInventoryWindow.cs
示例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);
}
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:27,代码来源:DaggerfallInventoryWindow.cs
示例13: MagicItems_OnMouseClick
private void MagicItems_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
SelectTabPage(TabPages.MagicItems);
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:4,代码来源:DaggerfallInventoryWindow.cs
示例14: LocalItemsDownButton_OnMouseClick
private void LocalItemsDownButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
localItemsScrollBar.ScrollIndex++;
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:4,代码来源:DaggerfallInventoryWindow.cs
示例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);
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:10,代码来源:ScreenComponentCollection.cs
示例16: DeleteSaveButton_OnMouseClick
private void DeleteSaveButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
// Must have a save selected
if (savesList.SelectedIndex < 0)
return;
// Confirmation
DaggerfallMessageBox messageBox = new DaggerfallMessageBox(uiManager, this);
messageBox.SetText(HardStrings.confirmDeleteSave, "");
messageBox.AddButton(DaggerfallMessageBox.MessageBoxButtons.Delete);
messageBox.AddButton(DaggerfallMessageBox.MessageBoxButtons.Cancel);
messageBox.OnButtonClick += ConfirmDelete_OnButtonClick;
uiManager.PushWindow(messageBox);
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:14,代码来源:DaggerfallUnitySaveGameWindow.cs
示例17: Remove
public void Remove(BaseScreenComponent component)
{
components.Remove(component);
RaiseComponentRemovedEvent(component);
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:5,代码来源:ScreenComponentCollection.cs
示例18: SaveLoadEventHandler
private void SaveLoadEventHandler(BaseScreenComponent sender, Vector2 position)
{
if (mode == Modes.SaveGame)
{
// Must have a save name
if (saveNameTextBox.Text.Length == 0)
{
DaggerfallUI.MessageBox(HardStrings.youMustEnterASaveName);
return;
}
// Get save key and confirm if already exists
int key = GameManager.Instance.SaveLoadManager.FindSaveFolderByNames(currentPlayerName, saveNameTextBox.Text);
if (key != -1)
{
DaggerfallMessageBox messageBox = new DaggerfallMessageBox(uiManager, this);
messageBox.SetText(HardStrings.confirmOverwriteSave, "");
messageBox.AddButton(DaggerfallMessageBox.MessageBoxButtons.Yes);
messageBox.AddButton(DaggerfallMessageBox.MessageBoxButtons.No);
messageBox.OnButtonClick += ConfirmOverwrite_OnButtonClick;
uiManager.PushWindow(messageBox);
}
else
{
SaveGame();
}
}
else if (mode == Modes.LoadGame)
{
// Must have a save name
if (saveNameTextBox.Text.Length == 0)
{
DaggerfallUI.MessageBox(HardStrings.youMustSelectASaveName);
return;
}
LoadGame();
}
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:39,代码来源:DaggerfallUnitySaveGameWindow.cs
示例19: SwitchCharButton_OnMouseClick
private void SwitchCharButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
DaggerfallListPickerWindow picker = new DaggerfallListPickerWindow(uiManager, this);
// Get ordered list of character names
List<string> names = new List<string>();
names.AddRange(GameManager.Instance.SaveLoadManager.CharacterNames);
List<string> orderedNames = names.OrderBy(o => o).ToList();
// Add to picker list
foreach (string name in orderedNames)
{
picker.ListBox.AddItem(name);
}
// Select current character
picker.ListBox.SelectedIndex = picker.ListBox.FindIndex(currentPlayerName);
// Add event for selection
picker.OnItemPicked += Picker_OnItemPicked;
// Show window
uiManager.PushWindow(picker);
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:24,代码来源:DaggerfallUnitySaveGameWindow.cs
示例20: OkButton_OnMouseClick
void OkButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
{
AcceptName();
}
开发者ID:Nystul-the-Magician,项目名称:daggerfall-unity,代码行数:4,代码来源:CreateCharNameSelect.cs
注:本文中的DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论