mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-09 23:29:14 +08:00
Compare commits
No commits in common. "e6a2d2667135c2bef81a9e8dc02747e7f165d4a9" and "b37016a49cdb1f40b8ed8a13833ca4c64e74239e" have entirely different histories.
e6a2d26671
...
b37016a49c
@ -63,7 +63,6 @@ namespace GrasscutterTools.Forms
|
||||
this.ListPages.FormattingEnabled = true;
|
||||
this.ListPages.Name = "ListPages";
|
||||
this.ListPages.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ListPages_DrawItem);
|
||||
this.ListPages.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListPages_MeasureItem);
|
||||
this.ListPages.SelectedIndexChanged += new System.EventHandler(this.ListPages_SelectedIndexChanged);
|
||||
this.ListPages.SizeChanged += new System.EventHandler(this.ListPages_SizeChanged);
|
||||
//
|
||||
@ -117,7 +116,6 @@ namespace GrasscutterTools.Forms
|
||||
//
|
||||
// MenuSpawnEntityFilter
|
||||
//
|
||||
this.MenuSpawnEntityFilter.ImageScalingSize = new System.Drawing.Size(24, 24);
|
||||
this.MenuSpawnEntityFilter.Name = "MenuSpawnEntityFilter";
|
||||
resources.ApplyResources(this.MenuSpawnEntityFilter, "MenuSpawnEntityFilter");
|
||||
//
|
||||
|
@ -399,6 +399,8 @@ namespace GrasscutterTools.Forms
|
||||
/// <summary>
|
||||
/// 导航列表项居中绘制
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void ListPages_DrawItem(object sender, DrawItemEventArgs e)
|
||||
{
|
||||
e.DrawBackground();
|
||||
@ -411,15 +413,6 @@ namespace GrasscutterTools.Forms
|
||||
e.Graphics.DrawString(ListPages.Items[e.Index].ToString(), e.Font, new SolidBrush(e.ForeColor), e.Bounds, strFmt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导航列表高度测量
|
||||
/// </summary>
|
||||
private void ListPages_MeasureItem(object sender, MeasureItemEventArgs e)
|
||||
{
|
||||
// 列表项高度为字体高度1.5倍
|
||||
e.ItemHeight = ListPages.Font.Height * 3 / 2;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导航列表大小改变时触发
|
||||
/// </summary>
|
||||
|
@ -51,7 +51,6 @@
|
||||
this.ListAchievements.FormattingEnabled = true;
|
||||
this.ListAchievements.Name = "ListAchievements";
|
||||
this.ListAchievements.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
|
||||
this.ListAchievements.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListAchievements_MeasureItem);
|
||||
//
|
||||
// GrpAchievements
|
||||
//
|
||||
|
@ -110,9 +110,5 @@ namespace GrasscutterTools.Pages
|
||||
GenSelected("/achievement progress", NUDProgress.Text);
|
||||
}
|
||||
|
||||
private void ListAchievements_MeasureItem(object sender, MeasureItemEventArgs e)
|
||||
{
|
||||
e.ItemHeight = ListAchievements.Font.Height * 3 / 2;
|
||||
}
|
||||
}
|
||||
}
|
@ -154,7 +154,6 @@
|
||||
resources.ApplyResources(this.ListSubAttributionChecked, "ListSubAttributionChecked");
|
||||
this.ListSubAttributionChecked.FormattingEnabled = true;
|
||||
this.ListSubAttributionChecked.Name = "ListSubAttributionChecked";
|
||||
this.ListSubAttributionChecked.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListSubAttributionChecked_MeasureItem);
|
||||
this.ListSubAttributionChecked.SelectedIndexChanged += new System.EventHandler(this.ListSubAttributionChecked_SelectedIndexChanged);
|
||||
//
|
||||
// LblArtifactLevel
|
||||
|
@ -265,10 +265,5 @@ namespace GrasscutterTools.Pages
|
||||
{
|
||||
UIUtil.OpenURL("https://github.com/Penelopeep/CharacterBuilder");
|
||||
}
|
||||
|
||||
private void ListSubAttributionChecked_MeasureItem(object sender, MeasureItemEventArgs e)
|
||||
{
|
||||
e.ItemHeight = ListSubAttributionChecked.Font.Height * 3 / 2;
|
||||
}
|
||||
}
|
||||
}
|
@ -104,7 +104,6 @@
|
||||
resources.ApplyResources(this.ListGameItems, "ListGameItems");
|
||||
this.ListGameItems.FormattingEnabled = true;
|
||||
this.ListGameItems.Name = "ListGameItems";
|
||||
this.ListGameItems.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListGameItems_MeasureItem);
|
||||
this.ListGameItems.SelectedIndexChanged += new System.EventHandler(this.GiveItemsInputChanged);
|
||||
//
|
||||
// LblGameItemAmount
|
||||
@ -173,7 +172,6 @@
|
||||
//
|
||||
// MenuItemFilter
|
||||
//
|
||||
this.MenuItemFilter.ImageScalingSize = new System.Drawing.Size(24, 24);
|
||||
this.MenuItemFilter.Name = "MenuSpawnEntityFilter";
|
||||
resources.ApplyResources(this.MenuItemFilter, "MenuItemFilter");
|
||||
//
|
||||
|
@ -250,9 +250,5 @@ namespace GrasscutterTools.Pages
|
||||
|
||||
#endregion -- 物品记录 --
|
||||
|
||||
private void ListGameItems_MeasureItem(object sender, MeasureItemEventArgs e)
|
||||
{
|
||||
e.ItemHeight = ListGameItems.Font.Height * 3 / 2;
|
||||
}
|
||||
}
|
||||
}
|
@ -141,7 +141,6 @@
|
||||
resources.ApplyResources(this.ListWeapons, "ListWeapons");
|
||||
this.ListWeapons.FormattingEnabled = true;
|
||||
this.ListWeapons.Name = "ListWeapons";
|
||||
this.ListWeapons.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListWeapons_MeasureItem);
|
||||
this.ListWeapons.SelectedIndexChanged += new System.EventHandler(this.WeaponValueChanged);
|
||||
//
|
||||
// LblClearFilter
|
||||
|
@ -82,10 +82,5 @@ namespace GrasscutterTools.Pages
|
||||
{
|
||||
SetCommand("/give", $"weapons x{NUDWeaponAmout.Value} lv{NUDWeaponLevel.Value} r{NUDWeaponRefinement.Value}");
|
||||
}
|
||||
|
||||
private void ListWeapons_MeasureItem(object sender, System.Windows.Forms.MeasureItemEventArgs e)
|
||||
{
|
||||
e.ItemHeight = ListWeapons.Font.Height * 3 / 2;
|
||||
}
|
||||
}
|
||||
}
|
19
Source/GrasscutterTools/Pages/PageMail.Designer.cs
generated
19
Source/GrasscutterTools/Pages/PageMail.Designer.cs
generated
@ -34,7 +34,6 @@
|
||||
this.BtnDeleteMailItem = new System.Windows.Forms.Button();
|
||||
this.TCMailRight = new System.Windows.Forms.TabControl();
|
||||
this.TPMailSelectableItemList = new System.Windows.Forms.TabPage();
|
||||
this.LblClearFilter = new System.Windows.Forms.Label();
|
||||
this.ListMailSelectableItems = new System.Windows.Forms.ListBox();
|
||||
this.TxtMailSelectableItemFilter = new System.Windows.Forms.TextBox();
|
||||
this.PanelMailItemArgs = new System.Windows.Forms.Panel();
|
||||
@ -60,6 +59,7 @@
|
||||
this.LblMailTitleLabel = new System.Windows.Forms.Label();
|
||||
this.TxtMailSender = new System.Windows.Forms.TextBox();
|
||||
this.LblMailSenderLabel = new System.Windows.Forms.Label();
|
||||
this.LblClearFilter = new System.Windows.Forms.Label();
|
||||
this.TCMailRight.SuspendLayout();
|
||||
this.TPMailSelectableItemList.SuspendLayout();
|
||||
this.PanelMailItemArgs.SuspendLayout();
|
||||
@ -109,14 +109,6 @@
|
||||
this.TPMailSelectableItemList.Name = "TPMailSelectableItemList";
|
||||
this.TPMailSelectableItemList.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// LblClearFilter
|
||||
//
|
||||
resources.ApplyResources(this.LblClearFilter, "LblClearFilter");
|
||||
this.LblClearFilter.BackColor = System.Drawing.Color.White;
|
||||
this.LblClearFilter.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblClearFilter.Name = "LblClearFilter";
|
||||
this.LblClearFilter.Click += new System.EventHandler(this.LblClearFilter_Click);
|
||||
//
|
||||
// ListMailSelectableItems
|
||||
//
|
||||
resources.ApplyResources(this.ListMailSelectableItems, "ListMailSelectableItems");
|
||||
@ -236,7 +228,6 @@
|
||||
resources.ApplyResources(this.ListMailItems, "ListMailItems");
|
||||
this.ListMailItems.FormattingEnabled = true;
|
||||
this.ListMailItems.Name = "ListMailItems";
|
||||
this.ListMailItems.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListMailItems_MeasureItem);
|
||||
//
|
||||
// LblMailItemsLabel
|
||||
//
|
||||
@ -307,6 +298,14 @@
|
||||
resources.ApplyResources(this.LblMailSenderLabel, "LblMailSenderLabel");
|
||||
this.LblMailSenderLabel.Name = "LblMailSenderLabel";
|
||||
//
|
||||
// LblClearFilter
|
||||
//
|
||||
resources.ApplyResources(this.LblClearFilter, "LblClearFilter");
|
||||
this.LblClearFilter.BackColor = System.Drawing.Color.White;
|
||||
this.LblClearFilter.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.LblClearFilter.Name = "LblClearFilter";
|
||||
this.LblClearFilter.Click += new System.EventHandler(this.LblClearFilter_Click);
|
||||
//
|
||||
// PageMail
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
|
@ -299,9 +299,5 @@ namespace GrasscutterTools.Pages
|
||||
|
||||
#endregion -- 邮件列表 Mail list --
|
||||
|
||||
private void ListMailItems_MeasureItem(object sender, MeasureItemEventArgs e)
|
||||
{
|
||||
e.ItemHeight = ListMailItems.Font.Height * 3 / 2;
|
||||
}
|
||||
}
|
||||
}
|
@ -108,7 +108,6 @@
|
||||
resources.ApplyResources(this.ListQuest, "ListQuest");
|
||||
this.ListQuest.FormattingEnabled = true;
|
||||
this.ListQuest.Name = "ListQuest";
|
||||
this.ListQuest.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListQuest_MeasureItem);
|
||||
this.ListQuest.SelectedIndexChanged += new System.EventHandler(this.ListQuest_SelectedIndexChanged);
|
||||
//
|
||||
// LblClearFilter
|
||||
|
@ -98,10 +98,5 @@ namespace GrasscutterTools.Pages
|
||||
var id = ItemMap.ToId(item);
|
||||
SetCommand($"/quest add {id} | /quest finish {id}");
|
||||
}
|
||||
|
||||
private void ListQuest_MeasureItem(object sender, MeasureItemEventArgs e)
|
||||
{
|
||||
e.ItemHeight = ListQuest.Font.Height * 3 / 2;
|
||||
}
|
||||
}
|
||||
}
|
@ -176,7 +176,6 @@
|
||||
resources.ApplyResources(this.ListScenes, "ListScenes");
|
||||
this.ListScenes.FormattingEnabled = true;
|
||||
this.ListScenes.Name = "ListScenes";
|
||||
this.ListScenes.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.ListScenes_MeasureItem);
|
||||
this.ListScenes.SelectedIndexChanged += new System.EventHandler(this.ListScenes_SelectedIndexChanged);
|
||||
//
|
||||
// LblTp
|
||||
|
@ -155,10 +155,5 @@ namespace GrasscutterTools.Pages
|
||||
{
|
||||
SetCommand("/prop", "is_game_time_locked on");
|
||||
}
|
||||
|
||||
private void ListScenes_MeasureItem(object sender, System.Windows.Forms.MeasureItemEventArgs e)
|
||||
{
|
||||
e.ItemHeight = ListScenes.Font.Height * 3 / 2;
|
||||
}
|
||||
}
|
||||
}
|
@ -59,7 +59,6 @@ namespace GrasscutterTools.Pages
|
||||
CmbGcVersions.SelectedIndexChanged += (o, e) => CommandVersion.Current = CommandVersion.List[CmbGcVersions.SelectedIndex];
|
||||
CommandVersion.VersionChanged += (o, e) => Settings.Default.CommandVersion = CommandVersion.Current.ToString(3);
|
||||
|
||||
ChkListPages.ItemHeight = ChkListPages.Font.Height * 3 / 2;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user