DumpBrush_Small();
}
}
+
+ /* special key shortcuts for all game modes */
+ if (is_string_suffix(cheat_input, ":dump-gadget-ids") ||
+ is_string_suffix(cheat_input, ":dgi") ||
+ is_string_suffix(cheat_input, ":DGI"))
+ {
+ DumpGadgetIdentifiers();
+ }
}
void HandleKeysDebug(Key key)
#include <string.h>
#include "gadgets.h"
+#include "image.h"
#include "text.h"
#include "misc.h"
return TRUE;
}
+
+void DumpGadgetIdentifiers()
+{
+ struct GadgetInfo *gi;
+
+ printf("Gadgets on current screen (any prefix 'gfx.' can be omitted):\n");
+
+ for (gi = gadget_list_first_entry; gi != NULL; gi = gi->next)
+ if (gi->mapped && gi->image_id != -1)
+ printf("- '%s'\n", getTokenFromImageID(gi->image_id));
+
+ printf("Done.\n");
+}
boolean HandleGadgets(int, int, int);
boolean HandleGadgetsKeyInput(Key);
+void DumpGadgetIdentifiers(void);
+
#endif /* GADGETS_H */