-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
136 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2015-2022 Piperift - All rights reserved | ||
|
||
#pragma once | ||
|
||
#include <AST/Components/CDeclClass.h> | ||
#include <AST/Components/CDeclFunction.h> | ||
#include <AST/Components/CDeclFunctionLibrary.h> | ||
#include <AST/Components/CDeclNative.h> | ||
#include <AST/Components/CDeclStruct.h> | ||
#include <AST/Components/CDeclVariable.h> | ||
#include <AST/Components/CExprType.h> | ||
#include <AST/Components/CIdentifier.h> | ||
#include <AST/Components/CParent.h> | ||
#include <AST/Components/CType.h> | ||
#include <AST/Tree.h> | ||
#include <AST/Utils/TransactionUtils.h> | ||
#include <Pipe/Core/StringView.h> | ||
#include <Pipe/ECS/Filtering.h> | ||
|
||
|
||
namespace rift | ||
{ | ||
void DrawDetailsPanel(AST::Tree& ast, AST::Id typeId); | ||
} // namespace rift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright 2015-2022 Piperift - All rights reserved | ||
|
||
#include "AST/Id.h" | ||
#include "Components/CTypeEditor.h" | ||
#include "DockSpaceLayout.h" | ||
#include "imgui.h" | ||
#include "UI/Style.h" | ||
#include "UI/Widgets.h" | ||
#include "Utils/EditorStyle.h" | ||
#include "Utils/ElementsPanel.h" | ||
#include "Utils/FunctionGraphContextMenu.h" | ||
#include "Utils/Nodes.h" | ||
#include "Utils/Widgets.h" | ||
|
||
#include <AST/Utils/Expressions.h> | ||
#include <AST/Utils/Hierarchy.h> | ||
#include <AST/Utils/TypeUtils.h> | ||
#include <GLFW/glfw3.h> | ||
#include <IconsFontAwesome5.h> | ||
#include <Pipe/Core/EnumFlags.h> | ||
#include <Pipe/ECS/Filtering.h> | ||
#include <UI/UI.h> | ||
|
||
|
||
namespace rift | ||
{ | ||
void DrawDetailsPanel(AST::Tree& ast, AST::Id typeId) | ||
{ | ||
auto& editor = ast.Get<CTypeEditor>(typeId); | ||
|
||
if (!editor.showDetails) | ||
{ | ||
return; | ||
} | ||
|
||
const String windowName = Strings::Format("Details##{}", typeId); | ||
if (UI::Begin(windowName.c_str(), &editor.showDetails)) {} | ||
UI::End(); | ||
} | ||
} // namespace rift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters