Author Topic: More dynamic buttons?  (Read 5823 times)

Majicpanda

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
More dynamic buttons?
« on: March 19, 2014, 12:26:49 AM »
I'm trying to create a button system in the game where there's just a slight brightness on hover and the only good way I can see to do this is to tint all the buttons down to 200 200 200 255 as example and on hover do 255 255 255 255.  Is this the best solution since there's no way to do a complete image change on hover option?  I don't see any other way to do a highlight option like Diablo 3 where you're not really just going from color to color like you do in Starlink (which I assume you just have white buttons and adjust RGB in game).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: More dynamic buttons?
« Reply #1 on: March 20, 2014, 02:02:09 AM »
No way to do a complete image change on hover?

Just choose a different sprite for the "hover" state on the UIButton script.

Majicpanda

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
Re: More dynamic buttons?
« Reply #2 on: March 20, 2014, 11:29:19 PM »
In code or is this a new feature in 3.x that I can't get due to having problems upgrading our odd pixel art project to the new system?  Our UI is only 188px max height and font size is 10 when created in Glyph Designer, so the new font system snaps large adjustments any time the height is changed.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: More dynamic buttons?
« Reply #3 on: March 21, 2014, 01:31:47 PM »
I'm not sure if you're asking a new question here or trying to clarify your old one. If it's clarify, then I have no idea what fonts and glyph designer have to do with your original question. In either case I don't understand what you mean by "snaps large adjustments".