Skip to content

Commit

Permalink
Node graph minimap
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Sep 6, 2021
1 parent 6cf0780 commit 0b33175
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion NoiseTool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ CPMAddPackage(
CPMAddPackage(
NAME imnodes
GITHUB_REPOSITORY Auburn/imnodes
GIT_TAG c986af0bbaf45f2adadabca42f48e972e8339dd5
GIT_TAG a295b4af69045645d657363d5d135e2d8a3785f6
)

# Use modules from magnum-integration since it has everything we need
Expand Down
4 changes: 4 additions & 0 deletions NoiseTool/FastNoiseNodeEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ FastNoiseNodeEditor::FastNoiseNodeEditor() :
ImGui::StyleColorsDark();
ImNodes::StyleColorsDark();

ImNodes::GetStyle().MiniMapPadding = ImVec2( 8, 8 );

#ifdef _DEBUG
mNodeBenchmarkMax = 1;
#endif
Expand Down Expand Up @@ -602,6 +604,8 @@ void FastNoiseNodeEditor::Draw( const Matrix4& transformation, const Matrix4& pr

DoNodes();

ImNodes::MiniMap( 0.2f, ImNodesMiniMapLocation_BottomLeft );

ImNodes::EndNodeEditor();

CheckLinks();
Expand Down

0 comments on commit 0b33175

Please sign in to comment.