Added new option to display xp amounts in xp bars

This commit is contained in:
thepaperpilot 2021-05-14 23:51:48 -05:00
parent 7a22dbea6a
commit dde1eded43
3 changed files with 5 additions and 1 deletions

View file

@ -61,7 +61,9 @@ function getJobProgressBar(job, color) {
}
return progress;
},
display: () => player.advancedExp ? `${format(player[job].xp)} / ${format(getXPRequirement(getJobLevel(job, false).add(1)))}` : null,
fillStyle: { backgroundColor: color || layers[job].color },
borderStyle: { borderColor: color || layers[job].color }
borderStyle: { borderColor: color || layers[job].color },
textStyle: { color: 'white', textShadow: '-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000' }
};
}

View file

@ -89,6 +89,7 @@ function addedPlayerData() {
timeSlots: new Decimal(0),
usedTimeSlots: new Decimal(0),
chapterTime: { 1: 0, 2: 0, 3: 0, 4: 0, 5: 0 },
advancedExp: false,
levelModifiers: {
flowers: new Decimal(0),
distill: new Decimal(0),

View file

@ -181,6 +181,7 @@ const systemComponents = {
<tr>
<td><button class="opt" onclick="adjustMSDisp()">Show Milestones: {{ MS_DISPLAYS[MS_SETTINGS.indexOf(player.msDisplay)]}}</button></td>
<td><button class="opt" onclick="toggleOpt('forceOneTab'); needsCanvasUpdate = true">Single-Tab Mode: {{ player.forceOneTab?"ALWAYS":"AUTO" }}</button></td>
<td><button class="opt" onclick="toggleOpt('advancedExp')">XP bars: {{ player.advancedExp ? "ADVANCED" : "SIMPLE" }}</button></td>
</tr>
</table>`
},