How would I get the value of each of these?
I've tried:
mob/verb
Get_Map_Width()
var/bla = winget(usr,"mainwindow.map","width")
usr << bla
But it doesn't give me a result.
ID:159032
May 26 2009, 6:45 am
|
|
How would I get the value of each of these? I've tried: mob/verb But it doesn't give me a result. |
In response to Evi of au
|
|
var/bla = winget(usr,"mainwindow.map","size")
Doing that gets me the size in pixels, now it's just seperating them that's the problem. I want to use one verb that will output the width only, and another that will output the height. in pixels. Look in the first post to see what width and height I am talking about. |
In response to Howey
|
|
You'll need to parse the returned text string (which is of the form "100x100")
var/sizestr = winget(usr,"mapwindow.map","size") // get map size as string 000x000 |
Your map is "map1".