add map/client name to desc
This commit is contained in:
parent
0504dbcb33
commit
80f2e5fded
|
|
@ -916,13 +916,13 @@ namespace NovetusLauncher
|
||||||
|
|
||||||
private void LoadMapDesc()
|
private void LoadMapDesc()
|
||||||
{
|
{
|
||||||
if (File.Exists(GlobalPaths.RootPath + @"\\" + Tree.SelectedNode.FullPath.ToString().Replace(".rbxl", "").Replace(".rbxlx", "") + "_desc.txt"))
|
if (File.Exists(GlobalPaths.RootPath + @"\\" + Tree.SelectedNode.FullPath.Replace(".rbxl", "").Replace(".rbxlx", "") + "_desc.txt"))
|
||||||
{
|
{
|
||||||
MapDescBox.Text = File.ReadAllText(GlobalPaths.RootPath + @"\\" + Tree.SelectedNode.FullPath.ToString().Replace(".rbxl", "").Replace(".rbxlx", "") + "_desc.txt");
|
MapDescBox.Text = File.ReadAllText(GlobalPaths.RootPath + @"\\" + Tree.SelectedNode.FullPath.Replace(".rbxl", "").Replace(".rbxlx", "") + "_desc.txt");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MapDescBox.Text = Tree.SelectedNode.Text.ToString();
|
MapDescBox.Text = Tree.SelectedNode.Text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -154,8 +154,7 @@ namespace NovetusLauncher
|
||||||
launcherFormStylishInterface1.clientWarningBox.Text = "";
|
launcherFormStylishInterface1.clientWarningBox.Text = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
launcherFormStylishInterface1.clientDescBox.Text = GlobalVars.SelectedClientInfo.Description;
|
launcherFormStylishInterface1.clientDescBox.Text = GlobalVars.UserConfiguration.SelectedClient + ": " + GlobalVars.SelectedClientInfo.Description;
|
||||||
//SelectedClientLabel.Text = GlobalVars.UserConfiguration.SelectedClient;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -93,13 +93,13 @@ namespace NovetusLauncher
|
||||||
|
|
||||||
public void LoadMapDesc()
|
public void LoadMapDesc()
|
||||||
{
|
{
|
||||||
if (File.Exists(GlobalPaths.RootPath + @"\\" + mapsBox.SelectedNode.FullPath.ToString().Replace(".rbxl", "").Replace(".rbxlx", "") + "_desc.txt"))
|
if (File.Exists(GlobalPaths.RootPath + @"\\" + mapsBox.SelectedNode.FullPath.Replace(".rbxl", "").Replace(".rbxlx", "") + "_desc.txt"))
|
||||||
{
|
{
|
||||||
mapsDescBox.Text = File.ReadAllText(GlobalPaths.RootPath + @"\\" + mapsBox.SelectedNode.FullPath.ToString().Replace(".rbxl", "").Replace(".rbxlx", "") + "_desc.txt");
|
mapsDescBox.Text = mapsBox.SelectedNode.Text + ": " + File.ReadAllText(GlobalPaths.RootPath + @"\\" + mapsBox.SelectedNode.FullPath.Replace(".rbxl", "").Replace(".rbxlx", "") + "_desc.txt");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mapsDescBox.Text = mapsBox.SelectedNode.Text.ToString();
|
mapsDescBox.Text = mapsBox.SelectedNode.Text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue