DDNet documentation
Loading...
Searching...
No Matches
envelope_editor.cpp File Reference
#include "envelope_editor.h"
#include <base/color.h>
#include <base/math.h>
#include <base/str.h>
#include <base/vmath.h>
#include <engine/font_icons.h>
#include <engine/graphics.h>
#include <engine/input.h>
#include <engine/keys.h>
#include <engine/shared/config.h>
#include <game/editor/editor.h>
#include <game/editor/editor_actions.h>
#include <game/editor/editor_trackers.h>
#include <game/editor/mapitems/envelope.h>
#include <game/editor/mapitems/map.h>
#include <optional>
Include dependency graph for envelope_editor.cpp:

Classes

class  CTimeStep

Functions

static const char * CurveTypeNameShort (int CurveType)
static float ClampDelta (float Val, float Delta, float Min, float Max)

Variables

static const char *const CHANNEL_NAMES [CEnvPoint::MAX_CHANNELS][CEnvPoint::MAX_CHANNELS]
static const char *const CURVE_TYPE_NAMES [] = {"Step", "Linear", "Slow", "Fast", "Smooth", "Bezier"}
static const char *const CURVE_TYPE_NAMES_SHORT [] = {"N", "L", "S", "F", "M", "B"}
static constexpr float TOOLTIP_MARGIN = 5.0f
static constexpr float TOOLTIP_FONT_SIZE = 10.0f

Function Documentation

◆ ClampDelta()

float ClampDelta ( float Val,
float Delta,
float Min,
float Max )
static

◆ CurveTypeNameShort()

const char * CurveTypeNameShort ( int CurveType)
static

Variable Documentation

◆ CHANNEL_NAMES

const char* const CHANNEL_NAMES[CEnvPoint::MAX_CHANNELS][CEnvPoint::MAX_CHANNELS]
static
Initial value:
= {
{"V", "", "", ""},
{"", "", "", ""},
{"X", "Y", "R", ""},
{"R", "G", "B", "A"},
}

◆ CURVE_TYPE_NAMES

const char* const CURVE_TYPE_NAMES[] = {"Step", "Linear", "Slow", "Fast", "Smooth", "Bezier"}
static

◆ CURVE_TYPE_NAMES_SHORT

const char* const CURVE_TYPE_NAMES_SHORT[] = {"N", "L", "S", "F", "M", "B"}
static

◆ TOOLTIP_FONT_SIZE

float TOOLTIP_FONT_SIZE = 10.0f
staticconstexpr

◆ TOOLTIP_MARGIN

float TOOLTIP_MARGIN = 5.0f
staticconstexpr