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


C# UserInterface.BaseScreenComponent类代码示例

本文整理汇总了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);
 }
开发者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


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