Detecting when a portal is moved or clicked: Difference between revisions

From Planimate Knowledge Base
Jump to navigation Jump to search
m (1 revision(s))
No edit summary
Line 1: Line 1:
<font face="Arial">Portals have object options '''<font face="Arial">Clickable During Run</font>'''<font face="Arial"> and '''<font face="Arial">Moveable During Run </font>'''which causes them to respond to clicks and drags. They send the following scoped broadcast to their subsystem which the modeller can intercept:
Portals have object options '''Clickable During Run''' and '''Moveable During Run '''which causes them to respond to clicks and drags. They send the following scoped broadcast to their subsystem which the modeller can intercept:




_portal clicked<br /> _portal moved<br />'''<br /> '''<font face="Arial">These will set the following item attributes if they are defined for the class which sends the broadcast:<br /><br /><font face="Courier New"> _x : x position of mouse<br /> _y : y position of mouse<br /> _buttons : which button was clicked, 1 = left, 2 = right<br /> _panel : panel ID of panel where the interaction occured.
_portal clicked<br /> _portal moved<br />'''<br /> '''<font face="Arial">These will set the following item attributes if they are defined for the class which sends the broadcast:<br /><br /> _x : x position of mouse<br /> _y : y position of mouse<br /> _buttons : which button was clicked, 1 = left, 2 = right<br /> _panel : panel ID of panel where the interaction occured.
 
 
</font></font></font></font>
----
----
[[Category:Object/Portal]]
[[Category:Object/Portal]]
Line 11: Line 8:
[[Category:Broadcast/System]]
[[Category:Broadcast/System]]
[[Category:Spatial Network]]
[[Category:Spatial Network]]
[[Category:Release Note]]
<font size="2">idkbase note 100</font>
<font size="2">idkbase note 100</font>

Revision as of 16:53, 10 January 2008

Portals have object options Clickable During Run and Moveable During Run which causes them to respond to clicks and drags. They send the following scoped broadcast to their subsystem which the modeller can intercept:


_portal clicked
_portal moved

These will set the following item attributes if they are defined for the class which sends the broadcast:

_x : x position of mouse
_y : y position of mouse
_buttons : which button was clicked, 1 = left, 2 = right
_panel : panel ID of panel where the interaction occured.


idkbase note 100