aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2020-02-14 15:17:01 -0500
committerJeffrey Armstrong <jeff@approximatrix.com>2020-02-14 15:17:01 -0500
commit950dccf203a561a2748941a3addc5cca25b77b99 (patch)
tree5277ee576603c936c2a85f6e71d3189cadb4adaa
parentc985a721b719ee97850498e9edd838ae3de52098 (diff)
downloadgemworm-950dccf203a561a2748941a3addc5cca25b77b99.zip
gemworm-950dccf203a561a2748941a3addc5cca25b77b99.tar.gz
Added menu_register call to make game title pretty. Updated the About box.
-rw-r--r--worm.c5
-rw-r--r--wormst.h15
-rw-r--r--wormst.rscbin1228 -> 1312 bytes
3 files changed, 11 insertions, 9 deletions
diff --git a/worm.c b/worm.c
index 9db6062..dca4294 100644
--- a/worm.c
+++ b/worm.c
@@ -128,8 +128,6 @@ GRECT box,origin;
form_do(about_box,0);
form_dial(FMD_FINISH,0,0,0,0,box.g_x, box.g_y, box.g_w, box.g_h);
-
-
return;
}
@@ -207,6 +205,9 @@ WORD txtwidth,txtheight;
rsrc_gaddr(R_TREE,ABOUT,&about_box);
+ /* Make the application name nicer */
+ menu_register(app_accid, "Worm!");
+
return open_window(1);
}
diff --git a/wormst.h b/wormst.h
index 9c1305c..43793e0 100644
--- a/wormst.h
+++ b/wormst.h
@@ -1,9 +1,10 @@
+/* Resource file indices for WORMST. */
-#define RCMENU 0 /* TREE - MENU */
-#define MDESK 3 /* G_TITLE in (#0) RCMENU */
-#define MABOUT 7 /* G_STRING in (#0) RCMENU */
-#define MNEW 16 /* G_STRING in (#0) RCMENU */
-#define MQUIT 17 /* G_STRING in (#0) RCMENU */
+#define RCMENU 0 /* Menu-tree */
+#define MDESK 3 /* TITLE in tree RCMENU */
+#define MABOUT 7 /* STRING in tree RCMENU */
+#define MNEW 16 /* STRING in tree RCMENU */
+#define MQUIT 17 /* STRING in tree RCMENU */
-#define ABOUT 1 /* TREE - DIALOG */
-#define BEXIT 11 /* G_BUTTON in (#1) ABOUT */
+#define ABOUT 1 /* Form/Dialog-box */
+#define BEXIT 11 /* BUTTON in tree ABOUT */
diff --git a/wormst.rsc b/wormst.rsc
index 3d4f86d..e4a7190 100644
--- a/wormst.rsc
+++ b/wormst.rsc
Binary files differ