Owning Portal Object Related System Attributes

From Planimate Knowledge Base
Revision as of 14:19, 14 December 2008 by Tony.Griffith (talk | contribs) (New page: == Owning Portal Object Related System Attributes == <onlyinclude> These system attributes enable a subsystem to access its owning portals graphics without having to use a label list. </...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Owning Portal Object Related System Attributes

These system attributes enable a subsystem to access its owning portals graphics without having to use a label list.



Name

Read / Write

Description



CurrentScreenStatus

R/W

This is the Current State Value of the Portal Object above the subsystem in which this attribute is set or read. In this case, this Portal does not have to be part of the _Model Objects List, but it has to have its States customized.


OwningPortalLocation

R

Returns you the index of the first portal above you in the hierarchy that is part of the _Model Objects system Label List (i.e. that has been exported).


CurrentPortalX  /  CurrentPortalY

R/W

Setting these attributes will move a Portal into a new position.

There are other mechanisms to do this kind of repositioning also, which may be more appropriate.

To make use of this attribute, you have to be inside the actual portal itself.

Usually you will message or broadcast into the portal to get it move. Its main usefulness is that you can move a portal without having to export its identity into the _Model Objects label list.


CurrentPortalWidth  / CurrentPortalHeight

R/W

Setting these attributes will tell you the current size of the Portal.


CurrentPortalXScale  /  CurrentPortalYScale

R/W

These enable a Portal’s image to be scaled in the x and y direction.

They are specified as a percentage, normally 100.

Be wary of large values.