ProtectedawaitingProtectedcursorPrivatecursorPrivatedefaultPrivate OptionaleggThe tween chain playing the egg drop animation sequence
PrivateeggPrivateeggPrivateeggPrivateeggPrivateeggPrivateeggPrivategachaPrivategachaPrivategachaPrivategachaPrivategachaPrivatelegendaryProtectedmodeProtectedonPrivateplayPrivatescalePrivatesummaryProtectedtextProtectedtextPrivatetransitionPrivatetransitioningPrivatevoucherTo be implemented by individual handlers when necessary to free memory Called when BattleScene is reset
PrivatedoPrivatefirstPrivategetGet the guaranteed egg tier based on the pull count
The number of pulls made
The guaranteed egg tier for the given pull count
PrivatehandleProcess an action input received during voucher selection.
The index of the voucher menu option
True if the success sound should be played, false if the error sound should be played, or undefined if the cursor is out of range.
Add the sprite to be displayed at the end of messages with prompts
the container to add the sprite to
Create a semi transparent overlay that will get shown during tutorials
the container to add the overlay to
PrivateprocessProcess an input received in the normal mode of the egg gacha UI (not transitoning, not summary)
The button that was pressed
true if the success sound should be played, false if the error sound should be played, or undefined no input event occurred.
PrivateprocessHandles an input event that occurs while the egg gacha summary is visible
The button that was pressed
true if an input event occurred and the select sound should be played, otherwise undefined
PrivateprocessProcess an input received while the egg gacha UI is transitioning
The button that was pressed
true if the success sound should be played, otherwise undefinedHandle pulling eggs from the gacha machine; plays the animations, adds the eggs, and saves game data
The number of eggs to pull
PrivatepullPulls the specified number of eggs and returns them
The number of eggs to pull
An array of the pulled eggs
ProtectedsetChanges the style of the mouse cursor.
cursor style to apply
PrivatesetupOptional_name: stringOptionaldelay: null | numberOptionalcallback: null | FunctionOptionalcallbackDelay: null | numberOptionalprompt: null | booleanOptionalpromptDelay: null | numberOptionalcallback: null | FunctionOptionalcallbackDelay: null | numberPrivateupdateUpdate the legendary gacha icon based on the current timestamp.
Private StaticcursorConvert a cursor index to a voucher type and count
The cursor index corresponding to the voucher type
The voucher type, vouchers used, and pulls given, or an empty array if the cursor is not on a voucher
A basic abstract class to act as a holder and processor for UI elements.