Skip to content

Commit

Permalink
Improve Display condition
Browse files Browse the repository at this point in the history
* Add temp variable support
* Add options to check display width and height
* Add option to select comparision operator for display count check
  • Loading branch information
WarmUpTill committed Jan 30, 2024
1 parent 19bc270 commit 9eda8be
Show file tree
Hide file tree
Showing 4 changed files with 334 additions and 34 deletions.
17 changes: 16 additions & 1 deletion data/locale/en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,13 @@ AdvSceneSwitcher.condition.midi.entry.listen="Set MIDI message selection to mess
AdvSceneSwitcher.condition.display="Display"
AdvSceneSwitcher.condition.display.type.displayName="Name of connected displays matches"
AdvSceneSwitcher.condition.display.type.displayCount="Number of connected displays is"
AdvSceneSwitcher.condition.display.entry="{{conditions}}{{displays}}{{regex}}{{displayCount}}"
AdvSceneSwitcher.condition.display.type.displayWidth="Display width is"
AdvSceneSwitcher.condition.display.type.displayHeight="Display height is"
AdvSceneSwitcher.condition.display.compare.equals="Equals"
AdvSceneSwitcher.condition.display.compare.less="Less than"
AdvSceneSwitcher.condition.display.compare.more="More than"
AdvSceneSwitcher.condition.display.useDevicePixelRatio="Factor in ratio between physical pixels and device-independent pixels"
AdvSceneSwitcher.condition.display.entry="{{conditions}}{{displays}}{{compareModes}}{{displayHeight}}{{displayWidth}}{{regex}}{{displayCount}}"
AdvSceneSwitcher.condition.slideshow="Slide Show"
AdvSceneSwitcher.condition.slideshow.condition.slideChanged="Slide changed"
AdvSceneSwitcher.condition.slideshow.condition.slideIndex="Current slide number is"
Expand Down Expand Up @@ -1549,6 +1555,15 @@ AdvSceneSwitcher.tempVar.video.color.description="The average RGB color in a giv
AdvSceneSwitcher.tempVar.websocket.message="Received websocket message"
AdvSceneSwitcher.tempVar.websocket.message.description="The received websocket message, which matched the given pattern"

AdvSceneSwitcher.tempVar.display.name="Display name"
AdvSceneSwitcher.tempVar.display.name.description="Name of the display which matched the given pattern"
AdvSceneSwitcher.tempVar.display.count="Display count"
AdvSceneSwitcher.tempVar.display.count.description="The number of displays detected"
AdvSceneSwitcher.tempVar.display.width="Display width"
AdvSceneSwitcher.tempVar.display.width.description="The width of the display which matched the given pattern"
AdvSceneSwitcher.tempVar.display.height="Display height"
AdvSceneSwitcher.tempVar.display.height.description="The height of the display which matched the given pattern"

AdvSceneSwitcher.selectScene="--select scene--"
AdvSceneSwitcher.selectPreviousScene="Previous Scene"
AdvSceneSwitcher.selectCurrentScene="Current Scene"
Expand Down
1 change: 0 additions & 1 deletion data/locale/zh-CN.ini
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ AdvSceneSwitcher.condition.midi.entry.listen="将MIDI信息选择设置为从选
AdvSceneSwitcher.condition.display="显示器"
AdvSceneSwitcher.condition.display.type.displayName="连接的显示器的名称匹配"
AdvSceneSwitcher.condition.display.type.displayCount="连接的显示器的数量为"
AdvSceneSwitcher.condition.display.entry="{{conditions}}{{displays}}{{regex}}{{displayCount}}"

; Macro Actions
AdvSceneSwitcher.action.scene="切换场景"
Expand Down
Loading

0 comments on commit 9eda8be

Please sign in to comment.