OpenTTD Source  20241108-master-g80f628063a
SignList Struct Reference
Inheritance diagram for SignList:
SignListWindow SignWindow

Public Types

typedef GUIList< const Sign *, std::nullptr_t, StringFilter & > GUISignList
 A GUIList contains signs and uses a StringFilter for filtering.
 

Public Member Functions

 SignList ()
 Creates a SignList with filtering disabled by default.
 
void BuildSignsList ()
 
void SortSignsList ()
 
void FilterSignList ()
 Filter out signs from the sign list that does not match the name filter.
 

Static Public Member Functions

static bool SignNameSorter (const Sign *const &a, const Sign *const &b)
 Sort signs by their name.
 
static bool SignNameFilter (const Sign *const *a, StringFilter &filter)
 Filter sign list by sign name.
 
static bool OwnerDeityFilter (const Sign *const *a, StringFilter &)
 Filter sign list excluding OWNER_DEITY.
 
static bool OwnerVisibilityFilter (const Sign *const *a, StringFilter &)
 Filter sign list by owner.
 

Data Fields

GUISignList signs
 
StringFilter string_filter
 The match string to be used when the GUIList is (re)-sorted.
 

Static Public Attributes

static bool match_case = false
 Should case sensitive matching be used?
 
static std::string default_name
 Default sign name, used if Sign::name is nullptr.
 

Detailed Description

Definition at line 40 of file signs_gui.cpp.


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