Is this Form Designer tutorial example still relevent with 5.73 LTS version? It was posted back in 2015
https://www.purebasic.fr/english/viewtopic.php?t=64684
I'm trying to learn how to use the form designer and include and use the file in my game, but I'm not sure what to put in the pb file to use the pbf file. I only want to use one window for entire game. My plan is the remove or delete the current stuff in the window and add the next stuff for the next screen, but first I need to learn how to use the generated pbf file and call it in a source file to use it
This is what I have and want to use. I need to add a window timer probably because I want to just show it for 4-5 seconds and then it disappear. I might want to add the event of if the left mouse button is clicked it will end the screen early and move to the next screen in the same window
I'm also needing to do this on my mac and post back soon. I haven't had time to work on the mac LOL
Code: Select all
Global Window_0
Global Image_1
Global Img_Window_0_0
UsePNGImageDecoder()
Img_Window_0_0 = LoadImage(#PB_Any,"C:\Users\Brian\Documents\Pure Basic Projects\Ultimate Football Manager\Media\UFM.png")
Procedure OpenWindow_0(x = 0, y = 0, width = 1920, height = 1080)
Window_0 = OpenWindow(#PB_Any, x, y, width, height, "", #PB_Window_SystemMenu)
Image_1 = ImageGadget(#PB_Any, 0, 0, 1920, 1080, ImageID(Img_Window_0_0))
EndProcedure
Procedure Window_0_Events(event)
Select event
Case #PB_Event_CloseWindow
ProcedureReturn #False
Case #PB_Event_Menu
Select EventMenu()
EndSelect
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
EndSelect
ProcedureReturn #True
EndProcedure