Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Taiko Web
Commits
750dc662
Commit
750dc662
authored
Feb 22, 2020
by
Bui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve category jump
parent
34d0bd01
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
8 deletions
+20
-8
.gitignore
.gitignore
+2
-0
app.py
app.py
+1
-1
public/src/js/songselect.js
public/src/js/songselect.js
+10
-5
public/src/js/strings.js
public/src/js/strings.js
+5
-0
public/src/js/tutorial.js
public/src/js/tutorial.js
+2
-2
No files found.
.gitignore
View file @
750dc662
...
@@ -35,6 +35,8 @@ $RECYCLE.BIN/
...
@@ -35,6 +35,8 @@ $RECYCLE.BIN/
.Spotlight-V100
.Spotlight-V100
.Trashes
.Trashes
.vscode
# Directories potentially created on remote AFP share
# Directories potentially created on remote AFP share
.AppleDB
.AppleDB
.AppleDesktop
.AppleDesktop
...
...
app.py
View file @
750dc662
...
@@ -86,7 +86,7 @@ def route_index():
...
@@ -86,7 +86,7 @@ def route_index():
@
app
.
route
(
'/api/preview'
)
@
app
.
route
(
'/api/preview'
)
@
app
.
cache
.
cached
(
timeout
=
15
)
@
app
.
cache
.
cached
(
timeout
=
15
,
query_string
=
True
)
def
route_api_preview
():
def
route_api_preview
():
song_id
=
request
.
args
.
get
(
'id'
,
None
)
song_id
=
request
.
args
.
get
(
'id'
,
None
)
if
not
song_id
or
not
re
.
match
(
'^[0-9]+$'
,
song_id
):
if
not
song_id
or
not
re
.
match
(
'^[0-9]+$'
,
song_id
):
...
...
public/src/js/songselect.js
View file @
750dc662
...
@@ -307,15 +307,15 @@ class SongSelect{
...
@@ -307,15 +307,15 @@ class SongSelect{
this
.
gamepad
=
new
Gamepad
({
this
.
gamepad
=
new
Gamepad
({
confirm
:
[
"
b
"
,
"
start
"
,
"
ls
"
,
"
rs
"
],
confirm
:
[
"
b
"
,
"
start
"
,
"
ls
"
,
"
rs
"
],
back
:
[
"
a
"
],
back
:
[
"
a
"
],
left
:
[
"
l
"
,
"
lsl
"
],
left
:
[
"
l
"
,
"
lsl
"
,
"
lt
"
],
right
:
[
"
r
"
,
"
lsr
"
],
right
:
[
"
r
"
,
"
lsr
"
,
"
rt
"
],
up
:
[
"
u
"
,
"
lsu
"
],
up
:
[
"
u
"
,
"
lsu
"
],
down
:
[
"
d
"
,
"
lsd
"
],
down
:
[
"
d
"
,
"
lsd
"
],
session
:
[
"
back
"
],
session
:
[
"
back
"
],
ctrl
:
[
"
y
"
],
ctrl
:
[
"
y
"
],
shift
:
[
"
x
"
],
shift
:
[
"
x
"
],
jump_left
:
[
"
lb
"
,
"
lt
"
],
jump_left
:
[
"
lb
"
],
jump_right
:
[
"
rb
"
,
"
rt
"
]
jump_right
:
[
"
rb
"
]
},
this
.
keyPress
.
bind
(
this
))
},
this
.
keyPress
.
bind
(
this
))
if
(
!
assets
.
customSongs
){
if
(
!
assets
.
customSongs
){
...
@@ -588,6 +588,10 @@ class SongSelect{
...
@@ -588,6 +588,10 @@ class SongSelect{
}
}
categoryJump
(
moveBy
){
categoryJump
(
moveBy
){
if
(
this
.
state
.
locked
===
1
){
return
}
this
.
state
.
catJump
=
true
this
.
state
.
catJump
=
true
this
.
state
.
move
=
moveBy
;
this
.
state
.
move
=
moveBy
;
this
.
state
.
locked
=
1
this
.
state
.
locked
=
1
...
@@ -1010,7 +1014,7 @@ class SongSelect{
...
@@ -1010,7 +1014,7 @@ class SongSelect{
var
resize2
=
changeSpeed
-
resize
var
resize2
=
changeSpeed
-
resize
var
scroll
=
resize2
-
resize
-
scrollDelay
*
2
var
scroll
=
resize2
-
resize
-
scrollDelay
*
2
var
elapsed
=
ms
-
this
.
state
.
moveMS
var
elapsed
=
ms
-
this
.
state
.
moveMS
if
(
this
.
state
.
move
&&
ms
>
this
.
state
.
moveMS
+
resize2
-
scrollDelay
){
if
(
this
.
state
.
catJump
||
(
this
.
state
.
move
&&
ms
>
this
.
state
.
moveMS
+
resize2
-
scrollDelay
)
){
var
isJump
=
this
.
state
.
catJump
var
isJump
=
this
.
state
.
catJump
var
previousSelectedSong
=
this
.
selectedSong
var
previousSelectedSong
=
this
.
selectedSong
...
@@ -1020,6 +1024,7 @@ class SongSelect{
...
@@ -1020,6 +1024,7 @@ class SongSelect{
}
else
{
}
else
{
var
currentCat
=
this
.
songs
[
this
.
selectedSong
].
category
var
currentCat
=
this
.
songs
[
this
.
selectedSong
].
category
var
currentIdx
=
this
.
mod
(
this
.
songs
.
length
,
this
.
selectedSong
)
var
currentIdx
=
this
.
mod
(
this
.
songs
.
length
,
this
.
selectedSong
)
if
(
this
.
state
.
move
>
0
){
if
(
this
.
state
.
move
>
0
){
var
nextSong
=
this
.
songs
.
find
(
song
=>
this
.
mod
(
this
.
songs
.
length
,
this
.
songs
.
indexOf
(
song
))
>
currentIdx
&&
song
.
category
!==
currentCat
&&
song
.
canJump
)
var
nextSong
=
this
.
songs
.
find
(
song
=>
this
.
mod
(
this
.
songs
.
length
,
this
.
songs
.
indexOf
(
song
))
>
currentIdx
&&
song
.
category
!==
currentCat
&&
song
.
canJump
)
if
(
!
nextSong
){
if
(
!
nextSong
){
...
...
public/src/js/strings.js
View file @
750dc662
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
otherControls
:
"
他のコントロール
"
,
otherControls
:
"
他のコントロール
"
,
otherTutorial
:
[
otherTutorial
:
[
"
%sはゲームを一時停止します
"
,
"
%sはゲームを一時停止します
"
,
"
曲をえらぶしながら%sか%sキーを押してジャンルをスキップします
"
,
"
むずかしさをえらぶしながら%sキーを押しながらオートモードを有効
"
,
"
むずかしさをえらぶしながら%sキーを押しながらオートモードを有効
"
,
"
むずかしさをえらぶしながら%sキーを押しながらネットプレイモードを有効
"
"
むずかしさをえらぶしながら%sキーを押しながらネットプレイモードを有効
"
],
],
...
@@ -224,6 +225,7 @@ function StringsEn(){
...
@@ -224,6 +225,7 @@ function StringsEn(){
otherControls
:
"
Other controls
"
,
otherControls
:
"
Other controls
"
,
otherTutorial
:
[
otherTutorial
:
[
"
%s
\
u2014 pause game
"
,
"
%s
\
u2014 pause game
"
,
'
%s and %s while selecting song
\
u2014 navigate categories
'
,
"
%s while selecting difficulty
\
u2014 enable autoplay mode
"
,
"
%s while selecting difficulty
\
u2014 enable autoplay mode
"
,
"
%s while selecting difficulty
\
u2014 enable 2P mode
"
"
%s while selecting difficulty
\
u2014 enable 2P mode
"
],
],
...
@@ -368,6 +370,7 @@ function StringsCn(){
...
@@ -368,6 +370,7 @@ function StringsCn(){
otherControls
:
"
其他控制
"
,
otherControls
:
"
其他控制
"
,
otherTutorial
:
[
otherTutorial
:
[
"
%s暂停游戏
"
,
"
%s暂停游戏
"
,
'
%s and %s while selecting song
\
u2014 navigate categories
'
,
"
选择难度时按住%s以启用自动模式
"
,
"
选择难度时按住%s以启用自动模式
"
,
"
选择难度时按住%s以启用网络对战模式
"
"
选择难度时按住%s以启用网络对战模式
"
],
],
...
@@ -512,6 +515,7 @@ function StringsTw(){
...
@@ -512,6 +515,7 @@ function StringsTw(){
otherControls
:
"
其他控制
"
,
otherControls
:
"
其他控制
"
,
otherTutorial
:
[
otherTutorial
:
[
"
%s暫停遊戲
"
,
"
%s暫停遊戲
"
,
'
%s and %s while selecting song
\
u2014 navigate categories
'
,
"
選擇難度時按住%s以啟用自動模式
"
,
"
選擇難度時按住%s以啟用自動模式
"
,
"
選擇難度時按住%s以啟用網上對打模式
"
"
選擇難度時按住%s以啟用網上對打模式
"
],
],
...
@@ -656,6 +660,7 @@ function StringsKo(){
...
@@ -656,6 +660,7 @@ function StringsKo(){
otherControls
:
"
기타 컨트롤
"
,
otherControls
:
"
기타 컨트롤
"
,
otherTutorial
:
[
otherTutorial
:
[
"
%s
\
u2014 게임을 일시 중지합니다
"
,
"
%s
\
u2014 게임을 일시 중지합니다
"
,
'
%s and %s while selecting song
\
u2014 navigate categories
'
,
"
난이도 선택 동안 %s 홀드
\
u2014 오토 모드 활성화
"
,
"
난이도 선택 동안 %s 홀드
\
u2014 오토 모드 활성화
"
,
"
난이도 선택 동안 %s 홀드
\
u2014 넷 플레이 모드 활성화
"
"
난이도 선택 동안 %s 홀드
\
u2014 넷 플레이 모드 활성화
"
],
],
...
...
public/src/js/tutorial.js
View file @
750dc662
...
@@ -59,13 +59,13 @@ class Tutorial{
...
@@ -59,13 +59,13 @@ class Tutorial{
this
.
endButton
.
setAttribute
(
"
alt
"
,
strings
.
tutorial
.
ok
)
this
.
endButton
.
setAttribute
(
"
alt
"
,
strings
.
tutorial
.
ok
)
this
.
tutorialDiv
.
innerHTML
=
""
this
.
tutorialDiv
.
innerHTML
=
""
var
kbdSettings
=
settings
.
getItem
(
"
keyboardSettings
"
)
var
kbdSettings
=
settings
.
getItem
(
"
keyboardSettings
"
)
var
pauseKey
=
pageEvents
.
kbd
.
indexOf
(
"
q
"
)
===
-
1
?
"
Q
"
:
"
ESC
"
var
pauseKey
=
"
ESC
"
var
keys
=
[
var
keys
=
[
kbdSettings
.
don_l
[
0
].
toUpperCase
(),
kbdSettings
.
don_l
[
0
].
toUpperCase
(),
kbdSettings
.
don_r
[
0
].
toUpperCase
(),
kbdSettings
.
don_r
[
0
].
toUpperCase
(),
kbdSettings
.
ka_l
[
0
].
toUpperCase
(),
kbdSettings
.
ka_l
[
0
].
toUpperCase
(),
kbdSettings
.
ka_r
[
0
].
toUpperCase
(),
kbdSettings
.
ka_r
[
0
].
toUpperCase
(),
pauseKey
,
"
SHIFT
"
,
"
CTRL
"
pauseKey
,
"
SHIFT
+LEFT
"
,
"
SHIFT+RIGHT
"
,
"
SHIFT
"
,
"
CTRL
"
]
]
var
keyIndex
=
0
var
keyIndex
=
0
strings
.
tutorial
.
basics
.
forEach
(
string
=>
{
strings
.
tutorial
.
basics
.
forEach
(
string
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment