Interface StatsTab.FiltersInitContext
- Enclosing class:
StatsTab
public static interface StatsTab.FiltersInitContext
The "initialization context" for when a
StatsTab
's corresponding "stat filters"
GUI is "initializing". Use this to create your own stat filters GUI for this StatsTab
,
and use getFilterSettings()
to obtain and store the filter settings.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the filter settings/preferences set by the user.io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement
Returns theTPanelElement
onto which the "filter" GUI elements should be initialized.Returns the currently selectedStatsTab
that will be used to display player statistics.void
Call this whenever you wish to refresh theStatsTab.StatsInitContext.getStatsPanel()
.void
setSelectedStatsTab
(StatsTab statsTab)
-
Method Details
-
getFiltersPanel
io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement getFiltersPanel()Returns theTPanelElement
onto which the "filter" GUI elements should be initialized. Retrieve filter settings fromgetFilterSettings()
, as well as store them there. When the user makes a change to the filter settings, callrefreshStatsTab()
. -
getFilterSettings
StatFilterSettings getFilterSettings()Returns the filter settings/preferences set by the user. -
refreshStatsTab
void refreshStatsTab()Call this whenever you wish to refresh theStatsTab.StatsInitContext.getStatsPanel()
. -
getSelectedStatsTab
StatsTab getSelectedStatsTab()Returns the currently selectedStatsTab
that will be used to display player statistics. -
setSelectedStatsTab
- See Also:
-