About Store Forum Documentation Contact



Post Reply 
Selection GUI Borders.
Author Message
Salival Offline
Member

Post: #1
Selection GUI Borders.
How can I remove the selection borders on the GUI button, editlines objects?

Look at the image ( Blue border when you select objects )

Works on windows but buttons and textlines do not have the border_color to set to 0.

Thank you.
(This post was last modified: 05-20-2010 11:01 AM by Salival.)
05-20-2010 11:00 AM
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #2
RE: Selection GUI Borders.
Code:
Gui.kb_lit = false;

?
05-20-2010 02:01 PM
Find all posts by this user Quote this message in a reply
Salival Offline
Member

Post: #3
RE: Selection GUI Borders.
(05-20-2010 02:01 PM)Ogniok Wrote:  
Code:
Gui.kb_lit = false;

?

Yes I know, But that is for all GUI Objects, You can't set on each ?

Thanks.
05-20-2010 02:53 PM
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #4
RE: Selection GUI Borders.
I don't know is that a good method to do it but you can try this:

Code:
GUI myGuiForButton;

myGuiForButton += button.create(..);
myGuiForButton.kb_lit = false;

update()
{
   (...)
   myGuiForButton.update();
   (...)
}

draw()
{
   (...)
   myGuiForButton.draw();
   (...)
}
(This post was last modified: 05-20-2010 07:30 PM by Ogniok.)
05-20-2010 06:31 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #5
RE: Selection GUI Borders.
Quote:I don't know is that a good method to do it but you can try this:
no, only main "GUI Gui" should be used
05-20-2010 07:56 PM
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #6
RE: Selection GUI Borders.
So, there is no wa to do what He want?
05-20-2010 08:27 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #7
RE: Selection GUI Borders.
disabling Button.kb_catch should work too

you can also disable kb_lit for all objects, and extend drawing methods and apply custom rectangle only to desired objects.
05-20-2010 08:48 PM
Find all posts by this user Quote this message in a reply
Salival Offline
Member

Post: #8
RE: Selection GUI Borders.
Thanks all for your help.
05-21-2010 07:06 AM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #9
RE: Selection GUI Borders.
How are you setting Gui.kb_lit to false? From what I can see, Gui.kb_lit is a Color. If I try:

Gui.kb_lit = false;

I just get an error.

I'm having the same problem. I have managed to get rid of the blue border with this:

Gui.kb_lit = Color(0,0,0,0);

However this doesn't get rid of the highlighting that occurs when I put my mouse cursor over the button. A light coloured rectangle is drawn over the button. How do I stop that?
05-23-2010 06:44 AM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #10
RE: Selection GUI Borders.
(05-23-2010 06:44 AM)fatcoder Wrote:  How are you setting Gui.kb_lit to false? From what I can see, Gui.kb_lit is a Color. If I try:

Gui.kb_lit = false;

I just get an error.

I'm having the same problem. I have managed to get rid of the blue border with this:

Gui.kb_lit = Color(0,0,0,0);

However this doesn't get rid of the highlighting that occurs when I put my mouse cursor over the button. A light coloured rectangle is drawn over the button. How do I stop that?

I don't know how to disable this highlighting too. Does anyone know how to do this?
(This post was last modified: 06-25-2010 12:08 PM by Harry.)
06-25-2010 12:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply