gcsx_scriptprop.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* GCSx
  2. ** SCRIPTPROP.H
  3. **
  4. ** Script properties dialog
  5. */
  6. /*****************************************************************************
  7. ** Copyright (C) 2003-2006 Janson
  8. **
  9. ** This program is free software; you can redistribute it and/or modify
  10. ** it under the terms of the GNU General Public License as published by
  11. ** the Free Software Foundation; either version 2 of the License, or
  12. ** (at your option) any later version.
  13. **
  14. ** This program is distributed in the hope that it will be useful,
  15. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. ** GNU General Public License for more details.
  18. **
  19. ** You should have received a copy of the GNU General Public License
  20. ** along with this program; if not, write to the Free Software
  21. ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
  22. *****************************************************************************/
  23. #ifndef __GCSx_SCRIPTPROP_H_
  24. #define __GCSx_SCRIPTPROP_H_
  25. class ScriptPropertiesDialog : private ImageDialog {
  26. private:
  27. int forType;
  28. int initialized;
  29. int defSprite;
  30. const class ScriptEdit* script;
  31. enum {
  32. ID_LABEL = 1,
  33. ID_NAME,
  34. ID_LIBRARY,
  35. ID_IMAGE,
  36. ID_OK,
  37. ID_CANCEL,
  38. };
  39. static class ScriptPropertiesDialog* dialogScript;
  40. static class ScriptPropertiesDialog* dialogLibrary;
  41. static class ScriptPropertiesDialog* dialogNotes;
  42. public:
  43. ScriptPropertiesDialog(int type);
  44. virtual ~ScriptPropertiesDialog();
  45. static class ScriptPropertiesDialog* createScript();
  46. static class ScriptPropertiesDialog* createLibrary();
  47. static class ScriptPropertiesDialog* createNotes();
  48. static void destroy();
  49. int run(std::string* title, AnimGroup** animGroup, TileSet** tileSet, int* animTileId, const class ScriptEdit* whichScript, class WorldEdit* whichWorld);
  50. ButtonAction verifyEntry(int buttonId, ButtonAction buttonType);
  51. };
  52. #endif