1. The editor gives an error message that says: "Scri: [TriggerControlButtonTemplate] does not have a valid width." If i change the Image Type of the image dialog item from Border to None, the error will not appear (but in this case, the image won't work like it should)
2. The image does not change, at all. Even if I do this:
P.S. The dialog item Image does get created, it gets positioned well, sized well, anchored well.... only thing that does not work is changing the picture and the issue #1.
generally when you create a dialog item in a panel you dont have the options to set height and width or anchor or image settings
it should look like this
create image in panel
set image size
set image anchor
set image image
set image type
and so on
there's a similar action that creates a dialog item from a template in a panel that gives the additional options. I didn't have much luck when I had used that option either.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
And that is precisely why I am using an Action definition that sums up those actions you just named into 1 action which I can use to create a dialog item within a panel.
What the action definition does is takes parameters (Panel,Width,Height, Anchor, Offset X, Offset Y, Image, Image Type and does all the setting on it's own, isntead of me having to do them every time i create an image.
The image itself works, it is there, formatted as it should be, everything is fine, i just cannot change it, and i get an error when the game starts.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Huh, I ran into a roadbump while working on my map, here goes the code:
Variables used:
What follows is an Action Definition for creating a Dialog Item within a panel and adding values to it
And afterwards a code that is trying to change the image file
Okay so here are the issues I've been having:
Two issues arouse from the following code:
1. The editor gives an error message that says: "Scri: [TriggerControlButtonTemplate] does not have a valid width." If i change the Image Type of the image dialog item from Border to None, the error will not appear (but in this case, the image won't work like it should)
2. The image does not change, at all. Even if I do this:
P.S. The dialog item Image does get created, it gets positioned well, sized well, anchored well.... only thing that does not work is changing the picture and the issue #1.
@mitarskoro91: Go
generally when you create a dialog item in a panel you dont have the options to set height and width or anchor or image settings
it should look like this
and so on
there's a similar action that creates a dialog item from a template in a panel that gives the additional options. I didn't have much luck when I had used that option either.
And that is precisely why I am using an Action definition that sums up those actions you just named into 1 action which I can use to create a dialog item within a panel.
What the action definition does is takes parameters (Panel,Width,Height, Anchor, Offset X, Offset Y, Image, Image Type and does all the setting on it's own, isntead of me having to do them every time i create an image.
The image itself works, it is there, formatted as it should be, everything is fine, i just cannot change it, and i get an error when the game starts.