I have encountered some errors in the base code, and thought to share them so other can also fix them. More importantly if you encounter an error, in the base code, please share them here. Also, if your modding these files, take care to fix them in your mod too.
MinimapPanel.lua line 193: (else is in the wrong line)
org:
Code:
function ToggleContinentLens()
if Controls.ContinentLensButton:IsChecked() then
UILens.SetActive("Continent"); else
RefreshInterfaceMode();
m_shouldCloseLensMenu = false;
if UI.GetInterfaceMode() == InterfaceModeTypes.VIEW_MODAL_LENS then
UI.SetInterfaceMode(InterfaceModeTypes.SELECTION);
end
end
end
cor:
Code:
function ToggleContinentLens()
if Controls.ContinentLensButton:IsChecked() then
UILens.SetActive("Continent");
RefreshInterfaceMode();
else
m_shouldCloseLensMenu = false;
if UI.GetInterfaceMode() == InterfaceModeTypes.VIEW_MODAL_LENS then
UI.SetInterfaceMode(InterfaceModeTypes.SELECTION);
end
end
end
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.