- NAME TETR
- #include <eikon.rh>
- #include <eikcore.rsg>
- #include <avkon.rh>
- #include <avkon.rsg>
- #include "Tetris.hrh"
- #include "Tetris.loc"
- // ---------------------------------------------------------
- //
- // Define the resource file signature
- // This resource should be empty.
- //
- // ---------------------------------------------------------
- //
- RESOURCE RSS_SIGNATURE { }
- // ---------------------------------------------------------
- //
- // Default Document Name
- //
- // ---------------------------------------------------------
- //
- RESOURCE TBUF r_default_document_name { buf=""; }
- // ---------------------------------------------------------
- //
- // Define default menu and CBA key.
- //
- // ---------------------------------------------------------
- //
- RESOURCE EIK_APP_INFO
- {
- menubar = r_tetris_menubar;
- cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
- }
- // ---------------------------------------------------------
- //
- // r_tetris_menubar
- // Menubar for HelloWorld example
- //
- // ---------------------------------------------------------
- //
- RESOURCE MENU_BAR r_tetris_menubar
- {
- titles =
- {
- MENU_TITLE {menu_pane = r_tetris_menu;}
- };
- }
- // ---------------------------------------------------------
- //
- // r_tetris_menubar
- // Menu for "Options"
- //
- // ---------------------------------------------------------
- //
- RESOURCE MENU_PANE r_tetris_menu
- {
- items =
- {
- MENU_ITEM {command = EEikCmdExit; txt = MENU_EXIT;}
- };
- }
- // ---------------------------------------------------------
- //
- // New string resource
- //
- // ---------------------------------------------------------
- //
- RESOURCE TBUF32 r_menuitem_start
- {
- buf = MENUITEM_START;
- }
- RESOURCE TBUF32 r_menuitem_options
- {
- buf = MENUITEM_OPTIONS;
- }
- RESOURCE TBUF32 r_menuitem_credit
- {
- buf = MENUITEM_CREDIT;
- }
- RESOURCE TBUF32 r_menuitem_highscore
- {
- buf = MENUITEM_HIGTSCORE;
- }
- RESOURCE TBUF32 r_menuitem_quit
- {
- buf = MENUITEM_QUIT;
- }
- RESOURCE TBUF32 r_menuitem_sound
- {
- buf = MENUITEM_SOUND;
- }
- RESOURCE TBUF32 r_menuitem_difficulty
- {
- buf = MENUITEM_DIFFICULT;
- }
- RESOURCE TBUF32 r_menuitem_rotation1
- {
- buf = MENUITEM_ROTATION1;
- }
- RESOURCE TBUF32 r_menuitem_rotation2
- {
- buf = MENUITEM_ROTATION2;
- }
- RESOURCE TBUF32 r_menuitem_back
- {
- buf = MENUITEM_BACK;
- }
- RESOURCE TBUF32 r_menuitem_sounds1
- {
- buf = MENUITEM_SOUNDS1;
- }
- RESOURCE TBUF32 r_menuitem_sounds2
- {
- buf = MENUITEM_SOUNDS2;
- }
- RESOURCE TBUF32 r_menuitem_music1
- {
- buf = MENUITEM_MUSIC1;
- }
- RESOURCE TBUF32 r_menuitem_music2
- {
- buf = MENUITEM_MUSIC2;
- }
- RESOURCE TBUF32 r_menuitem_volume1
- {
- buf = MENUITEM_VOLUME1;
- }
- RESOURCE TBUF32 r_menuitem_volume2
- {
- buf = MENUITEM_VOLUME2;
- }
- RESOURCE TBUF32 r_menuitem_volume3
- {
- buf = MENUITEM_VOLUME3;
- }
- RESOURCE TBUF32 r_menuitem_volume4
- {
- buf = MENUITEM_VOLUME4;
- }
- RESOURCE TBUF32 r_menuitem_done
- {
- buf = MENUITEM_DONE;
- }
- RESOURCE TBUF32 r_menuitem_startlines1
- {
- buf = MENUITEM_STARTLINES1;
- }
- RESOURCE TBUF32 r_menuitem_startlines2
- {
- buf = MENUITEM_STARTLINES2;
- }
- RESOURCE TBUF32 r_menuitem_startlines3
- {
- buf = MENUITEM_STARTLINES3;
- }RESOURCE TBUF32 r_menuitem_startlines4
- {
- buf = MENUITEM_STARTLINES4;
- }
- RESOURCE TBUF32 r_menuitem_addbrick1
- {
- buf = MENUITEM_ADDBRICK1;
- }
- RESOURCE TBUF32 r_menuitem_addbrick2
- {
- buf = MENUITEM_ADDBRICK2;
- }
- RESOURCE TBUF32 r_menuitem_addbrick3
- {
- buf = MENUITEM_ADDBRICK3;
- }
- RESOURCE TBUF32 r_menuitem_continue
- {
- buf = MENUITEM_CONTINUE;
- }
- RESOURCE TBUF32 r_menuitem_endgame
- {
- buf = MENUITEM_ENDGAME;
- }
- RESOURCE DIALOG r_input_username_dialog
- {
- flags = EGeneralQueryFlags;
- buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
- items =
- {
- DLG_LINE
- {
- type = EAknCtQuery;
- id = EDialogUserName;
- control = AVKON_DATA_QUERY
- {
- layout = EMultiDataFirstEdwin;
- label = "Your Name :";
- control = EDWIN
- {
- flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
- width = 16;
- lines = 1;
- maxlength = 16;
- default_input_mode = EAknEditorTextInputMode;
- };
- };
- }
- };
- }