-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathActor.lua
1576 lines (1286 loc) · 49.6 KB
/
Actor.lua
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---@diagnostic disable: param-type-mismatch
---@meta
--- Parameter list for the EditorUpdate Command.
---@class EditorUpdateParams
---@field Taps integer
---@field Jumps integer
---@field Hands integer
---@field Holds integer
---@field Mines integer
---@field Rolls integer
---@field Lifts integer
---@field Fakes integer
--- Parameter list for the EditorStateChangedMessage Command.
---@class EditorStateChangedMessageParams
---@field EditState EditState
--------------------------------
---@class Actor
---[[@operator call:Actor]]
---@field Condition? boolean Is this actor allowed to be created? If its false, it will be skipped with a Def.Actor instead.
---@field Name? string The name for the actor.
---@field [string] fun(self: Actor)
--- Initial command. Call as soon as the screen begins construction.
---@field InitCommand? fun(self: Actor)
--- On command. Called after screen construction is done.
---@field OnCommand? fun(self: Actor)
---@field BeginCommand? fun(self: Actor)
--- Message command called when the current editor state has been changed.
---@field EditorStateChangedMessageCommand? fun(self: Actor, params: EditorStateChangedMessageParams )
---@field EditorUpdateCommand? fun(self: Actor, params: EditorUpdateParams )
---@diagnostic disable: redundant-parameter
---@type (Actor|ActorFrame|ActorFrameTexture|ActorMultiTexture|ActorMultiVertex|ActorProxy|ActorScroller|ActorSound|AudioVisualizer|Banner|BitmapText|BPMDisplay|HelpDisplay|Model|Sprite|Quad)
Actor = {}
--- This adds a wrapper state around the Actor, which is like wrapping the Actor in an ActorFrame, except that
--- you can use it on any actor, and add or remove wrapper states in response to things that happen while the
--- screen is being used (wrapping an Actor in an ActorFrame normally requires setting it up before the screen starts).
--- <br><br>
--- The ActorFrame that is returned is the wrapper state, for convenience.
--- An Actor can have any number of wrapper states. Use GetWrapperState to access wrapper states for the actor.
---@return ActorFrame
---@see Actor.GetWrapperState
function Actor:AddWrapperState() end
--- Returns the number of wrapper states the actor has.
---@return integer
function Actor:GetNumWrapperStates() end
--- Returns the wrapper state at index `i`. Think of wrapper states with a higher index as being "further out".
--- Actor is inside Wrapper 1, Wrapper 1 is inside Wrapper 2, Wrapper 2 is inside Wrapper 3, and so on.
---@param i integer # Wrapper to query to.
---@return self
function Actor:GetWrapperState(i) end
--- Removes the wrapper state at index i.
---@param i integer
---@return self
function Actor:RemoveWrapperState(i) end
--- Returns the Actor's parent, or `nil` if it doesn't have one.
---@return self?
function Actor:GetParent() end
--- Returns the Actor's fake parent, or `nil` if it doesn't have one.
---@return self?
function Actor:GetFakeParent() end
--- Sets the Actor's fake parent to `p`, or clears it if `p` is nil.
---@param p self
function Actor:SetFakeParent(p) end
--- Returns the Actor's visibility.
---@return boolean
function Actor:GetVisible() end
--- Returns the Actor's X position.
---@return number
function Actor:GetX() end
--- Returns the Actor's Y position.
---@return number
function Actor:GetY() end
--- Returns the Actor's Z position.
---@return number
function Actor:GetZ() end
--- Returns the Actor's absolute x position. This can be used to determine its location
--- while being nested into multiple actorframes.
---@return number
function Actor:GetAbsoluteX() end
--- Returns the Actor's absolute y position. This can be used to determine its location
--- while being nested into multiple actorframes.
---@return number
function Actor:GetAbsoluteY() end
--- Returns what the Actor's X will be when it reaches its destination tween state.
---@return number
function Actor:GetDestX() end
--- Returns what the Actor's Y will be when it reaches its destination tween state.
---@return number
function Actor:GetDestY() end
--- Returns what the Actor's Z will be when it reaches its destination tween state.
---@return number
function Actor:GetDestZ() end
--- Returns what the Actor's absolute x position will be when it reaches its destination tween state.
--- This can be used to determine its new location while being nested into multiple actorframes.
---@return number
function Actor:GetAbsoluteDestX() end
--- Returns what the Actor's absolute y position will be when it reaches its destination tween state.
--- This can be used to determine its new location while being nested into multiple actorframes.
---@return number
function Actor:GetAbsoluteDestY() end
--- Returns the Actor's destination zoom.
--- `bGetCurrent` is optional. When `bGetCurrent` is true, the function returns the Actor's current mid-tween value for zoom.
---@param bGetCurrent? boolean
---@return number
function Actor:GetZoom(bGetCurrent) end
--- Returns the Actor's destination X zoom.
--- `bGetCurrent` is optional. When `bGetCurrent` is true, the function returns the Actor's current mid-tween value for zoom.
---@param bGetCurrent? boolean
---@return number
function Actor:GetZoomX(bGetCurrent) end
--- Returns the Actor's destination Y zoom.
--- `bGetCurrent` is optional. When `bGetCurrent` is true, the function returns the Actor's current mid-tween value for zoom.
---@param bGetCurrent? boolean
---@return number
function Actor:GetZoomY(bGetCurrent) end
--- Returns the Actor's destination Z zoom.
--- `bGetCurrent` is optional. When `bGetCurrent` is true, the function returns the Actor's current mid-tween value for zoom.
---@param bGetCurrent? boolean
---@return number
function Actor:GetZoomZ(bGetCurrent) end
--- Sets Texture Filtering for an Actor to `b`.
---@param b boolean
---@return self
function Actor:SetTextureFiltering(b) end
--- Plays the commands that follow at an accelerated rate `(fRate * fRate)`, where `fRate` is in seconds.
---@param fRate number
---@return self
function Actor:accelerate(fRate) end
--- Adds `fAux` to the Actor's current aux value.
---@param fAux number
---@return self
function Actor:addaux(fAux) end
--- Adds a command to the Actor.
---@param sName string
---@param cmd function
function Actor:addcommand(sName, cmd) end
--- Adds `rot` to the Actor's current x rotation.
---@param rot number
---@return self
function Actor:addrotationx(rot) end
--- Adds `rot` to the Actor's current y rotation.
---@param rot number
---@return self
function Actor:addrotationy(rot) end
--- Adds `rot` to the Actor's current z rotation.
---@param rot number
---@return self
function Actor:addrotationz(rot) end
--- Adds `xPos` to the Actor's current x position.
---@param xPos number
---@return self
function Actor:addx(xPos) end
--- Adds `yPos` to the Actor's current y position.
---@param yPos number
---@return self
function Actor:addy(yPos) end
--- Adds `zPos` to the Actor's current z position.
---@param zPos number
---@return self
function Actor:addz(zPos) end
--- [02 Actor.lua] Sets the alignment of an Actor, where `h` and `v` are in the range 0..1.
---@param h number
---@param v number
---@return self
function Actor:align(h,v) end
--- Sets whether or not the Actor should animate.
---@param b boolean
---@return self
function Actor:animate(b) end
--- Sets the Actor's aux value. (This can be a solution for coupling data with an Actor.)
---@param fAux number
---@return self
function Actor:aux(fAux) end
--- If `true`, cull the Actor's back faces.<br>
---@see Actor.cullmode
---@param b boolean
---@return self
function Actor:backfacecull(b) end
--- Sets the Actor's base alpha to `fAlpha`, where `fAlpha` is in the range 0..1.
---@param fAlpha number
---@return self
function Actor:basealpha(fAlpha) end
--- Sets the Actor's base alpha to `fAlpha`, where `fAlpha` is in the range 0..1.
---@param fAlpha number
---@return self
function Actor:basealpha(fAlpha) end
--- Sets the Actor's base X rotation to `rot`.
---@param rot number
---@return self
function Actor:baserotationx(rot) end
--- Sets the Actor's base Y rotation to `rot`.
---@param rot number
---@return self
function Actor:baserotationy(rot) end
--- Sets the Actor's base Z rotation to `rot`.
---@param rot number
---@return self
function Actor:baserotationz(rot) end
--- Returns the Actor's destination zoom.
---@param zoom number
---@return self
function Actor:basezoom(zoom) end
--- Returns the Actor's destination X zoom.
---@param zoom number
---@return self
function Actor:basezoomx(zoom) end
--- Returns the Actor's destination Y zoom.
---@param zoom number
---@return self
function Actor:basezoomy(zoom) end
--- Returns the Actor's destination Z zoom.
---@param zoom number
---@return self
function Actor:basezoomz(zoom) end
--- Sets the Actor to use the specified blend mode.
---@param mode BlendMode
---@return self
function Actor:blend(mode) end
--- Makes the Actor bob up and down.
---@see Actor.effectmagnitude # to define different bobbing behavior.
---@return self
function Actor:bob() end
--- Makes the Actor bounce, similar to bob but with one point acting as the ground.<br>
---@see Actor.effectmagnitude' # to define different bouncing behavior (with effectmagnitude values relating to x, y, and z movement).
---@return self
function Actor:bounce() end
---@param time number
---@return self
function Actor:bouncebegin(time) end
---@param time number
---@return self
function Actor:bounceend(time) end
--- [02 Actor.lua] Centers an Actor on the screen. (equivalent to `xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)`)
---@return self
function Actor:Center() end
--- [02 Actor.lua] Centers an Actor on the X axis. (equivalent to `x(SCREEN_CENTER_X)`)
---@return self
function Actor:CenterX() end
--- [02 Actor.lua] Centers an Actor on the y axis. (equivalent to `y(SCREEN_CENTER_Y)`)
---@return self
function Actor:CenterY() end
--- Determines if the z-buffer should be cleared or not.
---@param bClear boolean
---@return self
function Actor:clearzbuffer(bClear) end
--- [02 Actor.lua] Combines multiple interpolators for complex tweens.<br>
--- `tweens` can either be a string like `"linear,0.25,accelerate,0.75"` or
--- a table with tween information:
--- ```lua
--- {
--- {Type="linear", Percent=0.25, Bezier=nil},
--- {Type="accelerate", Percent=0.75, Bezier=nil}
--- }
--- ```
---@param length number
---@param tweens string|table
---@return self
function Actor:compound(length, tweens) end
---Crops the actor.
---@param left number
---@param top number
---@param right number
---@param bottom number
---@return self
function Actor:crop(left, top, right, bottom) end
--- Crops `percent` of the Actor from the bottom, where `percent` is in the range 0..1.
---@param percent number
---@return self
function Actor:cropbottom(percent) end
--- Crops `percent` of the Actor from the left, where `percent` is in the range 0..1.
---@param percent number
---@return self
function Actor:cropleft(percent) end
--- Crops `percent` of the Actor from the right, where `percent` is in the range 0..1.
---@param percent number
---@return self
function Actor:cropright(percent) end
--- Crops `percent` of the Actor from the top, where `percent` is in the range 0..1.
---@param percent number
---@return self
function Actor:croptop(percent) end
--- Sets the Actor's cull mode to `mode`.
---@param mode CullMode
---@return self
function Actor:cullmode(mode) end
--- Plays the commands that follow at an decelerated rate (1 - (1-`fRate`) * (1-`fRate`)), where `fRate` is in seconds.
---@param fRate number
---@return self
function Actor:decelerate(fRate) end
--- Set the Actor's diffuse color to c.
---@param c RageColor
---@return self
function Actor:diffuse(c) end
--- Set the Actor's diffuse color to c.
---@param r number
---@param g number
---@param b number
---@param a number
---@return self
function Actor:diffuse(r, g, b, a) end
--- Sets the Actor's alpha level to `fAlpha`, where `fAlpha` is in the range-
--- 0..1.
---@param fAlpha number
---@return self
function Actor:diffusealpha(fAlpha) end
--- Makes the actor switch between two colors immediately.
--- See: Themerdocs/effect_colors.txt for an example.
---@return self
function Actor:diffuseblink() end
--- Sets the Actor's bottom edge color to c.
---@param c RageColor
---@return self
function Actor:diffusebottomedge(c) end
--- Set the Actor's diffuse color to `c`, ignoring any alpha value in `c`.
---@param c RageColor
---@return self
function Actor:diffusecolor(c) end
--- Sets the Actor's left edge color to c.
---@param c RageColor
---@return self
function Actor:diffuseleftedge(c) end
--- Sets the Actor's lower left corner color to c.
---@param c RageColor
---@return self
function Actor:diffuselowerleft(c) end
--- Sets the Actor's lower right corner color to c.
---@param c RageColor
---@return self
function Actor:diffuselowerright(c) end
--- Makes the Actor switch between two colors, jumping back to the first after reaching the second.
---@see Actor.effectcolor1 # To modify the first color.
---@see Actor.effectcolor2 # To modify the second color.
---@return self
function Actor:diffuseramp() end
--- Sets the Actor's right edge color to c.
---@param c RageColor
---@return self
function Actor:diffuserightedge(c) end
--- Makes the Actor shift between two colors smoothly.
---@see Actor.effectcolor1 # To modify the first color.
---@see Actor.effectcolor2 # To modify the second color.
---@return self
function Actor:diffuseshift() end
--- Sets the Actor's top edge color to c.
---@param c RageColor
---@return self
function Actor:diffusetopedge(c) end
--- Sets the Actor's upper left corner color to c.
---@param c RageColor
---@return self
function Actor:diffuseupperleft(c) end
--- Sets the Actor's upper right corner color to c.
---@param c RageColor
---@return self
function Actor:diffuseupperright(c) end
--- Tells the Actor to draw itself.
---@overload fun(self: Actor)
---@return self
function Actor:Draw() end
--- Sets the Actor's draworder to `iOrder`, where larger values display first.
---@param iOrder integer
---@return self
function Actor:draworder(iOrder) end
--- [02 Actor.lua] (Added in sm-ssc)
---@param time number
---@return self
function Actor:drop(time) end
--- [02 Actor.lua]
---@param time number
---@param fEase number
---@return self
function Actor:ease(time, fEase) end
--- Plays the commands that follow with an inSine ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinsine(fDuration) end
--- Plays the commands that follow with an outSine ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutsine(fDuration) end
--- Plays the commands that follow with an inOutSine ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutsine(fDuration) end
--- Plays the commands that follow with an outInSine ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutinsine(fDuration) end
--- Plays the commands that follow with an inQuad ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinquad(fDuration) end
--- Plays the commands that follow with an outQuad ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutquad(fDuration) end
--- Plays the commands that follow with an inOutQuad ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutquad(fDuration) end
--- Plays the commands that follow with an outInQuad ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutinquad(fDuration) end
--- Plays the commands that follow with an inCubic ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeincubic(fDuration) end
--- Plays the commands that follow with an outCubic ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutcubic(fDuration) end
--- Plays the commands that follow with an inOutCubic ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutcubic(fDuration) end
--- Plays the commands that follow with an outInCubic ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutincubic(fDuration) end
--- Plays the commands that follow with an inQuart ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinquart(fDuration) end
--- Plays the commands that follow with an outQuart ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutquart(fDuration) end
--- Plays the commands that follow with an inOutQuart ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutquart(fDuration) end
--- Plays the commands that follow with an outInQuart ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutinquart(fDuration) end
--- Plays the commands that follow with an inQuint ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinquint(fDuration) end
--- Plays the commands that follow with an outQuint ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutquint(fDuration) end
--- Plays the commands that follow with an inOutQuint ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutquint(fDuration) end
--- Plays the commands that follow with an outInQuint ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutinquint(fDuration) end
--- Plays the commands that follow with an inExpo ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinexpo(fDuration) end
--- Plays the commands that follow with an outExpo ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutexpo(fDuration) end
--- Plays the commands that follow with an inOutExpo ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutexpo(fDuration) end
--- Plays the commands that follow with an outInExpo ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutinexpo(fDuration) end
--- Plays the commands that follow with an inBack ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinback(fDuration) end
--- Plays the commands that follow with an outBack ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutback(fDuration) end
--- Plays the commands that follow with an inOutBack ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutback(fDuration) end
--- Plays the commands that follow with an outInBack ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutinback(fDuration) end
--- Plays the commands that follow with an inBack ease and has a customizable overshoot. fDuration is in seconds.
---
--- easeinback uses a value of `1.70158` for fOvershoot.
---@param fDuration number
---@param fOvershoot number
---@return self
function Actor:easeinbackex(fDuration, fOvershoot) end
--- Plays the commands that follow with an outBack ease and has a customizable overshoot. fDuration is in seconds.
---
--- easeoutback uses a value of `1.70158` for fOvershoot.
---@param fDuration number
---@param fOvershoot number
---@return self
function Actor:easeoutbackex(fDuration, fOvershoot) end
--- Plays the commands that follow with an inOutBack ease and has a customizable overshoot. fDuration is in seconds.
---
--- easeinoutback uses a value of `2.5949095` for fOvershoot.
---@param fDuration number
---@param fOvershoot number
---@return self
function Actor:easeinoutbackex(fDuration, fOvershoot) end
--- Plays the commands that follow with an outInBack ease and has a customizable overshoot. fDuration is in seconds.
---
--- easeoutinback uses a value of `2.5949095` for fOvershoot.
---@param fDuration number
---@param fOvershoot number
---@return self
function Actor:easeoutinbackex(fDuration, fOvershoot) end
--- Plays the commands that follow with an inCircle ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeincircle(fDuration) end
--- Plays the commands that follow with an outCircle ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutcircle(fDuration) end
--- Plays the commands that follow with an inOutCircle ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutcircle(fDuration) end
--- Plays the commands that follow with an outInCircle ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutincircle(fDuration) end
--- Plays the commands that follow with an inElastic ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinelastic(fDuration) end
--- Plays the commands that follow with an outElastic ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutelastic(fDuration) end
--- Plays the commands that follow with an inOutElastic ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutelastic(fDuration) end
--- Plays the commands that follow with an outInElastic ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutinelastic(fDuration) end
--- Plays the commands that follow with an inElastic ease and has customizable amplitude & period. fDuration is in seconds.<br />
---
--- easeinelastic uses an fAmplitude of `0.1` and a fPeriod of `0.4`.
---@param fDuration number
---@param fAmplitude number
---@param fPeriod number
---@return self
function Actor:easeinelasticex(fDuration, fAmplitude, fPeriod) end
--- Plays the commands that follow with an outElastic ease and has customizable amplitude & period. fDuration is in seconds.<br />
---
--- easeoutelastic uses an fAmplitude of `0.1` and a fPeriod of `0.4`.
---@param fDuration number
---@param fAmplitude number
---@param fPeriod number
---@return self
function Actor:easeoutelasticex(fDuration, fAmplitude, fPeriod) end
--- Plays the commands that follow with an inOutElastic ease and has customizable amplitude & period. fDuration is in seconds.<br />
---
--- easeinoutelastic uses an fAmplitude of `0.1` and a fPeriod of `0.4`.
---@param fDuration number
---@param fAmplitude number
---@param fPeriod number
---@return self
function Actor:easeinoutelasticex(fDuration, fAmplitude, fPeriod) end
--- Plays the commands that follow with an outInElastic ease and has customizable amplitude & period. fDuration is in seconds.<br />
---
--- easeoutinelastic uses an fAmplitude of `0.1` and a fPeriod of `0.4`.
---@param fDuration number
---@param fAmplitude number
---@param fPeriod number
---@return self
function Actor:easeoutinelasticex(fDuration, fAmplitude, fPeriod) end
--- Plays the commands that follow with an inBounce ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinbounce(fDuration) end
--- Plays the commands that follow with an outBounce ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutbounce(fDuration) end
--- Plays the commands that follow with an inOutBounce ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeinoutbounce(fDuration) end
--- Plays the commands that follow with an outInBounce ease. fDuration is in seconds.
---@param fDuration number
---@return self
function Actor:easeoutinbounce(fDuration) end
--- Set the Actor's effect clock to `s`.
---@param s string
---@return self
function Actor:effectclock(s) end
--- Sets the first effect color to `c`.
---@param c RageColor
---@return self
function Actor:effectcolor1(c) end
--- Sets the second effect color to `c`.
---@param c RageColor
---@return self
function Actor:effectcolor2(c) end
--- Set the Actor's effect magnitude in each direction to the given values.
---@param fX number
---@param fY number
---@param fZ number
---@return self
function Actor:effectmagnitude(fX,fY,fZ) end
--- Set the Actor's effect offset to `fTime`. The offset is added to the time into the effect before calculating percent_through_effect.
---@param fTime number
---@return self
function Actor:effectoffset(fTime) end
--- Set the Actor's effect period to `fTime`.
---@param fTime number
---@return self
function Actor:effectperiod(fTime) end
--- Set the Actor's effect timing.
---
--- `hold_at_zero` is before `hold_at_full` in the argument list for compatibility.
--- A future version will probably swap them because it makes more sense to have `hold_at_full` come before `hold_at_zero`.
---
--- All effect timings must be greater than or equal to zero, at least one of them must be greater than zero.
---
--- The effect timing controls how long it takes an effect to cycle and how long it spends in each phase.
---
--- Depending on the effect clock, the actor's time into effect is updated every frame.
--- That time is then translated into a `percent_through_effect` using the parameters to this function.
---
--- - `ramp_to_half` is the amount of time for `percent_through_effect` to reach 0.5.<br />
--- - `hold_at_half` is the amount of time `percent_through_effect` will stay at 0.5.<br />
--- - `ramp_to_full` is the amount of time `percent_through_effect` will take to go from 0.5 to 1.0.<br />
--- - `hold_at_full` is the amount of time `percent_through_effect` will stay at 1.0.<br />
--- - After reaching the end of hold_at_full, `percent_through_effect` stays at 0 until `hold_at_zero` is over.<br />
---
--- The different effects use `percent_through_effect` in different ways. Some use it to calculate `percent_between_colors` with this sine wave:
--- ```lua
--- sin((percent_through_effect + 0.25f) * 2 * PI ) / 2 + 0.5f
--- ```
---
--- Some effects check the internal bool `blink_on`. `blink_on` is true if `percent_through_effect` is greater than 0.5 and false if `percent_through_effect` is less than or equal to 0.5.
---
--- Check the effect functions for individual explanations.
---
---@see Actor.diffuseblink
---@see Actor.diffuseshift
---@see Actor.glowblink
---@see Actor.glowshift
---@see Actor.glowramp
---@see Actor.rainbow
---@see Actor.wag
---@see Actor.bounce
---@see Actor.bob
---@see Actor.pulse
---@see Actor.spin
---@see Actor.vibrate
--- @param ramp_to_half any
--- @param hold_at_half any
--- @param ramp_to_full any
--- @param hold_at_zero any
--- @param hold_at_full any
function Actor:effecttiming(ramp_to_half, hold_at_half, ramp_to_full, hold_at_zero, hold_at_full) end
--- Set the hold_at_full part of the effect timing while leaving the others unchanged.
---@param hold_at_full number
---@return self
function Actor:effect_hold_at_full(hold_at_full) end
--- Erases the Actor's command for the given name. Does nothing if the command doesn't exist.
---@param sCmdName string
---@return self
function Actor:erasecommand(sCmdName) end
--- Fades `percent` of the Actor from the bottom where `percent` is in the range 0..1.
---@param percent number
---@return self
function Actor:fadebottom(percent) end
--- Fades `percent` of the Actor from the left where `percent` is in the range 0..1.
---@param percent number
---@return self
function Actor:fadeleft(percent) end
--- Fades `percent` of the Actor from the right where `percent` is in the range 0..1.
---@param percent number
---@return self
function Actor:faderight(percent) end
--- Fades `percent` of the Actor from the top where `percent` is in the range 0..1.
---@param percent number
---@return self
function Actor:fadetop(percent) end
--- Finishes up an Actor's tween immediately.
---@return self
function Actor:finishtweening() end
--- Returns the Actor's aux value.
---@return number
function Actor:getaux() end
--- Returns the Actor's base X zoom value.
---@return number
function Actor:GetBaseZoomX() end
--- Returns the Actor's base Y zoom value.
---@return number
function Actor:GetBaseZoomY() end
--- Returns the Actor's base Z zoom value.
---@return number
function Actor:GetBaseZoomZ() end
--- Returns the command with the given name. Returns `nil` if the command doesn't exist for the Actor.
---@param sCmdName string
---@return self|nil
function Actor:GetCommand(sCmdName) end
--- Gets the percentage the actor is cropped from the left. `bCurrent` is an optional parameter that makes the function return the current mid-tween value if `true`.
---@param bCurrent boolean
---@return number
function Actor:GetCropLeft(bCurrent) end
--- Gets the percentage the actor is cropped from the top. `bCurrent` is an optional parameter that makes the function return the current mid-tween value if `true`.
---@param bCurrent boolean
---@return number
function Actor:GetCropTop(bCurrent) end
--- Gets the percentage the actor is cropped from the right. `bCurrent` is an optional parameter that makes the function return the current mid-tween value if `true`.
---@param bCurrent boolean
---@return number
function Actor:GetCropRight(bCurrent) end
--- Gets the percentage the actor is cropped from the bottom. `bCurrent` is an optional parameter that makes the function return the current mid-tween value if `true`.
---@param bCurrent boolean
---@return number
function Actor:GetCropBottom(bCurrent) end
--- Gets the width of the actor after cropping. `bCurrent` is an optional parameter that makes the function return the current mid-tween value if `true`.
---@param bCurrent boolean
---@return number
function Actor:GetCroppedWidth(bCurrent) end
--- Gets the zoomed width of the actor after cropping. `bCurrent` is an optional parameter that makes the function return the current mid-tween value if `true`.
---@param bCurrent boolean
---@return number
function Actor:GetCroppedZoomedWidth(bCurrent) end
--- Gets the height of the actor after cropping. `bCurrent` is an optional parameter that makes the function return the current mid-tween value if `true`.
---@param bCurrent boolean
---@return number
function Actor:GetCroppedHeight(bCurrent) end
--- Gets the zoomed height of the actor after cropping. `bCurrent` is an optional parameter that makes the function return the current mid-tween value if `true`.
---@param bCurrent boolean
---@return number
function Actor:GetCroppedZoomedHeight(bCurrent) end
--- Returns the Actor's current diffuse color.
---@return RageColor
function Actor:GetDiffuse() end
--- Returns the Actor's current diffusealpha.
---@return number
function Actor:GetDiffuseAlpha() end
--- Returns the Actor's current effect delta.
---@return number
function Actor:GetEffectDelta() end
--- Returns the Actor's current X rotation, taking the current actor effect into account.
---@return number
function Actor:GetEffectRotationX() end
--- Returns the Actor's current Y rotation, taking the current actor effect into account.
---@return number
function Actor:GetEffectRotationY() end
--- Returns the Actor's current Z rotation, taking the current actor effect into account.
---@return number
function Actor:GetEffectRotationZ() end
--- Returns the Actor's current X position, taking the current actor effect into account.
---@return number
function Actor:GetEffectX() end
--- Returns the Actor's current Y position, taking the current actor effect into account.
---@return number
function Actor:GetEffectY() end
--- Returns the Actor's current Z position, taking the current actor effect into account.
---@return number
function Actor:GetEffectZ() end
--- Returns the Actor's current effect magnitude as three floats.
---@return number,number,number
function Actor:geteffectmagnitude() end
--- Returns the Actor's current glow color.
---@return RageColor
function Actor:GetGlow() end
--- Returns the Actor's horizontal alignment as a number in the range 0..1.
---@return number
function Actor:GetHAlign() end
---@return number
function Actor:GetHoldLength() end
--- Returns the Actor's name.
---@return string
function Actor:GetName() end
--- Returns the number of states the Actor has.
---@return integer
function Actor:GetNumStates() end
--- Returns the Actor's current height.
---@return number
function Actor:GetHeight() end
--- Returns the Actor's rotation in X, Y, and Z.
---@return number,number,number
function Actor:getrotation() end
--- Returns the Actor's destination X rotation.
---
--- `bGetCurrent` is optional.
---
--- When bGetCurrent is true, the function returns the Actor's current mid-tween value for X rotation.
--- @param bGetCurrent? boolean
function Actor:GetRotationX(bGetCurrent) end
--- Returns the Actor's destination Y rotation.
---
--- `bGetCurrent` is optional.
---
--- When bGetCurrent is true, the function returns the Actor's current mid-tween value for Y rotation.
--- @param bGetCurrent? boolean
function Actor:GetRotationY(bGetCurrent) end
--- Returns the Actor's destination Z rotation.
---
--- `bGetCurrent` is optional.
---
--- When bGetCurrent is true, the function returns the Actor's current mid-tween value for Z rotation.
--- @param bGetCurrent? boolean
function Actor:GetRotationZ(bGetCurrent) end
--- Returns whether the Actor applies rotation after zoom or not.
---@return boolean
function Actor:GetRotAfterZoom() end
--- Returns whether the Actor applies skew after zoom and rotation or not.
---@return boolean
function Actor:GetSkewAfterZoomRot() end
--- Returns the Actor's destination value for SkewX.
---