Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Scenes/CfgLoader.gd
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func get_sprite(newName, animID):
func load_campaign_boss_file(mapPath):
var levelsDirPath = mapPath.get_base_dir().get_base_dir()
var parentDirFolderName = levelsDirPath.get_file()
if parentDirFolderName != "levels" and parentDirFolderName != "campgns":
if parentDirFolderName != "levels" and parentDirFolderName != "campgns" and parentDirFolderName != "multiplayer":
oConfigFileManager.current_mappack_cfg_filename = ""
return {}
var list_of_main_campaign_files = Utils.get_filetype_in_directory(levelsDirPath, "cfg")
Expand Down
2 changes: 1 addition & 1 deletion Scenes/FileDialogSaveAs.gd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func _process(delta):
saveInstruction.text = "Must save in a sub directory. (KeeperFX)"
if dir.ends_with("/CAMPGNS"):
saveInstruction.text = "Must save in a sub directory. (KeeperFX)"
if dir.get_base_dir().ends_with("/LEVELS") or dir.get_base_dir().ends_with("/CAMPGNS"):
if dir.get_base_dir().ends_with("/LEVELS") or dir.get_base_dir().ends_with("/CAMPGNS") or dir.get_base_dir().ends_with("/MULTIPLAYER"):
saveInstruction.text = "Map playable from this directory. (KeeperFX)"
saveInstruction.set("custom_colors/font_color", Color(0.5,1.0,0.5,1))
else:
Expand Down
2 changes: 1 addition & 1 deletion Scenes/Menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func constantly_monitor_play_button_state():

var mapIsInCorrectDirectory = false
if oGame.keeperfx_is_installed() == true:
if parentDirectory.ends_with("/LEVELS") or parentDirectory.ends_with("/CAMPGNS"):
if parentDirectory.ends_with("/LEVELS") or parentDirectory.ends_with("/CAMPGNS") or parentDirectory.ends_with("/MULTIPLAYER"):
mapIsInCorrectDirectory = true
else:
if currentDirectory.ends_with("/LEVELS"):
Expand Down
3 changes: 3 additions & 0 deletions Scenes/SourceMapTree.gd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func update_source_tree(): # Call this whenever there's an update to the filesys
path = oGame.GAME_DIRECTORY.plus_file("campgns")
var campgnsTreeItem = add_tree_dir(self, self, path)
deep_scan(path, campgnsTreeItem)
path = oGame.GAME_DIRECTORY.plus_file("multiplayer")
var multiplayerTreeItem = add_tree_dir(self, self, path)
deep_scan(path, multiplayerTreeItem)

# For the remaining items without lif names
for BASENAME in treeItemsThatWantNames:
Expand Down
Loading