adds .local/share/millennium and easyeffects
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
(function(){
|
||||
window.AdjustVisibleAppTags($J(".popular_tags"));
|
||||
|
||||
/*
|
||||
* Triggers the adjustment of the slider scroll bar.
|
||||
* https://github.com/SteamDatabase/SteamTracking/blob/ad4e85261f2322eae0b0125e46d7d753bf755730/store.steampowered.com/public/javascript/gamehighlightplayer.js#L101
|
||||
*/
|
||||
$J(window).trigger("resize.GameHighlightPlayer");
|
||||
})();
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
(function(){
|
||||
// https://github.com/SteamDatabase/SteamTracking/blob/8e19832027cf425b5db71c09c878739b5630c66a/steamcommunity.com/public/javascript/workshop_previewplayer.js#L123
|
||||
const player = window.g_player;
|
||||
|
||||
// g_player is null when the shared file only has one screenshot and therefore no highlight strip
|
||||
if (player === null) { return; }
|
||||
|
||||
const elemSlider = window.$("highlight_slider");
|
||||
const nSliderWidth = player.m_elemStripScroll.getWidth() - player.m_elemStrip.getWidth();
|
||||
|
||||
// Shared files with too few screenshots won't have a slider
|
||||
if (typeof player.slider !== "undefined") {
|
||||
player.slider.dispose();
|
||||
}
|
||||
|
||||
if (nSliderWidth > 0) {
|
||||
const newValue = player.slider.value * (nSliderWidth / player.slider.range.end);
|
||||
|
||||
player.slider = new (window.Control.Slider)(
|
||||
elemSlider.down(".handle"),
|
||||
elemSlider,
|
||||
{
|
||||
"range": window.$R(0, nSliderWidth),
|
||||
"sliderValue": newValue,
|
||||
"onSlide": player.SliderOnChange.bind(player),
|
||||
"onChange": player.SliderOnChange.bind(player),
|
||||
}
|
||||
);
|
||||
|
||||
g_player.SliderOnChange(newValue);
|
||||
} else {
|
||||
elemSlider.hide();
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user