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 12-26-2007, 07:56 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Rather weird GUI problem

I've having a really strange problem with setting a custom gui bitmap.

I'm using a 24-bit PNG with transparency.

This is the code I'm using:

PHP Code:
//#CLIENTSIDE

function onCreated() {
  
Message_Window.destroy();
  
  new 
GuiControlProfile("MessageWindow") {
    
bitmap "guiquian_messagewindow.png";
    
transparency 0.5;
  }

  new 
GuiWindowCtrl("Message_Window") {
    
profile "MessageWindow";
    
= (screenwidth screenwidth) + 180;
    
= (screenheight screenheight) + 20;
    
width screenwidth 200;
    
height 100;
    
text "message bar";
    
//No Control
    
canresize 0;
    
canclose 0;
    
canmove 0;
    
canmaximize 0;
    
canminimize 1;
  }
 

I've attached the image I've used and a screenshot of what's going on.
Attached Thumbnails
Click image for larger version

Name:	strange_problem.png
Views:	201
Size:	60.5 KB
ID:	43603  
Attached Images
 
Reply With Quote
  #2  
Old 12-26-2007, 08:17 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
Where are the red lines in the gui image?
__________________
Reply With Quote
  #3  
Old 12-26-2007, 08:22 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Good question. Just incase you didnt know, the red lines are totally needed.
Reply With Quote
  #4  
Old 12-26-2007, 08:26 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Aye, I just figured this out and got it working. Problem solved

Thanks for quick reply.

Might aswell put this here aswell:

How do you make the ENTIRE guiwindow semi transparent rather than the fill in the middle?
Reply With Quote
  #5  
Old 12-26-2007, 09:52 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
Quote:
Originally Posted by Codein View Post
Aye, I just figured this out and got it working. Problem solved

Thanks for quick reply.

Might aswell put this here aswell:

How do you make the ENTIRE guiwindow semi transparent rather than the fill in the middle?
Im pretty sure that this was asked bejore and steefan said its not posible

My fingers are too big for this stupid phone!
__________________
Reply With Quote
  #6  
Old 12-26-2007, 10:02 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Blah, what a waste of time. Images it is then.
Reply With Quote
  #7  
Old 12-26-2007, 10:17 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
You could always use the Gui Controls alpha variable, you know...
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #8  
Old 12-26-2007, 10:59 PM
bscharff bscharff is offline
Bloo
bscharff's Avatar
Join Date: Sep 2006
Location: San Antonio, Texas
Posts: 185
bscharff has a little shameless behaviour in the past
Send a message via AIM to bscharff Send a message via MSN to bscharff Send a message via Yahoo to bscharff
Who's steefan?
__________________
Trying to be nice now...
Reply With Quote
  #9  
Old 12-26-2007, 11:01 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
Quote:
Originally Posted by coreys View Post
You could always use the Gui Controls alpha variable, you know...
Doesn't that only change the background of the window?
__________________
Reply With Quote
  #10  
Old 12-26-2007, 11:05 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
Quote:
Originally Posted by bscharff View Post
Who's steefan?
Obviously you have never tried typing on the car on an iPhone.

Sorry for double post, can't copy and paste on iPhone.
__________________
Reply With Quote
  #11  
Old 12-26-2007, 11:10 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by cbkbud View Post
Doesn't that only change the background of the window?
o.o nope
Changes the alpha of the entire window, and it's child controls (unless you change the alpha in those child controls as well)
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #12  
Old 12-27-2007, 12:41 AM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by coreys View Post
o.o nope
Changes the alpha of the entire window, and it's child controls (unless you change the alpha in those child controls as well)
Ah, it wouldn't mattered to me anyway. I had other major problems with it. I've scripted, fully working, with images and showtext() now.

Thanks for the responses anyway, much appreciated <3.
Reply With Quote
  #13  
Old 12-27-2007, 01:18 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I've had this similar problem before. It means your layout of the GUI is wrong somehow(even a wrong pixel in a place can mess it up). Check out:
http://forums.graalonline.com/forums...&highlight=GUI
Reply With Quote
  #14  
Old 12-27-2007, 01:21 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by DustyPorViva View Post
I've had this similar problem before. It means your layout of the GUI is wrong somehow(even a wrong pixel in a place can mess it up). Check out:
http://forums.graalonline.com/forums...&highlight=GUI
Problem was already solved Dusty D:
Reply With Quote
  #15  
Old 12-27-2007, 01:35 AM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by DustyPorViva View Post
I've had this similar problem before. It means your layout of the GUI is wrong somehow(even a wrong pixel in a place can mess it up). Check out:
http://forums.graalonline.com/forums...&highlight=GUI
Aye, I realised this. However, using GUI controls created other problems aswell. I've used showimg/showtext. I've achieved the effect I wanted, without the headaches.
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 08:21 PM.


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