It would be interesting to use a webview as a GUI interface on top of the ogre3d screen.

Everything related to 3D programming
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 782
Joined: Fri Dec 04, 2015 9:26 pm

It would be interesting to use a webview as a GUI interface on top of the ogre3d screen.

Post 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
User avatar
minimy
Enthusiast
Enthusiast
Posts: 619
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: It would be interesting to use a webview as a GUI interface on top of the ogre3d screen.

Post 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

If translation=Error: reply="Sorry, Im Spanish": Endif
Post Reply