我按照吧里的精品贴找mods.lua里的IsFinalRelease文明6地图编辑器,也没发现应该有的代码么,只是搜索WorldBuilder才找到下面一段代码文明6地图编辑器,却不知道怎么改了。。。
function OnWorldBuilder()
local worldBuilderMenu = ContextPtr:LookUpControl("/FrontEnd/MainMenu/WorldBuilder");
if (worldBuilderMenu ~= nil) then
GameConfiguration.SetWorldBuilderEditor(true);
UIManager:QueuePopup(worldBuilderMenu, PopupPriority.Current);
end
end
----------------------------------------------------------------
function OnShow()
OnInstalledModsTabClick(true);
if(GameConfiguration.IsAnyMultiplayer() or not UI.HasFeature("WorldBuilder")) then
Controls.WorldBuilder:SetHide(true);
Controls.BrowseWorkshop:SetHide(true);
else
Controls.WorldBuilder:SetHide(false);
Controls.BrowseWorkshop:SetHide(false);
end
end
求哪位大神能指点一二