Skip to content

Commit

Permalink
Fix JS tweaks for Steam Update 17 Nov
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonius7 committed Nov 24, 2022
1 parent e2ced80 commit 28c7004
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions fixes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### === Increase Number of Screenshots and DLC displayed ===
.slice(0, 4) .slice(0, 9)
.IN_GAMEPADUI ? 4 : 6; .IN_GAMEPADUI ? 4 : 12;
.IN_GAMEPADUI) ? 4 : 6; .IN_GAMEPADUI) ? 4 : 12;

### === Disable screenshot slideshow on hover ===
###this.hasScreenshots ? (t = this.currentScreenshot /*this.hasScreenshots ? (t = this.currentScreenshot
Expand All @@ -14,7 +14,7 @@
this.SetStateLoaded() this.SetStateLoaded(),document.getElementsByClassName('smartscrollcontainer_Body_g6Mwh')[0].scrollTop = 30

### === Change Game Image Grid Sizes - default widths 111, 148, 222 ===
t = Math.max(1, Math.min(m, Math.floor((e + c) / g))); t = Math.max(1, Math.min(m, Math.floor((e + c) / g)) + 1);
t = Math.max(1, Math.min(p, Math.floor((e + d) / g))); t = Math.max(1, Math.min(p, Math.floor((e + d) / g)) + 1);
PortraitWidthSmall: "111px", PortraitWidthSmall: "100px",
PortraitWidthMedium: "148px", PortraitWidthMedium: "140px",
PortraitWidthLarge: "222px", PortraitWidthLarge: "200px",
Expand All @@ -25,16 +25,16 @@ PortraitWidthLarge: "222px", PortraitWidthLarge: "200px",
###i = 1.5 * r i = 43 / 92 * r

### === Stop What's New Events from Loading ===
###C.De.STORE_BASE_URL + "events/ajaxgetbesteventsforuser" ""
###y.De.STORE_BASE_URL + "events/ajaxgetbesteventsforuser" ""

### === Press Enter to launch games ===
switch (t) {~~case 38: case 13: return this.RunApp(S.g4.currentGameListSelection.nAppId), void e.preventDefault();case 38:
MoveRangeSelectUpOneRow() { RunApp(e) {window.location.href = "steam://rungameid/" + e;} MoveRangeSelectUpOneRow() {

### === Expand Show more Details panel by default ===
###let e = this.props.expand ? P().AppDetailsExpanded : P().AppDetailsCollapsed; let e = this.props.expand ? P().AppDetailsCollapsed : P().AppDetailsExpanded;
###let e = this.props.expand ? G().AppDetailsExpanded : G().AppDetailsCollapsed; let e = this.props.expand ? G().AppDetailsCollapsed : G().AppDetailsExpanded;
###this.props.expand ? this.state.gameInfoHeight + "px" : "0px" this.props.expand ? "0px" : this.state.gameInfoHeight + "px"
###className: P().GameInfoShadow className: ""
###className: G().GameInfoShadow className: ""

### === Dim Not Installed Games ===
hoverDelay: 300, hoverDelay: 300, style: n.installed ? {} : {opacity: "var(--UninstalledGameImageOpacity)"},
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.27.6"
self.release = "5.10.4-pre1"
self.version = "v0.9.27.7"
self.release = "5.10.4"

### Window Frame
tk.Tk.__init__(self, *args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion old_glory_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"jsModifFile": "sp.modif.js",
"jsPatchedFile": "sq.js",
"jsOriginalFile": "sp.js.original",
"lastPatchedDate": "2022-11-18T05:06:12Z",
"lastPatchedDate": "2022-11-24T05:06:12Z",
"themes": {
"steam-library": {
"author": "Shiina",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
jsbeautifier==1.14.0
libsass==0.21.0
Pillow==9.1.1
Pillow==9.3.0
requests==2.27.1
requests_oauthlib==1.3.1
rjsmin==1.2.0

0 comments on commit 28c7004

Please sign in to comment.