Add remote resource support to DEBUG tools

This commit is contained in:
jie65535 committed 2026-11-05 22:40:13 +08:00
1 parent 240a64e47f
commit d90cb70241
7 files changed
+767 -172

No files matched your search

+154 -59
View File
@@ -1,4 +1,4 @@
namespace GrasscutterTools.Pages
namespace GrasscutterTools.Pages
{
partial class PageTools
{
@@ -28,100 +28,187 @@
/// </summary>
private void InitializeComponent()
{
this.BtnUpdateResources = new System.Windows.Forms.Button();
this.LblProjectResRoot = new System.Windows.Forms.Label();
this.TxtProjectResRoot = new System.Windows.Forms.TextBox();
this.LblGcResRoot = new System.Windows.Forms.Label();
this.TxtGcResRoot = new System.Windows.Forms.TextBox();
this.LblResourceSource = new System.Windows.Forms.Label();
this.CmbResourceSource = new System.Windows.Forms.ComboBox();
this.LblRemoteRepository = new System.Windows.Forms.Label();
this.TxtRemoteRepository = new System.Windows.Forms.TextBox();
this.LblRemoteBranch = new System.Windows.Forms.Label();
this.TxtRemoteBranch = new System.Windows.Forms.TextBox();
this.LblRemoteToken = new System.Windows.Forms.Label();
this.TxtRemoteToken = new System.Windows.Forms.TextBox();
this.BtnGenerateToken = new System.Windows.Forms.Button();
this.BtnUpdateAllResources = new System.Windows.Forms.Button();
this.BtnUpdateActivity = new System.Windows.Forms.Button();
this.BtnUpdateBannerTitles = new System.Windows.Forms.Button();
this.PrgUpdateResources = new System.Windows.Forms.ProgressBar();
this.LblUpdateProgress = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// BtnUpdateResources
//
this.BtnUpdateResources.Location = new System.Drawing.Point(41, 195);
this.BtnUpdateResources.Name = "BtnUpdateResources";
this.BtnUpdateResources.Size = new System.Drawing.Size(100, 30);
this.BtnUpdateResources.TabIndex = 0;
this.BtnUpdateResources.Text = "Update res";
this.BtnUpdateResources.UseVisualStyleBackColor = true;
this.BtnUpdateResources.Click += new System.EventHandler(this.BtnUpdateResources_Click);
//
//
// LblProjectResRoot
//
//
this.LblProjectResRoot.AutoSize = true;
this.LblProjectResRoot.Location = new System.Drawing.Point(38, 34);
this.LblProjectResRoot.Location = new System.Drawing.Point(38, 12);
this.LblProjectResRoot.Name = "LblProjectResRoot";
this.LblProjectResRoot.Size = new System.Drawing.Size(141, 17);
this.LblProjectResRoot.TabIndex = 1;
this.LblProjectResRoot.Text = "项目 Resources/ 路径:";
//
//
// TxtProjectResRoot
//
this.TxtProjectResRoot.Location = new System.Drawing.Point(185, 31);
//
this.TxtProjectResRoot.Location = new System.Drawing.Point(185, 9);
this.TxtProjectResRoot.Name = "TxtProjectResRoot";
this.TxtProjectResRoot.Size = new System.Drawing.Size(413, 23);
this.TxtProjectResRoot.TabIndex = 2;
//
//
// LblGcResRoot
//
//
this.LblGcResRoot.AutoSize = true;
this.LblGcResRoot.Location = new System.Drawing.Point(44, 63);
this.LblGcResRoot.Location = new System.Drawing.Point(38, 68);
this.LblGcResRoot.Name = "LblGcResRoot";
this.LblGcResRoot.Size = new System.Drawing.Size(135, 17);
this.LblGcResRoot.TabIndex = 3;
this.LblGcResRoot.Text = "GC_Resources/ 路径:";
//
this.LblGcResRoot.Text = "本地 GC_Resources/:";
//
// TxtGcResRoot
//
this.TxtGcResRoot.Location = new System.Drawing.Point(185, 60);
//
this.TxtGcResRoot.Location = new System.Drawing.Point(185, 65);
this.TxtGcResRoot.Name = "TxtGcResRoot";
this.TxtGcResRoot.Size = new System.Drawing.Size(413, 23);
this.TxtGcResRoot.TabIndex = 4;
//
//
// LblResourceSource
//
this.LblResourceSource.AutoSize = true;
this.LblResourceSource.Location = new System.Drawing.Point(38, 40);
this.LblResourceSource.Name = "LblResourceSource";
this.LblResourceSource.Size = new System.Drawing.Size(141, 17);
this.LblResourceSource.TabIndex = 5;
this.LblResourceSource.Text = "GC_Resources 来源:";
//
// CmbResourceSource
//
this.CmbResourceSource.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CmbResourceSource.FormattingEnabled = true;
this.CmbResourceSource.Items.AddRange(new object[] {
"本地目录",
"远程 GitLab 仓库"});
this.CmbResourceSource.Location = new System.Drawing.Point(185, 37);
this.CmbResourceSource.Name = "CmbResourceSource";
this.CmbResourceSource.Size = new System.Drawing.Size(200, 25);
this.CmbResourceSource.TabIndex = 6;
this.CmbResourceSource.SelectedIndexChanged += new System.EventHandler(this.CmbResourceSource_SelectedIndexChanged);
//
// LblRemoteRepository
//
this.LblRemoteRepository.AutoSize = true;
this.LblRemoteRepository.Location = new System.Drawing.Point(38, 96);
this.LblRemoteRepository.Name = "LblRemoteRepository";
this.LblRemoteRepository.Size = new System.Drawing.Size(141, 17);
this.LblRemoteRepository.TabIndex = 7;
this.LblRemoteRepository.Text = "远程仓库地址:";
//
// TxtRemoteRepository
//
this.TxtRemoteRepository.Location = new System.Drawing.Point(185, 93);
this.TxtRemoteRepository.Name = "TxtRemoteRepository";
this.TxtRemoteRepository.Size = new System.Drawing.Size(413, 23);
this.TxtRemoteRepository.TabIndex = 8;
//
// LblRemoteBranch
//
this.LblRemoteBranch.AutoSize = true;
this.LblRemoteBranch.Location = new System.Drawing.Point(38, 125);
this.LblRemoteBranch.Name = "LblRemoteBranch";
this.LblRemoteBranch.Size = new System.Drawing.Size(141, 17);
this.LblRemoteBranch.TabIndex = 9;
this.LblRemoteBranch.Text = "远程分支:";
//
// TxtRemoteBranch
//
this.TxtRemoteBranch.Location = new System.Drawing.Point(185, 122);
this.TxtRemoteBranch.Name = "TxtRemoteBranch";
this.TxtRemoteBranch.Size = new System.Drawing.Size(200, 23);
this.TxtRemoteBranch.TabIndex = 10;
//
// LblRemoteToken
//
this.LblRemoteToken.AutoSize = true;
this.LblRemoteToken.Location = new System.Drawing.Point(38, 154);
this.LblRemoteToken.Name = "LblRemoteToken";
this.LblRemoteToken.Size = new System.Drawing.Size(141, 17);
this.LblRemoteToken.TabIndex = 11;
this.LblRemoteToken.Text = "GitLab Token:";
//
// TxtRemoteToken
//
this.TxtRemoteToken.Location = new System.Drawing.Point(185, 151);
this.TxtRemoteToken.Name = "TxtRemoteToken";
this.TxtRemoteToken.PasswordChar = '*';
this.TxtRemoteToken.Size = new System.Drawing.Size(310, 23);
this.TxtRemoteToken.TabIndex = 12;
//
// BtnGenerateToken
//
this.BtnGenerateToken.Location = new System.Drawing.Point(501, 149);
this.BtnGenerateToken.Name = "BtnGenerateToken";
this.BtnGenerateToken.Size = new System.Drawing.Size(97, 27);
this.BtnGenerateToken.TabIndex = 13;
this.BtnGenerateToken.Text = "生成 Token";
this.BtnGenerateToken.UseVisualStyleBackColor = true;
this.BtnGenerateToken.Click += new System.EventHandler(this.BtnGenerateToken_Click);
//
// BtnUpdateAllResources
//
this.BtnUpdateAllResources.Location = new System.Drawing.Point(41, 100);
//
this.BtnUpdateAllResources.Location = new System.Drawing.Point(41, 190);
this.BtnUpdateAllResources.Name = "BtnUpdateAllResources";
this.BtnUpdateAllResources.Size = new System.Drawing.Size(150, 30);
this.BtnUpdateAllResources.Size = new System.Drawing.Size(180, 30);
this.BtnUpdateAllResources.TabIndex = 0;
this.BtnUpdateAllResources.Text = "Update All Resources";
this.BtnUpdateAllResources.UseVisualStyleBackColor = true;
this.BtnUpdateAllResources.Click += new System.EventHandler(this.BtnUpdateAllResources_Click);
//
// BtnUpdateActivity
//
this.BtnUpdateActivity.Location = new System.Drawing.Point(197, 100);
this.BtnUpdateActivity.Name = "BtnUpdateActivity";
this.BtnUpdateActivity.Size = new System.Drawing.Size(150, 30);
this.BtnUpdateActivity.TabIndex = 0;
this.BtnUpdateActivity.Text = "Update Activity";
this.BtnUpdateActivity.UseVisualStyleBackColor = true;
this.BtnUpdateActivity.Click += new System.EventHandler(this.BtnUpdateActivity_Click);
//
// BtnUpdateBannerTitles
//
this.BtnUpdateBannerTitles.Location = new System.Drawing.Point(353, 100);
this.BtnUpdateBannerTitles.Name = "BtnUpdateBannerTitles";
this.BtnUpdateBannerTitles.Size = new System.Drawing.Size(150, 30);
this.BtnUpdateBannerTitles.TabIndex = 0;
this.BtnUpdateBannerTitles.Text = "Update Banner Titles";
this.BtnUpdateBannerTitles.UseVisualStyleBackColor = true;
this.BtnUpdateBannerTitles.Click += new System.EventHandler(this.BtnUpdateBannerTitles_Click);
//
//
// PrgUpdateResources
//
this.PrgUpdateResources.Location = new System.Drawing.Point(235, 195);
this.PrgUpdateResources.Name = "PrgUpdateResources";
this.PrgUpdateResources.Size = new System.Drawing.Size(363, 20);
this.PrgUpdateResources.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
this.PrgUpdateResources.TabIndex = 14;
this.PrgUpdateResources.Visible = false;
//
// LblUpdateProgress
//
this.LblUpdateProgress.AutoEllipsis = true;
this.LblUpdateProgress.AutoSize = false;
this.LblUpdateProgress.Location = new System.Drawing.Point(235, 218);
this.LblUpdateProgress.Name = "LblUpdateProgress";
this.LblUpdateProgress.Size = new System.Drawing.Size(363, 17);
this.LblUpdateProgress.TabIndex = 15;
this.LblUpdateProgress.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.LblUpdateProgress.Visible = false;
//
// PageTools
//
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.BtnGenerateToken);
this.Controls.Add(this.TxtRemoteToken);
this.Controls.Add(this.LblRemoteToken);
this.Controls.Add(this.TxtRemoteBranch);
this.Controls.Add(this.LblRemoteBranch);
this.Controls.Add(this.TxtRemoteRepository);
this.Controls.Add(this.LblRemoteRepository);
this.Controls.Add(this.CmbResourceSource);
this.Controls.Add(this.LblResourceSource);
this.Controls.Add(this.TxtGcResRoot);
this.Controls.Add(this.LblGcResRoot);
this.Controls.Add(this.TxtProjectResRoot);
this.Controls.Add(this.LblProjectResRoot);
this.Controls.Add(this.BtnUpdateBannerTitles);
this.Controls.Add(this.BtnUpdateActivity);
this.Controls.Add(this.BtnUpdateAllResources);
this.Controls.Add(this.BtnUpdateResources);
this.Controls.Add(this.LblUpdateProgress);
this.Controls.Add(this.PrgUpdateResources);
this.Name = "PageTools";
this.ResumeLayout(false);
this.PerformLayout();
@@ -130,13 +217,21 @@
#endregion
private System.Windows.Forms.Button BtnUpdateResources;
private System.Windows.Forms.Label LblProjectResRoot;
private System.Windows.Forms.TextBox TxtProjectResRoot;
private System.Windows.Forms.Label LblGcResRoot;
private System.Windows.Forms.TextBox TxtGcResRoot;
private System.Windows.Forms.Label LblResourceSource;
private System.Windows.Forms.ComboBox CmbResourceSource;
private System.Windows.Forms.Label LblRemoteRepository;
private System.Windows.Forms.TextBox TxtRemoteRepository;
private System.Windows.Forms.Label LblRemoteBranch;
private System.Windows.Forms.TextBox TxtRemoteBranch;
private System.Windows.Forms.Label LblRemoteToken;
private System.Windows.Forms.TextBox TxtRemoteToken;
private System.Windows.Forms.Button BtnGenerateToken;
private System.Windows.Forms.Button BtnUpdateAllResources;
private System.Windows.Forms.Button BtnUpdateActivity;
private System.Windows.Forms.Button BtnUpdateBannerTitles;
private System.Windows.Forms.ProgressBar PrgUpdateResources;
private System.Windows.Forms.Label LblUpdateProgress;
}
}