Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
MapViewFiltering Class Reference
Inheritance diagram for MapViewFiltering:

Classes

class  FilterButton
 

Public Types

enum  VesselTypeFilter {
  VesselTypeFilter.None = 0, VesselTypeFilter.Debris = 1, VesselTypeFilter.Unknown = 1 << 1, VesselTypeFilter.SpaceObjects = 1 << 2,
  VesselTypeFilter.Probes = 1 << 3, VesselTypeFilter.Rovers = 1 << 4, VesselTypeFilter.Landers = 1 << 5, VesselTypeFilter.Ships = 1 << 6,
  VesselTypeFilter.Stations = 1 << 7, VesselTypeFilter.Bases = 1 << 8, VesselTypeFilter.EVAs = 1 << 9, VesselTypeFilter.Flags = 1 << 10,
  VesselTypeFilter.Plane = 1 << 11, VesselTypeFilter.Relay = 1 << 12, VesselTypeFilter.Site = 1 << 13, VesselTypeFilter.DeployedScienceController = 1 << 14,
  VesselTypeFilter.All = ~0
}
 

Public Member Functions

void setFilter (VesselTypeFilter filter)
 
void ToggleFiltersPanel ()
 Show or hide the panel More...
 
void updateButtonsToFilter (VesselTypeFilter filter)
 
void updateFilterFromButtons ()
 

Static Public Member Functions

static bool CheckAgainstFilter (Vessel v)
 
static int GetFilterState ()
 
static void Initialize ()
 Call if you need MapViewFiltering to be ready before Start (mind that the singleton instance is set on awake, so use common sense) More...
 
static void LoadFilterState (int filterState)
 
static void SetFilter (VesselTypeFilter filter)
 

Public Attributes

FilterButton[] FilterButtons
 
UIPanelTransitionToggle panel
 
Button showHideButton
 A button to show and hide the filters, default state is hidden More...
 
bool showObjectCounts = true
 

Static Public Attributes

static MapViewFiltering Instance
 
static VesselTypeFilter vesselTypeFilter = VesselTypeFilter.None
 

Member Enumeration Documentation

Enumerator
None 
Debris 
Unknown 
SpaceObjects 
Probes 
Rovers 
Landers 
Ships 
Stations 
Bases 
EVAs 
Flags 
Plane 
Relay 
Site 
DeployedScienceController 
All 

Member Function Documentation

static bool MapViewFiltering.CheckAgainstFilter ( Vessel  v)
inlinestatic
static int MapViewFiltering.GetFilterState ( )
inlinestatic
static void MapViewFiltering.Initialize ( )
inlinestatic

Call if you need MapViewFiltering to be ready before Start (mind that the singleton instance is set on awake, so use common sense)

static void MapViewFiltering.LoadFilterState ( int  filterState)
inlinestatic
void MapViewFiltering.setFilter ( VesselTypeFilter  filter)
inline
static void MapViewFiltering.SetFilter ( VesselTypeFilter  filter)
inlinestatic
void MapViewFiltering.ToggleFiltersPanel ( )
inline

Show or hide the panel

void MapViewFiltering.updateButtonsToFilter ( VesselTypeFilter  filter)
inline
void MapViewFiltering.updateFilterFromButtons ( )
inline

Member Data Documentation

FilterButton [] MapViewFiltering.FilterButtons
MapViewFiltering MapViewFiltering.Instance
static
UIPanelTransitionToggle MapViewFiltering.panel
Button MapViewFiltering.showHideButton

A button to show and hide the filters, default state is hidden

bool MapViewFiltering.showObjectCounts = true
VesselTypeFilter MapViewFiltering.vesselTypeFilter = VesselTypeFilter.None
static

The documentation for this class was generated from the following file: