1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00

Path ChangeName dialog default text changed to path's current name

This commit is contained in:
Rich Dunne 2021-05-23 06:22:34 -06:00
parent aad8521479
commit cc80401c55

View file

@ -316,7 +316,7 @@ namespace SceneManager.Paths
internal void ChangeName() internal void ChangeName()
{ {
var pathName = UserInput.PromptPlayerForFileName("Type the name you would like for your path", "Enter a path name", 100); var pathName = UserInput.PromptPlayerForFileName("Type the name you would like for your path", $"{Name}", 100);
if (string.IsNullOrWhiteSpace(pathName)) if (string.IsNullOrWhiteSpace(pathName))
{ {
Game.DisplayHelp($"Invalid path name given. Name cannot be null, empty, or consist of just white spaces. Defaulting to ~b~\"{Name}\""); Game.DisplayHelp($"Invalid path name given. Name cannot be null, empty, or consist of just white spaces. Defaulting to ~b~\"{Name}\"");