-------------------------------------------------
-- FrontEnd
-------------------------------------------------
function ShowHideHandler( bIsHide, bIsInit )
if( not UI:HasShownLegal() ) then
UIManager:QueuePopup( Controls.LegalScreen, PopupPriority.LegalScreen );
end
if( not bIsHide ) then
UIManager:SetUICursor( 0 );
UIManager:QueuePopup( Controls.MainMenu, PopupPriority.MainMenu );
-- Controls.AtlasLogo:SetTexture( "CivilzationVAtlas.dds" );
if (math.random(2) == 1) then
-- G&K images are loading_1.dds to loading_11.dss and loading_13.dds to loading_19.dds
local pic = math.random(2,19); if (pic == 12) then pic = 1 end
Controls.AtlasLogo:SetTexture( string.format("loading_%d.dds", pic) );
else
-- Vanilla images are loadingbasegame_1.dds to loadingbasegame_20.dds
Controls.AtlasLogo:SetTexture( string.format("loadingbasegame_%d.dds", math.random(20)) );
end
Controls.AtlasLogo:SetTexture( "CivilzationVAtlas.dds" );
else
Controls.AtlasLogo:UnloadTexture();
end
end
ContextPtr:SetShowHideHandler( ShowHideHandler );