Skip to content

Commit

Permalink
Added brick-names, level editor shows brick-names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Christensen committed Jun 4, 2012
1 parent e71468a commit 6229c99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions leveleditor.c
Expand Up @@ -295,6 +295,9 @@ int runEditor(SDL_Surface* screen)
txtWriteCenter(screen, FONTSMALL,STR_EDIT_CONTROLS, HSCREENW,HSCREENH-120);


///TODO: Draw text at appropiate place
txtWrite(screen, FONTSMALL, str_brick_names[selBrick], 100, 100 );

drawBrick(screen, selBrick,HSCREENW-125,HSCREENH-85);
txtWriteCenter(screen, FONTSMALL, STR_EDIT_BRICK,HSCREENW-115,HSCREENH-100);
#ifdef GP2X
Expand Down
8 changes: 5 additions & 3 deletions strings.h
Expand Up @@ -191,13 +191,14 @@
"Pretty cool and awesome stuff! :)\n"\
"----------------------------------\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."


Expand All @@ -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."
Expand Down

0 comments on commit 6229c99

Please sign in to comment.