generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: lolwut

Previous Thread :: Next Thread 
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
30 Mar 2013 12:03 AM
Correct.
Report Abuse
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
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
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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
GreenDay987 is not online. GreenDay987
Joined: 21 May 2011
Total Posts: 7027
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image