Skip to content
Browse files

Added brick-names, level editor shows brick-names.

  • Loading branch information...
1 parent e71468a commit 6229c9949e9540960b2bf4c184cc34a12bca552d @DusteDdk committed
Showing with 8 additions and 3 deletions.
  1. +3 −0 leveleditor.c
  2. +5 −3 strings.h
3 leveleditor.c
@@ -295,6 +295,9 @@ int runEditor(SDL_Surface* screen)
+ ///TODO: Draw text at appropiate place
+ txtWrite(screen, FONTSMALL, str_brick_names[selBrick], 100, 100 );
drawBrick(screen, selBrick,HSCREENW-125,HSCREENH-85);
#ifdef GP2X
8 strings.h
@@ -191,13 +191,14 @@
"Pretty cool and awesome stuff! :)\n"\
-#define STR_MENU_NOPTRSUPPORT "You need to use the cursor keys\n"\
+#define STR_MENU_NOPTRSUPPORT "-- Pointer not supported here --\n"\
+ "You need to use the cursor keys\n"\
"to do this, because I am\n"\
"too lazy to make the pointer work\n"\
"here.. Press key to continue,\n"\
"or click to return to the menu.\n"\
"If you consider donating a local\n"\
- "beer, and I will consider making\n"\
+ "beer, I will consider making\n"\
"the pointer work here.. - Jimmy."
@@ -216,7 +217,8 @@
#define STR_EDIT_SAVED "Saved"
#define STR_EDIT_UNSAVED "Not saved"
#define STR_EDIT_STATUS "Status:"
-#define STR_EDIT_NOT_SAVED_WARNING "Not Saved!"
+#define STR_EDIT_NOT_SAVED_WARNING "Not Saved!"
+static const char* str_brick_names[] = { "Nobrick", "Brick", "Brick","Brick","Brick","Brick","Brick","Brick","Brick","Brick","Brick","Vert Lift", "Hori Lift", "Left Oneway", "Right Oneway", "Glue", "Unused", "Reserved", "Teleporter" };
#ifdef PANDORA /// added by farox for pandora port
#define STR_EDIT_PRESS_EXIT_TO_EXIT "Press START to exit without saving."

0 comments on commit 6229c99

Please sign in to comment.
Something went wrong with that request. Please try again.