From f0b0378caf61b19d9800c1128eaa71bfa31b410e Mon Sep 17 00:00:00 2001
From: Quietust
Is called when projectile hits something.
onWorkshopFillSidebarMenu(workshop,callnative)
-Is called when viewing a workshop in 'q' mode, to populate reactions, usefull for custom viewscreens for shops.
+Is called when viewing a workshop in 'q' mode, to populate reactions, useful for custom viewscreens for shops.
postWorkshopFillSidebarMenu(workshop)
-Is called after calling (or not) native fillSidebarMenu(). Usefull for job button +
Is called after calling (or not) native fillSidebarMenu(). Useful for job button tweaking (e.g. adding custom reactions)
Granade example:
+Grenade example:
b=require "plugins.eventful" b.onProjItemCheckImpact.one=function(projectile) diff --git a/Lua API.rst b/Lua API.rst index 19ba7132d..6d4e6b51b 100644 --- a/Lua API.rst +++ b/Lua API.rst @@ -2993,11 +2993,11 @@ List of events 7. ``onWorkshopFillSidebarMenu(workshop,callnative)`` - Is called when viewing a workshop in 'q' mode, to populate reactions, usefull for custom viewscreens for shops. + Is called when viewing a workshop in 'q' mode, to populate reactions, useful for custom viewscreens for shops. 8. ``postWorkshopFillSidebarMenu(workshop)`` - Is called after calling (or not) native fillSidebarMenu(). Usefull for job button + Is called after calling (or not) native fillSidebarMenu(). Useful for job button tweaking (e.g. adding custom reactions) Functions @@ -3036,7 +3036,7 @@ Reaction complete example:: call_native.value=false end -Granade example:: +Grenade example:: b=require "plugins.eventful" b.onProjItemCheckImpact.one=function(projectile)