-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Custom information on characters #2352
Comments
You can already do this: https://docs.dialogic.pro/custom-portraits.html#4-export-overrides |
Hey, I don't quite understand how custom portraits can be used for other custom data. I am not intending on using portraits for my game, at least not the kinds of ones tutorials show, where a portrait of the character is shown on the side of the screen. Instead, I'd like for appearances of the character to be in the game world, independent of the Dialogue that is currently playing, but I have to create these instances from code as the level is imported from another program. I'll of course try it out :) Thanks for the suggestion. I'll update this if it works well and if it doesn't, too, |
@lenny991 It may not be ideal, but for my game we extended the DialogicCharacter class. We made minor changes to dialogic UI to show these settings in the character editor, but if you just export the variables they will show up in the inspector in Godot. Screenshot 1 shows the minor tweaks, screenshot 2 shows the inspector. Could be interesting if the UI automatically detected these additional variables and added them to the character view. Maybe that would be a good use for the custom_info variable that currently stores sound and style data? It is already a dictionary so it can store arbitrary data. |
@firedfromlife That would be quite ideal. I've now stuck to just giving the characters extra variables too and it seems to work, but it'd be great to have them show up in the GUI. I'm not very used to doing open source things, but I potentially could implement this, if given permission of course. It doesn't sound like a big hassle and it'd enrich many of our experiences with the extension. (Or mine at least ;) ) |
Personally, I am just a contributor myself.
Lastly, I think this feature would be very nice to have, but I think it could be implemented in multiple ways:
I think the third option would be best. Option 1 allows for basically just scanning the class and you can check variable types, pretty easy to generate UI based in that. custom_info on the other hand would likely require some amount of metadata to be stored with the values (datatype for sure, maybe what kind of UI element?). This would for sure want some standardization. @lenny991 This would likely not be a small thing to implement. @Jowan-Spooner what are your thoughts? |
Hey, here is my branch: https://github.com/lenny991/dialogic-char-info I dunno if you maintainers care to add this feature but it is fully implemented here. If it is approved though, I'll open a PR. Just drop me a mention. It's definitely not perfect, lacks arrays and dictionaries (which probably would be quite easy to add), but I'll hold off on that until this gets approved, if it does. Also the right click menu can only be accessed by right clicking on empty space somewhere in the property. I'm thinking this could be changed to be so that right clicking on the name would have this effect. I'll attempt to make a little jam game with this, to see if it's actually working well. It's not tested all too much. The editor parts should work quite well though.
Also also have to mention, now that I start the branch in a new project I am seeing parser errors so I'll still have to investigate this. (and definitely have to work on this further a bit before any PR, as this still lacks a real way to get the data of characters through code) |
Is your feature request related to a problem? Please describe.
I require some custom data in my game. I of course can do this separately from Dialogic but it would be quite great to use this otherwise great extension for the same purpose, as the UI is so good and having only one workflow for many things is useful.
Describe the solution you'd like
I would find it extremely useful for Dialogic to have a section in the character view for some custom data. This could just be a dictionary, the values of which could then be customized to be arrays, dictionaries, ints, strings, bools, vectors and whatever.
Describe alternatives you've considered
I am considering now just making separate resource to save in my project to keep track of this custom data, but it is not ideal.
Additional context
Also, yes, I'm still quite unfamiliar with this extension as I only started using it yesterday so if there is some workflow to get the same desired result, please inform me. Thanks!
The text was updated successfully, but these errors were encountered: