![]() |
DDNet documentation
|
#include <editor_server_settings.h>
Public Member Functions | |
| virtual | ~CContext ()=default |
| bool | CommandIsValid () const |
| int | CurrentArg () const |
| const char * | CurrentArgName () const |
| float | CurrentArgPos () const |
| size_t | CurrentArgOffset () const |
| const char * | CurrentArgValue () const |
| const std::vector< SPossibleValueMatch > & | PossibleMatches () const |
| bool | HasError () const |
| size_t | ErrorOffset () const |
| const char * | Error () const |
| int | ArgCount () const |
| const SCurrentSettingArg & | Arg (int Index) const |
| const std::shared_ptr< IMapSetting > & | Setting () const |
| void | SetFontSize (float FontSize) |
| int | CommentOffset () const |
| int | CheckCollision (ECollisionCheckResult &Result) const |
| int | CheckCollision (const std::vector< CEditorMapSetting > &vSettings, ECollisionCheckResult &Result) const |
| int | CheckCollision (const char *pInputString, const std::vector< CEditorMapSetting > &vSettings, ECollisionCheckResult &Result) const |
| void | Update () |
| void | UpdateFromString (const char *pStr) |
| bool | UpdateCursor (bool Force=false) |
| virtual void | Reset () |
| void | GetCommandHelpText (char *pStr, int Length) const |
| bool | Valid () const |
| void | ColorArguments (std::vector< STextColorSplit > &vColorSplits) const |
Public Attributes | |
| bool | m_AllowUnknownCommands |
| SEditBoxDropdownContext | m_DropdownContext |
| int | m_CurrentCompletionIndex |
Private Member Functions | |
| CContext (CMapSettingsBackend *pBackend, CLineInput *pLineInput) | |
| void | ClearError () |
| EValidationResult | ValidateArg (int Index, const char *pArg) |
| void | UpdatePossibleMatches () |
| void | ParseArgs (const char *pLineInputStr, const char *pStr) |
| bool | OnInput (const IInput::CEvent &Event) |
| const char * | InputString () const |
| template<int N> | |
| void | FormatDisplayValue (const char *pValue, char(&aOut)[N]) |
Private Attributes | |
| std::shared_ptr< IMapSetting > | m_pCurrentSetting |
| std::vector< SCurrentSettingArg > | m_vCurrentArgs |
| int | m_CursorArgIndex |
| std::vector< SPossibleValueMatch > | m_vPossibleMatches |
| size_t | m_LastCursorOffset |
| CLineInput * | m_pLineInput |
| char | m_aCommand [128] |
| SCommandParseError | m_Error |
| int | m_CommentOffset |
| CMapSettingsBackend * | m_pBackend |
| float | m_FontSize |
Static Private Attributes | |
| static constexpr ColorRGBA | ms_ArgumentStringColor = ColorRGBA(84.0f / 255.0f, 1.0f, 1.0f, 1.0f) |
| static constexpr ColorRGBA | ms_ArgumentNumberColor = ColorRGBA(0.1f, 0.9f, 0.05f, 1.0f) |
| static constexpr ColorRGBA | ms_ArgumentUnknownColor = ColorRGBA(0.6f, 0.6f, 0.6f, 1.0f) |
| static constexpr ColorRGBA | ms_CommentColor = ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f) |
| static constexpr ColorRGBA | ms_ErrorColor = ColorRGBA(240.0f / 255.0f, 70.0f / 255.0f, 70.0f / 255.0f, 1.0f) |
Friends | |
| class | CMapSettingsBackend |
|
virtualdefault |
|
inlineprivate |
|
inline |
|
inline |
| int CMapSettingsBackend::CContext::CheckCollision | ( | const char * | pInputString, |
| const std::vector< CEditorMapSetting > & | vSettings, | ||
| ECollisionCheckResult & | Result ) const |
| int CMapSettingsBackend::CContext::CheckCollision | ( | const std::vector< CEditorMapSetting > & | vSettings, |
| ECollisionCheckResult & | Result ) const |
| int CMapSettingsBackend::CContext::CheckCollision | ( | ECollisionCheckResult & | Result | ) | const |
|
private |
| void CMapSettingsBackend::CContext::ColorArguments | ( | std::vector< STextColorSplit > & | vColorSplits | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
| void CMapSettingsBackend::CContext::GetCommandHelpText | ( | char * | pStr, |
| int | Length ) const |
|
inline |
|
private |
|
private |
|
private |
|
inline |
|
virtual |
Reimplemented in CMapSettingsBackend::CContextWithInput.
|
inline |
|
inline |
| void CMapSettingsBackend::CContext::Update | ( | ) |
| bool CMapSettingsBackend::CContext::UpdateCursor | ( | bool | Force = false | ) |
| void CMapSettingsBackend::CContext::UpdateFromString | ( | const char * | pStr | ) |
|
private |
| bool CMapSettingsBackend::CContext::Valid | ( | ) | const |
|
private |
|
friend |
|
private |
| bool CMapSettingsBackend::CContext::m_AllowUnknownCommands |
|
private |
| int CMapSettingsBackend::CContext::m_CurrentCompletionIndex |
|
private |
| SEditBoxDropdownContext CMapSettingsBackend::CContext::m_DropdownContext |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |