Hello,
Using the SRD HUD Maker Ultra Pro, I'm trying to retrieve a component's Param Name or Value to use it directly in a component code box.
I'll try to explain myself in detail for clarification.
----------------------------
This is the window where you create a new Component that will hold elements like Texts, Images, or even other Components.
This component on creation can receive a Param Name/Value and its value can be used later.
----------------------------
In another dedicated Component, I create 2 elements based on the previous Component. These elements cannot be edited in the same way here as they're some sort of direct copy from the Parent Component. They hold Custom Parameters still, and each child component can have its value changed (here the value is 2 on the second element, the one on the left holds the value 1).
----------------------------
My question is this one :
When I edit the elements from the Parent Component, is there a way in the code box to get the Parameter Name/Value that is inputed when they're children?
The goal is that during gameplay, I want to use the inputed Param Value (1, 2, 3...) to dictate what a text component will display. I want to have several objects from an array display their value, and the text box should retrieve something like
$gameVariables.value(50)[IndexFromParamValue].name.
So during gameplay, each element will display the corresponding values of an array (in that case the array represents items with a name, picture name, category...).
I know that Param Values can be used to dynamically change Actor pictures for example
(see video @ 1:10)
I can provide the plugin code if necessary, the licensing looks fair about this.
Thanks.
Using the SRD HUD Maker Ultra Pro, I'm trying to retrieve a component's Param Name or Value to use it directly in a component code box.
I'll try to explain myself in detail for clarification.
----------------------------
This is the window where you create a new Component that will hold elements like Texts, Images, or even other Components.
This component on creation can receive a Param Name/Value and its value can be used later.
----------------------------
In another dedicated Component, I create 2 elements based on the previous Component. These elements cannot be edited in the same way here as they're some sort of direct copy from the Parent Component. They hold Custom Parameters still, and each child component can have its value changed (here the value is 2 on the second element, the one on the left holds the value 1).
----------------------------
My question is this one :
When I edit the elements from the Parent Component, is there a way in the code box to get the Parameter Name/Value that is inputed when they're children?
The goal is that during gameplay, I want to use the inputed Param Value (1, 2, 3...) to dictate what a text component will display. I want to have several objects from an array display their value, and the text box should retrieve something like
$gameVariables.value(50)[IndexFromParamValue].name.
So during gameplay, each element will display the corresponding values of an array (in that case the array represents items with a name, picture name, category...).
I know that Param Values can be used to dynamically change Actor pictures for example
(see video @ 1:10)
I can provide the plugin code if necessary, the licensing looks fair about this.
Thanks.
