Readd side menu reroll button

This commit is contained in:
kwaroran
2024-02-07 06:11:18 +09:00
parent 7e0ac2513b
commit 914ff266e1
4 changed files with 12 additions and 9 deletions

View File

@@ -529,4 +529,5 @@ export const languageEnglish = {
edit: "Edit", edit: "Edit",
enableGlobal: "Enable Globally", enableGlobal: "Enable Globally",
chatModulesInfo: "You can enable or disable modules for this chat.", chatModulesInfo: "You can enable or disable modules for this chat.",
sideMenuRerollButton: "Side Menu Reroll Button",
} }

View File

@@ -666,15 +666,12 @@
<span class="ml-2">{language.autoSuggest}</span> <span class="ml-2">{language.autoSuggest}</span>
</div> </div>
{#if $DataBase.sideMenuRerollButton}
<div class="flex items-center cursor-pointer hover:text-green-500 transition-colors" on:click={() => { <div class="flex items-center cursor-pointer hover:text-green-500 transition-colors" on:click={reroll}>
$CurrentChat.modules ??= [] <RefreshCcwIcon />
openModuleList = true <span class="ml-2">{language.reroll}</span>
openMenu = false </div>
}}> {/if}
<PackageIcon />
<span class="ml-2">{language.modules}</span>
</div>
</div> </div>
{/if} {/if}

View File

@@ -38,3 +38,7 @@
<div class="flex items-center mt-2"> <div class="flex items-center mt-2">
<Check bind:check={$DataBase.showMenuChatList} name={language.showMenuChatList}/> <Check bind:check={$DataBase.showMenuChatList} name={language.showMenuChatList}/>
</div> </div>
<div class="flex items-center mt-2">
<Check bind:check={$DataBase.sideMenuRerollButton} name={language.sideMenuRerollButton}/>
</div>

View File

@@ -590,6 +590,7 @@ export interface Database{
memoryLimitThickness?:number memoryLimitThickness?:number
modules: RisuModule[] modules: RisuModule[]
enabledModules: string[] enabledModules: string[]
sideMenuRerollButton?:boolean
} }
export interface customscript{ export interface customscript{