Add extras and account buttons; language update.
This commit is contained in:
parent
cbb0d49dcd
commit
1dbe02966b
@ -33,6 +33,10 @@ LANGUAGE.Terms = {
|
|||||||
guide: new LANGUAGE.Term( "Guide", "ガイド" ),
|
guide: new LANGUAGE.Term( "Guide", "ガイド" ),
|
||||||
about: new LANGUAGE.Term( "About", "概要" ),
|
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", "手番数" ),
|
turn: new LANGUAGE.Term( "Turn", "手番数" ),
|
||||||
turns: new LANGUAGE.Term( "Turns", "手番数" ),
|
turns: new LANGUAGE.Term( "Turns", "手番数" ),
|
||||||
viewers: new LANGUAGE.Term( "Viewers", "観戦者" ),
|
viewers: new LANGUAGE.Term( "Viewers", "観戦者" ),
|
||||||
@ -60,6 +64,8 @@ LANGUAGE.Terms = {
|
|||||||
accept: new LANGUAGE.Term( "Accept", "受け入れ" ),
|
accept: new LANGUAGE.Term( "Accept", "受け入れ" ),
|
||||||
decline: new LANGUAGE.Term( "Decline", "断る" ),
|
decline: new LANGUAGE.Term( "Decline", "断る" ),
|
||||||
|
|
||||||
|
play: new LANGUAGE.Term( "Play", "遣る" ),
|
||||||
|
|
||||||
check: new LANGUAGE.Term( "Check", "王手" ),
|
check: new LANGUAGE.Term( "Check", "王手" ),
|
||||||
checkmate: new LANGUAGE.Term( "Checkmate", "詰み" ),
|
checkmate: new LANGUAGE.Term( "Checkmate", "詰み" ),
|
||||||
|
|
||||||
|
@ -577,7 +577,7 @@ const SCENES = {
|
|||||||
UI.button(LANG("mirror"), () => { INTERFACE.mirror(); }),
|
UI.button(LANG("mirror"), () => { INTERFACE.mirror(); }),
|
||||||
];
|
];
|
||||||
if(data.mode == INTERFACE.Mode.Review) {
|
if(data.mode == INTERFACE.Mode.Review) {
|
||||||
buttons_top.push(UI.button("Play", () => {
|
buttons_top.push(UI.button(LANG("play"), () => {
|
||||||
LOAD(SCENES.GamePractice, {
|
LOAD(SCENES.GamePractice, {
|
||||||
history: INTERFACE_DATA.history,
|
history: INTERFACE_DATA.history,
|
||||||
turn: INTERFACE_DATA.replay_turn,
|
turn: INTERFACE_DATA.replay_turn,
|
||||||
|
@ -165,8 +165,11 @@ const UI = {
|
|||||||
top.push(UI.button(LANG("guide"), () => { LOAD(SCENES.Guide); }, page == "guide"));
|
top.push(UI.button(LANG("guide"), () => { LOAD(SCENES.Guide); }, page == "guide"));
|
||||||
top.push(UI.button(LANG("about"), () => { LOAD(SCENES.About); }, page == "about"));
|
top.push(UI.button(LANG("about"), () => { LOAD(SCENES.About); }, page == "about"));
|
||||||
|
|
||||||
|
bottom.push(UI.button(LANG("extras"), () => { }));
|
||||||
|
|
||||||
if(sessionStorage.getItem("auth") !== null) {
|
if(sessionStorage.getItem("auth") !== null) {
|
||||||
bottom.push(UI.button("Logout", () => {
|
bottom.push(UI.button(LANG("account"), () => { }));
|
||||||
|
bottom.push(UI.button(LANG("logout"), () => {
|
||||||
MESSAGE_COMPOSE([
|
MESSAGE_COMPOSE([
|
||||||
PACK.u16(OpCode.Deauthenticate),
|
PACK.u16(OpCode.Deauthenticate),
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user