PokéRogue
    Preparing search index...

    Function updateCandyCountTextStyle

    • Updates the text style of the candy count text based on the candy count.

      Parameters

      • text: Text | BBCodeText

        The text object to update

      • candyCount: number

        The candy count to update the text style based on

      • defaultStyle: TextStyle = TextStyle.WINDOW_ALT

        The default text style to use when the candy count is less than the max

      • maxStyle: TextStyle = TextStyle.SUMMARY_GOLD

        The text style to use when the candy count is at or above the max

      Returns void