text: from sims4.tuning.tunable import HasTunableReference, TunableReference, TunableMapping, TunableEnumEntry, TunableTuple, OptionalTunable
  from sims4.resources import Types
  from sims4.tuning.tunable_base import ExportModes, GroupNames
  from sims4.tuning.instances import HashedTunedInstanceMetaclass
  import services
  from sims4.localization import TunableLocalizedString
  from bucks.bucks_enums import BucksType
  
  class RankedStatisticDisplayInfo(HasTunableReference, metaclass=HashedTunedInstanceMetaclass, manager=services.get_instance_manager(Types.USER_INTERFACE_INFO)):
      INSTANCE_TUNABLES = {'perks_panel_bucks_perk_info': TunableMapping(description='\n            A mapping of bucks type to info for that bucks type.\n            ', key_type=TunableEnumEntry(description='\n                The buck type this data corresponds to.\n                ', tunable_type=BucksType, default=BucksType.INVALID), value_type=TunableTuple(description='\n                Info used to display Bucks and BucksPerks in the Perks Panel.\n                ', bucks_text=OptionalTunable(TunableLocalizedString(description="\n                    Text containing a currency type token, to display the \n                    bucks balance in the Perks Panel.\n                    If not present, the points balance for this buck type \n                    won't be shown in the Perks Panel.\n                    ")), bucks_tooltip=OptionalTunable(TunableLocalizedString(description='\n                    Tooltip on the "Help" icon related for this buck type \n                    in the Perks Panel. Explains how this currency works.\n                    Can be none if no additional information is needed for\n                    this buck type.  \n                    ')), perk_currency_label=OptionalTunable(TunableLocalizedString(description='\n                    Title text to display currency type on the Motive Panel.\n                    Such as "Power Points:" in "Power Points: 10"\n                    Can be none if we don\'t need to show this buck\'s balance on the Motive Panel.\n                    ')), perk_remove_tooltip=OptionalTunable(TunableLocalizedString(description="\n                    Tooltip on the removal button on the perk cell in the Perks Panel.\n                    Can be none if perks don't need a special removal tooltip.\n                    ")), export_class_name='TunableRankedStatBucksInfoTuple'), tuple_name='RankedStatBucksToBucksInfoTuple', export_modes=ExportModes.All, tuning_group=GroupNames.UI), 'perks_panel_revert_tooltip': OptionalTunable(TunableLocalizedString(description='\n            Tooltip shown on the revert button in the Perks Panel.\n            If not present, the revert button is unused and hidden.\n            '), export_modes=ExportModes.All, tuning_group=GroupNames.UI), 'perks_panel_disabled_confirm_tooltip': TunableLocalizedString(description='\n            The tooltip shown on the confirm button in the perks panel when it is disabled.\n            ', export_modes=ExportModes.All, tuning_group=GroupNames.UI), 'perks_panel_title': TunableLocalizedString(description='\n            The title shown in the Perks Panel for this statistic. \n            ', export_modes=ExportModes.All, tuning_group=GroupNames.UI), 'perks_panel_subtitle': TunableLocalizedString(description='\n            The subtitle shown in the Perks Panel for this statistic.\n            ', export_modes=ExportModes.All, tuning_group=GroupNames.UI), 'ranked_statistic_reference': TunableReference(description='\n            The ranked statistic gameplay tuning reference ID.\n            ', manager=services.get_instance_manager(Types.STATISTIC), class_restrictions=('RankedStatistic',), export_modes=ExportModes.All, tuning_group=GroupNames.UI)}
  