Seeing all the modules SSH has been releasing made me feel like I was slacking, so...
I present the Icon Based Dialog System script module!!
This module (well, modules, really) allows you to easily add a complete icon-based dialog system to your game, similar to the one used in Discworld and... other... games, I think.
Anyway, all you have to do is create your GUI. Make it look however you like, just be sure to add some buttons to it. Then import the IconDialog modules, and use the functions to hook into your GUI and buttons.
Some of the neato features:
* Simple API that'll get you speaking in pictures in no time!
* Highly customizable, and easily (I hope) extensible.
* The ability to automatically reposition the icons, and
resize the GUI match. (Or not, whichver you like!)
* No practical limit on the number of dialog topics and
options, each with its own icon associated with it.
* The ability to run dialogs as usual, or jump straight
to a specific option.
* Cross-platform compatible
Download here (Requires AGS 2.71!)MirrorEdit: And here is a short demo game showing how to use it:
Get the demoHoN
Edit: P.S. I do, of course, welcome any bug reports or suggestions for additional features.
* Side note, isn't it amazing how quickly you come to depend on new features without noticing it? While I was writing this, I thought it would be compatible with plain AGS 2.7, as I didn't use any of the new String or DynamicSprite stuff. Then I looked through the code, and the lists of updates, and realized that a fair amount of the code depends on lazy eval, introduced in 2.71 beta 5. And I can't even claim that I'm just used to C++, cause I'm not. When I'm coding in C++ I have to remember that I'm NOT coding in AGS, not the other way around.
