Wonder Splash Screen Image

Putmalk

Deity
Joined
Sep 26, 2010
Messages
2,652
Location
New York
Quick question - how would I go about creating a wonder splash screen image? More specifically:

1. What are the proper dimensions?
2. Does this work like Atlases where I have to create a separate file, reference the image and then use that reference in the building xml? Or is it just place into the ModBuddy directory and link it from there?

Thanks.
 
1. According to the WonderPopup.xml file, 971x565. But if you look in WonderPopup.lua, it has this block:
Code:
        lastBackgroundImage = thisBuilding.WonderSplashImage;
        Controls.WonderSplash:SetTextureAndResize( thisBuilding.WonderSplashImage );
    	
    	m_fOriginalSizeX, m_fOriginalSizeY = Controls.WonderSplash:GetSizeVal();
    	Controls.WonderSplash:SetSizeVal( m_fOriginalSizeX * (1 + m_fScaleFactor), m_fOriginalSizeY * (1 + m_fScaleFactor) );
which implies that it auto-resizes the window to match the size of whatever image you give it. The UI does a lot of that, so as long as you're in the right ballpark it'll probably work.

2. I haven't actually tried it, but it should work just the way you'd expect: add the .dds to your mod and set its VFS to True. Try that and see if it works.
I'm actually looking into this code in a futile attempt to add wonder movies to my mod; no luck so far, but I'm still hoping.
 
Okay, thanks a lot guys!
 
Back
Top Bottom