Skip to content

Commit

Permalink
Fix Change Game Image Grid Sizes, switch to rjsmin temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonius7 committed Nov 1, 2021
1 parent 57f1497 commit a0e0dea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
9 changes: 4 additions & 5 deletions fixes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ e.m_nScrollTop = 0, e.m_elTarget e.m_nScrollTop = 30, e.m_elTarget

### === Change Game Image Grid Sizes (optional) - default widths 111, 148, 222 ===
###(n = 111, a = !0) : 2 == e ? n = 148 : 3 == e && (n = 222), { (n = 120, a = !0) : 2 == e ? n = 160 : 3 == e && (n = 200), {
###for (var n = [], r = 2; /*for (var n = [], r = 2;
###.apply(console, Object(p.g)([e, t], n)) .apply(console, Object(p.g)([e, t], n))*/


### === Vertical Nav Bar (beta, working) ===
###x: l, x: 0,
Expand All @@ -34,13 +33,13 @@ e.m_nScrollTop = 0, e.m_elTarget e.m_nScrollTop = 30, e.m_elTarget
###height: s + "px" height: n ? Math.max(s, 150) + "px" : s + "px"

### === Stop What's New Events from Loading (working, needs more testing) ===
###n = E.c.STORE_BASE_URL + "events/ajaxgetbesteventsforuser", n = "",
n = E.c.STORE_BASE_URL + "events/ajaxgetbesteventsforuser", n = "",

### === HOME page Scrolling, reduce number of ComputeLayout calls ===
this.props.maxRows < 2 || (t = this.m_elGrid.current.getBoundingClientRect(), n = Math.abs(t.top - this.m_fLastScrollTop), this.props.childHeight * this.props.scaleGridItems / 8 < n && (this.m_fLastScrollTop = t.top, t.top < window.innerHeight && 0 < t.bottom && this.ComputeLayout())) var timeSince;t=this.m_elGrid.current.getBoundingClientRect(),timeSince=performance.now()-this.lastTime,this.lastTime=performance.now(),console.log(timeSince),setTimeout(function(){timeSince>60,this.ComputeLayout()}.bind(this),200)
###this.props.maxRows < 2 || (t = this.m_elGrid.current.getBoundingClientRect(), n = Math.abs(t.top - this.m_fLastScrollTop), this.props.childHeight * this.props.scaleGridItems / 8 < n && (this.m_fLastScrollTop = t.top, t.top < window.innerHeight && 0 < t.bottom && this.ComputeLayout())) var timeSince;t=this.m_elGrid.current.getBoundingClientRect(),timeSince=performance.now()-this.lastTime,this.lastTime=performance.now(),console.log(timeSince),setTimeout(function(){timeSince>60,this.ComputeLayout()}.bind(this),200)

### === Game Properties Window Size ===
bForcePopOut: !0,~~popupWidth: 842, popupWidth: 672,
###bForcePopOut: !0,~~popupWidth: 842, popupWidth: 672,

### === CLASSIC Sticky image background and spillover into sidebar (beta) ===
###rgHeaderImages: this.props.rgHeaderImages, rgHeaderImages: "",
Expand Down
4 changes: 2 additions & 2 deletions js_tweaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import shutil
import traceback
import re
from jsmin import jsmin
import rjsmin
import time

LOCAL_DEBUG = 0 #Set to 1 to not copy files to/from Steam directory
Expand Down Expand Up @@ -241,7 +241,7 @@ def re_minify_file():
try:
print("\nRe-minify JS file")
with open("libraryroot.modif.js", "r", newline='', encoding="UTF-8") as js_file:
minified = jsmin(js_file.read())
minified = rjsmin.jsmin(js_file.read(), keep_bang_comments=True)
with open("libraryreet.js", "w", newline='', encoding="UTF-8") as js_min_file:
js_min_file.write(minified)
js_file.close()
Expand Down
4 changes: 2 additions & 2 deletions old_glory.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

class OldGloryApp(tk.Tk):
def __init__(self, *args, **kwargs):
self.version = "v0.9.11.4"
self.release = "5.7.4.1"
self.version = "v0.9.11.5"
self.release = "5.7.4.2"

### Window Frame
tk.Tk.__init__(self, *args, **kwargs)
Expand Down
3 changes: 2 additions & 1 deletion old_glory_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"CSSVariableString": "/* ===== SteamUI-OldGlory will insert CSS Variables from variables.css here ==== */",
"CSSBeforeThemes": "// Themes applied before CSS Tweaks",
"CSSAfterThemes": "// Themes applied after CSS Tweaks",
"lastPatchedDate": "2021-10-06T18:33:13Z",
"libraryrootFile": "6.css",
"lastPatchedDate": "2021-11-01T22:07:20Z",
"themes": {
"steam-library": {
"author": "Shiina",
Expand Down

0 comments on commit a0e0dea

Please sign in to comment.