Skip to content

Conversation

@SameDesu123
Copy link
Contributor

PR Checklist

  • Have you checked if it works normally in all models? Ignore this if it doesn't use models.
  • Have you checked if it works normally in all web, local, and node hosted versions? If it doesn't, have you blocked it in those versions?
  • Have you added type definitions?

Description

This PR implements a new advanced setting, "Directly open character in RisuRealm" (realmDirectOpen).

Features

  • Direct Access: When enabled, clicking a character in the preview directly opens the character's description popup, bypassing the full RisuRealm list view.
  • Multilingual Support: Added translation keys for the setting's label and description in all supported languages (en, ko, cn, de, es, vi, zh-Hant).

Implementation Details

  • Added realmDirectOpen to Database interface in src/ts/storage/database.svelte.ts.
  • Created a new store RealmInitialOpenChar in src/ts/stores.svelte.ts to pass character data from MainMenu to RealmMain.
  • Updated MainMenu.svelte to conditionally set the store based on the setting.
  • Updated RealmMain.svelte to reactively open the character popup when the store is populated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant