Improve time tab (#34)

* add support for weekdays and allow reordering on time tab

* add option to use time relative to streaming/recording start on time tab
This commit is contained in:
WarmUpTill
2020-09-13 00:03:38 +02:00
committed by GitHub
parent a5c8d776f3
commit 21a788b48b
6 changed files with 292 additions and 35 deletions

View File

@@ -235,16 +235,18 @@ struct MediaSwitch {
struct TimeSwitch {
OBSWeakSource scene;
OBSWeakSource transition;
timeTrigger trigger;
QTime time;
bool matched;
bool usePreviousScene;
std::string timeSwitchStr;
inline TimeSwitch(OBSWeakSource scene_, OBSWeakSource transition_,
QTime time_, bool usePreviousScene_,
std::string timeSwitchStr_)
timeTrigger trigger_, QTime time_,
bool usePreviousScene_, std::string timeSwitchStr_)
: scene(scene_),
transition(transition_),
trigger(trigger_),
time(time_),
usePreviousScene(usePreviousScene_),
timeSwitchStr(timeSwitchStr_)
@@ -324,6 +326,7 @@ struct SwitcherData {
std::vector<MediaSwitch> mediaSwitches;
std::vector<TimeSwitch> timeSwitches;
QDateTime liveTime;
std::vector<int> functionNamesByPriority = std::vector<int>{
DEFAULT_PRIORITY_0, DEFAULT_PRIORITY_1, DEFAULT_PRIORITY_2,