Swift GUI Help

Blitz3D Forums/Blitz3D Programming/Swift GUI Help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Easy peasy.

You're painting GUI_Button02 on the first one after you've just created GUI_Button01. You don't create Gui_Button02 until the next set of commands.

So just fix these lines:

GUI_Button01.GUI_Object = GUI_CreateSprite(500, 20, 90, 20)
	PaintEntity GUI_GetObjectEntity(GUI_Button01), brush02
	GUI_ObjectOrder(GUI_Button01, 1)
	Button01_Text.GUI_Object = GUI_CreateText(545, 30, "New Game", True, True)