add map/client name to desc

This commit is contained in:
Bitl 2021-09-21 08:11:37 -07:00
parent 0504dbcb33
commit 80f2e5fded
3 changed files with 7 additions and 8 deletions

View File

@ -916,13 +916,13 @@ namespace NovetusLauncher
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
{
MapDescBox.Text = Tree.SelectedNode.Text.ToString();
MapDescBox.Text = Tree.SelectedNode.Text;
}
}

View File

@ -154,8 +154,7 @@ namespace NovetusLauncher
launcherFormStylishInterface1.clientWarningBox.Text = "";
}
launcherFormStylishInterface1.clientDescBox.Text = GlobalVars.SelectedClientInfo.Description;
//SelectedClientLabel.Text = GlobalVars.UserConfiguration.SelectedClient;
launcherFormStylishInterface1.clientDescBox.Text = GlobalVars.UserConfiguration.SelectedClient + ": " + GlobalVars.SelectedClientInfo.Description;
}
}
}

View File

@ -93,13 +93,13 @@ namespace NovetusLauncher
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
{
mapsDescBox.Text = mapsBox.SelectedNode.Text.ToString();
mapsDescBox.Text = mapsBox.SelectedNode.Text;
}
}