-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathevents.d.ts
More file actions
154 lines (151 loc) · 6.73 KB
/
events.d.ts
File metadata and controls
154 lines (151 loc) · 6.73 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/**
* @packageDocumentation Defines built-in events from Panorama's events system
*/
/** Defines built-in panel events from Panorama's events system. */
interface PanelEventNameMap {
'Activated': (source: PanelEventSource) => void,
'AddStyle': (cls: string) => void,
'AddStyleToEachChild': (cls: string) => void,
'AvatarImageLoaded': () => void,
'Cancelled': (source: PanelEventSource) => void,
'CarouselAutoScroll': (autoscroll_id: number) => void,
'CarouselChildrenChanged': () => void,
'CarouselNavIncrementSelectedIndex': (inc: number) => void,
'CarouselNavSetSelectedIndex': (index: number) => void,
'CheckChildrenScrolledInputView': () => void,
'ClearImageSource': () => void,
/** This is right-clicking! */
'ContextMenu': (source: PanelEventSource) => void,
'ContextMenuEvent': (eventText: string) => void,
'DragStart': (info: DragEventInfo) => void,
'DragEnd': () => void,
'DragEnter': () => void,
'DragDrop': () => void,
'DragLeave': () => void,
'DragScrollStart': () => void,
'DragScrollMouseMove': (lastX: int32, lastY: int32, newX: int32, newY: int32) => void,
'DragScrollEnd': (lastX: int32, lastY: int32, velocityX: float, velocityY: float) => void,
'DropDownSelectedionChanged': () => void,
'DropInputFocus': () => void,
'DualSliderValueChanged': (value1: float, value2: float) => void,
'GenericPopupButtonClicked': () => void,
'GenericTextEntryPopupButtonClicked': () => void,
'IfHasClassEvent': (cls: string, eventToFire: string) => void,
'IfHoverOtherEvent': (othersourceID: string, eventToFire: string) => void,
'IfNotHasClassEvent': (cls: string, eventToFire: string) => void,
'IfNotHoverOtherEvent': (othersourceID: string, eventToFire: string) => void,
'ImageFailedLoad': () => void,
'InputFocusLost': (panel: GenericPanel) => void,
'KeyBinderNewBind': () => void,
'MouseScroll': (scroll: int32) => void,
'MovePanelDown': (repeatCount: int32) => void,
'MovePanelLeft': (repeatCount: int32) => void,
'MovePanelRight': (repeatCount: int32) => void,
'MovePanelUp': (repeatCount: int32) => void,
'NStateButtonStateChanged': (state: int32) => void,
'NStateButtonStateReset': (state: int32) => void,
'NumberEntryChanged': () => void,
'PagePanelDown': () => void,
'PagePanelLeft': () => void,
'PagePanelRight': () => void,
'PagePanelUp': () => void,
'PanelLoaded': () => void,
'PanelStyleChanged': () => void,
'PanoramaCastVoteNo': () => void,
'PanoramaCastVoteYes': () => void,
'PropertyTransitionEnd': (propertyName: keyof Style) => void,
'RadioSelected': (selected: string) => void,
'RemoveStyle': (cls: string) => void,
'RemoveStyleFromEachChild': (cls: string) => void,
'ResetCarouselMouseWheelCounts': () => void,
/** Fired when panel has been scrolled */
'Scroll': () => void,
'ScrolledIntoView': () => void,
'ScrollOutOfView': () => void,
'ScrollPanelDown': () => void,
'ScrollPanelIntoView': (scrollBehavior: ScrollBehavior, immediate: boolean) => void,
'ScrollPanelLeft': () => void,
'ScrollPanelRight': () => void,
'ScrollPanelUp': () => void,
'ScrollToBottom': () => void,
'ScrollToDelayLoadListItem': (scrollIndex: int32, scrollBehavior: ScrollBehavior, immediateScroll: boolean) => void,
'ScrollToTop': () => void,
'SetCarouselSelectedChild': () => void,
'SetChildPanelsSelected': (selected: boolean) => void,
'SetImageSource': (source: string) => void,
'SetInputFocus': () => void,
'SetPanelEnabled': (enabled: boolean) => void,
'SetPanelSelected': (selected: boolean) => void,
'StyleClassesChanged': () => void,
'StyleFlagsChanged': () => void,
'SwitchStyle': (slot: string, cls: string) => void,
/** Call RaiseChangeEvents() to enable */
'TextEntryChanged': (text: string) => void,
'TextEntryCopyFromClipboard': () => void,
'TextEntryCutFromClipboard': () => void,
'TextEntryHideTextInputHandler': () => void,
'TextEntryInsertFromClipboard': () => void,
/** @deprecated Use .text property */
'TextEntrySetText': (text: string) => void,
'TextEntryShowTextInputHandler': () => void,
'TextEntrySubmit': (text: string) => void,
'TextEntryUpdate': () => void,
'TogglePanelSelected': () => void,
'ToggleStyle': (cls: string) => void,
'TooltipVisible': () => void,
'TooltipHidden': () => void,
'TriggerStyle': (cls: string) => void,
'UpdateFocusAndDirtyChildStyles': () => void,
}
/** Defines built-in global events from Panorama's events system. */
interface GlobalEventNameMap {
'AsyncEvent': (delay: duration, eventToFire: string) => void,
'MainMenuResumeGame': () => void,
'MainMenuPauseGame': () => void,
'ShowPauseMenu': () => void,
'HidePauseMenu': () => void,
'ShowMainMenu': () => void,
'HideMainMenu': () => void,
'HudProcessInput': () => void,
'HudThink': () => void,
'ShowIntroMovie': () => void,
'HideIntroMovie': () => void,
'DemoPlaybackControl': (str: string, flt: float) => void,
'GameEventFired': (event: string) => void,
'LayoutReloaded': () => void,
'PageDown': () => void,
'PageLeft': () => void,
'PageRight': () => void,
'PageUp': () => void,
'PanoramaGameTimeJumpEvent': (time: duration) => void,
'ScrollDown': () => void,
'ScrollLeft': () => void,
'ScrollRight': () => void,
'ScrollUp': () => void,
'ShowCenterPrintText': (message: string, priority: unknown) => void,
'ShowVoteContextMenu': () => void,
'StaticHudMenu_EntrySelected': (panel: Panel) => void,
'UnloadLoadingScreenAndReinit': () => void,
'LevelInitPostEntity': () => void,
'NewConsoleMessages': () => void,
'SliderFocusChanged': (sourceID: string, focused: boolean) => void,
'SliderProgressChanged': (sourceID: string) => void,
'SliderValueChanged': (sourceID: string, value: float) => void,
'SpinnerValueChanged': (sourceID: string, value: float) => void,
'ObserverTargetChanged': (entIndex: int32) => void,
'MapLoaded': (mapName: string, isBackgroundMap: boolean) => void,
'MapUnloaded': () => void,
'Cancelled': (sourceID: string, source: PanelEventSource) => void,
'PopulateLoadingScreen': (mapName: string) => void,
'ApplyVideoSettings': () => void,
'VideoSettingsInit': () => void,
'VideoSettingsResetDefault': () => void,
'ToggleConsole': () => void,
}
/** Represents the info object provided by a DragEvent */
interface DragEventInfo {
removePositionBeforeDrop: boolean;
offsetX: number;
offsetY: number;
displayPanel: Panel | null;
}