Template:Sdk event page: Difference between revisions
Jump to navigation
Jump to search
Roy Curtis (talk | contribs) added quick snippets |
Roy Curtis (talk | contribs) m box-sizing |
||
Line 1: | Line 1: | ||
<div style="float: right; width: | <div style="float: right; width: 400px; {{box-sizing}} {{bg linearfade|color={{{color|204,100%,90%}}}}}; padding: 32px 16px 16px 16px; border-radius: 0px 0px 16px 16px;">'''Event set snippet''' {{pill|?|title=This snippet assumes that the target VPInstance is in a variable identified as 'instance'}} | ||
<code style="display: block; padding: 8px; margin: 8px 0px; border: 1px dashed hsl(204,100%,70%);">vp_event_set(instance, VP_EVENT_{{uc:{{{1|unknown}}}}}, event_{{lc:{{{1|unknown}}}}});</code> | <code style="display: block; padding: 8px; margin: 8px 0px; border: 1px dashed hsl(204,100%,70%);">vp_event_set(instance, VP_EVENT_{{uc:{{{1|unknown}}}}}, event_{{lc:{{{1|unknown}}}}});</code> | ||
'''Event handler snippet''' | '''Event handler snippet''' |
Revision as of 09:05, 25 August 2013
Event set snippet ?
vp_event_set(instance, VP_EVENT_UNKNOWN, event_unknown);
Event handler snippet
void event_unknown(VPInstance instance) { }
{{{2}}}
Attributes
- No attributes are used for this event
Behavior
- There is no special behavior for this event
Examples
- This event has no usage examples; please add at least one to this page
Usage
{{sdk event page|Event name|Event description |attributes={{sdk attribute row|type|name|description}} |behavior= |caveats= |examples= |seealso= }}