i am able to set everything up, looks awesome, much better than default timer windows. i just have one problem.
i cannot think of any possibility to calculate the width depending on the title length (text) and i would need to set it for each one individually (with additional param).
any ideas?
What width are you talking about? Do you mean dialog width or text width? What are you talking about with "each one individually"? I know you are saying you need to set the width for each something but I don't understand what each something is.
Here are some possible solutions depending on what you mean:
If you are trying to center the text, use the action "Set Dialog Item Style" and choose one of the ModCenter font styles.
If you are trying to set the dialog width based upon the current amount of time I would suggest using "If Then Else" actions to check for the number of digits, for example, if I wanted to check if there are two digits, I would put TimeValue >= 10, for three digits it would be TimeValue >= 100, etc.
You could always name everything in string and when you set the text, use the "Convert String To Text" function, which exists, and then to set your dialog width, get the number of characters in your string with "String Length", but otherwise you're out of luck.
hello there,
i am able to set everything up, looks awesome, much better than default timer windows. i just have one problem.
i cannot think of any possibility to calculate the width depending on the title length (text) and i would need to set it for each one individually (with additional param).
any ideas?
Could you please clarify?
What width are you talking about? Do you mean dialog width or text width? What are you talking about with "each one individually"? I know you are saying you need to set the width for each something but I don't understand what each something is.
Here are some possible solutions depending on what you mean:
If you are trying to center the text, use the action "Set Dialog Item Style" and choose one of the ModCenter font styles.
If you are trying to set the dialog width based upon the current amount of time I would suggest using "If Then Else" actions to check for the number of digits, for example, if I wanted to check if there are two digits, I would put TimeValue >= 10, for three digits it would be TimeValue >= 100, etc.
Hope this helps. :)
@MoDTassadar: Go
having the tile wave 1 has a different length than Game is restarting and i want to scale the dialog window depending on that length.
No way to convert text to string, sorry.
You could always name everything in string and when you set the text, use the "Convert String To Text" function, which exists, and then to set your dialog width, get the number of characters in your string with "String Length", but otherwise you're out of luck.