1. #1

    texture highlight on mouse over

    Hello!

    Recently made some changes to the setup portion of my UI by creating some buttons and such. however I cant get the buttons to change texture (to give that highlighted effect) when i'm mousing over them.

    I've tried using (for example) Button:SetHighlightTexture("filepathtoadifferenttexture") but I cant get it working. I have go through other peoples code and they seem to be using this, am i missing some obvious here?

    thanks!

    Space/Sockz

  2. #2
    Code:
    button3:SetHighlightTexture("Interface\\Buttons\\WHITE8x8")
    works fine, maybe it did work fine but the texture i used wasnt obvious enough

    any way i can just change the colour of the texture on highlight?

  3. #3
    as in change the colour of the texture when its highlighted instead of using a separate texture altogether. or will i need a separate texture that has been coloured differently and just point the SetHighlightTexture to the coloured version of a texture

  4. #4
    Deleted
    Couldn't you just SetVertexColor the highlight texture object which is returned by GetHighlightTexture?

  5. #5
    had a little play, but i guess im just not using GetHighlightTexture correctly and not getting any progress =/

    EDIT: nvm i got it, thanks guys!
    Last edited by SpaceDuck; 2012-07-09 at 08:49 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •