Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-30-2007, 09:26 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
New GUI & Small GUI Control Bug

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.
Attached Thumbnails
Click image for larger version

Name:	windowex3.png
Views:	300
Size:	161.1 KB
ID:	41381  
__________________
Reply With Quote
  #2  
Old 05-30-2007, 05:10 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Amazing!
__________________
Reply With Quote
  #3  
Old 05-30-2007, 05:12 PM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
I like the GUI but i think it could be a little bit more shaded
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
  #4  
Old 05-30-2007, 08:21 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Imperialistic View Post
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.
__________________
Reply With Quote
  #5  
Old 05-30-2007, 09:38 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
good graphics cant you just adjust the height of the scroll/text window itself?
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 05-30-2007, 09:40 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
extent changes the width and height of the scroll window itself, not where its contents are displayed.
__________________
Reply With Quote
  #7  
Old 05-30-2007, 10:25 PM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Reminds me of Half-Life 2 =D.

Nice
__________________
- Zidane / Zidaya
Reply With Quote
  #8  
Old 05-30-2007, 11:24 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Deadly_Killer View Post
Reminds me of Half-Life 2 =D.

Nice
Thats exactly what I was duplicating.
__________________
Reply With Quote
  #9  
Old 05-31-2007, 12:21 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Thumbs up

Then you win!

P.S. I wish there was a thumbs up icon smiley, but that should be enough
__________________
- Zidane / Zidaya
Reply With Quote
  #10  
Old 06-05-2007, 06:41 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
Attached Thumbnails
Click image for larger version

Name:	windowex4.png
Views:	245
Size:	220.0 KB
ID:	41486  
__________________
Reply With Quote
  #11  
Old 06-05-2007, 07:12 AM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
Quote:
Originally Posted by Inverness View Post
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
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
  #12  
Old 06-05-2007, 04:50 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
why dont you just make the txt smaller or larger?
__________________
**FLIP OUT**
Reply With Quote
  #13  
Old 06-05-2007, 09:03 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by theHAWKER View Post
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.
__________________
Reply With Quote
  #14  
Old 06-06-2007, 12:31 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Unhappy

Quote:
Originally Posted by Inverness View Post
What are you talking about? Content size would not have anything to do with the scroll window's bounds.
just trying to help...
__________________
**FLIP OUT**
Reply With Quote
  #15  
Old 06-06-2007, 12:33 AM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by theHAWKER View Post
just trying to help...
You're not in a position to help, You barely know scripting :]
__________________
What signature? I see no signature?
Reply With Quote
  #16  
Old 06-06-2007, 04:29 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Invern modify the extent of the text itself to size it, Awesome update btw Good Luck with this! :P
__________________
Deep into the Darkness peering...
Reply With Quote
  #17  
Old 06-06-2007, 02:46 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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.
__________________
Reply With Quote
  #18  
Old 06-06-2007, 08:29 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Angel_Light View Post
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.
__________________
Reply With Quote
  #19  
Old 06-06-2007, 09:57 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by Inverness View Post
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
__________________
Deep into the Darkness peering...
Reply With Quote
  #20  
Old 06-07-2007, 12:19 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Angel_Light View Post
No it doesnt, I just tested it o.o
You're not understanding the concept of the scroll window.
__________________
Reply With Quote
  #21  
Old 06-07-2007, 12:30 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Inverness View Post
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.
__________________
Do it with a DON!
Reply With Quote
  #22  
Old 06-07-2007, 11:07 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by zokemon View Post
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.
__________________
Reply With Quote
  #23  
Old 06-08-2007, 11:56 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Inverness View Post
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!
__________________
Do it with a DON!
Reply With Quote
  #24  
Old 06-09-2007, 03:37 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by zokemon View Post
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.
__________________
Reply With Quote
  #25  
Old 06-09-2007, 05:08 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Inverness View Post
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.
__________________
Do it with a DON!
Reply With Quote
  #26  
Old 06-09-2007, 10:38 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:10 PM.


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