-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89d2ff7
commit 066297f
Showing
3 changed files
with
20 additions
and
13 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Github: https://github.com/teeteeteeteetee | ||
* Discord: Tee#0001 | ||
* | ||
* Last Modified: Saturday, 25th November 2023 4:45:34 pm | ||
* Last Modified: Sunday, 7th April 2024 12:08:18 pm | ||
* Modified By: Tee ([email protected]) | ||
* | ||
* Copyright (c) 2023 Tee, Stainless Love | ||
|
@@ -37,15 +37,21 @@ export default function ConfigItem({ title, template, group, config, setConfig } | |
} | ||
|
||
|
||
const dropdown = (id) => ( | ||
<div> | ||
<select id={id} className="bg-dropdown outline-none w-32 px-2 rounded-md" name="logo"> | ||
<option value="old">Old</option> | ||
<option value="new">Updated</option> | ||
<option value="custom">Custom</option> | ||
</select> | ||
</div> | ||
) | ||
const dropdown = (id) => { | ||
|
||
if(Object.keys(config).length > 0){ | ||
const [value, setValue] = useState(config[group][id].value) | ||
return ( | ||
<div> | ||
<select onChange={console.log(this)} id={id} className="bg-dropdown outline-none w-32 px-2 rounded-md" name="logo"> | ||
<option value="old">Old</option> | ||
<option value="new">Updated</option> | ||
<option value="custom">Custom</option> | ||
</select> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
const list = Object.keys(template) | ||
.filter(key => !template[key].hidden) | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Github: https://github.com/teeteeteeteetee | ||
* Discord: Tee#0001 | ||
* | ||
* Last Modified: Saturday, 25th November 2023 6:06:47 pm | ||
* Last Modified: Sunday, 7th April 2024 12:08:04 pm | ||
* Modified By: Tee ([email protected]) | ||
* | ||
* Copyright (c) 2023 Tee, Demon Cat | ||
|
@@ -123,7 +123,7 @@ function main() { | |
callScript('largeImageText()') | ||
callScriptNumber('partySize()') | ||
callScriptNumber('partyMax()') | ||
props.largeImageKey = 'logo' | ||
props.largeImageKey = configurations.largeImageKey.value | ||
|
||
|
||
console.log(props) | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Github: https://github.com/teeteeteeteetee | ||
* Discord: Tee#0001 | ||
* | ||
* Last Modified: Saturday, 25th November 2023 4:52:55 pm | ||
* Last Modified: Sunday, 7th April 2024 11:52:17 am | ||
* Modified By: Tee ([email protected]) | ||
* | ||
* Copyright (c) 2023 Tee, Stainless Love | ||
|
@@ -45,6 +45,7 @@ export const rpcConfigurationTemplate = { | |
}, | ||
largeImageKey: { | ||
enabled: true, | ||
value: "logo", | ||
description: "", | ||
name: "Large Icon", | ||
type: "dropdown", | ||
|