DDraceNetwork Documentation
Loading...
Searching...
No Matches
prompt.cpp File Reference
#include "prompt.h"
#include "editor.h"
#include <engine/keys.h>
#include <game/client/ui_listbox.h>
#include <game/editor/quick_action.h>
#include <game/editor/quick_actions.h>
Include dependency graph for prompt.cpp:

Macros

#define REGISTER_QUICK_ACTION(name, text, callback, disabled, active, button_color, description)
#define ALWAYS_FALSE   []() -> bool { return false; }
#define DEFAULT_BTN   []() -> int { return -1; }

Functions

static bool FuzzyMatch (const char *pHaystack, const char *pNeedle)

Macro Definition Documentation

◆ ALWAYS_FALSE

#define ALWAYS_FALSE   []() -> bool { return false; }

◆ DEFAULT_BTN

#define DEFAULT_BTN   []() -> int { return -1; }

◆ REGISTER_QUICK_ACTION

#define REGISTER_QUICK_ACTION ( name,
text,
callback,
disabled,
active,
button_color,
description )
Value:
m_vQuickActions.emplace_back(&Editor()->m_QuickAction##name);

Function Documentation

◆ FuzzyMatch()

bool FuzzyMatch ( const char * pHaystack,
const char * pNeedle )
static