Mistium / Origin-OS

originOS is a scratch desktop gui made by @Mistium
https://origin.mistium.com
24 stars 9 forks source link

[OSL] New IFrame Syntax #122

Closed Mistium closed 1 month ago

Mistium commented 1 month ago

iframes are annoying and complicated, so this is better :P

youtube = "https://youtube.com/".newIframe()
youtube.iframeShow()
youtube.iframeCreate()
// adds the iframe to the window

mainloop:
youtube.iframeSize(window_width,window_height - 40)
// resizes the iframe to the window

goto 0 -20
youtube.iframeUpdate()
// calls to update the iframe at the xy of the draw cursor

if "up arrow".onpress (
  youtube.iframeRedirect("https://studio.youtube.com")
)
if "space".onpress (
  youtube.iframeClose()
)
Mistium commented 1 month ago

Added this v5.0.1