Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Bob on Sat 21/03/2009 01:49:12

Title: Verb coin GUI misalignment with 800x600 resolution [RESOLVED]
Post by: Bob on Sat 21/03/2009 01:49:12
I'm using the Verb Coin template from build 3.1.2.82 at an 800x600 resolution.  This causes two of the GUI graphics, gVerbCoin and gInvUnderlay, to appear a few pixels too far to the left, but gOverhotspot and gInventory appear fine. :o

This should be fixed in any upcoming releases.  In the meantime, which lines do I need to alter to fix this?
Title: Re: Verb coin GUI misalignment with 800x600 resolution
Post by: Electroshokker on Sat 21/03/2009 21:36:59
Quote from: oddsea on Sat 21/03/2009 01:49:12
I'm using the Verb Coin template from build 3.1.2.82 at an 800x600 resolution.  This causes two of the GUI graphics, gVerbCoin and gInvUnderlay, to appear a few pixels too far to the left, but gOverhotspot and gInventory appear fine. :o

This should be fixed in any upcoming releases.  In the meantime, which lines do I need to alter to fix this?

first, go to the gui(s) in question and check their x- and y-positions.

For the inventory (and the underlay) : all the code does is make the gui visible and invisible. There's no 'positioning' for the inventory. (therefore no lines of code that you need to change)

As for the verbcoin, check the gui size. The code checks the size of the gui, NOT the graphics. (So if you have a lot of empty space to the sides of your gui, that's the reason the positioning might not be correct)


This is a non-code issue that anyone can encounter, the template does NOT need to change. It's very important that you size (the verbcoin) and position (the inventory & underlay) your gui's properly.


In case they ARE sized and positioned properly, you can always send me a sample 1-room ags game (the resources, not the compiled build) which illustrates your point, so I can check.

Or, if anyone else has this problem, (and I can reproduce it), I'll come up with a fix. The verb coin template is not maintained by the author of the AGS engine (Chris Jones), but by me. (the guy who created the template)
Title: Re: Verb coin GUI misalignment with 800x600 resolution
Post by: Bob on Sun 22/03/2009 00:15:22
I figured it out.  Looks like my problem was that when I increased the resolution, the GUI objects were made larger by extending their borders.

I resolved it by deleting the objects and re-importing them.

Thanks!
Title: Re: Verb coin GUI misalignment with 800x600 resolution [RESOLVED]
Post by: Shockbolt on Fri 27/03/2009 18:48:09
Well...I'm just curious to learn what a Verb coin is actually. Could anyone please tell?
Title: Re: Verb coin GUI misalignment with 800x600 resolution [RESOLVED]
Post by: Spire on Sat 28/03/2009 00:57:23
Quote from: Shockbolt on Fri 27/03/2009 18:48:09
Well...I'm just curious to learn what a Verb coin is actually. Could anyone please tell?

From the AGS Wiki: http://www.americangirlscouts.org/agswiki/Verb_coin

I didn't know what it was myself until I googled it just now!  :)
Title: Re: Verb coin GUI misalignment with 800x600 resolution [RESOLVED]
Post by: Trent R on Sun 29/03/2009 02:08:11
It's an interface that was made popular by both CMI and Full Throttle. The AGS wiki kinda explains it, but I'd try to find a Let's Play Video or such. Or download an AGS game that uses the Verb Coin (which I don't know of exactly) or try to find the CMI demo somewhere on the net.


~Trent
Title: Re: Verb coin GUI misalignment with 800x600 resolution [RESOLVED]
Post by: Bob on Sun 29/03/2009 04:56:21
You might try a library.  The library in my town has two copies of it (unfortunately, they're so scratched up I had to borrow BOTH copies to play it, as neither let me access the entire game).