Jonius7 / SteamUI-OldGlory

A set of customisable Steam Library tweaks, with an installer. Also a reference that you can use to learn how to make your own tweaks.
https://jonius7.github.io
Apache License 2.0
253 stars 5 forks source link

Help removing update banner/friends activity/post-game summary/hours text box back down/developer broadcast. #26

Closed Balicescu closed 3 years ago

Balicescu commented 3 years ago

Can we get rid of this ? asd

Jonius7 commented 3 years ago

Yes it's fairly simple to hide, though the CSS is not set up for it.

Add this to \scss\_custom_module1.scss or \scss\_custom_module2.scss

.appdetailsoverview_Spotlights_11kuV {
   display: none;
}
Balicescu commented 3 years ago

Ok so i have a few problems and they might be because of me cuz i don't know anything about coding so i'm sorry if i post stupid shit, i don't like to waste people's time.

1.Anything that i put in custom_modules just doesn't work , i put the code in the file i press install, steam reloads and nothing has changed, i tried with reload config first then install/tried to put it in the second custom module file/tried to put the code in other ways in the file, maybe i didn't understand the instructions in the file idk, same result for everything. image

2.What if i have 3 custom codes ? can i put 2 in the same file ? i have these: -for the update banner on the game page: .appdetailsoverview_Spotlights_11kuV { display: none; } -for friend activity on the game page: .appdetailsactivitysection_ActivityFeedContainer_3yTl3 { display: none; } -for the post game summary on the game page: .appdetailsoverview_Container_27RcN .appdetailsoverview_Spotlights_11kuV { display: none !important; }

3.I want to move the hours text box back down,i tried to edit the file in the screenshot but it's just resetting back to default when i try to apply it. image

4.I want to remove the developer broadcast from the game page. image Tried to edit this: image Nothing is happening, sorry if it's not even intended to remove that from the beginning. I edited the scrollbar line to see if it's working on something else and it does.

Jonius7 commented 3 years ago

1.Anything that i put in custom_modules just doesn't work

  1. What you have there is configured correctly, so, not sure, it is working in tests on my end.
    I have noticed a minor bug where OldGlory is checking for updates to user_module1 and user_module2 instead of custom modules (I changed the filenames in 5.7.2 and it's some leftover code), but this shouldn't affect applying the custom CSS.

2.What if i have 3 custom codes ? can i put 2 in the same file ?

  1. Yes. So the main thing with CSS is that you can change the code in any of the files and it will work. The main reason I say to put your custom code in the custom_modules and not for modifying the other .scss files is when I update the files it may be for a file you had modified.

3.I want to move the hours text box back down,i tried to edit the file in the screenshot but it's just resetting back to default when i try to apply it.

  1. libraryroot.custom.css is generated from all the files in the \scss folder and shouldn't be edited, as you've noticed your changes will be overwritten. That particular code you are looking at is in _home_collections.scss

4.I want to remove the developer broadcast from the game page. _gamepage_broadcasts.scss just tweaks the broadcast box to be 50% size. To remove it completely would be to just add:

.appdetailssection_Body_5uvIN.appdetailsbroadcastsection_Body_CFp7F {
display: none;
}

Only the heading "Developer Broadcast" will be left there.

Balicescu commented 3 years ago

Now it's all perfect, thank you very much for helping and working with me. I figured it out with the custom modules, the problem was the codes. So i used your tutorial where u showed how to find the tweaks by using the steam dev mode and console and these worked for me : -Remove update banner:

.spotlight_AppDetailsSpotlightContainer_1zDJ1.spotlight_MajorEventContainer_dVJB2 {
    display: none;
}
.spotlight_MajorEventHeader_1HL2n {
    display: none;
}

-Remove friends activity:

.appdetailssection_AppDetailsSection_2r4TK.appdetailsfriendssection_FriendsSection_qGJMO.Panel.Focusable {
    display: none;
}