本文整理汇总了C#中PlayerInfo.UpdateAll方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerInfo.UpdateAll方法的具体用法?C# PlayerInfo.UpdateAll怎么用?C# PlayerInfo.UpdateAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayerInfo
的用法示例。
在下文中一共展示了PlayerInfo.UpdateAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MaidFiddlerGUI
public MaidFiddlerGUI(MaidFiddler plugin)
{
Plugin = plugin;
InitializeComponent();
Font uiFont = new Font(FontFamily.GenericSansSerif, 8.25F);
Font = uiFont;
foreach (Control control in Controls)
{
control.Font = uiFont;
}
if(!plugin.CFGOpenOnStartup)
Opacity = 0.0;
Text = $"CM3D2 Maid Fiddler {MaidFiddler.VERSION}";
Translation.AddTranslationAction("TITLE_TEXT", s => Text = $"CM3D2 Maid Fiddler {MaidFiddler.VERSION} {s}");
try
{
Player = new PlayerInfo(this);
removeValueLimit = false;
Resources.InitThumbnail();
InitMenuText();
InitMaidInfoTab();
InitMaidStatsTab();
InitClassesTab();
InitWorkTab();
InitYotogiSkillTab();
InitMiscTab();
InitGameTab();
ControlsEnabled = false;
Player.UpdateAll();
InitMaids();
playerValueUpdateQueue = new Dictionary<PlayerChangeType, Action>();
Shown += OnShown;
FormClosing += OnFormClosing;
VisibleChanged += OnVisibleChanged;
listBox1.DrawMode = DrawMode.OwnerDrawFixed;
listBox1.DrawItem += DrawListBox;
listBox1.SelectedValueChanged += OnSelectedValueChanged;
InitHookCallbacks();
Translation.ApplyTranslation();
}
catch (Exception e)
{
FiddlerUtils.ThrowErrorMessage(e, "Failed to initalize core components", plugin);
}
}
示例2: MaidFiddlerGUI
public MaidFiddlerGUI()
{
InitializeComponent();
Text = $"CM3D2 Maid Fiddler {MaidFiddler.VERSION} {Resources.GetFieldText("TITLE_TEXT")}";
try
{
Player = new PlayerInfo(this);
removeValueLimit = false;
InitMenuText();
InitMaidInfoTab();
InitMaidStatsTab();
InitClassesTab();
InitWorkTab();
InitYotogiSkillTab();
InitMiscTab();
InitGameTab();
ControlsEnabled = false;
Player.UpdateAll();
InitMaids();
playerValueUpdateQueue = new Dictionary<PlayerChangeType, Action>();
FormClosing += OnFormClosing;
VisibleChanged += OnVisibleChanged;
listBox1.DrawMode = DrawMode.OwnerDrawFixed;
listBox1.DrawItem += DrawListBox;
listBox1.SelectedValueChanged += OnSelectedValueChanged;
InitHookCallbacks();
}
catch (Exception e)
{
ErrorLog.ThrowErrorMessage(e, "Failed to initalize core components");
}
}