|
|
@ -3070,10 +3070,10 @@ on DF world events.</p>
|
|
|
|
<p>Is called when projectile hits something.</p>
|
|
|
|
<p>Is called when projectile hits something.</p>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li><p class="first"><tt class="docutils literal">onWorkshopFillSidebarMenu(workshop,callnative)</tt></p>
|
|
|
|
<li><p class="first"><tt class="docutils literal">onWorkshopFillSidebarMenu(workshop,callnative)</tt></p>
|
|
|
|
<p>Is called when viewing a workshop in 'q' mode, to populate reactions, usefull for custom viewscreens for shops.</p>
|
|
|
|
<p>Is called when viewing a workshop in 'q' mode, to populate reactions, useful for custom viewscreens for shops.</p>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li><p class="first"><tt class="docutils literal">postWorkshopFillSidebarMenu(workshop)</tt></p>
|
|
|
|
<li><p class="first"><tt class="docutils literal">postWorkshopFillSidebarMenu(workshop)</tt></p>
|
|
|
|
<p>Is called after calling (or not) native fillSidebarMenu(). Usefull for job button
|
|
|
|
<p>Is called after calling (or not) native fillSidebarMenu(). Useful for job button
|
|
|
|
tweaking (e.g. adding custom reactions)</p>
|
|
|
|
tweaking (e.g. adding custom reactions)</p>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
</ol>
|
|
|
@ -3113,7 +3113,7 @@ b.onReactionComplete.one=function(reaction,unit,in_items,in_reag,out_items,call_
|
|
|
|
call_native.value=false
|
|
|
|
call_native.value=false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
</pre>
|
|
|
|
</pre>
|
|
|
|
<p>Granade example:</p>
|
|
|
|
<p>Grenade example:</p>
|
|
|
|
<pre class="literal-block">
|
|
|
|
<pre class="literal-block">
|
|
|
|
b=require "plugins.eventful"
|
|
|
|
b=require "plugins.eventful"
|
|
|
|
b.onProjItemCheckImpact.one=function(projectile)
|
|
|
|
b.onProjItemCheckImpact.one=function(projectile)
|
|
|
|