aboutsummaryrefslogtreecommitdiffstats
path: root/config/ags/modules/.widgethacks/popupwindow.js
diff options
context:
space:
mode:
authorJa.KooLit <ejhay.games@gmail.com>2024-05-05 07:18:59 +0900
committerJa.KooLit <ejhay.games@gmail.com>2024-05-05 07:18:59 +0900
commit8e9b6f015038ae76ce68035d6aee7ff88a5be06c (patch)
tree498a56e78802f92bf3814353ac35a50d8b5f950b /config/ags/modules/.widgethacks/popupwindow.js
parent962a09dd0088cd01cbf3e678c4c500ff5087e4e4 (diff)
Hmmmm.. I dont know why ags its here.... removing it
Diffstat (limited to 'config/ags/modules/.widgethacks/popupwindow.js')
-rw-r--r--config/ags/modules/.widgethacks/popupwindow.js32
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage