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

From Planimate Knowledge Base
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 4: Line 4:
_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.
_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 size="2">idkbase note 100</font>
[[Category:Object/Portal]]
[[Category:Object/Portal]]
[[Category:Interaction (User)]]
[[Category:Interaction (User)]]
[[Category:Broadcast/System]]
[[Category:Broadcast]]
[[Category:Spatial Network]]
[[Category:Spatial Network]]
<font size="2">idkbase note 100</font>

Latest revision as of 13:25, 12 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