mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-28 07:56:20 -04:00
Prettify gui.
This commit is contained in:
parent
561c3bf597
commit
2f2a62cf45
@ -195,7 +195,6 @@ namespace MCGalaxy.Commands
|
|||||||
//for the limiting no. of guests:
|
//for the limiting no. of guests:
|
||||||
Server.maxGuests = 10;
|
Server.maxGuests = 10;
|
||||||
|
|
||||||
Server.maps = 5;
|
|
||||||
Server.port = 25565;
|
Server.port = 25565;
|
||||||
Server.pub = true;
|
Server.pub = true;
|
||||||
Server.verify = true;
|
Server.verify = true;
|
||||||
|
695
GUI/PropertyWindow.Designer.cs
generated
695
GUI/PropertyWindow.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -307,21 +307,6 @@ namespace MCGalaxy.Gui {
|
|||||||
numGuests.Value = 10;
|
numGuests.Value = 10;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "max-maps":
|
|
||||||
try {
|
|
||||||
if ( Convert.ToByte(value) > 100 ) {
|
|
||||||
value = "100";
|
|
||||||
}
|
|
||||||
else if ( Convert.ToByte(value) < 1 ) {
|
|
||||||
value = "1";
|
|
||||||
}
|
|
||||||
txtMaps.Text = value;
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
Server.s.Log("max-maps invalid! setting to default.");
|
|
||||||
txtMaps.Text = "5";
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case "irc":
|
case "irc":
|
||||||
chkIRC.Checked = ( value.ToLower() == "true" );
|
chkIRC.Checked = ( value.ToLower() == "true" );
|
||||||
break;
|
break;
|
||||||
@ -677,7 +662,6 @@ namespace MCGalaxy.Gui {
|
|||||||
Server.pub = chkPublic.Checked;
|
Server.pub = chkPublic.Checked;
|
||||||
Server.players = (byte)numPlayers.Value;
|
Server.players = (byte)numPlayers.Value;
|
||||||
Server.maxGuests = (byte)numGuests.Value;
|
Server.maxGuests = (byte)numGuests.Value;
|
||||||
Server.maps = byte.Parse(txtMaps.Text);
|
|
||||||
Server.worldChat = chkWorld.Checked;
|
Server.worldChat = chkWorld.Checked;
|
||||||
Server.autonotify = chkNotifyOnJoinLeave.Checked;
|
Server.autonotify = chkNotifyOnJoinLeave.Checked;
|
||||||
Server.AutoLoad = chkAutoload.Checked;
|
Server.AutoLoad = chkAutoload.Checked;
|
||||||
@ -817,7 +801,6 @@ namespace MCGalaxy.Gui {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void txtPort_TextChanged(object sender, EventArgs e) { removeDigit(txtPort); }
|
private void txtPort_TextChanged(object sender, EventArgs e) { removeDigit(txtPort); }
|
||||||
private void txtMaps_TextChanged(object sender, EventArgs e) { removeDigit(txtMaps); }
|
|
||||||
private void txtBackup_TextChanged(object sender, EventArgs e) { removeDigit(txtBackup); }
|
private void txtBackup_TextChanged(object sender, EventArgs e) { removeDigit(txtBackup); }
|
||||||
|
|
||||||
private void btnSave_Click(object sender, EventArgs e) { saveStuff(); Dispose(); }
|
private void btnSave_Click(object sender, EventArgs e) { saveStuff(); Dispose(); }
|
||||||
|
@ -120,22 +120,6 @@ namespace MCGalaxy {
|
|||||||
}
|
}
|
||||||
catch { Server.s.Log("max-guests invalid! setting to default."); }
|
catch { Server.s.Log("max-guests invalid! setting to default."); }
|
||||||
break;
|
break;
|
||||||
case "max-maps":
|
|
||||||
try {
|
|
||||||
if ( Convert.ToByte(value) > 100 ) {
|
|
||||||
value = "100";
|
|
||||||
Server.s.Log("Max maps has been lowered to 100.");
|
|
||||||
}
|
|
||||||
else if ( Convert.ToByte(value) < 1 ) {
|
|
||||||
value = "1";
|
|
||||||
Server.s.Log("Max maps has been increased to 1.");
|
|
||||||
}
|
|
||||||
Server.maps = Convert.ToByte(value);
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
Server.s.Log("max-maps invalid! setting to default.");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case "irc":
|
case "irc":
|
||||||
Server.irc = value.ToLower() == "true";
|
Server.irc = value.ToLower() == "true";
|
||||||
break;
|
break;
|
||||||
@ -750,7 +734,6 @@ namespace MCGalaxy {
|
|||||||
w.WriteLine("public = " + Server.pub.ToString().ToLower());
|
w.WriteLine("public = " + Server.pub.ToString().ToLower());
|
||||||
w.WriteLine("max-players = " + Server.players.ToString());
|
w.WriteLine("max-players = " + Server.players.ToString());
|
||||||
w.WriteLine("max-guests = " + Server.maxGuests.ToString());
|
w.WriteLine("max-guests = " + Server.maxGuests.ToString());
|
||||||
w.WriteLine("max-maps = " + Server.maps.ToString());
|
|
||||||
w.WriteLine("world-chat = " + Server.worldChat.ToString().ToLower());
|
w.WriteLine("world-chat = " + Server.worldChat.ToString().ToLower());
|
||||||
w.WriteLine("check-updates = " + Server.checkUpdates.ToString().ToLower());
|
w.WriteLine("check-updates = " + Server.checkUpdates.ToString().ToLower());
|
||||||
w.WriteLine("auto-update = " + Server.autoupdate.ToString().ToLower());
|
w.WriteLine("auto-update = " + Server.autoupdate.ToString().ToLower());
|
||||||
|
@ -28,7 +28,7 @@ namespace MCGalaxy {
|
|||||||
|
|
||||||
void LoadMainLevel() {
|
void LoadMainLevel() {
|
||||||
try {
|
try {
|
||||||
levels = new List<Level>(maps);
|
levels = new List<Level>(5);
|
||||||
|
|
||||||
if (LevelInfo.ExistsOffline(level)) {
|
if (LevelInfo.ExistsOffline(level)) {
|
||||||
mainLevel = Level.Load(level);
|
mainLevel = Level.Load(level);
|
||||||
|
@ -179,7 +179,6 @@ namespace MCGalaxy
|
|||||||
//for the limiting no. of guests:
|
//for the limiting no. of guests:
|
||||||
public static byte maxGuests = 10;
|
public static byte maxGuests = 10;
|
||||||
|
|
||||||
public static byte maps = 5;
|
|
||||||
public static int port = 25565;
|
public static int port = 25565;
|
||||||
public static bool pub = true;
|
public static bool pub = true;
|
||||||
public static bool verify = true;
|
public static bool verify = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user