1. Post #1
    DreBly's Avatar
    January 2011
    23 Posts
    My question is, is there a way to make a button change color when you put your mouse over it? Any input is appreciated!

  2. Post #2
    "The superior man understands what is right; the inferior man understands what will sell"
    Chessnut's Avatar
    August 2011
    3,296 Posts
    function button:OnMouseEntered()
         self.color = Color(255, 0, 0, 125);
    end;
    
    function button:Paint()
         if (self.color) then
              -- Draw rect with color self.color;
         end;
    end;
    

    Haven't tested.
    Reply With Quote Edit / Delete Reply United States Show Events Winner Winner x 1 (list)

  3. Post #3
    DreBly's Avatar
    January 2011
    23 Posts
    Thanks, i'll fiddle around with that.