Files
CommunityScripts/plugins/VideoScrollWheel/VideoScrollWheel.yml
feederbox826 adade5e7ed Replace StashUserscriptLibrary (#319)
* replace SUL in VideoScrollWheel

* rewrite stats to use cs-ui-lib

- reused and simplified GQL queries

* rewrite sceneCoverCropper to use cs-ui-lib

* update discordPrescence to use cs-ui-lib

- add websocket liveliness check
- add video playback hooks

* make stash-realbooru use cs-ui-lib

* deprecated by https://github.com/7dJx1qP/stash-plugins/tree/main/plugins/stashBatchResultToggle

* add cs-ui-lib to stashAI, applied some fixes to realbooru

* update Visage to use cs-ui-lib

* update themeSwitch to use cs-ui-lib

* remove userscript lib

---------

Co-authored-by: feederbox826 <feederbox826@users.noreply.github.com>
2024-06-02 01:24:15 +03:00

43 lines
2.1 KiB
YAML

name: VideoScrollWheel
description: Adds functionality to change volume/time in scene video player by hovering over left/right side of player and scrolling with mouse scrollwheel. Scroll while hovering on left side to adjust volume, scroll on right side to skip forward/back.
#requires: CommunityScriptsUILibrary
version: 0.2
settings:
allowVolumeChange:
displayName: Volume change via mouse wheel
description: Allow volume to be changed via mouse wheel. When disabled it always changes video position.
type: BOOLEAN
volumeScrollSpeed:
displayName: Volume Scroll Speed
description: (Default=100.0) Scales the amount of change in volume per mouse wheel click. Negative value reverses scroll direction.
type: NUMBER
timeScrollSpeed:
displayName: Time Scroll Speed
description: (Default=100.0) Scales the amount of change in time per mouse wheel click. Negative value reverses scroll direction.
type: NUMBER
timeScrollAcceleration:
displayName: Time Scroll Acceleration
description: (Default=100.0) Scales how quickly time scrolling accelerates from min speed to max speed. Set to 0 to disable.
type: NUMBER
minTimeScrollSpeed:
displayName: Min Time Scroll Velocity
description: (Default=1.0) When acceleration is enabled, scroll speed will increase from min velocity to max velocity.
type: NUMBER
maxTimeScrollSpeed:
displayName: Max Time Scroll Velocity
description: (Default=5.0) When acceleration is enabled, scroll speed will increase from min velocity to max velocity.
type: NUMBER
timeScrollVelocityDecay:
displayName: Time Scroll Velocity Decay
description: (Default=100.0) When acceleration is enabled, this value sets how quickly velocity returns to min value while not scrolling.
type: NUMBER
timeScrollVelocityTimeout:
displayName: Time Scroll Velocity Timeout
description: (Default=2000.0) When acceleration is enabled, velocity will reset to minimum after this number of milliseconds.
type: NUMBER
ui:
requires:
- CommunityScriptsUILibrary
javascript:
- VideoScrollWheel.js