Skip to content

Commit 6c374e8

Browse files
authored
Merge pull request #297 from Trimps/dev
fixes
2 parents 5e706c7 + 166e477 commit 6c374e8

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

css/style.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7630,4 +7630,11 @@ input[type="checkbox"] {
76307630
-webkit-appearance: none;
76317631
-moz-appearance: none;
76327632
appearance: none;
7633-
}
7633+
}
7634+
7635+
label {
7636+
display: inline !important;
7637+
max-width: inherit !important;
7638+
margin-bottom: inherit !important;
7639+
font-weight: inherit !important;
7640+
}

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11222,7 +11222,7 @@ function makeIconEffectHTML(title, text, icon, spanClasses, ids=[], iconText="",
1122211222
let display = ``
1122311223
let containerID = (ids[0] ? `id="${ids[0]}" `: "")
1122411224
let textID = (ids[1] ? ` id="${ids[1]}"`: "")
11225-
let iconID = (ids[2] ? `id="${ids[2]} "`: "")
11225+
let iconID = (ids[2] ? `id="${ids[2]}"`: "")
1122611226
let tooltipType = ((text) ? "'customText'" : tooltipOverride ? `'${tooltipOverride}'` : 'null')
1122711227
if (usingScreenReader) {
1122811228
tooltip = `tabindex="0" onkeydown="keyTooltip(event, '${title}', ${tooltipType}, '${text}')"`

objects.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4966,6 +4966,7 @@ var u2Mutations = {
49664966
var cost = getNextTalentCost();
49674967
if (cost == -1) return "";
49684968
if (game.global.essence >= cost) return '&nbsp;<span class="alert badge">!</span>&nbsp;&nbsp;';
4969+
return "";
49694970
},
49704971
toggleRespec: function(displayOnly, forceHide){
49714972
var mutRespecBtn = document.getElementById('respecMutatorsBtn');

playerSpire.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ var playerSpire = {
952952
<div id='spireTrapsWindow'></div>
953953
<div id='playerSpireUpgradesArea'></div>
954954
</div>`
955-
955+
if (this.smallMode) this.shrink();
956+
else this.enlarge();
956957
this.drawSpire();
957958
this.drawInfo();
958959
},
@@ -1791,6 +1792,8 @@ var playerSpire = {
17911792
this.updateTabColor();
17921793
}
17931794

1795+
1796+
17941797
}
17951798

17961799
var playerSpireTraps = {
@@ -2370,7 +2373,7 @@ var playerSpireTraps = {
23702373
}
23712374
}
23722375

2373-
var TDFloatingText = (function(floatingCombatText) {
2376+
var TDFloatingText = (function() {
23742377
//Floating combat text brought to you by your friendly neighborhood Grabarz
23752378
var frameTime = 30;
23762379
var elements = [];
@@ -2428,7 +2431,7 @@ var TDFloatingText = (function(floatingCombatText) {
24282431
elem.style.left = (x * 100) + "%";
24292432
elem.style.top = (y * 100) + "%";
24302433

2431-
floatingCombatText.appendChild(elem);
2434+
document.getElementById("floatingCombatText").appendChild(elem);
24322435

24332436
elements.push({
24342437
elem: elem,
@@ -2441,6 +2444,7 @@ var TDFloatingText = (function(floatingCombatText) {
24412444
}
24422445

24432446
function update() {
2447+
var floatingCombatText = document.getElementById("floatingCombatText")
24442448
var i;
24452449
for(i = 0; i < elements.length; i++) {
24462450
var element = elements[i];
@@ -2465,4 +2469,4 @@ var TDFloatingText = (function(floatingCombatText) {
24652469
update: update,
24662470
setFrameTime: setFrameTime
24672471
}
2468-
})(document.getElementById("floatingCombatText"));
2472+
})();

updates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ function tooltip(what, isItIn, event, textString, attachFunction, numCheck, rena
521521
max = ((setting && setting.buyMax) ? setting.buyMax : 0 );
522522
if (max > 1e4) max = max.toExponential().replace('+', '');
523523
sciMax = max;
524-
if (percentJobs.length < 4) tooltipText += "</td><td style='width: 60%'><div class='row' style='width: 50%; border: 0; text-align: left;'><span style='padding-left: 0.4vw'>&nbsp;</span><label>Up To: <input class='jobConfigQuantity' id='autoJobQuant" + item + "' value='" + prettify(max) + "'/></label></div></td>"
524+
if (percentJobs.length < 4) tooltipText += "</td><td style='width: 60%'><div class='row' style='width: 50%; border: 0; text-align: left;'><span style='padding-left: 15px'>&nbsp;</span><label>Up To: <input class='jobConfigQuantity' id='autoJobQuant" + item + "' value='" + prettify(max) + "'/></label></div></td>"
525525
}
526526
else tooltipText += "</td>";
527527
if (percentJobs.length > x){
@@ -532,7 +532,7 @@ function tooltip(what, isItIn, event, textString, attachFunction, numCheck, rena
532532
if (max > 1e4) max = max.toExponential().replace('+', '');
533533
checkbox = buildNiceCheckbox('autoJobCheckbox' + item, 'autoCheckbox', (setting && setting.enabled));
534534
var options = "<option value='0.1'" + ((selectedPerc == 0.001) ? " selected" : "") + ">0.1%</option><option value='1'" + ((selectedPerc == .01) ? " selected" : "") + ">1%</option><option value='5'" + ((selectedPerc == .05) ? " selected" : "") + ">5%</option><option value='10'" + ((selectedPerc == .10) ? " selected" : "") + ">10%</option><option value='25'" + ((selectedPerc == .25) ? " selected" : "") + ">25%</option><option value='50'" + ((selectedPerc == .50) ? " selected" : "") + ">50%</option><option value='99'" + ((selectedPerc == .99) ? " selected" : "") + ">99%</option>";
535-
tooltipText += "<td style='width: 60%'><div class='row'><div class='col-xs-5' style='padding-right: 5px'><label>" + checkbox + "&nbsp;&nbsp;<span>" + item + "</span></label></div><div style='text-align: center; padding-left: 0px;' class='col-xs-2'><select aria-label='Spend' id='autoJobSelect" + item + "'>" + options + "</select></div><div class='col-xs-5 lowPad' style='text-align: right'><label>Up To: <input class='jobConfigQuantity' id='autoJobQuant" + item + "' value='" + prettify(max) + "'/></label></div></div></td></tr>";
535+
tooltipText += "<td style='width: 60%'><div class='row'><div class='col-xs-5' style='padding-right: 5px;'><label>" + checkbox + "&nbsp;&nbsp;<span>" + item + "</span></label></div><div style='text-align: center; padding-left: 0px;' class='col-xs-2'><select aria-label='Spend' id='autoJobSelect" + item + "'>" + options + "</select></div><div class='col-xs-5 lowPad' style='text-align: right'><label>Up To: <input class='jobConfigQuantity' id='autoJobQuant" + item + "' value='" + prettify(max) + "'/></label></div></div></td></tr>";
536536
}
537537
}
538538
if (percentJobs.length >= 4) tooltipText += "<tr><td style='width: 40%'><div class='row'><div class='col-xs-6' style='padding-right: 5px'>&nbsp;</div><div class='col-xs-6 lowPad' style='text-align: right'>Up To: <input class='jobConfigQuantity' id='autoJobQuantScientist2' value='" + prettify(sciMax) + "'></div></div></td><td style='width: 60%'>&nbsp;</td></tr>";

0 commit comments

Comments
 (0)