mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-25 03:25:32 +00:00
GameRuleFileEditor - Made copression select text const
This commit is contained in:
@@ -40,6 +40,11 @@ namespace PckStudio.Forms.Editor
|
||||
private GameRuleFile _file;
|
||||
private GameRuleFile.CompressionType compressionType;
|
||||
private GameRuleFile.CompressionLevel compressionLevel;
|
||||
|
||||
private const string use_zlib = "Wii U, PS Vita";
|
||||
private const string use_deflate = "PS3";
|
||||
private const string use_xmem = "Xbox 360";
|
||||
|
||||
public GameRuleFileEditor()
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -49,20 +54,20 @@ namespace PckStudio.Forms.Editor
|
||||
|
||||
private void PromptForCompressionType()
|
||||
{
|
||||
ItemSelectionPopUp dialog = new ItemSelectionPopUp("Wii U, PS Vita", "PS3", "Xbox 360");
|
||||
ItemSelectionPopUp dialog = new ItemSelectionPopUp(use_zlib, use_deflate, use_xmem);
|
||||
dialog.LabelText = "Type";
|
||||
dialog.ButtonText = "Ok";
|
||||
if (dialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
switch(dialog.SelectedItem)
|
||||
{
|
||||
case "Wii U, PS Vita":
|
||||
case use_zlib:
|
||||
wiiUPSVitaToolStripMenuItem.Checked = true;
|
||||
break;
|
||||
case "PS3":
|
||||
case use_deflate:
|
||||
pS3ToolStripMenuItem.Checked = true;
|
||||
break;
|
||||
case "Xbox 360":
|
||||
case use_xmem:
|
||||
xbox360ToolStripMenuItem.Checked = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user