Commit Graph

4 Commits

Author SHA1 Message Date
PJB3005
3cca5692af Removes the panic writer messages. 2015-11-20 03:17:06 +01:00
D3athrow
d59f6a07b0 comment out panicwriter and saytesting 2015-07-20 16:04:48 -05:00
D3athrow
41d7df01fd just fuck my shit up 2015-07-18 02:30:51 -05:00
ComicIronic
b330cad8d8 Context click code module
Added a system for contextual attack-selfing on items.
This on its own permits hooks into various uses, but the one majorly supported is buttons.
You can define inbuilt context buttons, or create attachable buttons for
other items.
The remote datum is not tied to the remote item, which is just an example of how you would implement its functionality.

Context-clicking:
 - The return_clicked_id can be set to give custom IDs given an x and y
   position on the icon
 - return_clicked_id_by_params does all the messy work of converting
   params into a valid x and y click for return_clicked ID
 - action() can be set for custom behaviour, passed an item or not

Buttons:
 - Remote datums allow the use of button devices, as well as adding them or removing them
 - Buttons have an on_press functionality
 - This allows you to make remotes for anything using, for example, a signaller button (space garage doors ho!)
 - No truly functional buttons exist - all the current ones just play sounds, for testing purposes
 - Buttons adapt to their remote - the remote passes the shape a button icon has to be, and its displacement
 - New buttons follow the base shape for remotes, and then can be attached anywhere

Moved code around, split the datum into a subtype to clarify its functionality.
2015-05-18 18:43:06 +01:00