Page 1 of 1
It would be interesting to use a webview as a GUI interface on top of the ogre3d screen.
Posted: Wed Jan 10, 2024 4:47 am
by skinkairewalker
Hey guys, just considering the idea… but wouldn’t it be interesting to replace CEGUI with an HTML interface?
This project below does what I mentioned above, it inserts an HTML/CSS processor into games and desktop apps.
https://github.com/ultralight-ux/Ultralight
Re: It would be interesting to use a webview as a GUI interface on top of the ogre3d screen.
Posted: Wed Jan 10, 2024 4:18 pm
by minimy
I think this can work if you use fullscreen window with borderless.
use rgb(255,0,0) as transparent color.
Is not the best solution i know.
If you test can tell me if it work?
Thanks!
Code: Select all
OpenWindow(0,0,0,500,400,"Window",#PB_Window_SystemMenu)
ButtonGadget(1,10,10,100,20,"Button",0)
SetWindowColor(0,RGB(255,0,0))
SetWindowLongPtr_(WindowID(0), #GWL_EXSTYLE, #WS_EX_LAYERED | #WS_EX_TOPMOST)
SetLayeredWindowAttributes_(WindowID(0),RGB(255,0,0),0,#LWA_COLORKEY)
Repeat
EventID=WaitWindowEvent()
If EventID=#PB_Event_Gadget
Select EventGadget()
Case 1
Break
EndSelect
EndIf
If EventID = #PB_Event_CloseWindow
Break
EndIf
ForEver
End