Question about the getscreendimension() celx function
Posted: 02.04.2006, 15:01
The 'celestia:getscreendimension()' command for celx scripts only returns the width of the Celestia-window, and no height.
I thought the width and height were returned in a table, so I tried this :
But that didn't work...
Then, I had a look into Harald Schmidt's celx tutorial :
But none of them worked...
I also made a search on the forum, but that gave me no result... Does anybody have a clue about how to get both the width and height of the Celestia-window ?
I thought the width and height were returned in a table, so I tried this :
Code: Select all
dim = celestia:getscreendimension()
width = dim[1]
height = dim[2]
Then, I had a look into Harald Schmidt's celx tutorial :
So I tried several syntaxes like :/x, y/ celestia:getscreendimension()
Returns width and height of Celestia-window.
Code: Select all
width = dim.x
height = dim.y
width = dim(x)
height = dim(y)
width = dim[x]
height = dim[y]
width = dim.width
height = dim.height
But none of them worked...
I also made a search on the forum, but that gave me no result... Does anybody have a clue about how to get both the width and height of the Celestia-window ?