-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an optional minimap to GraphEdit #672
Comments
I can code review your plan. Can you post design mockups of the ui? How will you treat comment groups? Edited for more details. |
Is the image in OP not enough? It's unfinished, as I keep working on it in my GDScript implementation still, but the idea is as shown. I think that the visibility of the minimap can be controlled by a new button in the top HBox of the
That I have to look into, as I've not used them. Do you have any suggestions or concerns? |
Colors are associated with colors of Which is why I've pointed out that maybe |
Do not like customization taking place of defaults. I mean use one type of shape for each type. Like green will be diamond, yellow will be square, purple will be hexagon, etc. |
Well, inferring a shape from a color can certainly be an option, but I'm not sure how well can that scale. Even circles can look distorted at that size. I also don't understand at all what do you mean by this:
You don't appreciate having a setting for minimap representation of the node, that is user accessible? For things like visual scripting and visual shader it won't be exposed, it would be configured in engine, where the nodes are defined. |
Having a minimap representation of the node that is usable need[s] to be exposed, but that is not an excuse for not choosing what it looks like for the people who don't modify their settings. For the color issue, all I'm saying is that the color on the nodes are effectively meaningless because of color blindness and etc issues. Edited: The existing text preview uses the shape of the paragraphs. |
Describe the project you are working on:
Editor tools for my game with a logic graph.
Describe the problem or limitation you are having in your project:
Working with a large enough graph can be a challenge, as you can get lost between different nodes. Zooming out is an option, but it's not really that handy or fast. Plus, at zoom levels other than default text can look ugly and unreadable due to scaling. So it's not really possible to work at those zoom levels permanently.
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
An overview in a form of a minimap can be used to make
GraphEdit
more accessible with larger graphs. It gives a user a complete look at the graph with immediate feedback on their actions and provides a quick navigation option.Here is an example I've made in GDScript:
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
There are several problems that need to be solved along the way, but in concept it should work like this:
GraphEdit
has one more child, a Panel, that is semi-transparent;Not shown in the image above is a rectangle representing "camera", or rather
offset
ofGraphEdit
. Additionally, clicks on the minimap should move the offset to the location corresponding to the click.If this enhancement will not be used often, can it be worked around with a few lines of script?:
It can be created with a script, at least partially. However, similar to code editor minimap some built-in graph editors (Visual Script, Visual Shader) can benefit from it as an option. And the implementation feels like a natural extension of the
GraphEdit
itself, so making it part of the engine allows everyone to rely on it and use in their own projects.Is there a reason why this should be core and not an add-on in the asset library?:
See above.
P.S.: I can work on this myself.
The text was updated successfully, but these errors were encountered: