-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added misc category and button click detection
- Loading branch information
1 parent
ec020f9
commit ac8e628
Showing
7 changed files
with
108 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"printWidth": 130, | ||
"useTabs": true, | ||
"tabWidth": 4, | ||
"semi": true | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<script lang="ts"> | ||
import type {SettingsPanel} from '@/types/settings'; | ||
import Panel from './Settings/Panel.svelte'; | ||
import { saveSettings } from '../ts/settings'; | ||
import { showNotification } from '../ts/notifications'; | ||
function settingsChanged(o: Object) { | ||
saveSettings("misc",o) | ||
} | ||
function buttonClicked(e: CustomEvent) { | ||
const id = e.detail | ||
showNotification({ | ||
title: "Button clicked", | ||
content: `Button id: ${id}` | ||
}) | ||
} | ||
const panelOpts: SettingsPanel = { | ||
name: 'Misc', | ||
description: 'Various miscellaneous features and options', | ||
id: 'misc', | ||
sections: [ | ||
{ | ||
name: 'Multi Instances', | ||
description: "Makes it so multiple Roblox windows can be opnened at once.", | ||
id: 'multi_instances', | ||
interactables: [ | ||
{ | ||
label: 'Enable Multi Instances', | ||
description: 'Makes it so multiple Roblox windows can be opnened at once.', | ||
id: 'notify_location', | ||
options: { | ||
type: "button", | ||
style: "default", | ||
}, | ||
} | ||
], | ||
} | ||
], | ||
}; | ||
</script> | ||
|
||
<Panel panel={panelOpts} on:buttonClicked={buttonClicked} on:settingsChanged={(e)=>{settingsChanged(e.detail)}}/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters