This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathevents_transitions.go
59 lines (54 loc) · 1.9 KB
/
events_transitions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package obsws
// This file is automatically generated.
// https://github.com/christopher-dG/go-obs-websocket/blob/master/codegen/protocol.py
// SwitchTransitionEvent : The active transition has been changed.
//
// Since obs-websocket version: 4.0.0.
//
// https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#switchtransition
type SwitchTransitionEvent struct {
// The name of the new active transition.
// Required: Yes.
TransitionName string `json:"transition-name"`
_event `json:",squash"`
}
// TransitionListChangedEvent : The list of available transitions has been modified.
// Transitions have been added, removed, or renamed.
//
// Since obs-websocket version: 4.0.0.
//
// https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitionlistchanged
type TransitionListChangedEvent struct {
_event `json:",squash"`
}
// TransitionDurationChangedEvent : The active transition duration has been changed.
//
// Since obs-websocket version: 4.0.0.
//
// https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitiondurationchanged
type TransitionDurationChangedEvent struct {
// New transition duration.
// Required: Yes.
NewDuration int `json:"new-duration"`
_event `json:",squash"`
}
// TransitionBeginEvent : A transition (other than "cut") has begun.
//
// Since obs-websocket version: 4.0.0.
//
// https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#transitionbegin
type TransitionBeginEvent struct {
// Transition name.
// Required: Yes.
Name string `json:"name"`
// Transition duration (in milliseconds).
// Required: Yes.
Duration int `json:"duration"`
// Source scene of the transition.
// Required: Yes.
FromScene string `json:"from-scene"`
// Destination scene of the transition.
// Required: Yes.
ToScene string `json:"to-scene"`
_event `json:",squash"`
}