This commit is contained in:
miku-666
2023-07-07 21:53:40 +02:00
9 changed files with 702 additions and 3492 deletions

View File

@@ -17,11 +17,11 @@ namespace PckStudio.Popups
public AddFilePrompt(string initialText) : this(initialText, -1)
{ }
public AddFilePrompt(string initialText, int maxChar)
public AddFilePrompt(string initialText, int maxPathLength)
{
InitializeComponent();
InputTextBox.Text = initialText;
InputTextBox.MaxLength = maxChar < 0 ? short.MaxValue : maxChar;
InputTextBox.MaxLength = maxPathLength < 0 ? short.MaxValue : maxPathLength;
}
private void OKBtn_Click(object sender, EventArgs e)

View File

@@ -11,7 +11,7 @@ using PckStudio.Properties;
using PckStudio.Extensions;
using System.Globalization;
using System.ComponentModel;
using PckStudio.Internals;
using PckStudio.Internal;
namespace PckStudio
{

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using PckStudio.Properties;
namespace PckStudio.Internals
namespace PckStudio.Internal
{
internal static class SettingsManager
{

View File

@@ -30,6 +30,7 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.logoPictureBox = new System.Windows.Forms.PictureBox();
this.contextMenuPCKEntries = new System.Windows.Forms.ContextMenuStrip(this.components);
this.createToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.folderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -83,7 +84,7 @@
this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.closeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.advancedMetaAddingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.quickChangeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.convertToBedrockToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.miscToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.addCustomPackImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -91,30 +92,32 @@
this.convertMusicFilesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.wavBinkaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.binkaWavToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.storeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openPckCenterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.joinDevelopmentDiscordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.trelloBoardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.programInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.binkaConversionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.videosToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howToMakeABasicSkinPackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howToMakeACustomSkinModelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howToMakeCustomSkinModelsbedrockToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howToMakeCustomMusicToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howToInstallPcksDirectlyToWiiUToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pCKCenterReleaseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pckCenterReleaseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.howPCKsWorkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.installationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fAQToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.donateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toNobledezJackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toPhoenixARCDeveloperToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.forMattNLContributorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.installationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fAQToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.preferencesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.administrativeToolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.storeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.openPckCenterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.joinDevelopmentDiscordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.trelloBoardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.settingsToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuMetaTree = new System.Windows.Forms.ContextMenuStrip(this.components);
this.addEntryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.addEntryToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
@@ -123,12 +126,16 @@
this.addMultipleEntriesToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.deleteEntryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.editAllEntriesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.editorTab = new MetroFramework.Controls.MetroTabPage();
this.label11 = new MetroFramework.Controls.MetroLabel();
this.LittleEndianCheckBox = new MetroFramework.Controls.MetroCheckBox();
this.tabControl = new PckStudio.Controls.CustomTabControl();
this.StartPage = new MetroFramework.Controls.MetroTabPage();
this.pckOpen = new System.Windows.Forms.PictureBox();
this.label5 = new MetroFramework.Controls.MetroLabel();
this.pckOpen = new System.Windows.Forms.PictureBox();
this.labelVersion = new MetroFramework.Controls.MetroLabel();
this.ChangelogRichTextBox = new System.Windows.Forms.RichTextBox();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
this.contextMenuPCKEntries.SuspendLayout();
this.menuStrip.SuspendLayout();
this.contextMenuMetaTree.SuspendLayout();
@@ -137,6 +144,12 @@
((System.ComponentModel.ISupportInitialize)(this.pckOpen)).BeginInit();
this.SuspendLayout();
//
// logoPictureBox
//
resources.ApplyResources(this.logoPictureBox, "logoPictureBox");
this.logoPictureBox.Name = "logoPictureBox";
this.logoPictureBox.TabStop = false;
//
// contextMenuPCKEntries
//
this.contextMenuPCKEntries.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -391,8 +404,8 @@
this.fileToolStripMenuItem,
this.editToolStripMenuItem,
this.miscToolStripMenuItem,
this.helpToolStripMenuItem,
this.storeToolStripMenuItem});
this.storeToolStripMenuItem,
this.helpToolStripMenuItem});
this.menuStrip.Name = "menuStrip";
this.menuStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
//
@@ -406,7 +419,7 @@
this.saveToolStripMenuItem,
this.saveAsToolStripMenuItem,
this.closeToolStripMenuItem});
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.Silver;
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem");
//
@@ -485,17 +498,17 @@
// editToolStripMenuItem
//
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.advancedMetaAddingToolStripMenuItem,
this.quickChangeToolStripMenuItem,
this.convertToBedrockToolStripMenuItem});
this.editToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.editToolStripMenuItem.ForeColor = System.Drawing.Color.Silver;
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
resources.ApplyResources(this.editToolStripMenuItem, "editToolStripMenuItem");
//
// advancedMetaAddingToolStripMenuItem
// quickChangeToolStripMenuItem
//
resources.ApplyResources(this.advancedMetaAddingToolStripMenuItem, "advancedMetaAddingToolStripMenuItem");
this.advancedMetaAddingToolStripMenuItem.Name = "advancedMetaAddingToolStripMenuItem";
this.advancedMetaAddingToolStripMenuItem.Click += new System.EventHandler(this.advancedMetaAddingToolStripMenuItem_Click);
resources.ApplyResources(this.quickChangeToolStripMenuItem, "quickChangeToolStripMenuItem");
this.quickChangeToolStripMenuItem.Name = "quickChangeToolStripMenuItem";
this.quickChangeToolStripMenuItem.Click += new System.EventHandler(this.quickChangeToolStripMenuItem_Click);
//
// convertToBedrockToolStripMenuItem
//
@@ -509,7 +522,7 @@
this.addCustomPackImageToolStripMenuItem,
this.openPckManagerToolStripMenuItem,
this.convertMusicFilesToolStripMenuItem});
this.miscToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.miscToolStripMenuItem.ForeColor = System.Drawing.Color.Silver;
this.miscToolStripMenuItem.Name = "miscToolStripMenuItem";
resources.ApplyResources(this.miscToolStripMenuItem, "miscToolStripMenuItem");
//
@@ -545,32 +558,64 @@
resources.ApplyResources(this.binkaWavToolStripMenuItem, "binkaWavToolStripMenuItem");
this.binkaWavToolStripMenuItem.Click += new System.EventHandler(this.binkaWavToolStripMenuItem_Click);
//
// storeToolStripMenuItem
//
this.storeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.openPckCenterToolStripMenuItem,
this.joinDevelopmentDiscordToolStripMenuItem,
this.trelloBoardToolStripMenuItem});
this.storeToolStripMenuItem.ForeColor = System.Drawing.Color.Silver;
this.storeToolStripMenuItem.Image = global::PckStudio.Properties.Resources.HamburgerMenuIcon;
this.storeToolStripMenuItem.Name = "storeToolStripMenuItem";
resources.ApplyResources(this.storeToolStripMenuItem, "storeToolStripMenuItem");
//
// openPckCenterToolStripMenuItem
//
this.openPckCenterToolStripMenuItem.Image = global::PckStudio.Properties.Resources.pckCenterHeader;
this.openPckCenterToolStripMenuItem.Name = "openPckCenterToolStripMenuItem";
resources.ApplyResources(this.openPckCenterToolStripMenuItem, "openPckCenterToolStripMenuItem");
this.openPckCenterToolStripMenuItem.Click += new System.EventHandler(this.openPckCenterToolStripMenuItem_Click);
//
// joinDevelopmentDiscordToolStripMenuItem
//
resources.ApplyResources(this.joinDevelopmentDiscordToolStripMenuItem, "joinDevelopmentDiscordToolStripMenuItem");
this.joinDevelopmentDiscordToolStripMenuItem.Name = "joinDevelopmentDiscordToolStripMenuItem";
this.joinDevelopmentDiscordToolStripMenuItem.Click += new System.EventHandler(this.joinDevelopmentDiscordToolStripMenuItem_Click);
//
// trelloBoardToolStripMenuItem
//
this.trelloBoardToolStripMenuItem.Name = "trelloBoardToolStripMenuItem";
resources.ApplyResources(this.trelloBoardToolStripMenuItem, "trelloBoardToolStripMenuItem");
this.trelloBoardToolStripMenuItem.Click += new System.EventHandler(this.trelloBoardToolStripMenuItem_Click);
//
// helpToolStripMenuItem
//
this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.programInfoToolStripMenuItem,
this.binkaConversionToolStripMenuItem,
this.aboutToolStripMenuItem,
this.toolStripSeparator1,
this.videosToolStripMenuItem,
this.donateToolStripMenuItem,
this.toolStripSeparator2,
this.installationToolStripMenuItem,
this.fAQToolStripMenuItem1,
this.donateToolStripMenuItem,
this.settingsToolStripMenuItem,
this.administrativeToolsToolStripMenuItem});
this.helpToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.preferencesToolStripMenuItem,
this.administrativeToolsToolStripMenuItem,
this.toolStripSeparator3,
this.settingsToolStripMenuItem});
this.helpToolStripMenuItem.ForeColor = System.Drawing.Color.Silver;
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
resources.ApplyResources(this.helpToolStripMenuItem, "helpToolStripMenuItem");
//
// programInfoToolStripMenuItem
// aboutToolStripMenuItem
//
resources.ApplyResources(this.programInfoToolStripMenuItem, "programInfoToolStripMenuItem");
this.programInfoToolStripMenuItem.Name = "programInfoToolStripMenuItem";
this.programInfoToolStripMenuItem.Click += new System.EventHandler(this.programInfoToolStripMenuItem_Click);
resources.ApplyResources(this.aboutToolStripMenuItem, "aboutToolStripMenuItem");
this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem";
this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click);
//
// binkaConversionToolStripMenuItem
// toolStripSeparator1
//
resources.ApplyResources(this.binkaConversionToolStripMenuItem, "binkaConversionToolStripMenuItem");
this.binkaConversionToolStripMenuItem.Name = "binkaConversionToolStripMenuItem";
this.binkaConversionToolStripMenuItem.Click += new System.EventHandler(this.binkaConversionToolStripMenuItem_Click);
this.toolStripSeparator1.Name = "toolStripSeparator1";
resources.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1");
//
// videosToolStripMenuItem
//
@@ -580,7 +625,7 @@
this.howToMakeCustomSkinModelsbedrockToolStripMenuItem,
this.howToMakeCustomMusicToolStripMenuItem,
this.howToInstallPcksDirectlyToWiiUToolStripMenuItem,
this.pCKCenterReleaseToolStripMenuItem,
this.pckCenterReleaseToolStripMenuItem,
this.howPCKsWorkToolStripMenuItem});
this.videosToolStripMenuItem.ForeColor = System.Drawing.Color.Black;
resources.ApplyResources(this.videosToolStripMenuItem, "videosToolStripMenuItem");
@@ -616,11 +661,12 @@
this.howToInstallPcksDirectlyToWiiUToolStripMenuItem.Name = "howToInstallPcksDirectlyToWiiUToolStripMenuItem";
this.howToInstallPcksDirectlyToWiiUToolStripMenuItem.Click += new System.EventHandler(this.howToInstallPcksDirectlyToWiiUToolStripMenuItem_Click);
//
// pCKCenterReleaseToolStripMenuItem
// pckCenterReleaseToolStripMenuItem
//
resources.ApplyResources(this.pCKCenterReleaseToolStripMenuItem, "pCKCenterReleaseToolStripMenuItem");
this.pCKCenterReleaseToolStripMenuItem.Name = "pCKCenterReleaseToolStripMenuItem";
this.pCKCenterReleaseToolStripMenuItem.Click += new System.EventHandler(this.pCKCenterReleaseToolStripMenuItem_Click);
this.pckCenterReleaseToolStripMenuItem.Image = global::PckStudio.Properties.Resources.Youtube;
this.pckCenterReleaseToolStripMenuItem.Name = "pckCenterReleaseToolStripMenuItem";
resources.ApplyResources(this.pckCenterReleaseToolStripMenuItem, "pckCenterReleaseToolStripMenuItem");
this.pckCenterReleaseToolStripMenuItem.Click += new System.EventHandler(this.pckCenterReleaseToolStripMenuItem_Click);
//
// howPCKsWorkToolStripMenuItem
//
@@ -628,17 +674,6 @@
this.howPCKsWorkToolStripMenuItem.Name = "howPCKsWorkToolStripMenuItem";
this.howPCKsWorkToolStripMenuItem.Click += new System.EventHandler(this.howPCKsWorkToolStripMenuItem_Click);
//
// installationToolStripMenuItem
//
resources.ApplyResources(this.installationToolStripMenuItem, "installationToolStripMenuItem");
this.installationToolStripMenuItem.Name = "installationToolStripMenuItem";
//
// fAQToolStripMenuItem1
//
resources.ApplyResources(this.fAQToolStripMenuItem1, "fAQToolStripMenuItem1");
this.fAQToolStripMenuItem1.Name = "fAQToolStripMenuItem1";
this.fAQToolStripMenuItem1.Click += new System.EventHandler(this.fAQToolStripMenuItem1_Click);
//
// donateToolStripMenuItem
//
this.donateToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -666,56 +701,46 @@
resources.ApplyResources(this.forMattNLContributorToolStripMenuItem, "forMattNLContributorToolStripMenuItem");
this.forMattNLContributorToolStripMenuItem.Click += new System.EventHandler(this.forMattNLContributorToolStripMenuItem_Click);
//
// settingsToolStripMenuItem
// toolStripSeparator2
//
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
resources.ApplyResources(this.settingsToolStripMenuItem, "settingsToolStripMenuItem");
this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click);
this.toolStripSeparator2.Name = "toolStripSeparator2";
resources.ApplyResources(this.toolStripSeparator2, "toolStripSeparator2");
//
// installationToolStripMenuItem
//
resources.ApplyResources(this.installationToolStripMenuItem, "installationToolStripMenuItem");
this.installationToolStripMenuItem.Name = "installationToolStripMenuItem";
//
// fAQToolStripMenuItem1
//
resources.ApplyResources(this.fAQToolStripMenuItem1, "fAQToolStripMenuItem1");
this.fAQToolStripMenuItem1.Name = "fAQToolStripMenuItem1";
this.fAQToolStripMenuItem1.Click += new System.EventHandler(this.fAQToolStripMenuItem1_Click);
//
// preferencesToolStripMenuItem
//
resources.ApplyResources(this.preferencesToolStripMenuItem, "preferencesToolStripMenuItem");
this.preferencesToolStripMenuItem.Name = "preferencesToolStripMenuItem";
this.preferencesToolStripMenuItem.Click += new System.EventHandler(this.preferencesToolStripMenuItem_Click);
//
// administrativeToolsToolStripMenuItem
//
resources.ApplyResources(this.administrativeToolsToolStripMenuItem, "administrativeToolsToolStripMenuItem");
this.administrativeToolsToolStripMenuItem.Image = global::PckStudio.Properties.Resources.pckCenterHeader;
this.administrativeToolsToolStripMenuItem.Name = "administrativeToolsToolStripMenuItem";
resources.ApplyResources(this.administrativeToolsToolStripMenuItem, "administrativeToolsToolStripMenuItem");
this.administrativeToolsToolStripMenuItem.Click += new System.EventHandler(this.administrativeToolsToolStripMenuItem_Click);
//
// storeToolStripMenuItem
// toolStripSeparator3
//
this.storeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.openPckCenterToolStripMenuItem,
this.joinDevelopmentDiscordToolStripMenuItem,
this.trelloBoardToolStripMenuItem,
this.settingsToolStripMenuItem1});
this.storeToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.storeToolStripMenuItem.Image = global::PckStudio.Properties.Resources.HamburgerMenuIcon;
this.storeToolStripMenuItem.Name = "storeToolStripMenuItem";
resources.ApplyResources(this.storeToolStripMenuItem, "storeToolStripMenuItem");
this.toolStripSeparator3.Name = "toolStripSeparator3";
resources.ApplyResources(this.toolStripSeparator3, "toolStripSeparator3");
//
// openPckCenterToolStripMenuItem
// settingsToolStripMenuItem
//
this.openPckCenterToolStripMenuItem.Image = global::PckStudio.Properties.Resources.pckCenterHeader;
this.openPckCenterToolStripMenuItem.Name = "openPckCenterToolStripMenuItem";
resources.ApplyResources(this.openPckCenterToolStripMenuItem, "openPckCenterToolStripMenuItem");
this.openPckCenterToolStripMenuItem.Click += new System.EventHandler(this.openPckCenterToolStripMenuItem_Click);
//
// joinDevelopmentDiscordToolStripMenuItem
//
resources.ApplyResources(this.joinDevelopmentDiscordToolStripMenuItem, "joinDevelopmentDiscordToolStripMenuItem");
this.joinDevelopmentDiscordToolStripMenuItem.Name = "joinDevelopmentDiscordToolStripMenuItem";
this.joinDevelopmentDiscordToolStripMenuItem.Click += new System.EventHandler(this.joinDevelopmentDiscordToolStripMenuItem_Click);
//
// trelloBoardToolStripMenuItem
//
this.trelloBoardToolStripMenuItem.Name = "trelloBoardToolStripMenuItem";
resources.ApplyResources(this.trelloBoardToolStripMenuItem, "trelloBoardToolStripMenuItem");
this.trelloBoardToolStripMenuItem.Click += new System.EventHandler(this.trelloBoardToolStripMenuItem_Click);
//
// settingsToolStripMenuItem1
//
this.settingsToolStripMenuItem1.Image = global::PckStudio.Properties.Resources.ranch;
this.settingsToolStripMenuItem1.Name = "settingsToolStripMenuItem1";
resources.ApplyResources(this.settingsToolStripMenuItem1, "settingsToolStripMenuItem1");
this.settingsToolStripMenuItem1.Click += new System.EventHandler(this.settingsToolStripMenuItem1_Click);
this.settingsToolStripMenuItem.Image = global::PckStudio.Properties.Resources.ranch;
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
resources.ApplyResources(this.settingsToolStripMenuItem, "settingsToolStripMenuItem");
this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click);
//
// contextMenuMetaTree
//
@@ -766,6 +791,31 @@
this.editAllEntriesToolStripMenuItem.Name = "editAllEntriesToolStripMenuItem";
resources.ApplyResources(this.editAllEntriesToolStripMenuItem, "editAllEntriesToolStripMenuItem");
//
// editorTab
//
this.editorTab.HorizontalScrollbarBarColor = true;
this.editorTab.HorizontalScrollbarHighlightOnWheel = false;
this.editorTab.HorizontalScrollbarSize = 10;
resources.ApplyResources(this.editorTab, "editorTab");
this.editorTab.Name = "editorTab";
this.editorTab.VerticalScrollbarBarColor = true;
this.editorTab.VerticalScrollbarHighlightOnWheel = false;
this.editorTab.VerticalScrollbarSize = 10;
//
// label11
//
resources.ApplyResources(this.label11, "label11");
this.label11.Name = "label11";
//
// LittleEndianCheckBox
//
this.LittleEndianCheckBox.BackColor = System.Drawing.Color.Transparent;
resources.ApplyResources(this.LittleEndianCheckBox, "LittleEndianCheckBox");
this.LittleEndianCheckBox.Name = "LittleEndianCheckBox";
this.LittleEndianCheckBox.Style = MetroFramework.MetroColorStyle.White;
this.LittleEndianCheckBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.LittleEndianCheckBox.UseSelectable = true;
//
// tabControl
//
this.tabControl.Controls.Add(this.StartPage);
@@ -800,6 +850,14 @@
this.StartPage.VerticalScrollbarHighlightOnWheel = false;
this.StartPage.VerticalScrollbarSize = 10;
//
// label5
//
resources.ApplyResources(this.label5, "label5");
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Name = "label5";
this.label5.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// pckOpen
//
this.pckOpen.BackColor = System.Drawing.Color.Transparent;
@@ -813,14 +871,6 @@
this.pckOpen.MouseEnter += new System.EventHandler(this.OpenPck_MouseEnter);
this.pckOpen.MouseLeave += new System.EventHandler(this.OpenPck_MouseLeave);
//
// label5
//
resources.ApplyResources(this.label5, "label5");
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Name = "label5";
this.label5.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// labelVersion
//
resources.ApplyResources(this.labelVersion, "labelVersion");
@@ -853,6 +903,7 @@
this.Theme = MetroFramework.MetroThemeStyle.Dark;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
this.Load += new System.EventHandler(this.MainForm_Load);
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
this.contextMenuPCKEntries.ResumeLayout(false);
this.menuStrip.ResumeLayout(false);
this.menuStrip.PerformLayout();
@@ -882,10 +933,10 @@
private System.Windows.Forms.ToolStripMenuItem addMultipleEntriesToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem advancedMetaAddingToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem quickChangeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem programInfoToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem extractToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem importSkinsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem importSkinToolStripMenuItem;
@@ -896,14 +947,16 @@
private System.Windows.Forms.ToolStripMenuItem skinToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem createAnimatedTextureToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem installationToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem binkaConversionToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem fAQToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem donateToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem convertToBedrockToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem storeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem openPckCenterToolStripMenuItem;
private PckStudio.Controls.CustomTabControl tabControl;
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;
private MetroFramework.Controls.MetroTabPage editorTab;
private MetroFramework.Controls.MetroCheckBox LittleEndianCheckBox;
private MetroFramework.Controls.MetroLabel label11;
private System.Windows.Forms.ToolStripMenuItem preferencesToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem administrativeToolsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem toNobledezJackToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem toPhoenixARCDeveloperToolStripMenuItem;
@@ -916,7 +969,7 @@
private System.Windows.Forms.ToolStripMenuItem howToMakeCustomSkinModelsbedrockToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem howToMakeCustomMusicToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem howToInstallPcksDirectlyToWiiUToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem pCKCenterReleaseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem pckCenterReleaseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem howPCKsWorkToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem skinPackToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem texturePackToolStripMenuItem;
@@ -962,10 +1015,14 @@
private System.Windows.Forms.ToolStripMenuItem openPckManagerToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem packSettingsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem fullBoxSupportToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem addEntryToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem addBOXEntryToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem addANIMEntryToolStripMenuItem1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;
private System.Windows.Forms.PictureBox logoPictureBox;
}
}

View File

@@ -33,7 +33,6 @@ using PckStudio.Extensions;
using PckStudio.Popups;
using PckStudio.API.Miles;
using PckStudio.Classes.Utils;
using PckStudio.Internals;
using PckStudio.Controls;
using PckStudio.Interfaces;
@@ -56,7 +55,7 @@ namespace PckStudio
labelVersion.Text = $"{Application.ProductName}: {Application.ProductVersion}";
#if BETA
labelVersion.Text += $"{ApplicationBuildInfo.BetaBuildVersion}";
labelVersion.Text += $"{ApplicationBuildInfo.BetaBuildVersion}@{CommitInfo.BranchName}";
#endif
#if DEBUG
labelVersion.Text += $" (Debug build: {CommitInfo.BranchName}@{CommitInfo.CommitHash})";
@@ -230,8 +229,8 @@ namespace PckStudio
var newPck = new PckFile(3);
var zeroFile = newPck.CreateNewFile("0", PckFile.FileData.FileType.InfoFile);
zeroFile.Properties.Add(("PACKID", packId.ToString()));
zeroFile.Properties.Add(("PACKVERSION", packVersion.ToString()));
zeroFile.Properties.Add("PACKID", packId.ToString());
zeroFile.Properties.Add("PACKVERSION", packVersion.ToString());
var loc = newPck.CreateNewFile("localisation.loc", PckFile.FileData.FileType.LocalisationFile, () =>
{
@@ -273,8 +272,8 @@ namespace PckStudio
writer.WriteToStream(ms);
return ms.ToArray();
});
texturepackInfo.Properties.Add(("PACKID", "0"));
texturepackInfo.Properties.Add(("DATAPATH", $"{res}Data.pck"));
texturepackInfo.Properties.Add("PACKID", "0");
texturepackInfo.Properties.Add("DATAPATH", $"{res}Data.pck");
PckFile infoPCK = new PckFile(3);
@@ -354,7 +353,7 @@ namespace PckStudio
}
}
private void advancedMetaAddingToolStripMenuItem_Click(object sender, EventArgs e)
private void quickChangeToolStripMenuItem_Click(object sender, EventArgs e)
{
if (TryGetEditor(out IPckEditor editor))
{
@@ -390,7 +389,7 @@ namespace PckStudio
}
}
private void programInfoToolStripMenuItem_Click(object sender, EventArgs e)
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
using CreditsForm info = new CreditsForm();
info.ShowDialog();
@@ -488,7 +487,8 @@ namespace PckStudio
private void openPckCenterToolStripMenuItem_Click(object sender, EventArgs e)
{
#if BETA || DEBUG
MessageBox.Show("This feature is currently being reworked.", "Currently unavailable", MessageBoxButtons.OK, MessageBoxIcon.Information);
#if false
DateTime Begin = DateTime.Now;
//pckCenter open = new pckCenter();
PckCenterBeta open = new PckCenterBeta();
@@ -524,7 +524,7 @@ namespace PckStudio
Process.Start("https://www.youtube.com/watch?v=hRQagnEplec");
}
private void pCKCenterReleaseToolStripMenuItem_Click(object sender, EventArgs e)
private void pckCenterReleaseToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("https://www.youtube.com/watch?v=E_6bXSh6yqw");
}
@@ -534,7 +534,7 @@ namespace PckStudio
Process.Start("https://www.youtube.com/watch?v=hTlImrRrCKQ");
}
private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
private void preferencesToolStripMenuItem_Click(object sender, EventArgs e)
{
Pref setting = new Pref();
setting.Show();
@@ -556,6 +556,11 @@ namespace PckStudio
Process.Start("https://www.paypal.me/realnobledez");
}
private void forMattNLContributorToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("https://ko-fi.com/mattnl");
}
private void joinDevelopmentDiscordToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("https://discord.gg/aJtZNFVQTv");
@@ -616,11 +621,6 @@ namespace PckStudio
}
}
private void forMattNLContributorToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("https://ko-fi.com/mattnl");
}
private void addCustomPackIconToolStripMenuItem_Click(object sender, EventArgs e)
{
string packID = "0";
@@ -799,7 +799,7 @@ namespace PckStudio
}
}
private void settingsToolStripMenuItem1_Click(object sender, EventArgs e)
private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
{
var appSettings = new AppSettingsForm();
appSettings.ShowDialog(this);

File diff suppressed because it is too large Load Diff

View File

@@ -18,20 +18,20 @@
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<Target Name="GetGitHash" BeforeTargets="WriteGitInfo" Condition="'$(Configuration)' == 'Debug' AND '$(BuildHash)' == ''">
<Target Name="GetGitInfo" BeforeTargets="WriteGitInfo" Condition="'$(BuildHash)' == ''">
<!-- write hash and branch to console.-->
<Exec Command="git -C $(ProjectDir) describe --always" ConsoleToMsBuild="true">
<Exec Condition="'$(Configuration)' == 'Debug'" Command="git -C $(ProjectDir) describe --always" ConsoleToMsBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="GitHash" />
</Exec>
<Exec Command="git -C $(ProjectDir) branch --show-current" ConsoleToMsBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="GitBranch" />
</Exec>
<PropertyGroup>
<BuildHash>$(GitHash)</BuildHash>
<BuildHash Condition="'$(Configuration)' == 'Debug'">$(GitHash)</BuildHash>
<BuildBranch>$(GitBranch)</BuildBranch>
</PropertyGroup>
</Target>
<Target Name="WriteGitInfo" BeforeTargets="CoreCompile" Condition="'$(Configuration)' == 'Debug'">
<Target Name="WriteGitInfo" BeforeTargets="CoreCompile">
<!-- names the obj/.../GitAssemblyInfo.cs file -->
<PropertyGroup>
<GitAssemblyInfoFile>$(IntermediateOutputPath)GitAssemblyInfo.cs</GitAssemblyInfoFile>
@@ -42,7 +42,7 @@
</ItemGroup>
<!-- defines the AssemblyMetadata attribute that will be written -->
<ItemGroup>
<AssemblyAttributes Include="AssemblyMetadata">
<AssemblyAttributes Include="AssemblyMetadata" Condition="'$(Configuration)' == 'Debug'">
<_Parameter1>GitHash</_Parameter1>
<_Parameter2>$(BuildHash)</_Parameter2>
</AssemblyAttributes>

View File

@@ -26,10 +26,12 @@ namespace PckStudio
ApplicationScope.Initialize();
RPC.Initialize();
MainInstance = new MainForm();
if (args.Length > 0 && File.Exists(args[0]) && args[0].EndsWith(".pck"))
MainInstance.LoadPckFromFile(args[0]);
Application.ApplicationExit += (sender, e) => { RPC.Deinitialize(); };
if (args.Length > 0)
MainInstance.LoadPckFromFile(args.Where(s => s.EndsWith(".pck") && File.Exists(s)));
Application.Run(MainInstance);
RPC.Deinitialize();
}
}
}

2
Vendor/OMI-Lib vendored