How do I export transparent window with WebView2?

Not favoritedFavorited Favorited 1 favourites
  • 5 posts
From the Asset Store
Get Ready for the New Wave of "Bottom Screen" Games!
  • I noticed someone posted this example, but it was based on NW.js. Can WebView2 export "transparent background" and "borderless" application modes? Ashley

    Why do we need it?

    This feature allow to make a "desktop ranch" and "desktop pendants" games, like:

    Of course, I know this may be a very difficult work, because that may also warrant attention Technical points:

    1. Borderless windows

    2. Always on top

    3. Allow click-through

    4. Allow background running

    5. Allows movement between different monitors

    6. Notification requested

  • Thanks XHXIAIEIN.This post is very important.

    It seems that Microsoft's WPF desktop application does not support both transparency and click through of WV2 components (of course, the transparent part is click through, while the opaque part is not).

    WV2 is a good technology, it is very lightweight and has good performance, but currently there are not many programs in China that understand this technology, so the solutions we can find are very limited. If you have any ideas, you can also give us a hint first, so that we don't have to search for a suitable solution in a haystack. Please!!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It's probably possible with a wrapper extension. Construct's extension SDK can give a wrapper extension the HWND for the main window, and then you can make any Win32 API calls you like to alter it.

  • This was apparently partitially fixed: github.com/Scirra/Construct-feature-requests/issues/465

    But that didnt help with transparent window / click through for me :(

    XHXIAIEIN did you ever figured this out?

    Does anyone have a solution / manual how to do this now? As the nwjs support will be removed i have 2 projects on hold for month now :(

    Kind regards

  • I created a tutorial on how to package a desktop pet using Electron. You can check it out if you need it.j0schi

    我创建了一个关于如何使用 Electron 打包桌面宠物的教程。如果你需要的话,可以查看一下。

    construct.net/en/game-assets/game-templates/desktop-pet-support-steamsdk-5205

    construct.net/en/game-assets/game-templates/desktop-pet-tutorial-5203

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)