|
enum | MatchType {
MatchType.NONE,
MatchType.EQUALS_ONLY,
MatchType.TERM_STARTS_WITH_TAG,
MatchType.TERM_ENDS_WITH_TAG,
MatchType.TAG_STARTS_WITH_TERM,
MatchType.TAG_ENDS_WITH_TERM,
MatchType.EITHER_STARTS_WITH_EITHER,
MatchType.EITHER_ENDS_WITH_EITHER,
MatchType.TERM_CONTAINS_TAG,
MatchType.TAG_CONTAINS_TERM,
MatchType.EITHER_CONTAINS_EITHER
} |
|
enum KSP.UI.Screens.RDTechTreeSearchBar.MatchType |
|
protected |
Enumerator |
---|
NONE |
|
EQUALS_ONLY |
|
TERM_STARTS_WITH_TAG |
|
TERM_ENDS_WITH_TAG |
|
TAG_STARTS_WITH_TERM |
|
TAG_ENDS_WITH_TERM |
|
EITHER_STARTS_WITH_EITHER |
|
EITHER_ENDS_WITH_EITHER |
|
TERM_CONTAINS_TAG |
|
TAG_CONTAINS_TERM |
|
EITHER_CONTAINS_EITHER |
|
bool KSP.UI.Screens.RDTechTreeSearchBar.PartMatchesSearch |
( |
AvailablePart |
part, |
|
|
string[] |
terms |
|
) |
| |
|
inlineprotected |
< PartLoader has pre-loaded all metadata from the part config tags and from GeneratePartAutoTags into p.tags.
< For each word in the search, check the title and tags for a match. All words in the search must be found for the part to succeed.
< Avoid short words like the "I" in "Pegasus I Mobility Enhancer". They match nearly everything.
< Check the word using an algorithm determined by TagMatchType.
virtual void KSP.UI.Screens.RDTechTreeSearchBar.SearchField_OnClick |
( |
PointerEventData |
eventData | ) |
|
|
inlineprotectedvirtual |
virtual void KSP.UI.Screens.RDTechTreeSearchBar.SearchField_OnValueChange |
( |
string |
s | ) |
|
|
inlineprotectedvirtual |
virtual IEnumerator KSP.UI.Screens.RDTechTreeSearchBar.SearchRoutine |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual void KSP.UI.Screens.RDTechTreeSearchBar.SearchStart |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual void KSP.UI.Screens.RDTechTreeSearchBar.SearchStop |
( |
| ) |
|
|
inlineprotectedvirtual |
static string [] KSP.UI.Screens.RDTechTreeSearchBar.SearchTagSplit |
( |
string |
terms | ) |
|
|
inlinestatic |
void KSP.UI.Screens.RDTechTreeSearchBar.SelectPartIcons |
( |
| ) |
|
|
inline |
MatchType KSP.UI.Screens.RDTechTreeSearchBar.TagMatchType |
( |
ref string |
tag | ) |
|
|
inlineprotected |
bool KSP.UI.Screens.RDTechTreeSearchBar.TermMatchesTag |
( |
string |
term, |
|
|
string |
tag |
|
) |
| |
|
inlineprotected |
Button KSP.UI.Screens.RDTechTreeSearchBar.clearButton |
Image KSP.UI.Screens.RDTechTreeSearchBar.searchFieldBackground |
|
protected |
float KSP.UI.Screens.RDTechTreeSearchBar.searchKeystrokeDelay = 0.25f |
Coroutine KSP.UI.Screens.RDTechTreeSearchBar.searchRoutine |
|
protected |
Color KSP.UI.Screens.RDTechTreeSearchBar.searchSelectionNodeColor |
|
static |
Color KSP.UI.Screens.RDTechTreeSearchBar.searchSelectionPartColor |
|
static |
float KSP.UI.Screens.RDTechTreeSearchBar.searchTimer = 0f |
|
protected |
The documentation for this class was generated from the following file: