PokéRogue
    Preparing search index...

    A basic abstract class to act as a holder and processor for UI elements.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    active: boolean = false
    adminMode: AdminMode
    buttonBgs: NineSlice[]
    buttonContainers: Container[]
    buttonGap: 10
    buttonLabels: Text[]
    cancelAction: undefined | (() => void)
    config: ModalConfig
    cursor: number = 0
    editing: boolean = false
    errorMessage: Text
    formLabels: Text[] = []
    inputContainers: Container[] = []
    inputs: InputText[] = []
    modalBg: NineSlice
    modalContainer: Container
    mode: null | number
    submitAction: undefined | AnyFn
    tempGameData: null | GameData = null
    titleText: Text
    tween: undefined | Tween

    Methods

    • Parameters

      Returns Promise<
          | {
              adminSearchResult: SearchAccountResponse;
              error: boolean;
              errorType?: undefined;
          }
          | {
              adminSearchResult: SearchAccountResponse;
              error: boolean;
              errorType: undefined
              | string;
          }
          | { adminSearchResult?: undefined; error: boolean; errorType: any },
      >

    • This is used to update the fields' text when loading in a new admin ui handler. It uses the adminResult to update the input text based on the adminMode. For a linking adminMode, it sets the username and discord. For a search adminMode, it sets the username. For an admin adminMode, it sets all the info from adminResult in the appropriate text boxes, and also sets the link/unlink icons for discord/google depending on the result

      Parameters

      Returns void

    • Parameters

      • service: string
      • mode: string

      Returns string

      "Username and [service] successfully [mode]ed"