editorSetEventHandler – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
(some more editor event handler figured out)
 
m (spell)
 
Line 8: Line 8:
|  class="event" | SelectObject
|  class="event" | SelectObject
|  class="fired" | Select object with left mouse button
|  class="fired" | Select object with left mouse button
|  class="notes" | Returns Array [mapControl <control>, Variable-Name <string>, EditorObject <object>] <br>
|  class="notes" | _this array: [mapControl <control>, Variable-Name <string>, EditorObject <object>] <br>
Does not fire if you select multiple objects with dragging a square around them!
Does not fire if you select multiple objects with dragging a square around them!
|-  
|-  
|  class="event" | MouseOver
|  class="event" | MouseOver
|  class="fired" | Mouse pointer over an object (Map or ObjectTree!).
|  class="fired" | Mouse pointer over an object (Map or ObjectTree!).
|  class="notes" | Returns Array [mapControl <control>, Variable-Name <string>, EditorObject <object>].<br> If mouse leaves object it will also be fired and return [mapControl, "", <NULL-Object>]
|  class="notes" | _this array: [mapControl <control>, Variable-Name <string>, EditorObject <object>].<br> If mouse leaves object it will also be fired and _this array: [mapControl, "", <NULL-Object>]
|-  
|-  
|  class="event" | RestartCamera
|  class="event" | RestartCamera
|  class="fired" | EditorCamera was restarted (by button or by scriptcommand [[restartEditorCamera]])
|  class="fired" | EditorCamera was restarted (by button or by scriptcommand [[restartEditorCamera]])
|  class="notes" | Returns Array [mapControl <control>]
|  class="notes" | _this array: [mapControl <control>]
|-
|-
! colspan="3" bgcolor="#CC5555" | not verified, but maybe valid
! colspan="3" bgcolor="#CC5555" | not verified, but maybe valid

Latest revision as of 22:36, 5 November 2010

Figured out some more eventhandler and infos:

Event Fired Notes and Parameters
SelectObject Select object with left mouse button _this array: [mapControl <control>, Variable-Name <string>, EditorObject <object>]

Does not fire if you select multiple objects with dragging a square around them!

MouseOver Mouse pointer over an object (Map or ObjectTree!). _this array: [mapControl <control>, Variable-Name <string>, EditorObject <object>].
If mouse leaves object it will also be fired and _this array: [mapControl, "", <NULL-Object>]
RestartCamera EditorCamera was restarted (by button or by scriptcommand restartEditorCamera) _this array: [mapControl <control>]
not verified, but maybe valid
CloseOverlay
EditOverlay

--HeliJunkie 21:26, 5 November 2010 (CET)