31
SFML projects / Roller coaster simulator
« on: July 04, 2009, 12:43:12 pm »
The buttons are bordered rectangles which check if the mouse is in their boundaries every time the mouse is down.
When you set up a button you give a top left vector, a bottom right vector, text for the button to display and a function pointer which the button will call if it is clicked.
I don't know what you mean by "Is it really a GUI system or just hardcoded stuff?" but the GUI_Manager, Button and Label classes could be used with any other SFML project just by copying the files and passing them the correct data when constructing them.
When you set up a button you give a top left vector, a bottom right vector, text for the button to display and a function pointer which the button will call if it is clicked.
I don't know what you mean by "Is it really a GUI system or just hardcoded stuff?" but the GUI_Manager, Button and Label classes could be used with any other SFML project just by copying the files and passing them the correct data when constructing them.