• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Chummer.Character类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Chummer.Character的典型用法代码示例。如果您正苦于以下问题:C# Character类的具体用法?C# Character怎么用?C# Character使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Character类属于Chummer命名空间,在下文中一共展示了Character类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: SkillControl

 public SkillControl(Character _objCharacter)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
     this._objCharacter = _objCharacter;
     
 }
开发者ID:GhostWhoWalksInside,项目名称:chummer5a_Dashboard,代码行数:7,代码来源:SkillControl.cs


示例2: frmSelectCritterPower

 public frmSelectCritterPower(Character objCharacter)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(this);
     _objCharacter = objCharacter;
     MoveControls();
 }
开发者ID:janhelke,项目名称:chummer2,代码行数:7,代码来源:frmSelectCritterPower.cs


示例3: frmCreatePACKSKit

		public frmCreatePACKSKit(Character objCharacter)
		{
			InitializeComponent();
			LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
			_objCharacter = objCharacter;
			MoveControls();
		}
开发者ID:Vanatrix,项目名称:chummer5a,代码行数:7,代码来源:frmCreatePACKSKit.cs


示例4: frmCreateImprovement

 public frmCreateImprovement(Character objCharacter)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(this);
     _objCharacter = objCharacter;
     MoveControls();
 }
开发者ID:janhelke,项目名称:chummer2,代码行数:7,代码来源:frmCreateImprovement.cs


示例5: frmSelectProgram

		public frmSelectProgram(Character objCharacter)
        {
            InitializeComponent();
			LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
			_objCharacter = objCharacter;
			MoveControls();
        }
开发者ID:Vanatrix,项目名称:chummer5a,代码行数:7,代码来源:frmSelectProgram.cs


示例6: ContactControl

        public ContactControl(Character objCharacter)
        {
            InitializeComponent();
            _objCharacter = objCharacter;

            if (!_objCharacter.Created)
            {
                if (_objCharacter.FriendsInHighPlaces)
                {
                    nudConnection.Maximum = 12;
                }
                else
                {
                    nudConnection.Maximum = 6;
                }
            }
            else
            {
                nudConnection.Maximum = 12;
            }

            //We don't actually pay for contacts in play so everyone is free
            //Don't present a useless field
            if (_objCharacter.Created)
            {
                chkFree.Visible = false;
            }

            LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
        }
开发者ID:blackmage5242,项目名称:chummer5a-master,代码行数:30,代码来源:ContactControl.cs


示例7: frmSelectLifeModule

 public frmSelectLifeModule(Character objCharacter, int stage)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
     _objCharacter = objCharacter;
     _intStage = stage;
     MoveControls();
 }
开发者ID:AMDX9,项目名称:chummer5a,代码行数:8,代码来源:frmSelectLifeModule.cs


示例8: frmSelectLifestyleAdvanced

 public frmSelectLifestyleAdvanced(Lifestyle objLifestyle, Character objCharacter)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
     _objCharacter = objCharacter;
     _objLifestyle = objLifestyle;
     MoveControls();
 }
开发者ID:Nitsuj83,项目名称:chummer5a,代码行数:8,代码来源:frmSelectLifestyleAdvanced.cs


示例9: frmSelectAdvancedLifestyle

 public frmSelectAdvancedLifestyle(Lifestyle objLifestyle, Character objCharacter)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(this);
     _objCharacter = objCharacter;
     _objLifestyle = objLifestyle;
     MoveControls();
 }
开发者ID:janhelke,项目名称:chummer2,代码行数:8,代码来源:frmSelectAdvancedLifestyle.cs


示例10: SkillGroupControl

 public SkillGroupControl(CharacterOptions objOptions, Character objCharacter, bool blnCareer = false)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
     _blnCareer = blnCareer;
     _objOptions = objOptions;
     _objCharacter = objCharacter;
 }
开发者ID:Nitsuj83,项目名称:chummer5a,代码行数:8,代码来源:SkillGroupControl.cs


示例11: frmNaturalWeapon

 public frmNaturalWeapon(Character objCharacter)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
     _objCharacter = objCharacter;
     _objXmlPowersDocument = XmlManager.Instance.Load("critterpowers.xml");
     _objXmlSkillsDocument = XmlManager.Instance.Load("skills.xml");
     MoveControls();
 }
开发者ID:Nitsuj83,项目名称:chummer5a,代码行数:9,代码来源:frmNaturalWeapon.cs


示例12: frmSelectNexus

 public frmSelectNexus(Character objCharacter, bool blnCareer = false)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
     _objCharacter = objCharacter;
     _objGear = new Gear(objCharacter);
     chkFreeItem.Visible = blnCareer;
     MoveControls();
 }
开发者ID:Nitsuj83,项目名称:chummer5a,代码行数:9,代码来源:frmSelectNexus.cs


示例13: frmSelectCyberware

 public frmSelectCyberware(Character objCharacter, bool blnCareer = false)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
     chkFree.Visible = blnCareer;
     _blnCareer = blnCareer;
     _objCharacter = objCharacter;
     MoveControls();
 }
开发者ID:argo2445,项目名称:chummer5a,代码行数:9,代码来源:frmSelectCyberware.cs


示例14: frmCareer

        public frmCareer(Character objCharacter)
        {
            _objCharacter = objCharacter;
            _objOptions = _objCharacter.Options;

            _objFunctions = new CommonFunctions(_objCharacter);
            _objFunctions.ContextMenuArmor = cmsArmor;
            _objFunctions.ContextMenuArmorMod = cmsArmorMod;
            _objFunctions.ContextMenuCyberware = cmsCyberware;
            _objFunctions.ContextMenuGear = cmsGear;
            _objFunctions.ContextMenuVehicle = cmsVehicle;
            _objFunctions.ContextMenuVehicleMod = cmsVehicle;
            _objFunctions.ContextMenuWeapon = cmsWeapon;
            _objFunctions.ContextMenuWeaponAccessory = cmsWeaponAccessoryGear;
            _objFunctions.ContextMenuWeaponMod = cmsWeaponMod;

            _objImprovementManager = new ImprovementManager(_objCharacter);
            _objController = new MainController(_objCharacter);
            InitializeComponent();

            // Add EventHandlers for the MAG and RES enabled events and tab enabled events.
            _objCharacter.MAGEnabledChanged += objCharacter_MAGEnabledChanged;
            _objCharacter.RESEnabledChanged += objCharacter_RESEnabledChanged;
            _objCharacter.AdeptTabEnabledChanged += objCharacter_AdeptTabEnabledChanged;
            _objCharacter.MagicianTabEnabledChanged += objCharacter_MagicianTabEnabledChanged;
            _objCharacter.TechnomancerTabEnabledChanged += objCharacter_TechnomancerTabEnabledChanged;
            _objCharacter.CritterTabEnabledChanged += objCharacter_CritterTabEnabledChanged;
            _objCharacter.BlackMarketEnabledChanged += objCharacter_BlackMarketChanged;
            _objCharacter.SensitiveSystemChanged += objCharacter_SensitiveSystemChanged;
            _objCharacter.UneducatedChanged += objCharacter_UneducatedChanged;
            _objCharacter.UncouthChanged += objCharacter_UncouthChanged;
            _objCharacter.InfirmChanged += objCharacter_InfirmChanged;
            GlobalOptions.Instance.MRUChanged += PopulateMRU;

            LanguageManager.Instance.Load(this);

            // Update the text in the Menus so they can be merged with frmMain properly.
            foreach (ToolStripMenuItem objItem in mnuCreateMenu.Items.OfType<ToolStripMenuItem>())
            {
                if (objItem.Tag != null)
                {
                    objItem.Text = LanguageManager.Instance.GetString(objItem.Tag.ToString());
                }
            }

            _lvwKarmaColumnSorter = new ListViewColumnSorter();
            _lvwKarmaColumnSorter.SortColumn = 0;
            _lvwKarmaColumnSorter.Order = SortOrder.Descending;
            lstKarma.ListViewItemSorter = _lvwKarmaColumnSorter;
            _lvwNuyenColumnSorter = new ListViewColumnSorter();
            _lvwNuyenColumnSorter.SortColumn = 0;
            _lvwNuyenColumnSorter.Order = SortOrder.Descending;
            lstNuyen.ListViewItemSorter = _lvwNuyenColumnSorter;

            SetTooltips();
            MoveControls();
        }
开发者ID:janhelke,项目名称:chummer2,代码行数:57,代码来源:frmCareer.cs


示例15: frmCreateSpell

		public frmCreateSpell(Character objCharacter)
		{
			_objCharacter = objCharacter;
			_objSpell = new Spell(_objCharacter);
			InitializeComponent();
			LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
			_objXmlDocument = XmlManager.Instance.Load("spells.xml");
			MoveControls();
		}
开发者ID:AMDX9,项目名称:chummer5a,代码行数:9,代码来源:frmCreateSpell.cs


示例16: frmSelectMetamagic

		public frmSelectMetamagic(Character objCharacter)
		{
			InitializeComponent();
			LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
			_objCharacter = objCharacter;

			_objMetatypeDocument = XmlManager.Instance.Load("metatypes.xml");
			_objCritterDocument = XmlManager.Instance.Load("critters.xml");
			_objQualityDocument = XmlManager.Instance.Load("qualities.xml");
		}
开发者ID:AMDX9,项目名称:chummer5a,代码行数:10,代码来源:frmSelectMetamagic.cs


示例17: frmSelectBP

        public frmSelectBP(Character objCharacter, bool blnUseCurrentValues = false)
        {
            _objCharacter = objCharacter;
            _objOptions = _objCharacter.Options;
            _blnUseCurrentValues = blnUseCurrentValues;
            InitializeComponent();
            LanguageManager.Instance.Load(this);

            // Populate the Build Method list.
            List<ListItem> lstBuildMethod = new List<ListItem>();
            //ListItem objBP = new ListItem();
            //objBP.Value = "BP";
            //objBP.Name = LanguageManager.Instance.GetString("String_BP");

            //ListItem objKarma = new ListItem();
            //objKarma.Value = "Karma";
            //objKarma.Name = LanguageManager.Instance.GetString("String_Karma");

            ListItem objPriority = new ListItem();
            objPriority.Value = "Priority";
            objPriority.Name = LanguageManager.Instance.GetString("String_Priority");

            //lstBuildMethod.Add(objBP);
            //lstBuildMethod.Add(objKarma);
            lstBuildMethod.Add(objPriority);
            cboBuildMethod.DataSource = lstBuildMethod;
            cboBuildMethod.ValueMember = "Value";
            cboBuildMethod.DisplayMember = "Name";

            cboBuildMethod.SelectedValue = _objOptions.BuildMethod;
            nudBP.Value = _objOptions.BuildPoints;
            nudMaxAvail.Value = _objOptions.Availability;

            toolTip1.SetToolTip(chkIgnoreRules, LanguageManager.Instance.GetString("Tip_SelectBP_IgnoreRules"));

            if (blnUseCurrentValues)
            {
                //if (objCharacter.BuildMethod == CharacterBuildMethod.Karma)
                //{
                //    cboBuildMethod.SelectedValue = "Karma";
                //    nudBP.Value = objCharacter.BuildKarma;
                //}
                //else if (objCharacter.BuildMethod == CharacterBuildMethod.BP)
                //{
                //    cboBuildMethod.SelectedValue = "BP";
                //    nudBP.Value = objCharacter.BuildPoints;
                //}
                cboBuildMethod.SelectedValue = "Priority";
                nudBP.Value = objCharacter.BuildKarma;

                nudMaxAvail.Value = objCharacter.MaximumAvailability;

                cboBuildMethod.Enabled = false;
            }
        }
开发者ID:janhelke,项目名称:chummer2,代码行数:55,代码来源:frmSelectBP.cs


示例18: frmSelectWeaponAccessory

 public frmSelectWeaponAccessory(Character objCharacter, bool blnCareer = false)
 {
     InitializeComponent();
     LanguageManager.Instance.Load(this);
     chkFreeItem.Visible = blnCareer;
     lblMarkupLabel.Visible = blnCareer;
     nudMarkup.Visible = blnCareer;
     lblMarkupPercentLabel.Visible = blnCareer;
     _objCharacter = objCharacter;
     MoveControls();
 }
开发者ID:janhelke,项目名称:chummer2,代码行数:11,代码来源:frmSelectWeaponAccessory.cs


示例19: frmSelectLifestyleQuality

        public frmSelectLifestyleQuality(Character objCharacter)
        {
            InitializeComponent();
            LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
            _objCharacter = objCharacter;

            _objMetatypeDocument = XmlManager.Instance.Load("metatypes.xml");
            _objCritterDocument = XmlManager.Instance.Load("critters.xml");

            MoveControls();
        }
开发者ID:Seredith,项目名称:chummer5a,代码行数:11,代码来源:frmSelectLifestyleQuality.cs


示例20: frmSelectArt

        public frmSelectArt(Character objCharacter)
        {
            InitializeComponent();
            LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
            _objCharacter = objCharacter;

            _objMetamagicDocument = XmlManager.Instance.Load("metamagic.xml");
            _objSpellDocument = XmlManager.Instance.Load("spells.xml");
            _objPowerDocument = XmlManager.Instance.Load("powers.xml");
            _objQualityDocument = XmlManager.Instance.Load("qualities.xml");
        }
开发者ID:Vanatrix,项目名称:chummer5a,代码行数:11,代码来源:frmSelectArt.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Chummer.CommonFunctions类代码示例发布时间:2022-05-24
下一篇:
C# Remote.RemoteConnection类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap