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",
enableGlobal: "Enable Globally",
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>
</div>
<div class="flex items-center cursor-pointer hover:text-green-500 transition-colors" on:click={() => {
$CurrentChat.modules ??= []
openModuleList = true
openMenu = false
}}>
<PackageIcon />
<span class="ml-2">{language.modules}</span>
</div>
{#if $DataBase.sideMenuRerollButton}
<div class="flex items-center cursor-pointer hover:text-green-500 transition-colors" on:click={reroll}>
<RefreshCcwIcon />
<span class="ml-2">{language.reroll}</span>
</div>
{/if}
</div>
{/if}

View File

@@ -37,4 +37,8 @@
<div class="flex items-center mt-2">
<Check bind:check={$DataBase.showMenuChatList} name={language.showMenuChatList}/>
</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
modules: RisuModule[]
enabledModules: string[]
sideMenuRerollButton?:boolean
}
export interface customscript{