I have a variable (type:file-image) and I want to use it to text tag with <img path="path"/>. but I can't change the variable to text tag. please help me T.T
You're probably going to need to innovate a little to use this. ie. Create a GUI function that allows you to directly input your image string, width and height. If you're using custom script, just call it directly.
I have a variable that type is file - image. (I have a Korean galaxy editor, so I don't know exactly call it.)
and I want to put it into text tag. but I can't find a function that replace "file - image" type to "string or text" type.
Would it be possible for you to post a screenshot (GUI) and post the galaxy script of the code you're looking at (Ctrl+F11)? It should give a clearer picture of what you're attempting to do. From what I remember, images are usually stored as a type of string. It could just be that instead of string, it displays as file - image.
Well, that's what I theorize as I've always been calling images with strings with custom script. I'm just pulling this from the top of my head but
Asset\\Textures\\white32.dds
is an example of an image string. So if you have an image type that is stored in a similar manner, its very likely that the file - image is indeed a type of string.
If you named your image variable "IMAGE", the GUI will automatically name it lv_IMAGE for you. so when you call the custom script, if you saved your image to IMAGE, you would need to write the following script to return you a string with the text tag thingy.
I have a variable (type:file-image) and I want to use it to text tag with <img path="path"/>. but I can't change the variable to text tag. please help me T.T
@IUPrime: Go
You're probably going to need to innovate a little to use this. ie. Create a GUI function that allows you to directly input your image string, width and height. If you're using custom script, just call it directly.
@FuzzYD: Go
sorry, but I wasn't mean that...
I have a variable that type is file - image. (I have a Korean galaxy editor, so I don't know exactly call it.) and I want to put it into text tag. but I can't find a function that replace "file - image" type to "string or text" type.
Is there really no way?
@IUPrime: Go
Would it be possible for you to post a screenshot (GUI) and post the galaxy script of the code you're looking at (Ctrl+F11)? It should give a clearer picture of what you're attempting to do. From what I remember, images are usually stored as a type of string. It could just be that instead of string, it displays as file - image.
@FuzzYD: Go
Oh, File-Image type can be string in custom script editor?
@IUPrime: Go
Well, that's what I theorize as I've always been calling images with strings with custom script. I'm just pulling this from the top of my head but
is an example of an image string. So if you have an image type that is stored in a similar manner, its very likely that the file - image is indeed a type of string.
If you named your image variable "IMAGE", the GUI will automatically name it lv_IMAGE for you. so when you call the custom script, if you saved your image to IMAGE, you would need to write the following script to return you a string with the text tag thingy.
@FuzzYD: Go
I understood it. Thanks.
but... I used your script and editor give me error... I just copy and paste it..
I wrote it in GUI's new custom script.
I don't know about custom script at all... it is right?
I removed i2s functions and there are no errors :)
Thank you so much
@IUPrime: Go
Omg.. my bad. I forgot. i2s is basically just integer to string. I was using a custom function.
But yes, you're welcome :)