PokéRogue
    Preparing search index...

    RunHistoryUiHandler handles the UI of the Run History Menu Run History itself is broken into an array of RunEntryContainer objects that can show the user basic details about their run and allow them to access more details about their run through cursor action. It navigates similarly to the UI of the save slot select menu. The only valid input buttons are Button.ACTION and Button.CANCEL.

    Hierarchy (View Summary)

    Index
    active: boolean = false
    awaitingActionInput: boolean
    cursor: number = 0
    cursorObj: NineSlice | null
    maxRows: 3
    message: Text
    onActionInput: AnyFn<any> | null
    pendingPrompt: boolean = false
    prompt: Sprite
    runContainerInitialY: number
    runsContainer: Container
    runSelectContainer: Container
    scrollCursor: number = 0
    textCallbackTimer: TimerEvent | null
    textTimer: TimerEvent | null
    tutorialActive: boolean = false
    tutorialOverlay: Rectangle
    • This retrieves the player's run history and facilitates the processes necessary for the output display. Runs are displayed from newest --> oldest in descending order. In the for loop, each run is processed to create an RunEntryContainer used to display and store the run's unique information

      Returns Promise<void>

    • Performs a certain action based on the button pressed by the user

      Parameters

      • button: Button

        The user can navigate through the runs with Button.UP/Button.DOWN. Button.ACTION allows the user to access more information about their runs. Button.CANCEL allows the user to go back.

      Returns boolean

    • Parameters

      • text: string
      • Optional_name: string
      • Optionaldelay: number | null
      • Optionalcallback: (() => void) | null
      • OptionalcallbackDelay: number | null
      • Optionalprompt: boolean | null
      • OptionalpromptDelay: number | null

      Returns void

    • Parameters

      • text: string
      • Optionaldelay: number | null
      • Optionalcallback: (() => void) | null
      • OptionalcallbackDelay: number | null
      • Optionalprompt: boolean | null
      • OptionalpromptDelay: number | null

      Returns void