本文整理汇总了C#中Chummer.Character类的典型用法代码示例。如果您正苦于以下问题:C# Character类的具体用法?C# Character怎么用?C# Character使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Character类属于Chummer命名空间,在下文中一共展示了Character类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SkillControl
public SkillControl(Character _objCharacter)
{
InitializeComponent();
LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
this._objCharacter = _objCharacter;
}
示例2: frmSelectCritterPower
public frmSelectCritterPower(Character objCharacter)
{
InitializeComponent();
LanguageManager.Instance.Load(this);
_objCharacter = objCharacter;
MoveControls();
}
示例3: frmCreatePACKSKit
public frmCreatePACKSKit(Character objCharacter)
{
InitializeComponent();
LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
_objCharacter = objCharacter;
MoveControls();
}
示例4: frmCreateImprovement
public frmCreateImprovement(Character objCharacter)
{
InitializeComponent();
LanguageManager.Instance.Load(this);
_objCharacter = objCharacter;
MoveControls();
}
示例5: frmSelectProgram
public frmSelectProgram(Character objCharacter)
{
InitializeComponent();
LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
_objCharacter = objCharacter;
MoveControls();
}
示例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);
}
示例7: frmSelectLifeModule
public frmSelectLifeModule(Character objCharacter, int stage)
{
InitializeComponent();
LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
_objCharacter = objCharacter;
_intStage = stage;
MoveControls();
}
示例8: frmSelectLifestyleAdvanced
public frmSelectLifestyleAdvanced(Lifestyle objLifestyle, Character objCharacter)
{
InitializeComponent();
LanguageManager.Instance.Load(GlobalOptions.Instance.Language, this);
_objCharacter = objCharacter;
_objLifestyle = objLifestyle;
MoveControls();
}
示例9: frmSelectAdvancedLifestyle
public frmSelectAdvancedLifestyle(Lifestyle objLifestyle, Character objCharacter)
{
InitializeComponent();
LanguageManager.Instance.Load(this);
_objCharacter = objCharacter;
_objLifestyle = objLifestyle;
MoveControls();
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}