[feat] animations
This commit is contained in:
@@ -283,6 +283,8 @@ export function setDatabase(data:Database){
|
||||
data.toggleConfirmRecommendedPreset ??= true
|
||||
data.officialplugins ??= {}
|
||||
data.assetWidth ??= -1
|
||||
data.animationSpeed ??= 0.2
|
||||
|
||||
changeLanguage(data.language)
|
||||
DataBase.set(data)
|
||||
}
|
||||
@@ -576,6 +578,7 @@ export interface Database{
|
||||
icon:string
|
||||
}[]
|
||||
assetWidth:number
|
||||
animationSpeed:number
|
||||
}
|
||||
|
||||
interface hordeConfig{
|
||||
|
||||
@@ -20,6 +20,7 @@ import { defaultJailbreak, defaultMainPrompt, oldJailbreak, oldMainPrompt } from
|
||||
import { loadRisuAccountData } from "../drive/accounter";
|
||||
import { decodeRisuSave, encodeRisuSave } from "./risuSave";
|
||||
import { AutoStorage } from "./autoStorage";
|
||||
import { updateAnimationSpeed } from "../gui/animation";
|
||||
|
||||
//@ts-ignore
|
||||
export const isTauri = !!window.__TAURI__
|
||||
@@ -419,6 +420,7 @@ export async function loadData() {
|
||||
} catch (error) {}
|
||||
await checkNewFormat()
|
||||
updateTextTheme()
|
||||
updateAnimationSpeed()
|
||||
if(get(DataBase).account){
|
||||
try {
|
||||
await loadRisuAccountData()
|
||||
|
||||
Reference in New Issue
Block a user