Explorar el Código

Merge branch '1789-addon-context-actions' into 'master'

Allow addons to extend player and npc context menus

Closes #1789

See merge request Isleward/isleward!547
tags/v0.9.1^2
Big Bad Waffle hace 2 años
padre
commit
6b686a7a14
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      src/client/ui/templates/target/target.js

+ 4
- 0
src/client/ui/templates/target/target.js Ver fichero

@@ -71,6 +71,8 @@ define([
});
});

events.emit('onBeforePlayerContext', target, inspectContext);

events.emit('onContextMenu', inspectContext, originalEvent);
}

@@ -92,6 +94,8 @@ define([
});
});

events.emit('onBeforeNpcContext', target, talkContext);

events.emit('onContextMenu', talkContext, originalEvent);

//Cancel the default right click action on desktop


Cargando…
Cancelar
Guardar