This commit is contained in:
Lilith 2024-06-12 19:16:15 +02:00
parent f8b7ebdbfe
commit 0d61c14991
Signed by: lilith
GPG key ID: 8712A0F317C37175
173 changed files with 22474 additions and 5 deletions

View file

@ -0,0 +1,22 @@
import Widget from 'resource:///com/github/Aylur/ags/widget.js';
import { enableClickthrough } from "../.widgetutils/clickthrough.js";
import { RoundedCorner } from "../.commonwidgets/cairo_roundedcorner.js";
export default (monitor = 0, ) => {
return Widget.Window({
monitor,
name: `crosshair${monitor}`,
layer: 'overlay',
exclusivity: 'ignore',
visible: false,
child: Widget.Icon({
icon: 'crosshair-symbolic',
css: `
font-size: ${userOptions.gaming.crosshair.size}px;
color: ${userOptions.gaming.crosshair.color};
`,
}),
setup: enableClickthrough,
});
}