You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add a file watcher that will detect when a map is added or deleted, then update the game mode dropdown according to the new map list
- Add and use `CustomMapsDirectory` field to `MapLoader` to avoid hard coded strings.
- Add `GetLoadedMapBySha1` to remove some duplicate `GameModeMaps.Find()`.
- Add a function `RefreshGameModeDropdown` to modify the dropdown after client is loaded. The function is a bit complicated due to doing inline modifications to the items and keeping the selected mode.
Issue: #352
PR: #358
newChatBoxCommand("LOADMAP","Load a custom map with given filename from /Maps/Custom/ folder.".L10N("UI:Main:ChatboxCommandLoadMapHelp"),true,LoadCustomMap),
47
+
newChatBoxCommand("LOADMAP",$"Load a custom map with given filename from {MapLoader.CustomMapsDirectory} folder.".L10N("UI:Main:ChatboxCommandLoadMapHelp"),true,LoadCustomMap),
48
48
newChatBoxCommand("RANDOMSTARTS","Enables completely random starting locations (Tiberian Sun based games only).".L10N("UI:Main:ChatboxCommandRandomStartsHelp"),true,
49
49
s =>SetStartingLocationClearance(s)),
50
50
newChatBoxCommand("ROLL","Roll dice, for example /roll 3d6".L10N("UI:Main:ChatboxCommandRollHelp"),false,RollDiceCommand),
0 commit comments