-
Notifications
You must be signed in to change notification settings - Fork 54
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 Zeus and 3DEN comments #785
base: master
Are you sure you want to change the base?
Conversation
You should implement the modules/context menu actions in this component. In terms of tooltips, maybe you could try using 2D icons similarly to how the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some initial style comments.
What is the reason for not using the GUI controls for drawing the icons as well? Not suggesting that is the best approach but curious on whether its just for visuals?
The icons are GUI controls. Do you want to turn the text (comment title and creator) into GUI controls? If so, I thought about it. I'll need to try it out first, as I'm not sure how it will look visually with the scaling at distance. So for now I'm using |
Just a couple things to consider:
As for the text scaling, I would say let's try to mimic the behaviour of 3DEN. |
Does this handle a 3DEN comment being deleted by a client and then later another client connects? Is that comment also deleted for the JIP client? |
This has some similarities with the |
No, I think it doesn't. Good catch. I will do a MP test when thr PR is close to merging.
Yeah, I already try to implement this similar to that component. |
Tried it out in-game. Works pretty well in terms of the visuals👍. I messed around with some of the refactoring/cleanup I commented about earlier but ran out of time. Here is the diff in case you want to get a better idea of what I meant: Timi007/ZEN@comments...zen-mod:ZEN:comments Pretty much what you have, mainly just using a HashMap and code style similar to the rest of the code base. |
Oh, I just pushed a commit with my changed including editing comments. I will incorporate your code style into my changes. |
Instead of the ignore string, we could add a 3DEN checkbox attribute to comments for ignoring them. |
Do you know how to change the cursor in Zeus? Also, I think a mechanic for locking the position of comments would be nice. Do you have any ideas about how this mechanic could look like? |
I don't there is a way to change the cursor. In terms of locking, probably just a checkbox in the dialog. |
Hello everyone! I would like to donate a feature from one of my mods.
When merged this pull request will:
How it works
All comments get stored in as a scenario attribute that is available during mission runtime. Currently, only the comment name is displayed and the description/tooltip is ignored. For it to work, the mission must be saved before preview. You can also hide an 3DEN comment by including the directive
#ZEN_IGNORE#
in the description/tooltip of the comment.TODO
I also plan on adding the ability to create comments as Zeus during mission runtime. I think a module and context menu action would be nice. How do you handle internal dependencies? Should the module and action be implemented in their respective addons
modules
andcontext_actions
? Or should they be implemented in this addon and depend onmodules
andcontext_menu
for the classes and API?Furthermore, I cannot store the comments without saving (I thought I could do it with the new
OnBeforeMissionPreview
event, but it does not work for me). And displaying tooltips on 3D icons is also not possible. So if anyone has some idea on how to solve these problems, I would be grateful.