Skip to content

Commit

Permalink
logo
Browse files Browse the repository at this point in the history
  • Loading branch information
teeteeteeteetee committed Apr 7, 2024
1 parent c0c8728 commit 90771a1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/client-src/components/ConfigItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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>
Expand Down
22 changes: 19 additions & 3 deletions src/rpc_client-src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -115,6 +115,9 @@ function main() {
status = true
}


console.log(configurations.rpc)

callScript('state()')
callScript('details()')
callScript('smallImageKey()')
Expand All @@ -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)

Expand Down

0 comments on commit 90771a1

Please sign in to comment.