Problem with the size XNA

May 21, 2012 at 10:54 PM

Hi:

Great tool, I'm using in my XNA game, i have a problem with the size of  ads, i have my application in landscape and the adds width is the with of the screen i try use:

AdRotatorXNAComponent.Current.AdWidth = 480;

But nothing change do you know how can i resize the ads?

 

Thanks

May 22, 2012 at 10:26 PM

Hi:

I found the problem in all components the function:

private void UpdateBanner()
{
        BannerRect = new Rectangle((int)adPosition.X, (int)adPosition.Y, GraphicsDevice.Viewport.TitleSafeArea.Width, 80);
}

Need to be changed to:

private void UpdateBanner()
{
        BannerRect = new Rectangle((int)adPosition.X, (int)adPosition.Y, AdRotatorXNAComponent.Current.AdWidth, AdRotatorXNAComponent.Current.AdHeight);
}

Coordinator
May 28, 2012 at 9:50 AM

Thanks for the info, we'll incorporate that into the next release.

Jun 20, 2012 at 4:36 AM

Before I complain, all you guys work, is much appreciated...

but yeah, I'm having the same problem, when is the next release due?

 

Coordinator
Jun 20, 2012 at 7:56 PM

You'll have to bear with us for the next full release as both Gergely's and my schedules are a bit hectic.

 

But as you have identified a fix for the issue, i'd suggest downloading the source and attaching it to your project with the fix applies and you will have the same effect.  If you find any other improvements whilst you are using the framework let us know and contribute to the project.

Thanks

Jun 30, 2012 at 1:05 AM

Thanks Darkside.

Sometimes I can be abit workshy.