Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
ValidationPanel.h
Go to the documentation of this file.
1/*
2 * Olympe Blueprint Editor - Validation Panel
3 *
4 * GUI panel for displaying validation errors and warnings
5 */
6
7#pragma once
8
9#include <string>
10#include <vector>
11#include "BlueprintValidator.h"
12
13namespace Olympe
14{
15 /**
16 * ValidationPanel - ImGui panel for validation error display
17 * Shows errors, warnings, and info messages from blueprint validation
18 */
20 {
21 public:
24
25 void Initialize();
26 void Shutdown();
27 void Render();
28
29 // Trigger validation of active graph
31
32 // Get current validation errors
33 const std::vector<ValidationError>& GetErrors() const { return m_Errors; }
34
35 // Check if there are any errors
36 bool HasErrors() const;
37 bool HasCriticalErrors() const;
38
39 private:
40 void RenderErrorList();
41 void RenderErrorSummary();
42
43 // Click handler to focus on node with error
45
46 private:
48 std::vector<ValidationError> m_Errors;
49 bool m_AutoValidate = true;
52 };
53}
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56
BlueprintValidator - Validates node graphs against catalogs Ensures type safety and parameter consist...
ValidationPanel - ImGui panel for validation error display Shows errors, warnings,...
BlueprintValidator m_Validator
const std::vector< ValidationError > & GetErrors() const
std::vector< ValidationError > m_Errors
void OnErrorClicked(const ValidationError &error)