I have been making a game on and off for the past few years, and i had built my own GUI for it (using OpenGL for the graphics). I had put that project aside for a while, until recently when i decided to re-write the GUI, and a lot of other components, using Qt.
Two of the most important things i need for the GUI is to have bitmap* skinned buttons and bitmap fonts.
Right now, i have buttons that look like this (note that the grey is not part of the button):
I admit, the font doesn't look the best, but i would still like to be able to use a bitmap font. Or at least find a better way to use fonts. I don't know what other games do.
One other point to make is the size of the button, it will need to be bigger than the standard button size.
Firstly, for the skinning, i don't suppose there is an easy (or possible) way to do this using style sheets. So the other way would be to subclass each widget and do custom drawing. That should probably be faster than style sheets, too.
As for the button size, if i subclass i can override the size hint. But i am not sure what the size should be. I want it to resize well and look good at different screen sizes.
It would be cool if there was already a 3rd party GUI library for Qt, like wysota's widgets, but geared more towards games (that is, can use bitmap skins and fonts).
If not, where is the best place to start? Just start subclassing each widget and re-write their drawing code?
* I am using the Microsoft definition of bitmap, so i actually mean pixmap.
Bookmarks