diff options
| author | JaKooLit <ejhay.games@gmail.com~> | 2025-07-15 19:47:15 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com~> | 2025-07-15 19:47:15 +0900 |
| commit | eb6c637b8789edcaa4439382bad91c0fb4df8e1b (patch) | |
| tree | 69e8b1f219b2638d3119c70aea870730d7dae105 /config/ags/modules/.widgethacks/popupwindow.js | |
| parent | b37cf284a9d1ebd6583ba8489195c755c65935d8 (diff) | |
removing ags
Diffstat (limited to 'config/ags/modules/.widgethacks/popupwindow.js')
| -rw-r--r-- | config/ags/modules/.widgethacks/popupwindow.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/config/ags/modules/.widgethacks/popupwindow.js b/config/ags/modules/.widgethacks/popupwindow.js deleted file mode 100644 index 26dad59c..00000000 --- a/config/ags/modules/.widgethacks/popupwindow.js +++ /dev/null @@ -1,32 +0,0 @@ -import App from 'resource:///com/github/Aylur/ags/app.js'; -import Widget from 'resource:///com/github/Aylur/ags/widget.js'; -const { Box, Window } = Widget; - - -export default ({ - name, - child, - showClassName = "", - hideClassName = "", - ...props -}) => { - return Window({ - name, - visible: false, - layer: 'overlay', - ...props, - - child: Box({ - setup: (self) => { - self.hook(App, (self, currentName, visible) => { - if (currentName === name) { - self.toggleClassName(hideClassName, !visible); - } - }).keybind("Escape", () => App.closeWindow(name)) - if (showClassName !== "" && hideClassName !== "") - self.className = `${showClassName} ${hideClassName}`; - }, - child: child, - }), - }); -}
\ No newline at end of file |
