Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   New GUI & Small GUI Control Bug (https://forums.graalonline.com/forums/showthread.php?t=74290)

Inverness 05-30-2007 09:26 AM

New GUI & Small GUI Control Bug
 
1 Attachment(s)
I just made the most graphics ever in my history on Graal and after it I noticed a very little bug with the GuiScrollCtrl, apparently the contents of the control overlap the horizontal scroll bar by one pixel, considering my GUI is the only one that uses the full space available in the frame, it would normally be unnoticeable.

View the text at the bottom of the Console window in the attachment.

Also, comments on the GUI graphics are appreciated.

Chompy 05-30-2007 05:10 PM

Amazing!

Imperialistic 05-30-2007 05:12 PM

I like the GUI but i think it could be a little bit more shaded

Inverness 05-30-2007 08:21 PM

Quote:

Originally Posted by Imperialistic (Post 1313363)
I like the GUI but i think it could be a little bit more shaded

Well the idea was for the entire thing to be semi-transparent but I have to wait for next Graal version before I can implement that without changing the image files themselves, and I would prefer not to do that as it defeats the purpose of gui controls.

Angel_Light 05-30-2007 09:38 PM

good graphics cant you just adjust the height of the scroll/text window itself?

Inverness 05-30-2007 09:40 PM

extent changes the width and height of the scroll window itself, not where its contents are displayed.

Deadly_Killer 05-30-2007 10:25 PM

Reminds me of Half-Life 2 =D.

Nice

Inverness 05-30-2007 11:24 PM

Quote:

Originally Posted by Deadly_Killer (Post 1313473)
Reminds me of Half-Life 2 =D.

Nice

Thats exactly what I was duplicating. :D

Deadly_Killer 05-31-2007 12:21 AM

Then you win! :D

P.S. I wish there was a thumbs up icon smiley, but that should be enough ;)

Inverness 06-05-2007 06:41 AM

1 Attachment(s)
After a bit of contemplation I decided to finally integrate the alpha into the images themselves, this will prevent any customization by the client for which I had hoped. Until Stefan releases that alpha option that is. Using png rather than jpeg to prevent compression marks.

Console is using default transparency rather than custom this time.

The Inventory window is from an old script, the top two frames above the scroll are meant to show the selected item icon and its name and info, those frames are GuiControl objects using border 5, which is a bitmap, which is the same bitmap as the buttons.

Imperialistic 06-05-2007 07:12 AM

Quote:

Originally Posted by Inverness (Post 1313425)
Well the idea was for the entire thing to be semi-transparent but I have to wait for next Graal version before I can implement that without changing the image files themselves, and I would prefer not to do that as it defeats the purpose of gui controls.

ah ok...the new update looks great btw

theHAWKER 06-05-2007 04:50 PM

why dont you just make the txt smaller or larger?

Inverness 06-05-2007 09:03 PM

Quote:

Originally Posted by theHAWKER (Post 1315334)
why dont you just make the txt smaller or larger?

What are you talking about? Content size would not have anything to do with the scroll window's bounds.

theHAWKER 06-06-2007 12:31 AM

Quote:

Originally Posted by Inverness (Post 1315397)
What are you talking about? Content size would not have anything to do with the scroll window's bounds.

just trying to help...

godofwarares 06-06-2007 12:33 AM

Quote:

Originally Posted by theHAWKER (Post 1315459)
just trying to help...

You're not in a position to help, You barely know scripting :]

Angel_Light 06-06-2007 04:29 AM

Invern modify the extent of the text itself to size it, Awesome update btw Good Luck with this! :P

cbk1994 06-06-2007 02:46 PM

Great update! GuiBitmapBorder was better before though :(

You need to change the extent of the text I'm pretty sure. I had a similar problem once.

Inverness 06-06-2007 08:29 PM

Quote:

Originally Posted by Angel_Light (Post 1315494)
Invern modify the extent of the text itself to size it, Awesome update btw Good Luck with this! :P

I don't think you understand how the GuiScrollCtrl works. It doesn't matter if the width or height of the text is 2000 pixels, the scroll will still clip it in the same area relative to its position.

Angel_Light 06-06-2007 09:57 PM

Quote:

Originally Posted by Inverness (Post 1315692)
I don't think you understand how the GuiScrollCtrl works. It doesn't matter if the width or height of the text is 2000 pixels, the scroll will still clip it in the same area relative to its position.

No it doesnt, I just tested it o.o

Inverness 06-07-2007 12:19 AM

Quote:

Originally Posted by Angel_Light (Post 1315720)
No it doesnt, I just tested it o.o

You're not understanding the concept of the scroll window.

zokemon 06-07-2007 12:30 AM

Quote:

Originally Posted by Inverness (Post 1315755)
You're not understanding the concept of the scroll window.

There are certain variables you can set in child controls of a scroll control that let it do as you say but by default, you can set any child control to any size you want it it won't be clipped.

Inverness 06-07-2007 11:07 PM

Quote:

Originally Posted by zokemon (Post 1315759)
There are certain variables you can set in child controls of a scroll control that let it do as you say but by default, you can set any child control to any size you want it it won't be clipped.

Thats nice but the viewing area of the scroll control is the problem here, not its contents.

zokemon 06-08-2007 11:56 PM

Quote:

Originally Posted by Inverness (Post 1316018)
Thats nice but the viewing area of the scroll control is the problem here, not its contents.

Ahh sorry, I must not have read everything you had said. My bad!

Inverness 06-09-2007 03:37 AM

Quote:

Originally Posted by zokemon (Post 1316325)
Ahh sorry, I must not have read everything you had said. My bad!

The only problem with it is the height of the viewing area for the scroll control is one pixel too large, lol.

zokemon 06-09-2007 05:08 AM

Quote:

Originally Posted by Inverness (Post 1316398)
The only problem with it is the height of the viewing area for the scroll control is one pixel too large, lol.

I believe there are variables like childwidth and childheight or something like that but that might only be for frame controls or resize controls.

Inverness 06-09-2007 10:38 AM

That doesn't make sense considering scrolls can have more than one object in them, besides I didn't see those variables when I took a look at the ones for the control.


All times are GMT +2. The time now is 01:13 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.