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
f4c3a664
Commit
f4c3a664
authored
Mar 17, 2020
by
LoveEevee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SongSelect: Lower the songs to make room for crowns
parent
29fb7845
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
91 deletions
+82
-91
public/src/js/songselect.js
public/src/js/songselect.js
+82
-91
No files found.
public/src/js/songselect.js
View file @
f4c3a664
...
@@ -201,7 +201,7 @@ class SongSelect{
...
@@ -201,7 +201,7 @@ class SongSelect{
})
})
this
.
songAsset
=
{
this
.
songAsset
=
{
marginTop
:
90
,
marginTop
:
104
,
marginLeft
:
18
,
marginLeft
:
18
,
width
:
82
,
width
:
82
,
selectedWidth
:
382
,
selectedWidth
:
382
,
...
@@ -1042,6 +1042,86 @@ class SongSelect{
...
@@ -1042,6 +1042,86 @@ class SongSelect{
this
.
playSound
(
"
se_pause
"
)
this
.
playSound
(
"
se_pause
"
)
}
}
if
(
screen
===
"
title
"
||
screen
===
"
titleFadeIn
"
||
screen
===
"
song
"
){
var
textW
=
strings
.
id
===
"
en
"
?
350
:
280
this
.
selectTextCache
.
get
({
ctx
:
ctx
,
x
:
frameLeft
,
y
:
frameTop
,
w
:
textW
+
53
+
60
,
h
:
this
.
songAsset
.
marginTop
+
15
,
id
:
"
song
"
},
ctx
=>
{
this
.
draw
.
layeredText
({
ctx
:
ctx
,
text
:
strings
.
selectSong
,
fontSize
:
48
,
fontFamily
:
this
.
font
,
x
:
53
,
y
:
30
,
width
:
textW
,
letterSpacing
:
strings
.
id
===
"
en
"
?
0
:
2
,
forceShadow
:
true
},
[
{
x
:
-
2
,
y
:
-
2
,
outline
:
"
#000
"
,
letterBorder
:
22
},
{},
{
x
:
2
,
y
:
2
,
shadow
:
[
3
,
3
,
3
]},
{
x
:
2
,
y
:
2
,
outline
:
"
#ad1516
"
,
letterBorder
:
10
},
{
x
:
-
2
,
y
:
-
2
,
outline
:
"
#ff797b
"
},
{
outline
:
"
#f70808
"
},
{
fill
:
"
#fff
"
,
shadow
:
[
-
1
,
1
,
3
,
1.5
]}
])
})
var
category
=
this
.
songs
[
this
.
selectedSong
].
category
var
selectedSong
=
this
.
songs
[
this
.
selectedSong
]
this
.
draw
.
category
({
ctx
:
ctx
,
x
:
winW
/
2
-
280
/
2
-
30
,
y
:
frameTop
+
60
,
fill
:
selectedSong
.
skin
.
background
,
highlight
:
this
.
state
.
moveHover
===
"
categoryPrev
"
})
this
.
draw
.
category
({
ctx
:
ctx
,
x
:
winW
/
2
+
280
/
2
+
30
,
y
:
frameTop
+
60
,
right
:
true
,
fill
:
selectedSong
.
skin
.
background
,
highlight
:
this
.
state
.
moveHover
===
"
categoryNext
"
})
this
.
categoryCache
.
get
({
ctx
:
ctx
,
x
:
winW
/
2
-
280
/
2
,
y
:
frameTop
,
w
:
280
,
h
:
this
.
songAsset
.
marginTop
,
id
:
category
+
selectedSong
.
skin
.
outline
},
ctx
=>
{
if
(
category
){
if
(
category
in
strings
.
categories
){
var
categoryName
=
strings
.
categories
[
category
]
}
else
{
var
categoryName
=
category
}
this
.
draw
.
layeredText
({
ctx
:
ctx
,
text
:
categoryName
,
fontSize
:
40
,
fontFamily
:
this
.
font
,
x
:
280
/
2
,
y
:
38
,
width
:
255
,
align
:
"
center
"
,
forceShadow
:
true
},
[
{
outline
:
selectedSong
.
skin
.
outline
,
letterBorder
:
12
,
shadow
:
[
3
,
3
,
3
]},
{
fill
:
"
#fff
"
}
])
}
})
}
if
(
screen
===
"
song
"
){
if
(
screen
===
"
song
"
){
if
(
this
.
songs
[
this
.
selectedSong
].
courses
){
if
(
this
.
songs
[
this
.
selectedSong
].
courses
){
selectedWidth
=
this
.
songAsset
.
selectedWidth
selectedWidth
=
this
.
songAsset
.
selectedWidth
...
@@ -1265,96 +1345,7 @@ class SongSelect{
...
@@ -1265,96 +1345,7 @@ class SongSelect{
this
.
currentSongCache
.
clear
()
this
.
currentSongCache
.
clear
()
}
}
if
(
ms
>
this
.
state
.
screenMS
+
2000
&&
selectedWidth
===
this
.
songAsset
.
width
){
if
(
selectedWidth
===
this
.
songAsset
.
width
){
this
.
drawSongCrown
({
ctx
:
ctx
,
song
:
currentSong
,
x
:
winW
/
2
-
selectedWidth
/
2
+
xOffset
,
y
:
songTop
+
this
.
songAsset
.
height
-
selectedHeight
})
}
if
(
screen
===
"
title
"
||
screen
===
"
titleFadeIn
"
||
screen
===
"
song
"
){
var
textW
=
strings
.
id
===
"
en
"
?
350
:
280
this
.
selectTextCache
.
get
({
ctx
:
ctx
,
x
:
frameLeft
,
y
:
frameTop
,
w
:
textW
+
53
+
60
,
h
:
this
.
songAsset
.
marginTop
+
15
,
id
:
"
song
"
},
ctx
=>
{
this
.
draw
.
layeredText
({
ctx
:
ctx
,
text
:
strings
.
selectSong
,
fontSize
:
48
,
fontFamily
:
this
.
font
,
x
:
53
,
y
:
30
,
width
:
textW
,
letterSpacing
:
strings
.
id
===
"
en
"
?
0
:
2
,
forceShadow
:
true
},
[
{
x
:
-
2
,
y
:
-
2
,
outline
:
"
#000
"
,
letterBorder
:
22
},
{},
{
x
:
2
,
y
:
2
,
shadow
:
[
3
,
3
,
3
]},
{
x
:
2
,
y
:
2
,
outline
:
"
#ad1516
"
,
letterBorder
:
10
},
{
x
:
-
2
,
y
:
-
2
,
outline
:
"
#ff797b
"
},
{
outline
:
"
#f70808
"
},
{
fill
:
"
#fff
"
,
shadow
:
[
-
1
,
1
,
3
,
1.5
]}
])
})
var
category
=
this
.
songs
[
this
.
selectedSong
].
category
var
selectedSong
=
this
.
songs
[
this
.
selectedSong
]
this
.
draw
.
category
({
ctx
:
ctx
,
x
:
winW
/
2
-
280
/
2
-
30
,
y
:
frameTop
+
60
,
fill
:
selectedSong
.
skin
.
background
,
highlight
:
this
.
state
.
moveHover
===
"
categoryPrev
"
})
this
.
draw
.
category
({
ctx
:
ctx
,
x
:
winW
/
2
+
280
/
2
+
30
,
y
:
frameTop
+
60
,
right
:
true
,
fill
:
selectedSong
.
skin
.
background
,
highlight
:
this
.
state
.
moveHover
===
"
categoryNext
"
})
this
.
categoryCache
.
get
({
ctx
:
ctx
,
x
:
winW
/
2
-
280
/
2
,
y
:
frameTop
,
w
:
280
,
h
:
this
.
songAsset
.
marginTop
,
id
:
category
+
selectedSong
.
skin
.
outline
},
ctx
=>
{
if
(
category
){
if
(
category
in
strings
.
categories
){
var
categoryName
=
strings
.
categories
[
category
]
}
else
{
var
categoryName
=
category
}
this
.
draw
.
layeredText
({
ctx
:
ctx
,
text
:
categoryName
,
fontSize
:
40
,
fontFamily
:
this
.
font
,
x
:
280
/
2
,
y
:
38
,
width
:
255
,
align
:
"
center
"
,
forceShadow
:
true
},
[
{
outline
:
selectedSong
.
skin
.
outline
,
letterBorder
:
12
,
shadow
:
[
3
,
3
,
3
]},
{
fill
:
"
#fff
"
}
])
}
})
}
if
(
ms
<=
this
.
state
.
screenMS
+
2000
&&
selectedWidth
===
this
.
songAsset
.
width
){
this
.
drawSongCrown
({
this
.
drawSongCrown
({
ctx
:
ctx
,
ctx
:
ctx
,
song
:
currentSong
,
song
:
currentSong
,
...
...
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