mirror of
https://github.com/thepaperpilot/The-Modding-Tree.git
synced 2025-02-07 10:31:37 +00:00
Added new option to display xp amounts in xp bars
This commit is contained in:
parent
7a22dbea6a
commit
dde1eded43
3 changed files with 5 additions and 1 deletions
|
@ -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' }
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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>`
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue