Skip to content

Commit 50f8b7f

Browse files
authored
Secondary Performer Image Plugin (#576)
1 parent 55e6483 commit 50f8b7f

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Secondary Performer Images
2+
3+
This plugin adds support for a secondary performer image on the performer details page, enabling more customization. A new `Set secondary image...` button will be available on the performer edit page to provide this new image. Performers without a secondary image will continue to behave as they've always done.
4+
5+
## Modes
6+
The plugin offers three different display modes that can be set for the use of the secondary image. The modes range from 0-2, with 0 being the default mode. Any values that fall outside this range will be processed as the default mode.
7+
8+
0 - Specify 0 to enable the secondary image to be used in the expanded view. You might consider using this mode if your performer image currently consists of headshots and you want to provide fuller body images for the expanded view.
9+
10+
1 - Specify 1 to enable the secondary image to be used in the collapsed view. You might consider using this mode if your performer image currently consists of body shots and you want to provide headshots for the collapsed view.
11+
12+
2 - Specify 2 to enable a button to be used to flip between the primary and secondary image. This mode gives you the option to provide whatever combination of images you want to use together. Some might consider using this option to provide front and back images of the performer.

plugins/SecondaryPerformerImage/SecondaryPerformerImage.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/SecondaryPerformerImage/SecondaryPerformerImage.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Add secondary perfomrer image.
2+
description: Adds support for a secondary perfomrer image on the perform details page.
3+
url: https://github.com/stashapp/CommunityScripts
4+
version: 1.0
5+
settings:
6+
imageMode:
7+
displayName: Image Mode
8+
description: Mode at which to display the performer image. There are only 3 valid values. Specify 0 to enable the secondary image to be used in the expanded view. Specify 1 to enable the secondary image to be used in the collapsed view. Specify 2 to enable a button to be used to flip between the primary and secondary image.
9+
type: NUMBER
10+
ui:
11+
javascript:
12+
- SecondaryPerformerImage.js
13+
css:
14+
- SecondaryPerformerImage.css
15+
assets:
16+
/: .

0 commit comments

Comments
 (0)