MCPcopy Create free account
hub / github.com/ddnet/ddnet / CEditorActionAddEnvelopePoint

Method CEditorActionAddEnvelopePoint

src/game/editor/editor_actions.cpp:1685–1689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1683// ------------------
1684
1685CEditorActionAddEnvelopePoint::CEditorActionAddEnvelopePoint(CEditorMap *pMap, int EnvelopeIndex, CFixedTime Time, ColorRGBA Channels) :
1686 IEditorAction(pMap), m_EnvelopeIndex(EnvelopeIndex), m_Time(Time), m_Channels(Channels)
1687{
1688 str_format(m_aDisplayText, sizeof(m_aDisplayText), "Add new point in envelope %d at time %f", m_EnvelopeIndex, Time.AsSeconds());
1689}
1690
1691void CEditorActionAddEnvelopePoint::Undo()
1692{

Callers

nothing calls this directly

Calls 2

str_formatFunction · 0.85
AsSecondsMethod · 0.45

Tested by

no test coverage detected