Scalars get = 0, = false or = nullptr. Standard containers and strings rely on their constructors.
Other types get = {} or = value, and lists keep = {...}.
glm types are left alone until they're replaced.
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "ui/documents.h"
|
|
#include "ui/autosave_restore.h"
|
|
#include "ui/taskbar.h"
|
|
#include "ui/animation_preview.h"
|
|
#include "ui/panel.h"
|
|
#include "ui/shaders.h"
|
|
#include "ui/spritesheet_editor.h"
|
|
#include "ui/timeline.h"
|
|
|
|
class Dockspace
|
|
{
|
|
AnimationPreview animationPreview;
|
|
bool isCanvasFocused = false;
|
|
float reloadTime = 0;
|
|
AnimationsPanel animations = {};
|
|
RegionsPanel regions = {};
|
|
PanelState events = {};
|
|
FramePropertiesPanel frameProperties = {};
|
|
PanelState layers = {};
|
|
PanelState nulls = {};
|
|
ShadersPanel shaders = {};
|
|
SpritesheetEditor spritesheetEditor;
|
|
SpritesheetsPanel spritesheets = {};
|
|
PanelState sounds = {};
|
|
PanelState libraries = {};
|
|
Timeline timeline;
|
|
PopupHelper toolsColorEditPopup = PopupHelper(LABEL_TOOLS_COLOR_EDIT_POPUP, POPUP_TO_CONTENT, POPUP_BY_ITEM);
|
|
AutosaveRestore autosaveRestore;
|
|
|
|
public:
|
|
bool is_canvas_focused_get() const;
|
|
void tick(Manager&, Settings&, float);
|
|
void update(Taskbar&, Documents&, Manager&, Settings&, Resources&, Dialog&, Clipboard&);
|
|
};
|