-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
c0c8728
commit 90771a1
Showing
2 changed files
with
21 additions
and
6 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: Sunday, 7th April 2024 12:08:18 pm | ||
* Last Modified: Sunday, 7th April 2024 12:25:20 pm | ||
* Modified By: Tee ([email protected]) | ||
* | ||
* Copyright (c) 2023 Tee, Stainless Love | ||
|
@@ -40,10 +40,9 @@ export default function ConfigItem({ title, template, group, config, setConfig } | |
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"> | ||
<select onChange={(e) => config[group][id].value = e.target.value} 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> | ||
|
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: Sunday, 7th April 2024 12:08:04 pm | ||
* Last Modified: Sunday, 7th April 2024 12:30:53 pm | ||
* Modified By: Tee ([email protected]) | ||
* | ||
* Copyright (c) 2023 Tee, Demon Cat | ||
|
@@ -115,6 +115,9 @@ function main() { | |
status = true | ||
} | ||
|
||
|
||
console.log(configurations.rpc) | ||
|
||
callScript('state()') | ||
callScript('details()') | ||
callScript('smallImageKey()') | ||
|
@@ -123,8 +126,21 @@ function main() { | |
callScript('largeImageText()') | ||
callScriptNumber('partySize()') | ||
callScriptNumber('partyMax()') | ||
props.largeImageKey = configurations.largeImageKey.value | ||
|
||
// props.largeImageKey = configurations.extension[largeImageKey].value | ||
if(configurations.rpc.largeImageKey.value){ | ||
switch(configurations.rpc.largeImageKey.value){ | ||
case "old": | ||
props.largeImageKey = 'logo' | ||
break; | ||
case "new": | ||
props.largeImageKey = 'logo2' | ||
break; | ||
default: | ||
props.largeImageKey = configurations.rpc.largeImageKey.value | ||
} | ||
}else{ | ||
props.largeImageKey = 'logo2' | ||
} | ||
|
||
console.log(props) | ||
|
||
|