Commit 21cd956e1131a85acd0fffb34138881b50fe5485

  • avatar
  • Diego Barrios Romero <eldruin @gm…l.com>
  • Fri Sep 18 06:26:45 CEST 2009
  • Tree SHA1: 0f1cb49
  • Parent SHA1: 665b6ff (Completed adding romaji option to all the modes. Added romaji options mode. Corrected romaji spacing. Improved definitions.)
  • raw diff | raw patch
Extended definitions.
  
152152static const int OR_ROMAJI_CHECKBOX_X = 113;
153153static const int OR_ROMAJI_CHECKBOX_Y = 68;
154154
155static const int TP_MAIN_MENU_BUTTON1_X1 = 23;
156static const int TP_MAIN_MENU_BUTTON1_X2 = 81;
157static const int TP_MAIN_MENU_BUTTON1_Y1 = 25;
158static const int TP_MAIN_MENU_BUTTON1_Y2 = 83;
159static const int TP_MAIN_MENU_BUTTON2_X1 = 99;
160static const int TP_MAIN_MENU_BUTTON2_X2 = 158;
161static const int TP_MAIN_MENU_BUTTON2_Y1 = 25;
162static const int TP_MAIN_MENU_BUTTON2_Y2 = 83;
163static const int TP_MAIN_MENU_BUTTON3_X1 = 174;
164static const int TP_MAIN_MENU_BUTTON3_X2 = 233;
165static const int TP_MAIN_MENU_BUTTON3_Y1 = 25;
166static const int TP_MAIN_MENU_BUTTON3_Y2 = 83;
167static const int TP_MAIN_MENU_BUTTON4_X1 = 23;
168static const int TP_MAIN_MENU_BUTTON4_X2 = 81;
169static const int TP_MAIN_MENU_BUTTON4_Y1 = 97;
170static const int TP_MAIN_MENU_BUTTON4_Y2 = 156;
171
155172static const int TP_LEFT_BOTTOM_IMAGE_X1 = 5;
156173static const int TP_LEFT_BOTTOM_IMAGE_X2 = 39;
157174static const int TP_LEFT_BOTTOM_IMAGE_Y1 = 152;
  
6767
6868 keys = keysHeld();
6969
70 if (touch.px > 23 && touch.px < 81 && touch.py > 25 && touch.py < 83)
70 if (touch.px > TP_MAIN_MENU_BUTTON1_X1 &&
71 touch.px < TP_MAIN_MENU_BUTTON1_X2 &&
72 touch.py > TP_MAIN_MENU_BUTTON1_Y1 &&
73 touch.py < TP_MAIN_MENU_BUTTON1_Y2)
7174 selected_button = 1;
72 if (touch.px > 99 && touch.px < 158 && touch.py > 25 && touch.py < 83)
75 if (touch.px > TP_MAIN_MENU_BUTTON2_X1 &&
76 touch.px < TP_MAIN_MENU_BUTTON2_X2 &&
77 touch.py > TP_MAIN_MENU_BUTTON2_Y1 &&
78 touch.py < TP_MAIN_MENU_BUTTON2_Y2)
7379 selected_button = 2;
74 if (touch.px > 174 && touch.px < 233 && touch.py > 25 && touch.py < 83)
80 if (touch.px > TP_MAIN_MENU_BUTTON3_X1 &&
81 touch.px < TP_MAIN_MENU_BUTTON3_X2 &&
82 touch.py > TP_MAIN_MENU_BUTTON3_Y1 &&
83 touch.py < TP_MAIN_MENU_BUTTON3_Y2)
7584 selected_button = 3;
76 if (touch.px > 23 && touch.px < 81 && touch.py > 97 && touch.py < 156)
85 if (touch.px > TP_MAIN_MENU_BUTTON4_X1 &&
86 touch.px < TP_MAIN_MENU_BUTTON4_X2 &&
87 touch.py > TP_MAIN_MENU_BUTTON4_Y1 &&
88 touch.py < TP_MAIN_MENU_BUTTON4_Y2)
7789 selected_button = 4;
7890
7991 if (sy < 0) sy = 0;