【发布时间】:2018-02-17 21:47:57
【问题描述】:
我想知道是否有办法将主应用程序窗口背景设置为透明,以便在使用 openfl 为 macOS 和 Windows 构建时可以看到其背后的所有其他应用程序
我的项目文件如下所示。
<?xml version="1.0" encoding="utf-8"?>
<project>
<meta title="DeskClock" package="com.sample.deskclock" version="1.0.0" company="Company Name" />
<app main="Main" path="Export" file="DeskClock" />
<window hardware="true" allow-shaders="true" require-shaders="true" depth-buffer="false" stencil-buffer="false" />
<window
background="0x00000000"
fullscreen="false"
resizable="false"
borderless="true"
vsync="true"/>
<window always-on-top="true" />
<source path="Source" />
<haxelib name="openfl" />
<assets path="Assets" rename="assets" />
</project>
我的主文件看起来像这样。
【问题讨论】: