| 10335 | } |
| 10336 | |
| 10337 | void propertyPageTextAndInput(int numProperties, int width) |
| 10338 | { |
| 10339 | int pad_x1 = subx1 + 8; |
| 10340 | int spacing = 36; |
| 10341 | int pad_x2 = width; |
| 10342 | |
| 10343 | // Cycle properties with TAB. |
| 10344 | if ( keystatus[SDLK_TAB] ) |
| 10345 | { |
| 10346 | keystatus[SDLK_TAB] = 0; |
| 10347 | cursorflash = ticks; |
| 10348 | editproperty++; |
| 10349 | if ( editproperty == numProperties ) |
| 10350 | { |
| 10351 | editproperty = 0; |
| 10352 | } |
| 10353 | |
| 10354 | inputstr = spriteProperties[editproperty]; |
| 10355 | } |
| 10356 | |
| 10357 | // select a textbox |
| 10358 | if ( mousestatus[SDL_BUTTON_LEFT] ) |
| 10359 | { |
| 10360 | for ( int i = 0; i < numProperties; i++ ) |
| 10361 | { |
| 10362 | if ( omousex >= pad_x1 - 4 && omousey >= suby1 + 40 + i * spacing && omousex < pad_x1 - 4 + pad_x2 && omousey < suby1 + 56 + i * spacing ) |
| 10363 | { |
| 10364 | inputstr = spriteProperties[i]; |
| 10365 | editproperty = i; |
| 10366 | cursorflash = ticks; |
| 10367 | } |
| 10368 | } |
| 10369 | } |
| 10370 | } |
| 10371 | |
| 10372 | void propertyPageError(int rowIndex, int resetValue) |
| 10373 | { |