I'm trying to create some dialog items with buttons that I need to have the same image as some buttons in the data editor. For example I might have an ability that uses a button in the data editor, I want to show that buttons image in my own dialog.
I can do it all manually but it's painfully slow and if I ever change the button image I need to go and change it in the trigger as well, so it's not very maintenance friendly.
There doesn't seem to be any trigger functions for it, can I use a custom script to link to the buttons image via the raw data name perhaps?
I have my interface working, it shows an image for example "Assets\Textures\btn-command-move.dds"
However I was wondering if it is possible to use a gamelink/reference of some sort to reference a Button Object (data editor) and use the same image the button is using (rather then selecting the image separately).
So when I add a dialog image at the moment, I can click the trigger to select the image, pick custom script and actually enter the image asset directly "Assets\Textures\btn-command-move.dds", but I would rather have it reference the button "Button/MyButtonId/CButton_Name" so that if I ever change the Button Object image (data editor), I don't have to go and update the trigger.
I'm just not sure the Custom Script function that I need to use to extract the image paramater from the button object, or if it's actually possible.
Okay figured this out, you can use the Catalog Field Value Get function to get ANY property of ANY data object. So it will be extremely useful.
Now I can set my triggers up to obtain the icon used for the button, and I only have to change it in one place (the button data object) instead of multiple places.
Here is an example:
Variable - Set buttonImage = (Value of Buttons buttonDataName "Icon" for player Any Player)
Hi all,
I'm trying to create some dialog items with buttons that I need to have the same image as some buttons in the data editor. For example I might have an ability that uses a button in the data editor, I want to show that buttons image in my own dialog.
I can do it all manually but it's painfully slow and if I ever change the button image I need to go and change it in the trigger as well, so it's not very maintenance friendly.
There doesn't seem to be any trigger functions for it, can I use a custom script to link to the buttons image via the raw data name perhaps?
Thanks.
Hmm I'm looking to put something like "Button/MyButtonId/CButton_Name" in the Custom script value for an image, any ideas?
you want to make a button look like an image? this seems to be the only question i can answer :O
Sorry.
I have my interface working, it shows an image for example "Assets\Textures\btn-command-move.dds"
However I was wondering if it is possible to use a gamelink/reference of some sort to reference a Button Object (data editor) and use the same image the button is using (rather then selecting the image separately).
So when I add a dialog image at the moment, I can click the trigger to select the image, pick custom script and actually enter the image asset directly "Assets\Textures\btn-command-move.dds", but I would rather have it reference the button "Button/MyButtonId/CButton_Name" so that if I ever change the Button Object image (data editor), I don't have to go and update the trigger.
I'm just not sure the Custom Script function that I need to use to extract the image paramater from the button object, or if it's actually possible.
OK i get it now but sorry i dont know how to implement it :( gl
Thanks anyway, I wish there was a way to access more data object properties from triggers, would make things alot quicker :(
Okay figured this out, you can use the Catalog Field Value Get function to get ANY property of ANY data object. So it will be extremely useful.
Now I can set my triggers up to obtain the icon used for the button, and I only have to change it in one place (the button data object) instead of multiple places.
Here is an example:
Variable - Set buttonImage = (Value of Buttons buttonDataName "Icon" for player Any Player)