version 1.11 | | version 1.12 |
---|
| | |
#include "Bitmaps.h" | | #include "Bitmaps.h" |
#include "App.h" | | #include "App.h" |
#include "debug.h" | | #include "debug.h" |
#include "util.h" | | |
| | |
#include <proto.h> | | #include <proto.h> |
| | |
| | |
#define E_EDITABLE (E_MONSTER | E_EXIT | E_TREASURE | E_BACKGROUND | \ | | #define E_EDITABLE (E_MONSTER | E_EXIT | E_TREASURE | E_BACKGROUND | \ |
E_DOOR | E_SPECIAL | E_SHOP | E_NORMAL | E_FALSE_WALL) | | E_DOOR | E_SPECIAL | E_SHOP | E_NORMAL | E_FALSE_WALL) |
| | |
ArchFlagsRec archFlags[] = { | | static ArchFlagsRec archFlags[] = { |
{ 0, "toggle", E_EDITABLE }, | | { 0, "toggle", E_EDITABLE }, |
{ 0, "monster", E_MONSTER }, | | { 0, "monster", E_MONSTER }, |
{ 0, "exit", E_EXIT }, | | { 0, "exit", E_EXIT }, |
| | |
* plaah: where to put these ??? | | * plaah: where to put these ??? |
* 0.91.9 - moved to start of file - needed for ReadPixmaps function. | | * 0.91.9 - moved to start of file - needed for ReadPixmaps function. |
*/ | | */ |
XColor exactcolor, discolor[13]; | | XColor discolor[13]; |
Colormap colormap=(Colormap)NULL; | | Colormap colormap=(Colormap)NULL; |
| | |
| | |
| | |
* private | | * private |
**********************************************************************/ | | **********************************************************************/ |
| | |
| | static void AppDestroy(App self); |
| | static Edit AppEditInsert(App self,String path,EditType type); |
| | static void AppEditAttach(App self,Edit edit); |
| | |
#if 0 | | #if 0 |
static void AbsToCr(App self,String abs) | | static void AbsToCr(App self,String abs) |
{ | | { |
| | |
resources, resourcesNum, | | resources, resourcesNum, |
NULL, 0); | | NULL, 0); |
| | |
/*** images & colors ***/ | | |
InitializeColors(XtDisplay(self->shell)); | | |
| | |
/* Default */ | | /* Default */ |
displaymode=Dm_Png; | | displaymode=Dm_Png; |
FontSize=32; | | FontSize=32; |
| | |
/* | | /* |
* member: vanish application | | * member: vanish application |
*/ | | */ |
void AppDestroy(App self) | | static void AppDestroy(App self) |
{ | | { |
Edit edit; | | Edit edit; |
Edit temp; | | Edit temp; |
| | |
| | |
| | |
| | |
void InitializeColors (Display *dpy) | | |
{ | | |
return; /* this function does nothing anymore */ | | |
} | | |
| | |
/* | | /* |
* member: add editor | | * member: add editor |
*/ | | */ |
Edit AppEditInsert(App self,String path,EditType type) | | static Edit AppEditInsert(App self,String path,EditType type) |
{ | | { |
Edit edit; | | Edit edit; |
Edit editor; | | Edit editor; |
| | |
/* | | /* |
* attach Edit to App environment | | * attach Edit to App environment |
*/ | | */ |
void AppEditAttach(App self,Edit edit) | | static void AppEditAttach(App self,Edit edit) |
{ | | { |
debug1("AppEditAttach() %s\n",EditGetPath(edit)); | | debug1("AppEditAttach() %s\n",EditGetPath(edit)); |
/*** attach edit to list ***/ | | /*** attach edit to list ***/ |