|
| 29 Mar 2013 11:57 PM |
script.Parent.MouseEnter:connect(function() script.Parent.Parent.CreateClassDescription.Visible = true script.Parent.BackgroundColor3 = Color3.new(255,255,255) script.Parent.BackgroundTransparency = 0 script.Parent.TextColor3 = Color3.new(0,0,0) script.Parent.TextStrokeColor3 = Color3.new(255,255,255) end)
script.Parent.MouseLeave:connect(function() script.Parent.Parent.CreateClassDescription.Visible = false script.Parent.BackgroundColor3 = Color3.new(0,0,0) script.Parent.BackgroundTransparency = 0.4 script.Parent.TextColor3 = Color3.new(255,255,255) script.Parent.TextStrokeColor3 = Color3.new(0,0,0) end)
It's supposed to make the button white with black text when hovered over, and transparent black with white text when not. It works fine, until the mouse leaves the button. It turns black and transparent again, but the text stays black.
Disregard females, acquire currency. |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2013 12:00 AM |
Try changign all Color3.new(255,255,255) values to Color3.new(1,1,1). Color3 takes numbers between 0 and 1, not 0 and 255.
Other than that, it looks correct, unless I'm really missing something. |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2013 12:01 AM |
If 1,1,1 is white then I'm guessing 0,0,0 is still black?
Disregard females, acquire currency. |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Mar 2013 12:06 AM |
Would you happen to know why when I test this, the white is sort of grey-ish?
Disregard females, acquire currency. |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2013 12:09 AM |
I'm not sure if you know what I mean.
In Studio, if I set the BackgroundColor to as white as possible, it's fine. Perfect white.
In PlaySolo and online, the white isn't white anymore, it looks like the default gray of frames.
Disregard females, acquire currency. |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2013 12:10 AM |
I don't think I've ever had that happen to me before. :c Sorry, but I can't help you on this. :( |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2013 12:12 AM |
Oh. Thanks for the help anyway.
If you still want to see what I mean, I published it:
http://www.roblox.com/Intense-Paintball-Beta-Build-v0-9-place?id=52236974
Disregard females, acquire currency. |
|
|
| Report Abuse |
|
|