I can't believe I'm having this problem. It is simple to do, but what is wrong with this code.
As the code is below, it shows a blank window.
If I use ImageID(Img_SplashScreen) in the place of the variable at the end of the ImageGadget, it says "[ERROR] The specified #Image is not initialized"
Code: Select all
Global Win_SplashScreen = 1
Global Img_SplashScreen = 1
Global Gadget_SplashScreen = 1
Flags = #PB_Window_BorderLess
OpenWindow(Win_SplashScreen, 0, 0, 1920, 1080, "European Football Simulator", Flags)
LoadImage(Img_SplashScreen, "Images\SplashScreen.png")
ImageGadget(Gadget_SplashScreen, 0, 0, 1920, 1080, Img_SplashScreen)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow