Skip to content

Commit c0cc38f

Browse files
Merge pull request #684 from xiaoxustudio/feat-add-exit-button
feat: add exit button
2 parents 7221dc4 + 7579928 commit c0cc38f

7 files changed

Lines changed: 34 additions & 0 deletions

File tree

packages/webgal/src/UI/Title/Title.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,16 @@ const Title: FC = () => {
117117
<div className={applyStyle('Title_button_text', styles.Title_button_text)}>{t('extra.title')}</div>
118118
</div>
119119
)}
120+
<div
121+
className={applyStyle('Title_button', styles.Title_button)}
122+
onClick={() => {
123+
playSeClick();
124+
window.close();
125+
}}
126+
onMouseEnter={playSeEnter}
127+
>
128+
<div className={applyStyle('Title_button_text', styles.Title_button_text)}>{t('exit.title')}</div>
129+
</div>
120130
</div>
121131
</div>
122132
)}

packages/webgal/src/translations/de.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ const de = {
149149
title: 'EXTRA',
150150
subtitle: '',
151151
},
152+
exit: {
153+
title: 'BEENDEN',
154+
subtitle: '',
155+
},
152156
},
153157

154158
gaming: {

packages/webgal/src/translations/en.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ const en = {
156156
title: 'EXTRA',
157157
subtitle: '',
158158
},
159+
exit: {
160+
title: 'EXIT',
161+
subtitle: '',
162+
},
159163
},
160164

161165
gaming: {

packages/webgal/src/translations/fr.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ const fr = {
149149
title: 'EXTRA',
150150
subtitle: '',
151151
},
152+
exit: {
153+
title: 'QUITTER',
154+
subtitle: '',
155+
},
152156
},
153157

154158
gaming: {

packages/webgal/src/translations/jp.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ const jp = {
159159
title: '鑑賞モード',
160160
subtitle: 'EXTRA',
161161
},
162+
exit: {
163+
title: 'ゲーム終了',
164+
subtitle: 'EXIT',
165+
},
162166
},
163167

164168
gaming: {

packages/webgal/src/translations/zh-cn.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ const zhCn = {
163163
title: '鉴赏模式',
164164
subtitle: 'EXTRA',
165165
},
166+
exit: {
167+
title: '退出游戏',
168+
subtitle: 'EXIT',
169+
},
166170
},
167171

168172
gaming: {

packages/webgal/src/translations/zh-tw.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ const zhTw = {
163163
title: 'CG模式',
164164
subtitle: 'EXTRA',
165165
},
166+
exit: {
167+
title: '退出遊戲',
168+
subtitle: 'EXIT',
169+
},
166170
},
167171

168172
gaming: {

0 commit comments

Comments
 (0)