Skip to content

Commit

Permalink
Slight changes
Browse files Browse the repository at this point in the history
  • Loading branch information
plasma4 committed Sep 4, 2024
1 parent 5b17453 commit 53104fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion localDevelopment.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// THIS VARIABLE IS FOR LOCALLY MODIFYING MAGIX AND SHOULD NOT BE CHANGED WHEN PLAYING NORMALLY OR WHEN CHANGING YOUR OWN MOD.
// If you wish to force Magix to use your local files (magix.js and magixUtils.js), set the value below to true. This is not advised because normally, the game will automatically use the newest version when possible and use your browser's local storage to keep an offline copy of the scripts. You should only use this if you are trying to modify Magix!

var offlineMode = true
var offlineMode = false


// IMPORTANT: Settting this value to true will PREVENT FILES FROM WORKING WHEN YOU ARE OFFLINE (if you are getting a message about XML requests, they won't work offline anyway, so feel free to enable this).
Expand Down
7 changes: 4 additions & 3 deletions magixUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,11 @@ G.logic['res'] = function () {
G.stabilizeResize = function () {
G.resizing = false;
l('sections').style.marginTop = ((G.w < 550) + (G.w < 590) + (G.w < 645) + (G.w < 755)) * 20 + 'px'
if (G.w * G.h < 500000) { document.body.classList.add('halfSize'); } else { document.body.classList.remove('halfSize'); }
if (G.h < 800) { l('game').style.bottom = 0; } else { l('game').style.bottom = null; }
l('game').style.bottom = G.h < 600 ? 0 : null;
l('fpsGraph').style.display = G.h < 600 ? 'none' : 'block';
if (G.w * G.h < 200000 || G.w < 625) { document.body.classList.add('halfSize'); } else { document.body.classList.remove('halfSize'); }
if (G.w < 950) { G.wrapl.classList.remove('narrow'); G.wrapl.classList.add('narrower'); }
else if (G.w < 384 * 3) { G.wrapl.classList.remove('narrower'); G.wrapl.classList.add('narrow'); }
else if (G.w < 1152) { G.wrapl.classList.remove('narrower'); G.wrapl.classList.add('narrow'); }
else { G.wrapl.classList.remove('narrower'); G.wrapl.classList.remove('narrow'); }
//if (G.tab.id=='unit') G.cacheUnitBounds();
}
Expand Down

0 comments on commit 53104fb

Please sign in to comment.