Skip to content

Commit 0b503e3

Browse files
authored
Fix style of all enum classes in editor (ddnet#11716)
2 parents 5bda840 + 0a0e963 commit 0b503e3

15 files changed

+435
-435
lines changed

src/game/editor/editor.cpp

Lines changed: 90 additions & 90 deletions
Large diffs are not rendered by default.

src/game/editor/editor.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,11 @@ class CEditor : public IEditor, public IEnvelopeEval
305305
vec2 m_MouseAxisInitialPos = vec2(0.0f, 0.0f);
306306
enum class EAxisLock
307307
{
308-
Start,
309-
None,
310-
Horizontal,
311-
Vertical
312-
} m_MouseAxisLockState = EAxisLock::Start;
308+
START,
309+
NONE,
310+
HORIZONTAL,
311+
VERTICAL,
312+
} m_MouseAxisLockState = EAxisLock::START;
313313

314314
/**
315315
* Global time when the autosave was last updated in the @link HandleAutosave @endlink function.
@@ -636,9 +636,9 @@ class CEditor : public IEditor, public IEnvelopeEval
636636

637637
enum class EAxis
638638
{
639-
AXIS_NONE = 0,
640-
AXIS_X,
641-
AXIS_Y
639+
NONE = 0,
640+
X,
641+
Y,
642642
};
643643
struct SAxisAlignedBoundingBox
644644
{
@@ -718,10 +718,10 @@ class CEditor : public IEditor, public IEnvelopeEval
718718

719719
enum class EDragSide // Which side is the drag bar on
720720
{
721-
SIDE_BOTTOM,
722-
SIDE_LEFT,
723-
SIDE_TOP,
724-
SIDE_RIGHT
721+
BOTTOM,
722+
LEFT,
723+
TOP,
724+
RIGHT,
725725
};
726726
void DoEditorDragBar(CUIRect View, CUIRect *pDragBar, EDragSide Side, float *pValue, float MinValue = 100.0f, float MaxValue = 400.0f);
727727

0 commit comments

Comments
 (0)