top of page

The Generic Button

  • 50541507
  • Mar 23, 2022
  • 1 min read

Creating a generic button is a big undertaking, because although its name is boring sounding, it's a very important part of the overall UI. If it doesn't fit, it could completely ruin the immersion for the player. I took the design principles already present in my UI (line at the bottom, some kind of fade for gradient or flat colour, clean-looking text) and put them into an easily distinguishable button.

In order to make this button reusable as much as possible, I made the bottom line sizes changeable as variables, as well as set variables for things like colour, text, alignment, icons, using a Named Slot instead of text, font, size, position, etc. This lets stuff like this be made with the same widget by changing a few settings:

This last Queue button was done with functions from my custom button widget, which let me call them like default widget functions and do certain things quickly, like changing the colour or text, without having to call the certain components each time:

In conclusion, my genius literally knows no bounds.

 
 
 

Comments


bottom of page