R3vo/Sandbox1 – User

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Replaced content with "for User Interface Event Handlers {{Feature|Warning|Deleting the display or control from within an event handler will crash the game if deleting is not the last line...")
Tag: Replaced
m (Blanked the page)
Tags: Blanking Manual revert
 
(41 intermediate revisions by 2 users not shown)
Line 1: Line 1:
for [[User Interface Event Handlers]]


{{Feature|Warning|Deleting the display or control from within an event handler will crash the game if deleting is not the last line in the event handler's script or code.
{{ic|onButtonClick {{=}} "[[ctrlDelete]] ([[_this]] [[select]] 0); [[systemChat]] 'You will never see this';"; {{cc|Will crash the game}}}}<br/><br/>
{{ic|onButtonClick {{=}} "[[systemChat]] 'Bye bye button!'; [[ctrlDelete]] ([[_this]] [[select]] 0);"; {{cc|Works just fine}}}}<br/><br/>
{{ic|onButtonClick {{=}} "[] [[spawn]] { [[ctrlDelete]] ([[_this]] [[select]] 0); [[systemChat]] 'Bye bye button!'; };"; {{cc|Works just fine as well}}}}
}}

Latest revision as of 18:41, 23 March 2024