Add extras and account buttons; language update.

This commit is contained in:
yukirij 2024-09-07 01:03:09 -07:00
parent cbb0d49dcd
commit 1dbe02966b
3 changed files with 11 additions and 2 deletions

View File

@ -33,6 +33,10 @@ LANGUAGE.Terms = {
guide: new LANGUAGE.Term( "Guide", "ガイド" ),
about: new LANGUAGE.Term( "About", "概要" ),
account: new LANGUAGE.Term( "Account", "アカウント" ),
logout: new LANGUAGE.Term( "Logout", " ログアウト" ),
extras: new LANGUAGE.Term( "Extras", " お負け" ),
turn: new LANGUAGE.Term( "Turn", "手番数" ),
turns: new LANGUAGE.Term( "Turns", "手番数" ),
viewers: new LANGUAGE.Term( "Viewers", "観戦者" ),
@ -60,6 +64,8 @@ LANGUAGE.Terms = {
accept: new LANGUAGE.Term( "Accept", "受け入れ" ),
decline: new LANGUAGE.Term( "Decline", "断る" ),
play: new LANGUAGE.Term( "Play", "遣る" ),
check: new LANGUAGE.Term( "Check", "王手" ),
checkmate: new LANGUAGE.Term( "Checkmate", "詰み" ),

View File

@ -577,7 +577,7 @@ const SCENES = {
UI.button(LANG("mirror"), () => { INTERFACE.mirror(); }),
];
if(data.mode == INTERFACE.Mode.Review) {
buttons_top.push(UI.button("Play", () => {
buttons_top.push(UI.button(LANG("play"), () => {
LOAD(SCENES.GamePractice, {
history: INTERFACE_DATA.history,
turn: INTERFACE_DATA.replay_turn,

View File

@ -165,8 +165,11 @@ const UI = {
top.push(UI.button(LANG("guide"), () => { LOAD(SCENES.Guide); }, page == "guide"));
top.push(UI.button(LANG("about"), () => { LOAD(SCENES.About); }, page == "about"));
bottom.push(UI.button(LANG("extras"), () => { }));
if(sessionStorage.getItem("auth") !== null) {
bottom.push(UI.button("Logout", () => {
bottom.push(UI.button(LANG("account"), () => { }));
bottom.push(UI.button(LANG("logout"), () => {
MESSAGE_COMPOSE([
PACK.u16(OpCode.Deauthenticate),
]);