20 std::vector<std::string> _fileNames;
21 char _newFileName[126] =
"";
22 std::vector<std::string> _pollingFileNames;
23 ImGui::ComboAutoSelectData _data;
24 int _currentOrientationIndex = 0;
26 bool _filesLoaded =
false;
28 bool _isSaving =
false;
29 bool _isStartingNew =
false;
30 bool _isLoading =
false;
31 bool _goingBack =
false;
36 bool _dockingEnabled =
true;
37 int _lastEntityDisplayed = 0;
39 float cameraRotationZ = 0;
40 int newNodesCount = 0;
41 int newLinksCount = 0;
43 float interpolation = 0.0f;
44 float interpolation_speed = 0.01f;
45 bool interpolation_running =
false;
48 bool isMouseInSecondColumn =
false;
52 int last_activeLayout = 0;
60 void setNewMap(
bool startingNew);
63 void setLoading(
bool loading);
65 void SetGoingBack(
bool goingBack);
67 void updateFileNamesInAssets();
69 void updatePollingFileNamesInAssets();
71 bool* getDockspaceRef();
74 bool isMouseOnWidget(
const std::string& widgetName);
75 void LeftColumnUIElement(
bool& renderDebug,
bool& clusterLayout, glm::vec2 mouseCoords, glm::vec2 mouseCoords2,
Manager& manager,
Entity* selectedEntity,
float(&backgroundColor)[4],
int cell_size);
76 void RightColumnUIElement(
Manager& manager,
float* nodeRadius);
78 void ReloadAccessibleFiles();
79 void SavingUI(
Map* map);
82 void MainMenuUI(std::function<
void()> onStartSimulator, std::function<
void()> onLoadSimulator, std::function<
void()> onExitSimulator);
83 void ShowAllEntities(
Manager& manager,
float& m_nodeRadius);
84 void availableFunctions();
85 void SceneViewport(uint32_t textureId, ImVec2& storedWindowPos, ImVec2& storedWindowSize);
86 void scriptResultsVisualization(
Manager& manager, std::vector<std::pair<Entity*, glm::vec3>>& m_selectedEntities);
87 std::string SceneTabs(
const std::vector<std::string>& graphNames, std::string& currentActive);
88 void ShowFunctionExecutionResults();
89 void updateIsMouseInSecondColumn();
90 void ShowEntityComponents(glm::vec2 mousePos,
Entity* displayedEntity,
Manager& manager);
91 void ShowSceneControl(glm::vec2 mousePos,
Manager& manager);
92 void StartPollingComponent(
Entity* entity,
const std::string& fileName);