Suggest a Hook or Callback

Jon

  • *
  • Posts: 17524
Hooks are callbacks that allow your extension to operate when certain things are done in StencylWorks. Hooks also allow your extension to literally become part of the StencylWorks UI.

The current extension SDK has a fair amount of hooks but not nearly enough to build everything you want.

Suggest hooks here. For each one you suggest, please state your use case. Priority will be given to those who we know are actively developing extensions.

We will distribute patches of StencylWorks (usually just sw.jar) to let you test out the new hooks right away.

« Last Edit: October 24, 2015, 03:53:35 pm by Jon »

xmagicx60

  • Posts: 213
is onCompile in there?

Jon

  • *
  • Posts: 17524
Is it really onCompile that you want or more along the lines of onPreview or onRunGame?

xmagicx60

  • Posts: 213
Is it really onCompile that you want or more along the lines of onPreview or onRunGame?
both of those would work as well.

Jon

  • *
  • Posts: 17524
It (should) now be in the nightly (just grab sw.jar via my signature)

Override public void onGameBuild(Game game)

xmagicx60

  • Posts: 213
It (should) now be in the nightly (just grab sw.jar via my signature)

Override public void onGameBuild(Game game)
Ok thanks!

SadiQ

  • Posts: 1795
I hate reviving a really old topic, but here goes nothing:

I would like to add sounds to Stencyl´s UI (among other things), basically a sound for when I hover over a button, for when I open a game, for when I compile a game, and so on. With Justin´s help I was able to get Stencyl to reply when I hover over some of the buttons, but not all of them (For example under the Actor tab I can´t get Position, Motion,Properties...etc ).

I would also like to add a sound for when the user drags a block and places it in the behavior (I'd like to use 2 different sounds).
I'd also like to add some extra keyboard shortcuts , like press A to open the Actor tab, press F for the Flow tab and so on.

Would it be possible to create some hooks to help me to achieve what I want ?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.