DDraceNetwork Docs
CEditor Class Reference

#include <editor.h>

Inheritance diagram for CEditor:
[legend]
Collaboration diagram for CEditor:
[legend]

Classes

struct  CFilelistItem
 
class  CHoverTile
 
struct  SAlignmentInfo
 
struct  SAxisAlignedBoundingBox
 
struct  SLayerPopupContext
 
struct  SStringKeyComparator
 

Public Types

enum  {
  POPEVENT_EXIT = 0 , POPEVENT_LOAD , POPEVENT_LOADCURRENT , POPEVENT_LOADDROP ,
  POPEVENT_NEW , POPEVENT_SAVE , POPEVENT_SAVE_COPY , POPEVENT_SAVE_IMG ,
  POPEVENT_SAVE_SOUND , POPEVENT_LARGELAYER , POPEVENT_PREVENTUNUSEDTILES , POPEVENT_IMAGEDIV16 ,
  POPEVENT_IMAGE_MAX , POPEVENT_SOUND_MAX , POPEVENT_PLACE_BORDER_TILES , POPEVENT_PIXELART_BIG_IMAGE ,
  POPEVENT_PIXELART_MANY_COLORS , POPEVENT_PIXELART_TOO_MANY_COLORS
}
 
enum  { FILETYPE_MAP , FILETYPE_IMG , FILETYPE_SOUND , NUM_FILETYPES }
 
enum  EShowTile { SHOW_TILE_OFF , SHOW_TILE_DECIMAL , SHOW_TILE_HEXADECIMAL }
 
enum  EExtraEditor {
  EXTRAEDITOR_NONE = -1 , EXTRAEDITOR_ENVELOPES , EXTRAEDITOR_SERVER_SETTINGS , EXTRAEDITOR_HISTORY ,
  NUM_EXTRAEDITORS
}
 
enum  EShowEnvelope { SHOWENV_NONE = 0 , SHOWENV_SELECTED , SHOWENV_ALL }
 
enum  ECursorType { CURSOR_NORMAL , CURSOR_RESIZE_V , CURSOR_RESIZE_H , NUM_CURSORS }
 
enum class  EAxis { AXIS_NONE = 0 , AXIS_X , AXIS_Y }
 
enum class  EDragSide { SIDE_BOTTOM , SIDE_LEFT , SIDE_TOP , SIDE_RIGHT }
 
enum  {
  TILE_PUB_AIR , TILE_PUB_HOOKABLE , TILE_PUB_DEATH , TILE_PUB_UNHOOKABLE ,
  TILE_PUB_CREDITS1 = 140 , TILE_PUB_CREDITS2 , TILE_PUB_CREDITS3 , TILE_PUB_CREDITS4 ,
  TILE_PUB_CREDITS5 = 156 , TILE_PUB_CREDITS6 , TILE_PUB_CREDITS7 , TILE_PUB_CREDITS8 ,
  TILE_PUB_ENTITIES_OFF1 = 190 , TILE_PUB_ENTITIES_OFF2
}
 
enum  {
  TILE_FNG_SPIKE_GOLD = 7 , TILE_FNG_SPIKE_NORMAL , TILE_FNG_SPIKE_RED , TILE_FNG_SPIKE_BLUE ,
  TILE_FNG_SCORE_RED , TILE_FNG_SCORE_BLUE , TILE_FNG_SPIKE_GREEN = 14 , TILE_FNG_SPIKE_PURPLE ,
  TILE_FNG_SPAWN = 192 , TILE_FNG_SPAWN_RED , TILE_FNG_SPAWN_BLUE , TILE_FNG_FLAG_RED ,
  TILE_FNG_FLAG_BLUE , TILE_FNG_SHIELD , TILE_FNG_HEART , TILE_FNG_SHOTGUN ,
  TILE_FNG_GRENADE , TILE_FNG_NINJA , TILE_FNG_LASER , TILE_FNG_SPIKE_OLD1 = 208 ,
  TILE_FNG_SPIKE_OLD2 , TILE_FNG_SPIKE_OLD3
}
 
enum  {
  TILE_VANILLA_SPAWN = 192 , TILE_VANILLA_SPAWN_RED , TILE_VANILLA_SPAWN_BLUE , TILE_VANILLA_FLAG_RED ,
  TILE_VANILLA_FLAG_BLUE , TILE_VANILLA_SHIELD , TILE_VANILLA_HEART , TILE_VANILLA_SHOTGUN ,
  TILE_VANILLA_GRENADE , TILE_VANILLA_NINJA , TILE_VANILLA_LASER
}
 
enum class  EExplanation {
  NONE , DDNET , FNG , RACE ,
  VANILLA , BLOCKWORLDS
}
 

Public Member Functions

class IInputInput () const
 
class IClientClient () const
 
class IConfigManagerConfigManager () const
 
class CConfigConfig () const
 
class IConsoleConsole () const
 
class IEngineEngine () const
 
class IGraphicsGraphics () const
 
class ISoundSound () const
 
class ITextRenderTextRender () const
 
class IStorageStorage () const
 
CUiUi ()
 
CRenderToolsRenderTools ()
 
CMapViewMapView ()
 
const CMapViewMapView () const
 
CLayerSelectorLayerSelector ()
 
void SelectNextLayer ()
 
void SelectPreviousLayer ()
 
void FillGameTiles (EGameTileOp FillTile) const
 
bool CanFillGameTiles () const
 
void AddQuadOrSound ()
 
void AddGroup ()
 
void AddSoundLayer ()
 
void AddTileLayer ()
 
void AddQuadsLayer ()
 
void AddSwitchLayer ()
 
void AddFrontLayer ()
 
void AddTuneLayer ()
 
void AddSpeedupLayer ()
 
void AddTeleLayer ()
 
void DeleteSelectedLayer ()
 
void LayerSelectImage ()
 
bool IsNonGameTileLayerSelected () const
 
void MapDetails ()
 
 CEditor ()
 
const std::vector< CHoverTile > & HoverTiles () const
 
void Init () override
 
void OnUpdate () override
 
void OnRender () override
 
void OnActivate () override
 
void OnWindowResize () override
 
void OnClose () override
 
void OnDialogClose () override
 
bool HasUnsavedData () const override
 
void UpdateMentions () override
 
void ResetMentions () override
 
void OnIngameMoved () override
 
void ResetIngameMoved () override
 
void HandleCursorMovement ()
 
void OnMouseMove (vec2 MousePos)
 
void HandleAutosave ()
 
bool PerformAutosave ()
 
void HandleWriterFinishJobs ()
 
void RefreshFilteredFileList ()
 
void FilelistPopulate (int StorageType, bool KeepSelection=false)
 
void InvokeFileDialog (int StorageType, int FileType, const char *pTitle, const char *pButtonText, const char *pBasepath, bool FilenameAsDefault, bool(*pfnFunc)(const char *pFilename, int StorageType, void *pUser), void *pUser)
 
void ShowFileDialogError (const char *pFormat,...) GNUC_ATTRIBUTE((format(printf
 
void void Reset (bool CreateDefault=true)
 
bool Save (const char *pFilename) override
 
bool Load (const char *pFilename, int StorageType) override
 
bool HandleMapDrop (const char *pFilename, int StorageType) override
 
bool Append (const char *pFilename, int StorageType, bool IgnoreHistory=false)
 
void LoadCurrentMap ()
 
void Render ()
 
void RenderPressedKeys (CUIRect View)
 
void RenderSavingIndicator (CUIRect View)
 
void FreeDynamicPopupMenus ()
 
void UpdateColorPipette ()
 
void RenderMousePointer ()
 
std::vector< CQuad * > GetSelectedQuads ()
 
std::shared_ptr< CLayerGetSelectedLayerType (int Index, int Type) const
 
std::shared_ptr< CLayerGetSelectedLayer (int Index) const
 
std::shared_ptr< CLayerGroupGetSelectedGroup () const
 
CSoundSourceGetSelectedSource () const
 
void SelectLayer (int LayerIndex, int GroupIndex=-1)
 
void AddSelectedLayer (int LayerIndex)
 
void SelectQuad (int Index)
 
void ToggleSelectQuad (int Index)
 
void DeselectQuads ()
 
void DeselectQuadPoints ()
 
void SelectQuadPoint (int QuadIndex, int Index)
 
void ToggleSelectQuadPoint (int QuadIndex, int Index)
 
void DeleteSelectedQuads ()
 
bool IsQuadSelected (int Index) const
 
bool IsQuadCornerSelected (int Index) const
 
bool IsQuadPointSelected (int QuadIndex, int Index) const
 
int FindSelectedQuadIndex (int Index) const
 
int FindEnvPointIndex (int Index, int Channel) const
 
void SelectEnvPoint (int Index)
 
void SelectEnvPoint (int Index, int Channel)
 
void ToggleEnvPoint (int Index, int Channel)
 
bool IsEnvPointSelected (int Index, int Channel) const
 
bool IsEnvPointSelected (int Index) const
 
void DeselectEnvPoints ()
 
void SelectTangentOutPoint (int Index, int Channel)
 
bool IsTangentOutPointSelected (int Index, int Channel) const
 
void SelectTangentInPoint (int Index, int Channel)
 
bool IsTangentInPointSelected (int Index, int Channel) const
 
bool IsTangentInSelected () const
 
bool IsTangentOutSelected () const
 
bool IsTangentSelected () const
 
std::pair< int, int > EnvGetSelectedTimeAndValue () const
 
template<typename E >
SEditResult< EDoPropertiesWithState (CUIRect *pToolbox, CProperty *pProps, int *pIds, int *pNewVal, const std::vector< ColorRGBA > &vColors={})
 
int DoProperties (CUIRect *pToolbox, CProperty *pProps, int *pIds, int *pNewVal, const std::vector< ColorRGBA > &vColors={})
 
void DoColorPickerButton (const void *pId, const CUIRect *pRect, ColorRGBA Color, const std::function< void(ColorRGBA Color)> &SetColor)
 
void SortFilteredFileList ()
 
IGraphics::CTextureHandle GetEntitiesTexture ()
 
void AddTileart (bool IgnoreHistory=false)
 
void TileartCheckColors ()
 
void PlaceBorderTiles ()
 
void UpdateTooltip (const void *pId, const CUIRect *pRect, const char *pToolTip)
 
int DoButton_Editor_Common (const void *pId, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip)
 
int DoButton_Editor (const void *pId, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip)
 
int DoButton_Env (const void *pId, const char *pText, int Checked, const CUIRect *pRect, const char *pToolTip, ColorRGBA Color, int Corners)
 
int DoButton_Ex (const void *pId, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip, int Corners, float FontSize=EditorFontSizes::MENU, int Align=TEXTALIGN_MC)
 
int DoButton_FontIcon (const void *pId, const char *pText, int Checked, const CUIRect *pRect, int Flags, const char *pToolTip, int Corners, float FontSize=10.0f)
 
int DoButton_MenuItem (const void *pId, const char *pText, int Checked, const CUIRect *pRect, int Flags=0, const char *pToolTip=nullptr)
 
int DoButton_DraggableEx (const void *pId, const char *pText, int Checked, const CUIRect *pRect, bool *pClicked, bool *pAbrupted, int Flags, const char *pToolTip=nullptr, int Corners=IGraphics::CORNER_ALL, float FontSize=10.0f)
 
bool DoEditBox (CLineInput *pLineInput, const CUIRect *pRect, float FontSize, int Corners=IGraphics::CORNER_ALL, const char *pToolTip=nullptr, const std::vector< STextColorSplit > &vColorSplits={})
 
bool DoClearableEditBox (CLineInput *pLineInput, const CUIRect *pRect, float FontSize, int Corners=IGraphics::CORNER_ALL, const char *pToolTip=nullptr, const std::vector< STextColorSplit > &vColorSplits={})
 
void DoMapSettingsEditBox (CMapSettingsBackend::CContext *pContext, const CUIRect *pRect, float FontSize, float DropdownMaxHeight, int Corners=IGraphics::CORNER_ALL, const char *pToolTip=nullptr)
 
template<typename T >
int DoEditBoxDropdown (SEditBoxDropdownContext *pDropdown, CLineInput *pLineInput, const CUIRect *pEditBoxRect, int x, float MaxHeight, bool AutoWidth, const std::vector< T > &vData, const FDropdownRenderCallback< T > &pfnMatchCallback)
 
template<typename T >
int RenderEditBoxDropdown (SEditBoxDropdownContext *pDropdown, CUIRect View, CLineInput *pLineInput, int x, float MaxHeight, bool AutoWidth, const std::vector< T > &vData, const FDropdownRenderCallback< T > &pfnMatchCallback)
 
void RenderBackground (CUIRect View, IGraphics::CTextureHandle Texture, float Size, float Brightness) const
 
SEditResult< int > UiDoValueSelector (void *pId, CUIRect *pRect, const char *pLabel, int Current, int Min, int Max, int Step, float Scale, const char *pToolTip, bool IsDegree=false, bool IsHex=false, int Corners=IGraphics::CORNER_ALL, const ColorRGBA *pColor=nullptr, bool ShowValue=true)
 
void PopupSelectImageInvoke (int Current, float x, float y)
 
int PopupSelectImageResult ()
 
void PopupSelectGametileOpInvoke (float x, float y)
 
int PopupSelectGameTileOpResult ()
 
void PopupSelectConfigAutoMapInvoke (int Current, float x, float y)
 
int PopupSelectConfigAutoMapResult ()
 
void PopupSelectSoundInvoke (int Current, float x, float y)
 
int PopupSelectSoundResult ()
 
void DoQuadEnvelopes (const std::vector< CQuad > &vQuads, IGraphics::CTextureHandle Texture=IGraphics::CTextureHandle())
 
void DoQuadEnvPoint (const CQuad *pQuad, int QIndex, int pIndex)
 
void DoQuadPoint (int LayerIndex, const std::shared_ptr< CLayerQuads > &pLayer, CQuad *pQuad, int QuadIndex, int v)
 
void SetHotQuadPoint (const std::shared_ptr< CLayerQuads > &pLayer)
 
float TriangleArea (vec2 A, vec2 B, vec2 C)
 
bool IsInTriangle (vec2 Point, vec2 A, vec2 B, vec2 C)
 
void DoQuadKnife (int QuadIndex)
 
void DoSoundSource (int LayerIndex, CSoundSource *pSource, int Index)
 
void DoMapEditor (CUIRect View)
 
void DoToolbarLayers (CUIRect Toolbar)
 
void DoToolbarSounds (CUIRect Toolbar)
 
void DoQuad (int LayerIndex, const std::shared_ptr< CLayerQuads > &pLayer, CQuad *pQuad, int Index)
 
void PreparePointDrag (const std::shared_ptr< CLayerQuads > &pLayer, CQuad *pQuad, int QuadIndex, int PointIndex)
 
void DoPointDrag (const std::shared_ptr< CLayerQuads > &pLayer, CQuad *pQuad, int QuadIndex, int PointIndex, int OffsetX, int OffsetY)
 
EAxis GetDragAxis (int OffsetX, int OffsetY) const
 
void DrawAxis (EAxis Axis, CPoint &OriginalPoint, CPoint &Point) const
 
void DrawAABB (const SAxisAlignedBoundingBox &AABB, int OffsetX=0, int OffsetY=0) const
 
ColorRGBA GetButtonColor (const void *pId, int Checked)
 
void ComputePointAlignments (const std::shared_ptr< CLayerQuads > &pLayer, CQuad *pQuad, int QuadIndex, int PointIndex, int OffsetX, int OffsetY, std::vector< SAlignmentInfo > &vAlignments, bool Append=false) const
 
void ComputePointsAlignments (const std::shared_ptr< CLayerQuads > &pLayer, bool Pivot, int OffsetX, int OffsetY, std::vector< SAlignmentInfo > &vAlignments) const
 
void ComputeAABBAlignments (const std::shared_ptr< CLayerQuads > &pLayer, const SAxisAlignedBoundingBox &AABB, int OffsetX, int OffsetY, std::vector< SAlignmentInfo > &vAlignments) const
 
void DrawPointAlignments (const std::vector< SAlignmentInfo > &vAlignments, int OffsetX, int OffsetY) const
 
void QuadSelectionAABB (const std::shared_ptr< CLayerQuads > &pLayer, SAxisAlignedBoundingBox &OutAABB)
 
void ApplyAlignments (const std::vector< SAlignmentInfo > &vAlignments, int &OffsetX, int &OffsetY)
 
void ApplyAxisAlignment (int &OffsetX, int &OffsetY) const
 
bool ReplaceImage (const char *pFilename, int StorageType, bool CheckDuplicate)
 
bool ReplaceSound (const char *pFileName, int StorageType, bool CheckDuplicate)
 
bool IsEnvelopeUsed (int EnvelopeIndex) const
 
void RemoveUnusedEnvelopes ()
 
void RenderLayers (CUIRect LayersBox)
 
void RenderImagesList (CUIRect Toolbox)
 
void RenderSelectedImage (CUIRect View)
 
void RenderSounds (CUIRect Toolbox)
 
void RenderModebar (CUIRect View)
 
void RenderStatusbar (CUIRect View, CUIRect *pTooltipRect)
 
void RenderTooltip (CUIRect TooltipRect)
 
void RenderEnvelopeEditor (CUIRect View)
 
void RenderMapSettingsErrorDialog ()
 
void RenderServerSettingsEditor (CUIRect View, bool ShowServerSettingsEditorLast)
 
void RenderEditorHistory (CUIRect View)
 
void DoEditorDragBar (CUIRect View, CUIRect *pDragBar, EDragSide Side, float *pValue, float MinValue=100.0f, float MaxValue=400.0f)
 
void SetHotEnvelopePoint (const CUIRect &View, const std::shared_ptr< CEnvelope > &pEnvelope, int ActiveChannels)
 
void RenderMenubar (CUIRect Menubar)
 
void RenderFileDialog ()
 
void SelectGameLayer ()
 
std::vector< int > SortImages ()
 
void DoAudioPreview (CUIRect View, const void *pPlayPauseButtonId, const void *pStopButtonId, const void *pSeekBarId, int SampleId)
 
void ZoomAdaptOffsetX (float ZoomFactor, const CUIRect &View)
 
void UpdateZoomEnvelopeX (const CUIRect &View)
 
void ZoomAdaptOffsetY (float ZoomFactor, const CUIRect &View)
 
void UpdateZoomEnvelopeY (const CUIRect &View)
 
void ResetZoomEnvelope (const std::shared_ptr< CEnvelope > &pEnvelope, int ActiveChannels)
 
void RemoveTimeOffsetEnvelope (const std::shared_ptr< CEnvelope > &pEnvelope)
 
float ScreenToEnvelopeX (const CUIRect &View, float x) const
 
float EnvelopeToScreenX (const CUIRect &View, float x) const
 
float ScreenToEnvelopeY (const CUIRect &View, float y) const
 
float EnvelopeToScreenY (const CUIRect &View, float y) const
 
float ScreenToEnvelopeDX (const CUIRect &View, float DeltaX)
 
float ScreenToEnvelopeDY (const CUIRect &View, float DeltaY)
 
IGraphics::CTextureHandle GetFrontTexture ()
 
IGraphics::CTextureHandle GetTeleTexture ()
 
IGraphics::CTextureHandle GetSpeedupTexture ()
 
IGraphics::CTextureHandle GetSwitchTexture ()
 
IGraphics::CTextureHandle GetTuneTexture ()
 
void AdjustBrushSpecialTiles (bool UseNextFree, int Adjust=0)
 
int FindNextFreeSwitchNumber ()
 
int FindNextFreeTeleNumber (int Index)
 
- Public Member Functions inherited from IEditor
virtual ~IEditor ()
 
virtual void Init ()=0
 
virtual void OnUpdate ()=0
 
virtual void OnRender ()=0
 
virtual void OnActivate ()=0
 
virtual void OnWindowResize ()=0
 
virtual void OnClose ()=0
 
virtual void OnDialogClose ()=0
 
virtual bool HasUnsavedData () const =0
 
virtual bool HandleMapDrop (const char *pFilename, int StorageType)=0
 
virtual bool Load (const char *pFilename, int StorageType)=0
 
virtual bool Save (const char *pFilename)=0
 
virtual void UpdateMentions ()=0
 
virtual void ResetMentions ()=0
 
virtual void OnIngameMoved ()=0
 
virtual void ResetIngameMoved ()=0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Static Public Member Functions

static bool CompareFilenameAscending (const CFilelistItem *pLhs, const CFilelistItem *pRhs)
 
static bool CompareFilenameDescending (const CFilelistItem *pLhs, const CFilelistItem *pRhs)
 
static bool CompareTimeModifiedAscending (const CFilelistItem *pLhs, const CFilelistItem *pRhs)
 
static bool CompareTimeModifiedDescending (const CFilelistItem *pLhs, const CFilelistItem *pRhs)
 
static void EnvelopeEval (int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels, void *pUser)
 
static CUi::EPopupMenuFunctionResult PopupMenuFile (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupMenuTools (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupMenuSettings (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupGroup (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupLayer (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupQuad (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupSource (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupPoint (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupEnvPoint (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupEnvPointMulti (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupEnvPointCurveType (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupImage (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupSound (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupNewFolder (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupMapInfo (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupEvent (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupSelectImage (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupSelectSound (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupSelectGametileOp (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupSelectConfigAutoMap (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupTele (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupSpeedup (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupSwitch (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupTune (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupGoto (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupEntities (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupProofMode (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupAnimateSettings (void *pContext, CUIRect View, bool Active)
 
static CUi::EPopupMenuFunctionResult PopupEnvelopeCurvetype (void *pContext, CUIRect View, bool Active)
 
static bool CallbackOpenMap (const char *pFileName, int StorageType, void *pUser)
 
static bool CallbackAppendMap (const char *pFileName, int StorageType, void *pUser)
 
static bool CallbackSaveMap (const char *pFileName, int StorageType, void *pUser)
 
static bool CallbackSaveCopyMap (const char *pFileName, int StorageType, void *pUser)
 
static bool CallbackAddTileart (const char *pFilepath, int StorageType, void *pUser)
 
static bool CallbackSaveImage (const char *pFileName, int StorageType, void *pUser)
 
static bool CallbackSaveSound (const char *pFileName, int StorageType, void *pUser)
 
static bool CallbackCustomEntities (const char *pFileName, int StorageType, void *pUser)
 
static bool ReplaceImageCallback (const char *pFilename, int StorageType, void *pUser)
 
static bool ReplaceSoundCallback (const char *pFileName, int StorageType, void *pUser)
 
static bool AddImage (const char *pFilename, int StorageType, void *pUser)
 
static bool AddSound (const char *pFileName, int StorageType, void *pUser)
 
static bool IsVanillaImage (const char *pImage)
 
static void MapSettingsDropdownRenderCallback (const SPossibleValueMatch &Match, char(&aOutput)[128], std::vector< STextColorSplit > &vColorSplits)
 
static const char * ExplainDDNet (int Tile, int Layer)
 
static const char * ExplainFNG (int Tile, int Layer)
 
static const char * ExplainVanilla (int Tile, int Layer)
 
static const char * Explain (EExplanation Explanation, int Tile, int Layer)
 
- Static Public Member Functions inherited from IEditor
static const char * InterfaceName ()
 

Public Attributes

std::vector< CHoverTilem_vHoverTiles
 
std::map< const char *, CUi::SMessagePopupContext *, SStringKeyComparatorm_PopupMessageContexts
 
CUi::SColorPickerPopupContext m_ColorPickerPopupContext
 
const void * m_pColorPickerPopupActiveId = nullptr
 
int m_Mode
 
int m_Dialog
 
char m_aTooltip [256] = ""
 
bool m_BrushColorEnabled
 
char m_aFileName [IO_MAX_PATH_LENGTH]
 
char m_aFileNamePending [IO_MAX_PATH_LENGTH]
 
char m_aFileSaveName [IO_MAX_PATH_LENGTH]
 
bool m_ValidSaveFilename
 
int m_PopupEventType
 
int m_PopupEventActivated
 
int m_PopupEventWasActivated
 
bool m_LargeLayerWasWarned
 
bool m_PreventUnusedTilesWasWarned
 
int m_AllowPlaceUnusedTiles
 
bool m_BrushDrawDestructive
 
int m_Mentions = 0
 
bool m_IngameMoved = false
 
int m_FileDialogStorageType
 
int m_FileDialogLastPopulatedStorageType
 
const char * m_pFileDialogTitle
 
const char * m_pFileDialogButtonText
 
bool(* m_pfnFileDialogFunc )(const char *pFileName, int StorageType, void *pUser)
 
void * m_pFileDialogUser
 
CLineInputBuffered< IO_MAX_PATH_LENGTHm_FileDialogFileNameInput
 
char m_aFileDialogCurrentFolder [IO_MAX_PATH_LENGTH]
 
char m_aFileDialogCurrentLink [IO_MAX_PATH_LENGTH]
 
char m_aFilesSelectedName [IO_MAX_PATH_LENGTH]
 
CLineInputBuffered< IO_MAX_PATH_LENGTHm_FileDialogFilterInput
 
char * m_pFileDialogPath
 
int m_FileDialogFileType
 
bool m_FileDialogMultipleStorages = false
 
bool m_FileDialogShowingRoot = false
 
int m_FilesSelectedIndex
 
CLineInputBuffered< IO_MAX_PATH_LENGTHm_FileDialogNewFolderNameInput
 
IGraphics::CTextureHandle m_FilePreviewImage
 
int m_FilePreviewSound
 
EPreviewState m_FilePreviewState
 
int m_FilePreviewImageWidth
 
int m_FilePreviewImageHeight
 
bool m_FileDialogOpening
 
int m_ToolbarPreviewSound
 
std::vector< CFilelistItemm_vCompleteFileList
 
std::vector< const CFilelistItem * > m_vpFilteredFileList
 
int m_SortByFilename = 1
 
int m_SortByTimeModified = 0
 
std::vector< std::string > m_vSelectEntitiesFiles
 
std::string m_SelectEntitiesImage
 
CSmoothValue m_ZoomEnvelopeX
 
CSmoothValue m_ZoomEnvelopeY
 
bool m_ResetZoomEnvelope
 
float m_OffsetEnvelopeX
 
float m_OffsetEnvelopeY
 
bool m_ShowMousePointer
 
bool m_GuiActive
 
char m_aMenuBackgroundTooltip [256]
 
bool m_PreviewZoom
 
float m_MouseWorldScale = 1.0f
 
vec2 m_MouseWorldPos = vec2(0.0f, 0.0f)
 
vec2 m_MouseWorldNoParaPos = vec2(0.0f, 0.0f)
 
vec2 m_MouseDeltaWorld = vec2(0.0f, 0.0f)
 
const void * m_pContainerPanned
 
const void * m_pContainerPannedLast
 
char m_MapEditorId
 
EShowTile m_ShowTileInfo
 
bool m_ShowDetail
 
bool m_Animate
 
int64_t m_AnimateStart
 
float m_AnimateTime
 
float m_AnimateSpeed
 
bool m_AnimateUpdatePopup
 
EExtraEditor m_ActiveExtraEditor = EXTRAEDITOR_NONE
 
float m_aExtraEditorSplits [NUM_EXTRAEDITORS] = {250.0f, 250.0f, 250.0f}
 
float m_ToolBoxWidth = 100.0f
 
EShowEnvelope m_ShowEnvelopePreview
 
bool m_ShowPicker
 
std::vector< int > m_vSelectedLayers
 
std::vector< int > m_vSelectedQuads
 
int m_SelectedQuadPoint
 
int m_SelectedQuadIndex
 
int m_SelectedGroup
 
int m_SelectedQuadPoints
 
int m_SelectedEnvelope
 
std::vector< std::pair< int, int > > m_vSelectedEnvelopePoints
 
int m_SelectedQuadEnvelope
 
int m_CurrentQuadIndex
 
int m_SelectedImage
 
int m_SelectedSound
 
int m_SelectedSource
 
std::pair< int, int > m_SelectedTangentInPoint
 
std::pair< int, int > m_SelectedTangentOutPoint
 
bool m_UpdateEnvPointInfo
 
bool m_QuadKnifeActive
 
int m_QuadKnifeCount
 
vec2 m_aQuadKnifePoints [4]
 
ColorRGBA m_aSavedColors [8]
 
ColorRGBA m_PipetteColor = ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f)
 
bool m_ColorPipetteActive = false
 
IGraphics::CTextureHandle m_CheckerTexture
 
IGraphics::CTextureHandle m_BackgroundTexture
 
IGraphics::CTextureHandle m_aCursorTextures [ECursorType::NUM_CURSORS]
 
ECursorType m_CursorType
 
std::shared_ptr< CLayerGroupm_pBrush
 
std::shared_ptr< CLayerTilesm_pTilesetPicker
 
std::shared_ptr< CLayerQuadsm_pQuadsetPicker
 
CEditorMap m_Map
 
std::deque< std::shared_ptr< CDataFileWriterFinishJob > > m_WriterFinishJobs
 
int m_ShiftBy
 
CLineInputBuffered< 256 > m_SettingsCommandInput
 
CMapSettingsBackend m_MapSettingsBackend
 
CMapSettingsBackend::CContext m_MapSettingsCommandContext
 
CImageInfo m_TileartImageInfo
 
char m_aTileartFilename [IO_MAX_PATH_LENGTH]
 
int m_PopupEnvelopeSelectedPoint = -1
 
unsigned char m_ViewTeleNumber
 
std::map< int, unsigned char > m_TeleNumbers
 
unsigned char m_TuningNum
 
unsigned char m_SpeedupForce
 
unsigned char m_SpeedupMaxSpeed
 
short m_SpeedupAngle
 
unsigned char m_SwitchNum
 
unsigned char m_SwitchDelay
 
unsigned char m_ViewSwitch
 
CEditorHistory m_EditorHistory
 
CEditorHistory m_ServerSettingsHistory
 
CEditorHistory m_EnvelopeEditorHistory
 
CQuadEditTracker m_QuadTracker
 
CEnvelopeEditorOperationTracker m_EnvOpTracker
 

Static Public Attributes

static const void * ms_pUiGotContext
 

Private Types

enum  EPreviewState { PREVIEW_UNLOADED , PREVIEW_LOADED , PREVIEW_ERROR }
 

Private Member Functions

int GetTextureUsageFlag () const
 
void UndoLastAction ()
 
void RedoLastAction ()
 

Private Attributes

class IInputm_pInput = nullptr
 
class IClientm_pClient = nullptr
 
class IConfigManagerm_pConfigManager = nullptr
 
class CConfigm_pConfig = nullptr
 
class IConsolem_pConsole = nullptr
 
class IEnginem_pEngine = nullptr
 
class IGraphicsm_pGraphics = nullptr
 
class ITextRenderm_pTextRender = nullptr
 
class ISoundm_pSound = nullptr
 
class IStoragem_pStorage = nullptr
 
CRenderTools m_RenderTools
 
CUi m_UI
 
std::vector< std::reference_wrapper< CEditorComponent > > m_vComponents
 
CMapView m_MapView
 
CLayerSelector m_LayerSelector
 
CPrompt m_Prompt
 
bool m_EditorWasUsedBefore = false
 
IGraphics::CTextureHandle m_EntitiesTexture
 
IGraphics::CTextureHandle m_FrontTexture
 
IGraphics::CTextureHandle m_TeleTexture
 
IGraphics::CTextureHandle m_SpeedupTexture
 
IGraphics::CTextureHandle m_SwitchTexture
 
IGraphics::CTextureHandle m_TuneTexture
 
std::shared_ptr< CLayerGroupm_apSavedBrushes [10]
 
std::map< int, CPoint[5]> m_QuadDragOriginalPoints
 

Static Private Attributes

static const ColorRGBA ms_DefaultPropColor = ColorRGBA(1, 1, 1, 0.5f)
 

Additional Inherited Members

- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
POPEVENT_EXIT 
POPEVENT_LOAD 
POPEVENT_LOADCURRENT 
POPEVENT_LOADDROP 
POPEVENT_NEW 
POPEVENT_SAVE 
POPEVENT_SAVE_COPY 
POPEVENT_SAVE_IMG 
POPEVENT_SAVE_SOUND 
POPEVENT_LARGELAYER 
POPEVENT_PREVENTUNUSEDTILES 
POPEVENT_IMAGEDIV16 
POPEVENT_IMAGE_MAX 
POPEVENT_SOUND_MAX 
POPEVENT_PLACE_BORDER_TILES 
POPEVENT_PIXELART_BIG_IMAGE 
POPEVENT_PIXELART_MANY_COLORS 
POPEVENT_PIXELART_TOO_MANY_COLORS 

◆ anonymous enum

anonymous enum
Enumerator
FILETYPE_MAP 
FILETYPE_IMG 
FILETYPE_SOUND 
NUM_FILETYPES 

◆ anonymous enum

anonymous enum
Enumerator
TILE_PUB_AIR 
TILE_PUB_HOOKABLE 
TILE_PUB_DEATH 
TILE_PUB_UNHOOKABLE 
TILE_PUB_CREDITS1 
TILE_PUB_CREDITS2 
TILE_PUB_CREDITS3 
TILE_PUB_CREDITS4 
TILE_PUB_CREDITS5 
TILE_PUB_CREDITS6 
TILE_PUB_CREDITS7 
TILE_PUB_CREDITS8 
TILE_PUB_ENTITIES_OFF1 
TILE_PUB_ENTITIES_OFF2 

◆ anonymous enum

anonymous enum
Enumerator
TILE_FNG_SPIKE_GOLD 
TILE_FNG_SPIKE_NORMAL 
TILE_FNG_SPIKE_RED 
TILE_FNG_SPIKE_BLUE 
TILE_FNG_SCORE_RED 
TILE_FNG_SCORE_BLUE 
TILE_FNG_SPIKE_GREEN 
TILE_FNG_SPIKE_PURPLE 
TILE_FNG_SPAWN 
TILE_FNG_SPAWN_RED 
TILE_FNG_SPAWN_BLUE 
TILE_FNG_FLAG_RED 
TILE_FNG_FLAG_BLUE 
TILE_FNG_SHIELD 
TILE_FNG_HEART 
TILE_FNG_SHOTGUN 
TILE_FNG_GRENADE 
TILE_FNG_NINJA 
TILE_FNG_LASER 
TILE_FNG_SPIKE_OLD1 
TILE_FNG_SPIKE_OLD2 
TILE_FNG_SPIKE_OLD3 

◆ anonymous enum

anonymous enum
Enumerator
TILE_VANILLA_SPAWN 
TILE_VANILLA_SPAWN_RED 
TILE_VANILLA_SPAWN_BLUE 
TILE_VANILLA_FLAG_RED 
TILE_VANILLA_FLAG_BLUE 
TILE_VANILLA_SHIELD 
TILE_VANILLA_HEART 
TILE_VANILLA_SHOTGUN 
TILE_VANILLA_GRENADE 
TILE_VANILLA_NINJA 
TILE_VANILLA_LASER 

◆ EAxis

enum class CEditor::EAxis
strong
Enumerator
AXIS_NONE 
AXIS_X 
AXIS_Y 

◆ ECursorType

Enumerator
CURSOR_NORMAL 
CURSOR_RESIZE_V 
CURSOR_RESIZE_H 
NUM_CURSORS 

◆ EDragSide

enum class CEditor::EDragSide
strong
Enumerator
SIDE_BOTTOM 
SIDE_LEFT 
SIDE_TOP 
SIDE_RIGHT 

◆ EExplanation

enum class CEditor::EExplanation
strong
Enumerator
NONE 
DDNET 
FNG 
RACE 
VANILLA 
BLOCKWORLDS 

◆ EExtraEditor

Enumerator
EXTRAEDITOR_NONE 
EXTRAEDITOR_ENVELOPES 
EXTRAEDITOR_SERVER_SETTINGS 
EXTRAEDITOR_HISTORY 
NUM_EXTRAEDITORS 

◆ EPreviewState

enum CEditor::EPreviewState
private
Enumerator
PREVIEW_UNLOADED 
PREVIEW_LOADED 
PREVIEW_ERROR 

◆ EShowEnvelope

Enumerator
SHOWENV_NONE 
SHOWENV_SELECTED 
SHOWENV_ALL 

◆ EShowTile

Enumerator
SHOW_TILE_OFF 
SHOW_TILE_DECIMAL 
SHOW_TILE_HEXADECIMAL 

Constructor & Destructor Documentation

◆ CEditor()

CEditor::CEditor ( )
inline

Member Function Documentation

◆ AddFrontLayer()

void CEditor::AddFrontLayer ( )

◆ AddGroup()

void CEditor::AddGroup ( )

◆ AddImage()

bool CEditor::AddImage ( const char *  pFilename,
int  StorageType,
void *  pUser 
)
static

◆ AddQuadOrSound()

void CEditor::AddQuadOrSound ( )

◆ AddQuadsLayer()

void CEditor::AddQuadsLayer ( )

◆ AddSelectedLayer()

void CEditor::AddSelectedLayer ( int  LayerIndex)

◆ AddSound()

bool CEditor::AddSound ( const char *  pFileName,
int  StorageType,
void *  pUser 
)
static

◆ AddSoundLayer()

void CEditor::AddSoundLayer ( )

◆ AddSpeedupLayer()

void CEditor::AddSpeedupLayer ( )

◆ AddSwitchLayer()

void CEditor::AddSwitchLayer ( )

◆ AddTeleLayer()

void CEditor::AddTeleLayer ( )

◆ AddTileart()

void CEditor::AddTileart ( bool  IgnoreHistory = false)

◆ AddTileLayer()

void CEditor::AddTileLayer ( )

◆ AddTuneLayer()

void CEditor::AddTuneLayer ( )

◆ AdjustBrushSpecialTiles()

void CEditor::AdjustBrushSpecialTiles ( bool  UseNextFree,
int  Adjust = 0 
)

◆ Append()

bool CEditor::Append ( const char *  pFilename,
int  StorageType,
bool  IgnoreHistory = false 
)

◆ ApplyAlignments()

void CEditor::ApplyAlignments ( const std::vector< SAlignmentInfo > &  vAlignments,
int &  OffsetX,
int &  OffsetY 
)

◆ ApplyAxisAlignment()

void CEditor::ApplyAxisAlignment ( int &  OffsetX,
int &  OffsetY 
) const

◆ CallbackAddTileart()

bool CEditor::CallbackAddTileart ( const char *  pFilepath,
int  StorageType,
void *  pUser 
)
static

◆ CallbackAppendMap()

bool CEditor::CallbackAppendMap ( const char *  pFileName,
int  StorageType,
void *  pUser 
)
static

◆ CallbackCustomEntities()

bool CEditor::CallbackCustomEntities ( const char *  pFileName,
int  StorageType,
void *  pUser 
)
static

◆ CallbackOpenMap()

bool CEditor::CallbackOpenMap ( const char *  pFileName,
int  StorageType,
void *  pUser 
)
static

◆ CallbackSaveCopyMap()

bool CEditor::CallbackSaveCopyMap ( const char *  pFileName,
int  StorageType,
void *  pUser 
)
static

◆ CallbackSaveImage()

bool CEditor::CallbackSaveImage ( const char *  pFileName,
int  StorageType,
void *  pUser 
)
static

◆ CallbackSaveMap()

bool CEditor::CallbackSaveMap ( const char *  pFileName,
int  StorageType,
void *  pUser 
)
static

◆ CallbackSaveSound()

bool CEditor::CallbackSaveSound ( const char *  pFileName,
int  StorageType,
void *  pUser 
)
static

◆ CanFillGameTiles()

bool CEditor::CanFillGameTiles ( ) const

◆ Client()

class IClient * CEditor::Client ( ) const
inline

◆ CompareFilenameAscending()

static bool CEditor::CompareFilenameAscending ( const CFilelistItem pLhs,
const CFilelistItem pRhs 
)
inlinestatic

◆ CompareFilenameDescending()

static bool CEditor::CompareFilenameDescending ( const CFilelistItem pLhs,
const CFilelistItem pRhs 
)
inlinestatic

◆ CompareTimeModifiedAscending()

static bool CEditor::CompareTimeModifiedAscending ( const CFilelistItem pLhs,
const CFilelistItem pRhs 
)
inlinestatic

◆ CompareTimeModifiedDescending()

static bool CEditor::CompareTimeModifiedDescending ( const CFilelistItem pLhs,
const CFilelistItem pRhs 
)
inlinestatic

◆ ComputeAABBAlignments()

void CEditor::ComputeAABBAlignments ( const std::shared_ptr< CLayerQuads > &  pLayer,
const SAxisAlignedBoundingBox AABB,
int  OffsetX,
int  OffsetY,
std::vector< SAlignmentInfo > &  vAlignments 
) const

◆ ComputePointAlignments()

void CEditor::ComputePointAlignments ( const std::shared_ptr< CLayerQuads > &  pLayer,
CQuad pQuad,
int  QuadIndex,
int  PointIndex,
int  OffsetX,
int  OffsetY,
std::vector< SAlignmentInfo > &  vAlignments,
bool  Append = false 
) const

◆ ComputePointsAlignments()

void CEditor::ComputePointsAlignments ( const std::shared_ptr< CLayerQuads > &  pLayer,
bool  Pivot,
int  OffsetX,
int  OffsetY,
std::vector< SAlignmentInfo > &  vAlignments 
) const

◆ Config()

class CConfig * CEditor::Config ( ) const
inline

◆ ConfigManager()

class IConfigManager * CEditor::ConfigManager ( ) const
inline

◆ Console()

class IConsole * CEditor::Console ( ) const
inline

◆ DeleteSelectedLayer()

void CEditor::DeleteSelectedLayer ( )

◆ DeleteSelectedQuads()

void CEditor::DeleteSelectedQuads ( )

◆ DeselectEnvPoints()

void CEditor::DeselectEnvPoints ( )

◆ DeselectQuadPoints()

void CEditor::DeselectQuadPoints ( )

◆ DeselectQuads()

void CEditor::DeselectQuads ( )

◆ DoAudioPreview()

void CEditor::DoAudioPreview ( CUIRect  View,
const void *  pPlayPauseButtonId,
const void *  pStopButtonId,
const void *  pSeekBarId,
int  SampleId 
)

◆ DoButton_DraggableEx()

int CEditor::DoButton_DraggableEx ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect,
bool *  pClicked,
bool *  pAbrupted,
int  Flags,
const char *  pToolTip = nullptr,
int  Corners = IGraphics::CORNER_ALL,
float  FontSize = 10.0f 
)

◆ DoButton_Editor()

int CEditor::DoButton_Editor ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect,
int  Flags,
const char *  pToolTip 
)

◆ DoButton_Editor_Common()

int CEditor::DoButton_Editor_Common ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect,
int  Flags,
const char *  pToolTip 
)

◆ DoButton_Env()

int CEditor::DoButton_Env ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect,
const char *  pToolTip,
ColorRGBA  Color,
int  Corners 
)

◆ DoButton_Ex()

int CEditor::DoButton_Ex ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect,
int  Flags,
const char *  pToolTip,
int  Corners,
float  FontSize = EditorFontSizes::MENU,
int  Align = TEXTALIGN_MC 
)

◆ DoButton_FontIcon()

int CEditor::DoButton_FontIcon ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect,
int  Flags,
const char *  pToolTip,
int  Corners,
float  FontSize = 10.0f 
)

◆ DoButton_MenuItem()

int CEditor::DoButton_MenuItem ( const void *  pId,
const char *  pText,
int  Checked,
const CUIRect pRect,
int  Flags = 0,
const char *  pToolTip = nullptr 
)

◆ DoClearableEditBox()

bool CEditor::DoClearableEditBox ( CLineInput pLineInput,
const CUIRect pRect,
float  FontSize,
int  Corners = IGraphics::CORNER_ALL,
const char *  pToolTip = nullptr,
const std::vector< STextColorSplit > &  vColorSplits = {} 
)

◆ DoColorPickerButton()

void CEditor::DoColorPickerButton ( const void *  pId,
const CUIRect pRect,
ColorRGBA  Color,
const std::function< void(ColorRGBA Color)> &  SetColor 
)

◆ DoEditBox()

bool CEditor::DoEditBox ( CLineInput pLineInput,
const CUIRect pRect,
float  FontSize,
int  Corners = IGraphics::CORNER_ALL,
const char *  pToolTip = nullptr,
const std::vector< STextColorSplit > &  vColorSplits = {} 
)

◆ DoEditBoxDropdown()

template<typename T >
int CEditor::DoEditBoxDropdown ( SEditBoxDropdownContext pDropdown,
CLineInput pLineInput,
const CUIRect pEditBoxRect,
int  x,
float  MaxHeight,
bool  AutoWidth,
const std::vector< T > &  vData,
const FDropdownRenderCallback< T > &  pfnMatchCallback 
)

◆ DoEditorDragBar()

void CEditor::DoEditorDragBar ( CUIRect  View,
CUIRect pDragBar,
EDragSide  Side,
float *  pValue,
float  MinValue = 100.0f,
float  MaxValue = 400.0f 
)

◆ DoMapEditor()

void CEditor::DoMapEditor ( CUIRect  View)

◆ DoMapSettingsEditBox()

void CEditor::DoMapSettingsEditBox ( CMapSettingsBackend::CContext pContext,
const CUIRect pRect,
float  FontSize,
float  DropdownMaxHeight,
int  Corners = IGraphics::CORNER_ALL,
const char *  pToolTip = nullptr 
)

◆ DoPointDrag()

void CEditor::DoPointDrag ( const std::shared_ptr< CLayerQuads > &  pLayer,
CQuad pQuad,
int  QuadIndex,
int  PointIndex,
int  OffsetX,
int  OffsetY 
)

◆ DoProperties()

int CEditor::DoProperties ( CUIRect pToolbox,
CProperty pProps,
int *  pIds,
int *  pNewVal,
const std::vector< ColorRGBA > &  vColors = {} 
)

◆ DoPropertiesWithState()

template<typename E >
template SEditResult< ESoundProp > CEditor::DoPropertiesWithState ( CUIRect pToolbox,
CProperty pProps,
int *  pIds,
int *  pNewVal,
const std::vector< ColorRGBA > &  vColors = {} 
)

◆ DoQuad()

void CEditor::DoQuad ( int  LayerIndex,
const std::shared_ptr< CLayerQuads > &  pLayer,
CQuad pQuad,
int  Index 
)

◆ DoQuadEnvelopes()

void CEditor::DoQuadEnvelopes ( const std::vector< CQuad > &  vQuads,
IGraphics::CTextureHandle  Texture = IGraphics::CTextureHandle() 
)

◆ DoQuadEnvPoint()

void CEditor::DoQuadEnvPoint ( const CQuad pQuad,
int  QIndex,
int  pIndex 
)

◆ DoQuadKnife()

void CEditor::DoQuadKnife ( int  QuadIndex)

◆ DoQuadPoint()

void CEditor::DoQuadPoint ( int  LayerIndex,
const std::shared_ptr< CLayerQuads > &  pLayer,
CQuad pQuad,
int  QuadIndex,
int  v 
)

◆ DoSoundSource()

void CEditor::DoSoundSource ( int  LayerIndex,
CSoundSource pSource,
int  Index 
)

◆ DoToolbarLayers()

void CEditor::DoToolbarLayers ( CUIRect  Toolbar)

◆ DoToolbarSounds()

void CEditor::DoToolbarSounds ( CUIRect  Toolbar)

◆ DrawAABB()

void CEditor::DrawAABB ( const SAxisAlignedBoundingBox AABB,
int  OffsetX = 0,
int  OffsetY = 0 
) const

◆ DrawAxis()

void CEditor::DrawAxis ( EAxis  Axis,
CPoint OriginalPoint,
CPoint Point 
) const

◆ DrawPointAlignments()

void CEditor::DrawPointAlignments ( const std::vector< SAlignmentInfo > &  vAlignments,
int  OffsetX,
int  OffsetY 
) const

◆ Engine()

class IEngine * CEditor::Engine ( ) const
inline

◆ EnvelopeEval()

void CEditor::EnvelopeEval ( int  TimeOffsetMillis,
int  Env,
ColorRGBA Result,
size_t  Channels,
void *  pUser 
)
static

◆ EnvelopeToScreenX()

float CEditor::EnvelopeToScreenX ( const CUIRect View,
float  x 
) const

◆ EnvelopeToScreenY()

float CEditor::EnvelopeToScreenY ( const CUIRect View,
float  y 
) const

◆ EnvGetSelectedTimeAndValue()

std::pair< int, int > CEditor::EnvGetSelectedTimeAndValue ( ) const

◆ Explain()

const char * CEditor::Explain ( EExplanation  Explanation,
int  Tile,
int  Layer 
)
static

◆ ExplainDDNet()

const char * CEditor::ExplainDDNet ( int  Tile,
int  Layer 
)
static

◆ ExplainFNG()

const char * CEditor::ExplainFNG ( int  Tile,
int  Layer 
)
static

◆ ExplainVanilla()

const char * CEditor::ExplainVanilla ( int  Tile,
int  Layer 
)
static

◆ FilelistPopulate()

void CEditor::FilelistPopulate ( int  StorageType,
bool  KeepSelection = false 
)

◆ FillGameTiles()

void CEditor::FillGameTiles ( EGameTileOp  FillTile) const

◆ FindEnvPointIndex()

int CEditor::FindEnvPointIndex ( int  Index,
int  Channel 
) const

◆ FindNextFreeSwitchNumber()

int CEditor::FindNextFreeSwitchNumber ( )

◆ FindNextFreeTeleNumber()

int CEditor::FindNextFreeTeleNumber ( int  Index)

◆ FindSelectedQuadIndex()

int CEditor::FindSelectedQuadIndex ( int  Index) const

◆ FreeDynamicPopupMenus()

void CEditor::FreeDynamicPopupMenus ( )

◆ GetButtonColor()

ColorRGBA CEditor::GetButtonColor ( const void *  pId,
int  Checked 
)

◆ GetDragAxis()

CEditor::EAxis CEditor::GetDragAxis ( int  OffsetX,
int  OffsetY 
) const

◆ GetEntitiesTexture()

IGraphics::CTextureHandle CEditor::GetEntitiesTexture ( )

◆ GetFrontTexture()

IGraphics::CTextureHandle CEditor::GetFrontTexture ( )

◆ GetSelectedGroup()

std::shared_ptr< CLayerGroup > CEditor::GetSelectedGroup ( ) const

◆ GetSelectedLayer()

std::shared_ptr< CLayer > CEditor::GetSelectedLayer ( int  Index) const

◆ GetSelectedLayerType()

std::shared_ptr< CLayer > CEditor::GetSelectedLayerType ( int  Index,
int  Type 
) const

◆ GetSelectedQuads()

std::vector< CQuad * > CEditor::GetSelectedQuads ( )

◆ GetSelectedSource()

CSoundSource * CEditor::GetSelectedSource ( ) const

◆ GetSpeedupTexture()

IGraphics::CTextureHandle CEditor::GetSpeedupTexture ( )

◆ GetSwitchTexture()

IGraphics::CTextureHandle CEditor::GetSwitchTexture ( )

◆ GetTeleTexture()

IGraphics::CTextureHandle CEditor::GetTeleTexture ( )

◆ GetTextureUsageFlag()

int CEditor::GetTextureUsageFlag ( ) const
private

◆ GetTuneTexture()

IGraphics::CTextureHandle CEditor::GetTuneTexture ( )

◆ Graphics()

class IGraphics * CEditor::Graphics ( ) const
inline

◆ HandleAutosave()

void CEditor::HandleAutosave ( )

◆ HandleCursorMovement()

void CEditor::HandleCursorMovement ( )

◆ HandleMapDrop()

bool CEditor::HandleMapDrop ( const char *  pFilename,
int  StorageType 
)
overridevirtual

Implements IEditor.

◆ HandleWriterFinishJobs()

void CEditor::HandleWriterFinishJobs ( )

◆ HasUnsavedData()

bool CEditor::HasUnsavedData ( ) const
inlineoverridevirtual

Implements IEditor.

◆ HoverTiles()

const std::vector< CHoverTile > & CEditor::HoverTiles ( ) const
inline

◆ Init()

void CEditor::Init ( )
overridevirtual

Implements IEditor.

◆ Input()

class IInput * CEditor::Input ( ) const
inline

◆ InvokeFileDialog()

void CEditor::InvokeFileDialog ( int  StorageType,
int  FileType,
const char *  pTitle,
const char *  pButtonText,
const char *  pBasepath,
bool  FilenameAsDefault,
bool(*)(const char *pFilename, int StorageType, void *pUser)  pfnFunc,
void *  pUser 
)

◆ IsEnvelopeUsed()

bool CEditor::IsEnvelopeUsed ( int  EnvelopeIndex) const

◆ IsEnvPointSelected() [1/2]

bool CEditor::IsEnvPointSelected ( int  Index) const

◆ IsEnvPointSelected() [2/2]

bool CEditor::IsEnvPointSelected ( int  Index,
int  Channel 
) const

◆ IsInTriangle()

bool CEditor::IsInTriangle ( vec2  Point,
vec2  A,
vec2  B,
vec2  C 
)

◆ IsNonGameTileLayerSelected()

bool CEditor::IsNonGameTileLayerSelected ( ) const

◆ IsQuadCornerSelected()

bool CEditor::IsQuadCornerSelected ( int  Index) const

◆ IsQuadPointSelected()

bool CEditor::IsQuadPointSelected ( int  QuadIndex,
int  Index 
) const

◆ IsQuadSelected()

bool CEditor::IsQuadSelected ( int  Index) const

◆ IsTangentInPointSelected()

bool CEditor::IsTangentInPointSelected ( int  Index,
int  Channel 
) const

◆ IsTangentInSelected()

bool CEditor::IsTangentInSelected ( ) const

◆ IsTangentOutPointSelected()

bool CEditor::IsTangentOutPointSelected ( int  Index,
int  Channel 
) const

◆ IsTangentOutSelected()

bool CEditor::IsTangentOutSelected ( ) const

◆ IsTangentSelected()

bool CEditor::IsTangentSelected ( ) const

◆ IsVanillaImage()

bool CEditor::IsVanillaImage ( const char *  pImage)
static

◆ LayerSelectImage()

void CEditor::LayerSelectImage ( )

◆ LayerSelector()

CLayerSelector * CEditor::LayerSelector ( )
inline

◆ Load()

bool CEditor::Load ( const char *  pFilename,
int  StorageType 
)
overridevirtual

Implements IEditor.

◆ LoadCurrentMap()

void CEditor::LoadCurrentMap ( )

◆ MapDetails()

void CEditor::MapDetails ( )

◆ MapSettingsDropdownRenderCallback()

void CEditor::MapSettingsDropdownRenderCallback ( const SPossibleValueMatch Match,
char(&)  aOutput[128],
std::vector< STextColorSplit > &  vColorSplits 
)
static

◆ MapView() [1/2]

CMapView * CEditor::MapView ( )
inline

◆ MapView() [2/2]

const CMapView * CEditor::MapView ( ) const
inline

◆ OnActivate()

void CEditor::OnActivate ( )
overridevirtual

Implements IEditor.

◆ OnClose()

void CEditor::OnClose ( )
overridevirtual

Implements IEditor.

◆ OnDialogClose()

void CEditor::OnDialogClose ( )
overridevirtual

Implements IEditor.

◆ OnIngameMoved()

void CEditor::OnIngameMoved ( )
inlineoverridevirtual

Implements IEditor.

◆ OnMouseMove()

void CEditor::OnMouseMove ( vec2  MousePos)

◆ OnRender()

void CEditor::OnRender ( )
overridevirtual

Implements IEditor.

◆ OnUpdate()

void CEditor::OnUpdate ( )
overridevirtual

Implements IEditor.

◆ OnWindowResize()

void CEditor::OnWindowResize ( )
overridevirtual

Implements IEditor.

◆ PerformAutosave()

bool CEditor::PerformAutosave ( )

◆ PlaceBorderTiles()

void CEditor::PlaceBorderTiles ( )

◆ PopupAnimateSettings()

CUi::EPopupMenuFunctionResult CEditor::PopupAnimateSettings ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupEntities()

CUi::EPopupMenuFunctionResult CEditor::PopupEntities ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupEnvelopeCurvetype()

CUi::EPopupMenuFunctionResult CEditor::PopupEnvelopeCurvetype ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupEnvPoint()

CUi::EPopupMenuFunctionResult CEditor::PopupEnvPoint ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupEnvPointCurveType()

CUi::EPopupMenuFunctionResult CEditor::PopupEnvPointCurveType ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupEnvPointMulti()

CUi::EPopupMenuFunctionResult CEditor::PopupEnvPointMulti ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupEvent()

CUi::EPopupMenuFunctionResult CEditor::PopupEvent ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupGoto()

CUi::EPopupMenuFunctionResult CEditor::PopupGoto ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupGroup()

CUi::EPopupMenuFunctionResult CEditor::PopupGroup ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupImage()

CUi::EPopupMenuFunctionResult CEditor::PopupImage ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupLayer()

CUi::EPopupMenuFunctionResult CEditor::PopupLayer ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupMapInfo()

CUi::EPopupMenuFunctionResult CEditor::PopupMapInfo ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupMenuFile()

CUi::EPopupMenuFunctionResult CEditor::PopupMenuFile ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupMenuSettings()

CUi::EPopupMenuFunctionResult CEditor::PopupMenuSettings ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupMenuTools()

CUi::EPopupMenuFunctionResult CEditor::PopupMenuTools ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupNewFolder()

CUi::EPopupMenuFunctionResult CEditor::PopupNewFolder ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupPoint()

CUi::EPopupMenuFunctionResult CEditor::PopupPoint ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupProofMode()

CUi::EPopupMenuFunctionResult CEditor::PopupProofMode ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupQuad()

CUi::EPopupMenuFunctionResult CEditor::PopupQuad ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupSelectConfigAutoMap()

CUi::EPopupMenuFunctionResult CEditor::PopupSelectConfigAutoMap ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupSelectConfigAutoMapInvoke()

void CEditor::PopupSelectConfigAutoMapInvoke ( int  Current,
float  x,
float  y 
)

◆ PopupSelectConfigAutoMapResult()

int CEditor::PopupSelectConfigAutoMapResult ( )

◆ PopupSelectGametileOp()

CUi::EPopupMenuFunctionResult CEditor::PopupSelectGametileOp ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupSelectGametileOpInvoke()

void CEditor::PopupSelectGametileOpInvoke ( float  x,
float  y 
)

◆ PopupSelectGameTileOpResult()

int CEditor::PopupSelectGameTileOpResult ( )

◆ PopupSelectImage()

CUi::EPopupMenuFunctionResult CEditor::PopupSelectImage ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupSelectImageInvoke()

void CEditor::PopupSelectImageInvoke ( int  Current,
float  x,
float  y 
)

◆ PopupSelectImageResult()

int CEditor::PopupSelectImageResult ( )

◆ PopupSelectSound()

CUi::EPopupMenuFunctionResult CEditor::PopupSelectSound ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupSelectSoundInvoke()

void CEditor::PopupSelectSoundInvoke ( int  Current,
float  x,
float  y 
)

◆ PopupSelectSoundResult()

int CEditor::PopupSelectSoundResult ( )

◆ PopupSound()

CUi::EPopupMenuFunctionResult CEditor::PopupSound ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupSource()

CUi::EPopupMenuFunctionResult CEditor::PopupSource ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupSpeedup()

CUi::EPopupMenuFunctionResult CEditor::PopupSpeedup ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupSwitch()

CUi::EPopupMenuFunctionResult CEditor::PopupSwitch ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupTele()

CUi::EPopupMenuFunctionResult CEditor::PopupTele ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PopupTune()

CUi::EPopupMenuFunctionResult CEditor::PopupTune ( void *  pContext,
CUIRect  View,
bool  Active 
)
static

◆ PreparePointDrag()

void CEditor::PreparePointDrag ( const std::shared_ptr< CLayerQuads > &  pLayer,
CQuad pQuad,
int  QuadIndex,
int  PointIndex 
)

◆ QuadSelectionAABB()

void CEditor::QuadSelectionAABB ( const std::shared_ptr< CLayerQuads > &  pLayer,
SAxisAlignedBoundingBox OutAABB 
)

◆ RedoLastAction()

void CEditor::RedoLastAction ( )
private

◆ RefreshFilteredFileList()

void CEditor::RefreshFilteredFileList ( )

◆ RemoveTimeOffsetEnvelope()

void CEditor::RemoveTimeOffsetEnvelope ( const std::shared_ptr< CEnvelope > &  pEnvelope)

◆ RemoveUnusedEnvelopes()

void CEditor::RemoveUnusedEnvelopes ( )

◆ Render()

void CEditor::Render ( )

◆ RenderBackground()

void CEditor::RenderBackground ( CUIRect  View,
IGraphics::CTextureHandle  Texture,
float  Size,
float  Brightness 
) const

◆ RenderEditBoxDropdown()

template<typename T >
int CEditor::RenderEditBoxDropdown ( SEditBoxDropdownContext pDropdown,
CUIRect  View,
CLineInput pLineInput,
int  x,
float  MaxHeight,
bool  AutoWidth,
const std::vector< T > &  vData,
const FDropdownRenderCallback< T > &  pfnMatchCallback 
)

◆ RenderEditorHistory()

void CEditor::RenderEditorHistory ( CUIRect  View)

◆ RenderEnvelopeEditor()

void CEditor::RenderEnvelopeEditor ( CUIRect  View)

◆ RenderFileDialog()

void CEditor::RenderFileDialog ( )

◆ RenderImagesList()

void CEditor::RenderImagesList ( CUIRect  Toolbox)

◆ RenderLayers()

void CEditor::RenderLayers ( CUIRect  LayersBox)

◆ RenderMapSettingsErrorDialog()

void CEditor::RenderMapSettingsErrorDialog ( )

◆ RenderMenubar()

void CEditor::RenderMenubar ( CUIRect  Menubar)

◆ RenderModebar()

void CEditor::RenderModebar ( CUIRect  View)

◆ RenderMousePointer()

void CEditor::RenderMousePointer ( )

◆ RenderPressedKeys()

void CEditor::RenderPressedKeys ( CUIRect  View)

◆ RenderSavingIndicator()

void CEditor::RenderSavingIndicator ( CUIRect  View)

◆ RenderSelectedImage()

void CEditor::RenderSelectedImage ( CUIRect  View)

◆ RenderServerSettingsEditor()

void CEditor::RenderServerSettingsEditor ( CUIRect  View,
bool  ShowServerSettingsEditorLast 
)

◆ RenderSounds()

void CEditor::RenderSounds ( CUIRect  Toolbox)

◆ RenderStatusbar()

void CEditor::RenderStatusbar ( CUIRect  View,
CUIRect pTooltipRect 
)

◆ RenderTools()

CRenderTools * CEditor::RenderTools ( )
inline

◆ RenderTooltip()

void CEditor::RenderTooltip ( CUIRect  TooltipRect)

◆ ReplaceImage()

bool CEditor::ReplaceImage ( const char *  pFilename,
int  StorageType,
bool  CheckDuplicate 
)

◆ ReplaceImageCallback()

bool CEditor::ReplaceImageCallback ( const char *  pFilename,
int  StorageType,
void *  pUser 
)
static

◆ ReplaceSound()

bool CEditor::ReplaceSound ( const char *  pFileName,
int  StorageType,
bool  CheckDuplicate 
)

◆ ReplaceSoundCallback()

bool CEditor::ReplaceSoundCallback ( const char *  pFileName,
int  StorageType,
void *  pUser 
)
static

◆ Reset()

void CEditor::Reset ( bool  CreateDefault = true)

◆ ResetIngameMoved()

void CEditor::ResetIngameMoved ( )
inlineoverridevirtual

Implements IEditor.

◆ ResetMentions()

void CEditor::ResetMentions ( )
inlineoverridevirtual

Implements IEditor.

◆ ResetZoomEnvelope()

void CEditor::ResetZoomEnvelope ( const std::shared_ptr< CEnvelope > &  pEnvelope,
int  ActiveChannels 
)

◆ Save()

bool CEditor::Save ( const char *  pFilename)
overridevirtual

Implements IEditor.

◆ ScreenToEnvelopeDX()

float CEditor::ScreenToEnvelopeDX ( const CUIRect View,
float  DeltaX 
)

◆ ScreenToEnvelopeDY()

float CEditor::ScreenToEnvelopeDY ( const CUIRect View,
float  DeltaY 
)

◆ ScreenToEnvelopeX()

float CEditor::ScreenToEnvelopeX ( const CUIRect View,
float  x 
) const

◆ ScreenToEnvelopeY()

float CEditor::ScreenToEnvelopeY ( const CUIRect View,
float  y 
) const

◆ SelectEnvPoint() [1/2]

void CEditor::SelectEnvPoint ( int  Index)

◆ SelectEnvPoint() [2/2]

void CEditor::SelectEnvPoint ( int  Index,
int  Channel 
)

◆ SelectGameLayer()

void CEditor::SelectGameLayer ( )

◆ SelectLayer()

void CEditor::SelectLayer ( int  LayerIndex,
int  GroupIndex = -1 
)

◆ SelectNextLayer()

void CEditor::SelectNextLayer ( )

◆ SelectPreviousLayer()

void CEditor::SelectPreviousLayer ( )

◆ SelectQuad()

void CEditor::SelectQuad ( int  Index)

◆ SelectQuadPoint()

void CEditor::SelectQuadPoint ( int  QuadIndex,
int  Index 
)

◆ SelectTangentInPoint()

void CEditor::SelectTangentInPoint ( int  Index,
int  Channel 
)

◆ SelectTangentOutPoint()

void CEditor::SelectTangentOutPoint ( int  Index,
int  Channel 
)

◆ SetHotEnvelopePoint()

void CEditor::SetHotEnvelopePoint ( const CUIRect View,
const std::shared_ptr< CEnvelope > &  pEnvelope,
int  ActiveChannels 
)

◆ SetHotQuadPoint()

void CEditor::SetHotQuadPoint ( const std::shared_ptr< CLayerQuads > &  pLayer)

◆ ShowFileDialogError()

void CEditor::ShowFileDialogError ( const char *  pFormat,
  ... 
)

◆ SortFilteredFileList()

void CEditor::SortFilteredFileList ( )

◆ SortImages()

std::vector< int > CEditor::SortImages ( )

◆ Sound()

class ISound * CEditor::Sound ( ) const
inline

◆ Storage()

class IStorage * CEditor::Storage ( ) const
inline

◆ TextRender()

class ITextRender * CEditor::TextRender ( ) const
inline

◆ TileartCheckColors()

void CEditor::TileartCheckColors ( )

◆ ToggleEnvPoint()

void CEditor::ToggleEnvPoint ( int  Index,
int  Channel 
)

◆ ToggleSelectQuad()

void CEditor::ToggleSelectQuad ( int  Index)

◆ ToggleSelectQuadPoint()

void CEditor::ToggleSelectQuadPoint ( int  QuadIndex,
int  Index 
)

◆ TriangleArea()

float CEditor::TriangleArea ( vec2  A,
vec2  B,
vec2  C 
)

◆ Ui()

CUi * CEditor::Ui ( )
inline

◆ UiDoValueSelector()

SEditResult< int > CEditor::UiDoValueSelector ( void *  pId,
CUIRect pRect,
const char *  pLabel,
int  Current,
int  Min,
int  Max,
int  Step,
float  Scale,
const char *  pToolTip,
bool  IsDegree = false,
bool  IsHex = false,
int  Corners = IGraphics::CORNER_ALL,
const ColorRGBA pColor = nullptr,
bool  ShowValue = true 
)

◆ UndoLastAction()

void CEditor::UndoLastAction ( )
private

◆ UpdateColorPipette()

void CEditor::UpdateColorPipette ( )

◆ UpdateMentions()

void CEditor::UpdateMentions ( )
inlineoverridevirtual

Implements IEditor.

◆ UpdateTooltip()

void CEditor::UpdateTooltip ( const void *  pId,
const CUIRect pRect,
const char *  pToolTip 
)

◆ UpdateZoomEnvelopeX()

void CEditor::UpdateZoomEnvelopeX ( const CUIRect View)

◆ UpdateZoomEnvelopeY()

void CEditor::UpdateZoomEnvelopeY ( const CUIRect View)

◆ ZoomAdaptOffsetX()

void CEditor::ZoomAdaptOffsetX ( float  ZoomFactor,
const CUIRect View 
)

◆ ZoomAdaptOffsetY()

void CEditor::ZoomAdaptOffsetY ( float  ZoomFactor,
const CUIRect View 
)

Member Data Documentation

◆ m_ActiveExtraEditor

EExtraEditor CEditor::m_ActiveExtraEditor = EXTRAEDITOR_NONE

◆ m_aCursorTextures

IGraphics::CTextureHandle CEditor::m_aCursorTextures[ECursorType::NUM_CURSORS]

◆ m_aExtraEditorSplits

float CEditor::m_aExtraEditorSplits[NUM_EXTRAEDITORS] = {250.0f, 250.0f, 250.0f}

◆ m_aFileDialogCurrentFolder

char CEditor::m_aFileDialogCurrentFolder[IO_MAX_PATH_LENGTH]

◆ m_aFileDialogCurrentLink

char CEditor::m_aFileDialogCurrentLink[IO_MAX_PATH_LENGTH]

◆ m_aFileName

char CEditor::m_aFileName[IO_MAX_PATH_LENGTH]

◆ m_aFileNamePending

char CEditor::m_aFileNamePending[IO_MAX_PATH_LENGTH]

◆ m_aFileSaveName

char CEditor::m_aFileSaveName[IO_MAX_PATH_LENGTH]

◆ m_aFilesSelectedName

char CEditor::m_aFilesSelectedName[IO_MAX_PATH_LENGTH]

◆ m_AllowPlaceUnusedTiles

int CEditor::m_AllowPlaceUnusedTiles

◆ m_aMenuBackgroundTooltip

char CEditor::m_aMenuBackgroundTooltip[256]

◆ m_Animate

bool CEditor::m_Animate

◆ m_AnimateSpeed

float CEditor::m_AnimateSpeed

◆ m_AnimateStart

int64_t CEditor::m_AnimateStart

◆ m_AnimateTime

float CEditor::m_AnimateTime

◆ m_AnimateUpdatePopup

bool CEditor::m_AnimateUpdatePopup

◆ m_apSavedBrushes

std::shared_ptr<CLayerGroup> CEditor::m_apSavedBrushes[10]
private

◆ m_aQuadKnifePoints

vec2 CEditor::m_aQuadKnifePoints[4]

◆ m_aSavedColors

ColorRGBA CEditor::m_aSavedColors[8]

◆ m_aTileartFilename

char CEditor::m_aTileartFilename[IO_MAX_PATH_LENGTH]

◆ m_aTooltip

char CEditor::m_aTooltip[256] = ""

◆ m_BackgroundTexture

IGraphics::CTextureHandle CEditor::m_BackgroundTexture

◆ m_BrushColorEnabled

bool CEditor::m_BrushColorEnabled

◆ m_BrushDrawDestructive

bool CEditor::m_BrushDrawDestructive

◆ m_CheckerTexture

IGraphics::CTextureHandle CEditor::m_CheckerTexture

◆ m_ColorPickerPopupContext

CUi::SColorPickerPopupContext CEditor::m_ColorPickerPopupContext

◆ m_ColorPipetteActive

bool CEditor::m_ColorPipetteActive = false

◆ m_CurrentQuadIndex

int CEditor::m_CurrentQuadIndex

◆ m_CursorType

ECursorType CEditor::m_CursorType

◆ m_Dialog

int CEditor::m_Dialog

◆ m_EditorHistory

CEditorHistory CEditor::m_EditorHistory

◆ m_EditorWasUsedBefore

bool CEditor::m_EditorWasUsedBefore = false
private

◆ m_EntitiesTexture

IGraphics::CTextureHandle CEditor::m_EntitiesTexture
private

◆ m_EnvelopeEditorHistory

CEditorHistory CEditor::m_EnvelopeEditorHistory

◆ m_EnvOpTracker

CEnvelopeEditorOperationTracker CEditor::m_EnvOpTracker

◆ m_FileDialogFileNameInput

CLineInputBuffered<IO_MAX_PATH_LENGTH> CEditor::m_FileDialogFileNameInput

◆ m_FileDialogFileType

int CEditor::m_FileDialogFileType

◆ m_FileDialogFilterInput

CLineInputBuffered<IO_MAX_PATH_LENGTH> CEditor::m_FileDialogFilterInput

◆ m_FileDialogLastPopulatedStorageType

int CEditor::m_FileDialogLastPopulatedStorageType

◆ m_FileDialogMultipleStorages

bool CEditor::m_FileDialogMultipleStorages = false

◆ m_FileDialogNewFolderNameInput

CLineInputBuffered<IO_MAX_PATH_LENGTH> CEditor::m_FileDialogNewFolderNameInput

◆ m_FileDialogOpening

bool CEditor::m_FileDialogOpening

◆ m_FileDialogShowingRoot

bool CEditor::m_FileDialogShowingRoot = false

◆ m_FileDialogStorageType

int CEditor::m_FileDialogStorageType

◆ m_FilePreviewImage

IGraphics::CTextureHandle CEditor::m_FilePreviewImage

◆ m_FilePreviewImageHeight

int CEditor::m_FilePreviewImageHeight

◆ m_FilePreviewImageWidth

int CEditor::m_FilePreviewImageWidth

◆ m_FilePreviewSound

int CEditor::m_FilePreviewSound

◆ m_FilePreviewState

EPreviewState CEditor::m_FilePreviewState

◆ m_FilesSelectedIndex

int CEditor::m_FilesSelectedIndex

◆ m_FrontTexture

IGraphics::CTextureHandle CEditor::m_FrontTexture
private

◆ m_GuiActive

bool CEditor::m_GuiActive

◆ m_IngameMoved

bool CEditor::m_IngameMoved = false

◆ m_LargeLayerWasWarned

bool CEditor::m_LargeLayerWasWarned

◆ m_LayerSelector

CLayerSelector CEditor::m_LayerSelector
private

◆ m_Map

CEditorMap CEditor::m_Map

◆ m_MapEditorId

char CEditor::m_MapEditorId

◆ m_MapSettingsBackend

CMapSettingsBackend CEditor::m_MapSettingsBackend

◆ m_MapSettingsCommandContext

CMapSettingsBackend::CContext CEditor::m_MapSettingsCommandContext

◆ m_MapView

CMapView CEditor::m_MapView
private

◆ m_Mentions

int CEditor::m_Mentions = 0

◆ m_Mode

int CEditor::m_Mode

◆ m_MouseDeltaWorld

vec2 CEditor::m_MouseDeltaWorld = vec2(0.0f, 0.0f)

◆ m_MouseWorldNoParaPos

vec2 CEditor::m_MouseWorldNoParaPos = vec2(0.0f, 0.0f)

◆ m_MouseWorldPos

vec2 CEditor::m_MouseWorldPos = vec2(0.0f, 0.0f)

◆ m_MouseWorldScale

float CEditor::m_MouseWorldScale = 1.0f

◆ m_OffsetEnvelopeX

float CEditor::m_OffsetEnvelopeX

◆ m_OffsetEnvelopeY

float CEditor::m_OffsetEnvelopeY

◆ m_pBrush

std::shared_ptr<CLayerGroup> CEditor::m_pBrush

◆ m_pClient

class IClient* CEditor::m_pClient = nullptr
private

◆ m_pColorPickerPopupActiveId

const void* CEditor::m_pColorPickerPopupActiveId = nullptr

◆ m_pConfig

class CConfig* CEditor::m_pConfig = nullptr
private

◆ m_pConfigManager

class IConfigManager* CEditor::m_pConfigManager = nullptr
private

◆ m_pConsole

class IConsole* CEditor::m_pConsole = nullptr
private

◆ m_pContainerPanned

const void* CEditor::m_pContainerPanned

◆ m_pContainerPannedLast

const void* CEditor::m_pContainerPannedLast

◆ m_pEngine

class IEngine* CEditor::m_pEngine = nullptr
private

◆ m_pFileDialogButtonText

const char* CEditor::m_pFileDialogButtonText

◆ m_pFileDialogPath

char* CEditor::m_pFileDialogPath

◆ m_pFileDialogTitle

const char* CEditor::m_pFileDialogTitle

◆ m_pFileDialogUser

void* CEditor::m_pFileDialogUser

◆ m_pfnFileDialogFunc

bool(* CEditor::m_pfnFileDialogFunc) (const char *pFileName, int StorageType, void *pUser)

◆ m_pGraphics

class IGraphics* CEditor::m_pGraphics = nullptr
private

◆ m_pInput

class IInput* CEditor::m_pInput = nullptr
private

◆ m_PipetteColor

ColorRGBA CEditor::m_PipetteColor = ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f)

◆ m_PopupEnvelopeSelectedPoint

int CEditor::m_PopupEnvelopeSelectedPoint = -1

◆ m_PopupEventActivated

int CEditor::m_PopupEventActivated

◆ m_PopupEventType

int CEditor::m_PopupEventType

◆ m_PopupEventWasActivated

int CEditor::m_PopupEventWasActivated

◆ m_PopupMessageContexts

std::map<const char *, CUi::SMessagePopupContext *, SStringKeyComparator> CEditor::m_PopupMessageContexts

◆ m_pQuadsetPicker

std::shared_ptr<CLayerQuads> CEditor::m_pQuadsetPicker

◆ m_PreventUnusedTilesWasWarned

bool CEditor::m_PreventUnusedTilesWasWarned

◆ m_PreviewZoom

bool CEditor::m_PreviewZoom

◆ m_Prompt

CPrompt CEditor::m_Prompt
private

◆ m_pSound

class ISound* CEditor::m_pSound = nullptr
private

◆ m_pStorage

class IStorage* CEditor::m_pStorage = nullptr
private

◆ m_pTextRender

class ITextRender* CEditor::m_pTextRender = nullptr
private

◆ m_pTilesetPicker

std::shared_ptr<CLayerTiles> CEditor::m_pTilesetPicker

◆ m_QuadDragOriginalPoints

std::map<int, CPoint[5]> CEditor::m_QuadDragOriginalPoints
private

◆ m_QuadKnifeActive

bool CEditor::m_QuadKnifeActive

◆ m_QuadKnifeCount

int CEditor::m_QuadKnifeCount

◆ m_QuadTracker

CQuadEditTracker CEditor::m_QuadTracker

◆ m_RenderTools

CRenderTools CEditor::m_RenderTools
private

◆ m_ResetZoomEnvelope

bool CEditor::m_ResetZoomEnvelope

◆ m_SelectedEnvelope

int CEditor::m_SelectedEnvelope

◆ m_SelectedGroup

int CEditor::m_SelectedGroup

◆ m_SelectedImage

int CEditor::m_SelectedImage

◆ m_SelectedQuadEnvelope

int CEditor::m_SelectedQuadEnvelope

◆ m_SelectedQuadIndex

int CEditor::m_SelectedQuadIndex

◆ m_SelectedQuadPoint

int CEditor::m_SelectedQuadPoint

◆ m_SelectedQuadPoints

int CEditor::m_SelectedQuadPoints

◆ m_SelectedSound

int CEditor::m_SelectedSound

◆ m_SelectedSource

int CEditor::m_SelectedSource

◆ m_SelectedTangentInPoint

std::pair<int, int> CEditor::m_SelectedTangentInPoint

◆ m_SelectedTangentOutPoint

std::pair<int, int> CEditor::m_SelectedTangentOutPoint

◆ m_SelectEntitiesImage

std::string CEditor::m_SelectEntitiesImage

◆ m_ServerSettingsHistory

CEditorHistory CEditor::m_ServerSettingsHistory

◆ m_SettingsCommandInput

CLineInputBuffered<256> CEditor::m_SettingsCommandInput

◆ m_ShiftBy

int CEditor::m_ShiftBy

◆ m_ShowDetail

bool CEditor::m_ShowDetail

◆ m_ShowEnvelopePreview

EShowEnvelope CEditor::m_ShowEnvelopePreview

◆ m_ShowMousePointer

bool CEditor::m_ShowMousePointer

◆ m_ShowPicker

bool CEditor::m_ShowPicker

◆ m_ShowTileInfo

EShowTile CEditor::m_ShowTileInfo

◆ m_SortByFilename

int CEditor::m_SortByFilename = 1

◆ m_SortByTimeModified

int CEditor::m_SortByTimeModified = 0

◆ m_SpeedupAngle

short CEditor::m_SpeedupAngle

◆ m_SpeedupForce

unsigned char CEditor::m_SpeedupForce

◆ m_SpeedupMaxSpeed

unsigned char CEditor::m_SpeedupMaxSpeed

◆ m_SpeedupTexture

IGraphics::CTextureHandle CEditor::m_SpeedupTexture
private

◆ m_SwitchDelay

unsigned char CEditor::m_SwitchDelay

◆ m_SwitchNum

unsigned char CEditor::m_SwitchNum

◆ m_SwitchTexture

IGraphics::CTextureHandle CEditor::m_SwitchTexture
private

◆ m_TeleNumbers

std::map<int, unsigned char> CEditor::m_TeleNumbers

◆ m_TeleTexture

IGraphics::CTextureHandle CEditor::m_TeleTexture
private

◆ m_TileartImageInfo

CImageInfo CEditor::m_TileartImageInfo

◆ m_ToolbarPreviewSound

int CEditor::m_ToolbarPreviewSound

◆ m_ToolBoxWidth

float CEditor::m_ToolBoxWidth = 100.0f

◆ m_TuneTexture

IGraphics::CTextureHandle CEditor::m_TuneTexture
private

◆ m_TuningNum

unsigned char CEditor::m_TuningNum

◆ m_UI

CUi CEditor::m_UI
private

◆ m_UpdateEnvPointInfo

bool CEditor::m_UpdateEnvPointInfo

◆ m_ValidSaveFilename

bool CEditor::m_ValidSaveFilename

◆ m_vCompleteFileList

std::vector<CFilelistItem> CEditor::m_vCompleteFileList

◆ m_vComponents

std::vector<std::reference_wrapper<CEditorComponent> > CEditor::m_vComponents
private

◆ m_vHoverTiles

std::vector<CHoverTile> CEditor::m_vHoverTiles

◆ m_ViewSwitch

unsigned char CEditor::m_ViewSwitch

◆ m_ViewTeleNumber

unsigned char CEditor::m_ViewTeleNumber

◆ m_vpFilteredFileList

std::vector<const CFilelistItem *> CEditor::m_vpFilteredFileList

◆ m_vSelectedEnvelopePoints

std::vector<std::pair<int, int> > CEditor::m_vSelectedEnvelopePoints

◆ m_vSelectedLayers

std::vector<int> CEditor::m_vSelectedLayers

◆ m_vSelectedQuads

std::vector<int> CEditor::m_vSelectedQuads

◆ m_vSelectEntitiesFiles

std::vector<std::string> CEditor::m_vSelectEntitiesFiles

◆ m_WriterFinishJobs

std::deque<std::shared_ptr<CDataFileWriterFinishJob> > CEditor::m_WriterFinishJobs

◆ m_ZoomEnvelopeX

CSmoothValue CEditor::m_ZoomEnvelopeX

◆ m_ZoomEnvelopeY

CSmoothValue CEditor::m_ZoomEnvelopeY

◆ ms_DefaultPropColor

const ColorRGBA CEditor::ms_DefaultPropColor = ColorRGBA(1, 1, 1, 0.5f)
staticprivate

◆ ms_pUiGotContext

const void * CEditor::ms_pUiGotContext
static

The documentation for this class was generated from the following files: