Table of Contents

Advertisement

250
APPENDIX E
toolbarVisible
Controls the display of the toolbar which appears at the lower edge of the Player area.
application.toolbarVisible = false; //turn it off for maximum viewable area
Methods
getView(index)
Returns the View object selected by the value of index. Currently the only valid value for index is 0.
view = application.getView(0);
dump(view);
getViewCount()
Returns the number of views in the application. Currently will always return 1.
numViews = application.getViewCount();
chat.print("There is/are " + numViews + " view(s).");

View

The View module is an object that represents a 2-D rendered window that is being used to image a 3-D world. The
module properties include the size of the rendered area and the current mouse coordinates relative to the view. The
View module also contains an array of cameras that are being used to image the world onto the 2-D view plane
(Currently there is exactly one camera per view.)
Properties
type
The type of the application returned at "View".
if (foo.type == 'View') { ... }
imageWidth
The width of the current rendered view in pixels.
view = application.getView(0);
chat.print("Current rendered image width = " + view.imageWidth);
imageHeight
The height of the current rendered view in pixels.
view = application.getView(0);
chat.print("Current rendered image height = " + view.imageHeight);
mouseX
The X coordinate of the pixel that the mouse cursor is over in the rendered view. 0 represents the left side of the
screen, with the value increasing as the cursor goes to the right.
view = application.getView(0);

Advertisement

Table of Contents
loading

Table of Contents