Replace difficulty badges, translate good/ok/bad

This commit is contained in:
LoveEevee
2019-01-21 22:08:02 +03:00
parent 6559e8ee28
commit 4cb84c3426
9 changed files with 142 additions and 59 deletions

View File

@@ -794,7 +794,8 @@ class SongSelect{
ratio + 0.2
)
this.selectTextCache.resize((280 + 53 + 60 + 1) * 2, this.songAsset.marginTop + 15, ratio + 0.5)
var textW = strings.id === "en" ? 350 : 280
this.selectTextCache.resize((textW + 53 + 60 + 1) * 2, this.songAsset.marginTop + 15, ratio + 0.5)
var categories = 0
var lastCategory
@@ -872,11 +873,12 @@ class SongSelect{
}
if(screen === "title" || screen === "titleFadeIn" || screen === "song"){
var textW = strings.id === "en" ? 350 : 280
this.selectTextCache.get({
ctx: ctx,
x: frameLeft,
y: frameTop,
w: 280 + 53 + 60,
w: textW + 53 + 60,
h: this.songAsset.marginTop + 15,
id: "song"
}, ctx => {
@@ -887,7 +889,7 @@ class SongSelect{
fontFamily: this.font,
x: 53,
y: 30,
width: 280,
width: textW,
letterSpacing: 2,
forceShadow: true
}, [
@@ -1118,11 +1120,12 @@ class SongSelect{
var opened = ((selectedWidth - this.songAsset.width) / (this.songAsset.selectedWidth - this.songAsset.width))
var songSel = true
}else{
var textW = strings.id === "en" ? 350 : 280
this.selectTextCache.get({
ctx: ctx,
x: x - 144 - 53,
y: y - 24 - 30,
w: 280 + 53 + 60,
w: textW + 53 + 60,
h: this.songAsset.marginTop + 15,
id: "difficulty"
}, ctx => {
@@ -1133,7 +1136,7 @@ class SongSelect{
fontFamily: this.font,
x: 53,
y: 30,
width: 280,
width: textW,
forceShadow: true
}, [
{x: -2, y: -2, outline: "#000", letterBorder: 23},