1138
1201
cMenu_Options::Init_GUI();
1141
Combobox *combo_resolution = static_cast<Combobox *>(WindowManager::getSingleton().getWindow( "combo_resolution" ));
1143
ListboxTextItem *item = new ListboxTextItem( "640x480", 1 );
1144
item->setTextColours( colour( 1, 0, 0 ) );
1145
combo_resolution->addItem( item );
1146
item = new ListboxTextItem( "800x600", 2 );
1147
item->setTextColours( colour( 1, 1, 0 ) );
1148
combo_resolution->addItem( item );
1149
item = new ListboxTextItem( "1024x768", 2 );
1150
item->setTextColours( colour( 0, 1, 0 ) );
1151
combo_resolution->addItem( item );
1152
item = new ListboxTextItem( "1280x1024", 3 );
1153
item->setTextColours( colour( 0.1f, 0.5f, 0.9f ) );
1154
combo_resolution->addItem( item );
1155
item = new ListboxTextItem( "1600x1200", 4 );
1156
item->setTextColours( colour( 0.5f, 0.8f, 1 ) );
1157
combo_resolution->addItem( item );
1158
item = new ListboxTextItem( "2048x1536", 5 );
1159
item->setTextColours( colour( 0.8f, 0.2f, 0.9f ) );
1160
combo_resolution->addItem( item );
1204
CEGUI::Combobox *combo_resolution = static_cast<CEGUI::Combobox *>(CEGUI::WindowManager::getSingleton().getWindow( "combo_resolution" ));
1206
vector<cSize_Int> valid_resolutions = pVideo->Get_Supported_Resolutions();
1208
CEGUI::ListboxTextItem *item;
1211
for( vector<cSize_Int>::iterator itr = valid_resolutions.begin(), itr_end = valid_resolutions.end(); itr != itr_end; ++itr )
1214
cSize_Int res = (*itr);
1216
if( res.m_width <= 0 || res.m_height <= 0 )
1221
// calculate aspect ratio
1222
float ar = static_cast<float>(res.m_width) / static_cast<float>(res.m_height);
1224
item = new CEGUI::ListboxTextItem( int_to_string( res.m_width ) + "x" + int_to_string( res.m_height ), 3 );
1225
CEGUI::colour color( 0, 0, 0 );
1226
// if badly stretched resolution display it in red
1227
if( ar < 1.1f || ar > 1.5f )
1229
color.setGreen( 0 );
1235
// calculate difference from a default 1.333 resolution
1236
float diff_from_default;
1240
diff_from_default = ( ar - 1.333f ) * 4;
1244
diff_from_default = -( ar - 1.333f ) * 4;
1247
color.setGreen( 1 - diff_from_default );
1248
color.setRed( diff_from_default );
1250
item->setTextColours( color );
1251
combo_resolution->addItem( item );
1162
1254
string temp = int_to_string( pPreferences->video_screen_w ) + "x" + int_to_string( pPreferences->video_screen_h );
1163
1255
combo_resolution->setText( temp.c_str() );
1165
combo_resolution->subscribeEvent( Combobox::EventListSelectionAccepted, Event::Subscriber( &cMenu_Options_Video::res_Select, this ) );
1257
combo_resolution->subscribeEvent( CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber( &cMenu_Options_Video::Res_Select, this ) );
1168
Combobox *combo_bpp = static_cast<Combobox *>(WindowManager::getSingleton().getWindow( "combo_bpp" ));
1260
CEGUI::Combobox *combo_bpp = static_cast<CEGUI::Combobox *>(CEGUI::WindowManager::getSingleton().getWindow( "combo_bpp" ));
1170
item = new ListboxTextItem( "16", 0 );
1171
item->setTextColours( colour( 1, 0.6f, 0.3f ) );
1262
item = new CEGUI::ListboxTextItem( "16", 0 );
1263
item->setTextColours( CEGUI::colour( 1, 0.6f, 0.3f ) );
1172
1264
combo_bpp->addItem( item );
1173
item = new ListboxTextItem( "32", 1 );
1174
item->setTextColours( colour( 0, 1, 0 ) );
1265
item = new CEGUI::ListboxTextItem( "32", 1 );
1266
item->setTextColours( CEGUI::colour( 0, 1, 0 ) );
1175
1267
combo_bpp->addItem( item );
1177
1269
combo_bpp->setText( int_to_string( pPreferences->video_screen_bpp ).c_str() );
1179
combo_bpp->subscribeEvent( Combobox::EventListSelectionAccepted, Event::Subscriber( &cMenu_Options_Video::bpp_Select, this ) );
1271
combo_bpp->subscribeEvent( CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber( &cMenu_Options_Video::Bpp_Select, this ) );
1182
Combobox *combo_fullscreen = static_cast<Combobox *>(WindowManager::getSingleton().getWindow( "combo_fullscreen" ));
1274
CEGUI::Combobox *combo_fullscreen = static_cast<CEGUI::Combobox *>(CEGUI::WindowManager::getSingleton().getWindow( "combo_fullscreen" ));
1184
item = new ListboxTextItem( "On", 0 );
1185
item->setTextColours( colour( 0, 1, 0 ) );
1276
item = new CEGUI::ListboxTextItem( UTF8_("On"), 0 );
1277
item->setTextColours( CEGUI::colour( 0, 1, 0 ) );
1186
1278
combo_fullscreen->addItem( item );
1187
item = new ListboxTextItem( "Off", 1 );
1188
item->setTextColours( colour( 0, 0, 1 ) );
1279
item = new CEGUI::ListboxTextItem( UTF8_("Off"), 1 );
1280
item->setTextColours( CEGUI::colour( 0, 0, 1 ) );
1189
1281
combo_fullscreen->addItem( item );
1191
1283
if( pPreferences->video_fullscreen )
1193
combo_fullscreen->setText( "On" );
1285
combo_fullscreen->setText( UTF8_("On") );
1197
combo_fullscreen->setText( "Off" );
1289
combo_fullscreen->setText( UTF8_("Off") );
1200
combo_fullscreen->subscribeEvent( Combobox::EventListSelectionAccepted, Event::Subscriber( &cMenu_Options_Video::fullscreen_Select, this ) );
1292
combo_fullscreen->subscribeEvent( CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber( &cMenu_Options_Video::Fullscreen_Select, this ) );
1203
Combobox *combo_vsync = static_cast<Combobox *>(WindowManager::getSingleton().getWindow( "combo_vsync" ));
1295
CEGUI::Combobox *combo_vsync = static_cast<CEGUI::Combobox *>(CEGUI::WindowManager::getSingleton().getWindow( "combo_vsync" ));
1205
item = new ListboxTextItem( "On", 0 );
1206
item->setTextColours( colour( 0, 1, 0 ) );
1297
item = new CEGUI::ListboxTextItem( UTF8_("On"), 0 );
1298
item->setTextColours( CEGUI::colour( 0, 1, 0 ) );
1207
1299
combo_vsync->addItem( item );
1208
item = new ListboxTextItem( "Off", 1 );
1209
item->setTextColours( colour( 0, 0, 1 ) );
1300
item = new CEGUI::ListboxTextItem( UTF8_("Off"), 1 );
1301
item->setTextColours( CEGUI::colour( 0, 0, 1 ) );
1210
1302
combo_vsync->addItem( item );
1212
1304
if( pPreferences->video_vsync )
1214
combo_vsync->setText( "On" );
1306
combo_vsync->setText( UTF8_("On") );
1218
combo_vsync->setText( "Off" );
1310
combo_vsync->setText( UTF8_("Off") );
1221
combo_vsync->subscribeEvent( Combobox::EventListSelectionAccepted, Event::Subscriber( &cMenu_Options_Video::vsync_Select, this ) );
1313
combo_vsync->subscribeEvent( CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber( &cMenu_Options_Video::Vsync_Select, this ) );
1316
CEGUI::Slider *slider_geometry_detail = static_cast<CEGUI::Slider *>(CEGUI::WindowManager::getSingleton().getWindow( "slider_geometry_detail" ));
1317
slider_geometry_detail->setCurrentValue( pVideo->geometry_detail );
1318
slider_geometry_detail->subscribeEvent( CEGUI::Slider::EventValueChanged, CEGUI::Event::Subscriber( &cMenu_Options_Video::Slider_Geometry_Detail_Changed, this ) );
1321
CEGUI::Slider *slider_texture_detail = static_cast<CEGUI::Slider *>(CEGUI::WindowManager::getSingleton().getWindow( "slider_texture_detail" ));
1322
slider_texture_detail->setCurrentValue( pVideo->texture_detail );
1323
slider_texture_detail->subscribeEvent( CEGUI::Slider::EventValueChanged, CEGUI::Event::Subscriber( &cMenu_Options_Video::Slider_Texture_Detail_Changed, this ) );
1327
CEGUI::PushButton *button_apply = static_cast<CEGUI::PushButton *>(CEGUI::WindowManager::getSingleton().getWindow( "button_apply" ));
1328
button_apply->subscribeEvent( CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber( &cMenu_Options_Video::Button_Apply_Clicked, this ) );
1331
CEGUI::PushButton *button_recreate_cache = static_cast<CEGUI::PushButton *>(CEGUI::WindowManager::getSingleton().getWindow( "button_recreate_cache" ));
1332
button_recreate_cache->subscribeEvent( CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber( &cMenu_Options_Video::Button_Recreate_Cache_Clicked, this ) );
1224
1335
void cMenu_Options_Video :: Update( void )
1498
1596
cMenu_Options::Init_GUI();
1501
Combobox *combo_audio_hz = static_cast<Combobox *>(WindowManager::getSingleton().getWindow( "combo_audio_hz" ));
1599
CEGUI::Combobox *combo_audio_hz = static_cast<CEGUI::Combobox *>(CEGUI::WindowManager::getSingleton().getWindow( "combo_audio_hz" ));
1503
ListboxTextItem *item = new ListboxTextItem( "44800", 0 );
1504
item->setTextColours( colour( 0, 0, 1 ) );
1505
combo_audio_hz->addItem( item );
1506
item = new ListboxTextItem( "44100", 1 );
1507
item->setTextColours( colour( 0, 1, 0 ) );
1508
combo_audio_hz->addItem( item );
1509
item = new ListboxTextItem( "22050", 1 );
1510
item->setTextColours( colour( 1, 0, 0 ) );
1601
CEGUI::ListboxTextItem *item = new CEGUI::ListboxTextItem( "22050", 0 );
1602
item->setTextColours( CEGUI::colour( 1, 0, 0 ) );
1603
combo_audio_hz->addItem( item );
1604
item = new CEGUI::ListboxTextItem( "44100", 1 );
1605
item->setTextColours( CEGUI::colour( 0, 1, 0 ) );
1606
combo_audio_hz->addItem( item );
1607
item = new CEGUI::ListboxTextItem( "44800", 2 );
1608
item->setTextColours( CEGUI::colour( 0, 0, 1 ) );
1511
1609
combo_audio_hz->addItem( item );
1513
1611
// Set current value
1514
1612
combo_audio_hz->setText( int_to_string( pPreferences->audio_hz ) );
1516
combo_audio_hz->subscribeEvent( Combobox::EventListSelectionAccepted, Event::Subscriber( &cMenu_Options_Audio::Audio_Hz_Select, this ) );
1614
combo_audio_hz->subscribeEvent( CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber( &cMenu_Options_Audio::Audio_Hz_Select, this ) );
1520
Combobox *combo_music = static_cast<Combobox *>(WindowManager::getSingleton().getWindow( "combo_music" ));
1618
CEGUI::Combobox *combo_music = static_cast<CEGUI::Combobox *>(CEGUI::WindowManager::getSingleton().getWindow( "combo_music" ));
1522
item = new ListboxTextItem( "On", 0 );
1523
item->setTextColours( colour( 0, 1, 0 ) );
1620
item = new CEGUI::ListboxTextItem( UTF8_("On"), 0 );
1621
item->setTextColours( CEGUI::colour( 0, 1, 0 ) );
1524
1622
combo_music->addItem( item );
1525
item = new ListboxTextItem( "Off", 1 );
1526
item->setTextColours( colour( 0, 0, 1 ) );
1623
item = new CEGUI::ListboxTextItem( UTF8_("Off"), 1 );
1624
item->setTextColours( CEGUI::colour( 0, 0, 1 ) );
1527
1625
combo_music->addItem( item );
1529
1627
if( pAudio->music_enabled )
1531
combo_music->setText( "On" );
1629
combo_music->setText( UTF8_("On") );
1535
combo_music->setText( "Off" );
1633
combo_music->setText( UTF8_("Off") );
1538
combo_music->subscribeEvent( Combobox::EventListSelectionAccepted, Event::Subscriber( &cMenu_Options_Audio::music_Select, this ) );
1636
combo_music->subscribeEvent( CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber( &cMenu_Options_Audio::Music_Select, this ) );
1540
1638
// music volume slider
1541
Slider *slider_music = (Slider *)WindowManager::getSingleton().getWindow( "slider_music_volume" );
1639
CEGUI::Slider *slider_music = static_cast<CEGUI::Slider *>(CEGUI::WindowManager::getSingleton().getWindow( "slider_music_volume" ));
1542
1640
slider_music->setCurrentValue( static_cast<float>(pAudio->music_volume) );
1543
slider_music->subscribeEvent( Slider::EventValueChanged, Event::Subscriber( &cMenu_Options_Audio::music_vol_changed, this ) );
1641
slider_music->subscribeEvent( CEGUI::Slider::EventValueChanged, CEGUI::Event::Subscriber( &cMenu_Options_Audio::Music_Vol_Changed, this ) );
1547
Combobox *combo_sounds = static_cast<Combobox *>(WindowManager::getSingleton().getWindow( "combo_sounds" ));
1645
CEGUI::Combobox *combo_sounds = static_cast<CEGUI::Combobox *>(CEGUI::WindowManager::getSingleton().getWindow( "combo_sounds" ));
1549
item = new ListboxTextItem( "On", 0 );
1550
item->setTextColours( colour( 0, 1, 0 ) );
1647
item = new CEGUI::ListboxTextItem( UTF8_("On"), 0 );
1648
item->setTextColours( CEGUI::colour( 0, 1, 0 ) );
1551
1649
combo_sounds->addItem( item );
1552
item = new ListboxTextItem( "Off", 1 );
1553
item->setTextColours( colour( 1, 0.6f, 0.3f ) );
1650
item = new CEGUI::ListboxTextItem( UTF8_("Off"), 1 );
1651
item->setTextColours( CEGUI::colour( 1, 0.6f, 0.3f ) );
1554
1652
combo_sounds->addItem( item );
1556
1654
if( pAudio->sound_enabled )
1558
combo_sounds->setText( "On" );
1656
combo_sounds->setText( UTF8_("On") );
1562
combo_sounds->setText( "Off" );
1660
combo_sounds->setText( UTF8_("Off") );
1565
combo_sounds->subscribeEvent( Combobox::EventListSelectionAccepted, Event::Subscriber( &cMenu_Options_Audio::sound_Select, this ) );
1663
combo_sounds->subscribeEvent( CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber( &cMenu_Options_Audio::Sound_Select, this ) );
1567
1665
// sound volume slider
1568
Slider *slider_sound = (Slider *)WindowManager::getSingleton().getWindow( "slider_sound_volume" );
1666
CEGUI::Slider *slider_sound = static_cast<CEGUI::Slider *>(CEGUI::WindowManager::getSingleton().getWindow( "slider_sound_volume" ));
1569
1667
slider_sound->setCurrentValue( static_cast<float>(pAudio->sound_volume) );
1570
slider_sound->subscribeEvent( Slider::EventValueChanged, Event::Subscriber( &cMenu_Options_Audio::sound_vol_changed, this ) );
1668
slider_sound->subscribeEvent( CEGUI::Slider::EventValueChanged, CEGUI::Event::Subscriber( &cMenu_Options_Audio::Sound_Vol_Changed, this ) );
1573
1671
void cMenu_Options_Audio :: Update( void )
1719
1835
gamepad = new cHudSprite();
1720
keyboard_up_keyname = new cHudSprite( NULL, 0, -200, 0 );
1721
keyboard_up_keyname->Set_Shadow( grey, 1.5f );
1722
keyboard_down_keyname = keyboard_up_keyname->Copy();
1723
keyboard_left_keyname = keyboard_up_keyname->Copy();
1724
keyboard_right_keyname = keyboard_up_keyname->Copy();
1725
keyboard_jump_keyname = keyboard_up_keyname->Copy();
1726
keyboard_shoot_keyname = keyboard_up_keyname->Copy();
1727
keyboard_action_keyname = keyboard_up_keyname->Copy();
1729
joypad_jump_keyname = keyboard_up_keyname->Copy();
1730
joypad_item_keyname = keyboard_up_keyname->Copy();
1731
joypad_shoot_keyname = keyboard_up_keyname->Copy();
1732
joypad_action_keyname = keyboard_up_keyname->Copy();
1733
joypad_exit_keyname = keyboard_up_keyname->Copy();
1736
1838
cMenu_Options_Controls :: ~cMenu_Options_Controls( void )
1738
1840
delete gamepad;
1740
delete keyboard_up_keyname;
1741
delete keyboard_down_keyname;
1742
delete keyboard_left_keyname;
1743
delete keyboard_right_keyname;
1744
delete keyboard_jump_keyname;
1745
delete keyboard_shoot_keyname;
1746
delete keyboard_action_keyname;
1748
delete joypad_jump_keyname;
1749
delete joypad_item_keyname;
1750
delete joypad_shoot_keyname;
1751
delete joypad_action_keyname;
1752
delete joypad_exit_keyname;
1755
1843
void cMenu_Options_Controls :: Init( void )
1757
1845
cMenu_Options::Init();
1847
cMenu_Item *temp_item = NULL;
1849
layout_file = "menu_controls.layout";
1760
1853
gamepad->Set_Image( pVideo->Get_Surface( "menu/items/gamepad.png" ), 1 );
1762
keyboard_up_keyname->Set_Image( pFont->RenderText( pFont->font_normal, SDL_GetKeyName( pPreferences->key_up ), text_color_value ), 1, 1 );
1763
keyboard_down_keyname->Set_Image( pFont->RenderText( pFont->font_normal, SDL_GetKeyName( pPreferences->key_down ), text_color_value ), 1, 1 );
1764
keyboard_left_keyname->Set_Image( pFont->RenderText( pFont->font_normal, SDL_GetKeyName( pPreferences->key_left ), text_color_value ), 1, 1 );
1765
keyboard_right_keyname->Set_Image( pFont->RenderText( pFont->font_normal, SDL_GetKeyName( pPreferences->key_right ), text_color_value ), 1, 1 );
1766
keyboard_jump_keyname->Set_Image( pFont->RenderText( pFont->font_normal, SDL_GetKeyName( pPreferences->key_jump ), text_color_value ), 1, 1 );
1767
keyboard_shoot_keyname->Set_Image( pFont->RenderText( pFont->font_normal, SDL_GetKeyName( pPreferences->key_shoot ), text_color_value ), 1, 1 );
1768
keyboard_action_keyname->Set_Image( pFont->RenderText( pFont->font_normal, SDL_GetKeyName( pPreferences->key_action ), text_color_value ), 1, 1 );
1770
joypad_jump_keyname->Set_Image( pFont->RenderText( pFont->font_normal, int_to_string( pPreferences->joy_button_jump ), text_color_value ), 1, 1 );
1771
joypad_item_keyname->Set_Image( pFont->RenderText( pFont->font_normal, int_to_string( pPreferences->joy_button_item ), text_color_value ), 1, 1 );
1772
joypad_shoot_keyname->Set_Image( pFont->RenderText( pFont->font_normal, int_to_string( pPreferences->joy_button_shoot ), text_color_value ), 1, 1 );
1773
joypad_action_keyname->Set_Image( pFont->RenderText( pFont->font_normal, int_to_string( pPreferences->joy_button_action ), text_color_value ), 1, 1 );
1774
joypad_exit_keyname->Set_Image( pFont->RenderText( pFont->font_normal, int_to_string( pPreferences->joy_button_exit ), text_color_value ), 1, 1 );
1776
cMenu_Item *temp_item = NULL;
1778
GL_Surface *keyboard_up = pFont->RenderText( pFont->font_normal, "Up", text_color );
1779
GL_Surface *keyboard_down = pFont->RenderText( pFont->font_normal, "Down", text_color );
1780
GL_Surface *keyboard_left = pFont->RenderText( pFont->font_normal, "Left", text_color );
1781
GL_Surface *keyboard_right = pFont->RenderText( pFont->font_normal, "Right", text_color );
1782
GL_Surface *keyboard_jump = pFont->RenderText( pFont->font_normal, "Jump", text_color );
1783
GL_Surface *keyboard_shoot = pFont->RenderText( pFont->font_normal, "Shoot", text_color );
1784
GL_Surface *keyboard_action = pFont->RenderText( pFont->font_normal, "Action/Run", text_color );
1786
GL_Surface *joypad_jump = pFont->RenderText( pFont->font_normal, "Jump", text_color );
1787
GL_Surface *joypad_item = pFont->RenderText( pFont->font_normal, "Item", text_color );
1788
GL_Surface *joypad_shoot = pFont->RenderText( pFont->font_normal, "Shoot", text_color );
1789
GL_Surface *joypad_action = pFont->RenderText( pFont->font_normal, "Action/Run", text_color );
1790
GL_Surface *joypad_exit = pFont->RenderText( pFont->font_normal, "Exit", text_color );
1792
GL_Surface *controls_joy_enabled = pFont->RenderText( pFont->font_normal, "Joystick", text_color );
1793
GL_Surface *controls_joy_analog_jump = pFont->RenderText( pFont->font_normal, "Analog Jump", text_color );
1795
layout_file = "menu_controls.layout";
1800
temp_item = new cMenu_Item();
1801
temp_item->image_default->Set_Image( keyboard_up );
1802
temp_item->Set_Pos( GAME_RES_W / 3, menu_posy );
1803
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1804
keyboard_up_keyname->Set_Pos( GAME_RES_W / 2, menu_posy );
1805
drawlist.push_back( new cHudSprite( keyboard_up, -200, 0, 1 ) );
1807
temp_item = new cMenu_Item();
1809
temp_item->image_default->Set_Image( keyboard_down );
1810
temp_item->Set_Pos( GAME_RES_W / 3, menu_posy );
1811
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1812
keyboard_down_keyname->Set_Pos( GAME_RES_W / 2, menu_posy );
1813
drawlist.push_back( new cHudSprite( keyboard_down, -200, 0, 1 ) );
1815
temp_item = new cMenu_Item();
1817
temp_item->image_default->Set_Image( keyboard_left );
1818
temp_item->Set_Pos( GAME_RES_W / 3, menu_posy );
1819
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1820
keyboard_left_keyname->Set_Pos( GAME_RES_W / 2, menu_posy );
1821
drawlist.push_back( new cHudSprite( keyboard_left, -200, 0, 1 ) );
1823
temp_item = new cMenu_Item();
1825
temp_item->image_default->Set_Image( keyboard_right );
1826
temp_item->Set_Pos( GAME_RES_W / 3, menu_posy );
1827
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1828
keyboard_right_keyname->Set_Pos( GAME_RES_W / 2, menu_posy );
1829
drawlist.push_back( new cHudSprite( keyboard_right, -200, 0, 1 ) );
1831
temp_item = new cMenu_Item();
1833
temp_item->image_default->Set_Image( keyboard_jump );
1834
temp_item->Set_Pos( GAME_RES_W / 3, menu_posy );
1835
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1836
keyboard_jump_keyname->Set_Pos( GAME_RES_W / 2, menu_posy );
1837
drawlist.push_back( new cHudSprite( keyboard_jump, -200, 0, 1 ) );
1839
temp_item = new cMenu_Item();
1841
temp_item->image_default->Set_Image( keyboard_shoot );
1842
temp_item->Set_Pos( GAME_RES_W / 3, menu_posy );
1843
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1844
keyboard_shoot_keyname->Set_Pos( GAME_RES_W / 2, menu_posy );
1845
drawlist.push_back( new cHudSprite( keyboard_shoot, -200, 0, 1 ) );
1847
temp_item = new cMenu_Item();
1849
temp_item->image_default->Set_Image( keyboard_action );
1850
temp_item->Set_Pos( GAME_RES_W / 3, menu_posy );
1851
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1852
keyboard_action_keyname->Set_Pos( GAME_RES_W / 2, menu_posy );
1853
drawlist.push_back( new cHudSprite( keyboard_action, -200, 0, 1 ) );
1860
temp_item = new cMenu_Item();
1861
temp_item->image_default->Set_Image( joypad_jump );
1862
temp_item->Set_Pos( GAME_RES_W / 1.6f, menu_posy );
1863
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1864
joypad_jump_keyname->Set_Pos( GAME_RES_W / 1.25f, menu_posy );
1865
drawlist.push_back( new cHudSprite( joypad_jump, -200, 0, 1 ) );
1867
temp_item = new cMenu_Item();
1869
temp_item->image_default->Set_Image( joypad_item );
1870
temp_item->Set_Pos( GAME_RES_W / 1.6f, menu_posy );
1871
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1872
joypad_item_keyname->Set_Pos( GAME_RES_W / 1.25f, menu_posy );
1873
drawlist.push_back( new cHudSprite( joypad_item, -200, 0, 1 ) );
1875
temp_item = new cMenu_Item();
1877
temp_item->image_default->Set_Image( joypad_shoot );
1878
temp_item->Set_Pos( GAME_RES_W / 1.6f, menu_posy );
1879
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1880
joypad_shoot_keyname->Set_Pos( GAME_RES_W / 1.25f, menu_posy );
1881
drawlist.push_back( new cHudSprite( joypad_shoot, -200, 0, 1 ) );
1883
temp_item = new cMenu_Item();
1885
temp_item->image_default->Set_Image( joypad_action );
1886
temp_item->Set_Pos( GAME_RES_W / 1.6f, menu_posy );
1887
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1888
joypad_action_keyname->Set_Pos( GAME_RES_W / 1.25f, menu_posy );
1889
drawlist.push_back( new cHudSprite( joypad_action, -200, 0, 1 ) );
1891
temp_item = new cMenu_Item();
1893
temp_item->image_default->Set_Image( joypad_exit );
1894
temp_item->Set_Pos( GAME_RES_W / 1.6f, menu_posy );
1895
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1896
joypad_exit_keyname->Set_Pos( GAME_RES_W / 1.25f, menu_posy );
1897
drawlist.push_back( new cHudSprite( joypad_exit, -200, 0, 1 ) );
1900
temp_item = new cMenu_Item();
1902
temp_item->image_default->Set_Image( controls_joy_enabled );
1903
temp_item->Set_Pos( GAME_RES_W / 1.6f, menu_posy );
1904
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1905
gamepad->Set_Pos( GAME_RES_W * 0.74f, menu_posy - gamepad->col_rect.h * 0.2f );
1906
drawlist.push_back( new cHudSprite( controls_joy_enabled, -200, 0, 1 ) );
1907
// allow analog jump
1908
temp_item = new cMenu_Item();
1910
temp_item->image_default->Set_Image( controls_joy_analog_jump );
1911
temp_item->Set_Pos( GAME_RES_W / 1.6f, menu_posy );
1912
pMenuCore->handler->Add_MenuItem( temp_item, 1.5f, grey );
1913
drawlist.push_back( new cHudSprite( controls_joy_analog_jump, -200, 0, 1 ) );
1916
drawlist.push_back( new cHudSprite( pVideo->Get_Surface( "menu/controls.png" ), GAME_RES_W * 0.47f, 140 ) );
1917
drawlist.push_back( new cHudSprite( pVideo->Get_Surface( "menu/items/controls.png" ), GAME_RES_W / 2.6f, 140 ) );
1854
gamepad->Set_Pos( game_res_w * 0.7f, game_res_h * 0.1f );
1856
drawlist.push_back( new cHudSprite( pVideo->Get_Surface( "menu/controls.png" ), game_res_w * 0.5f, game_res_h * 0.1f ) );
1857
drawlist.push_back( new cHudSprite( pVideo->Get_Surface( "menu/items/controls.png" ), game_res_w * 0.4f, game_res_h * 0.1f ) );
1919
1859
pMenuCore->handler->Set_Active( MENU_CONTROLS );
2549
2580
pFramerate->Update();
2551
CorrectFrameTime( 100 );
2582
Correct_Frame_Time( 100 );
2553
2584
// set menu gradient colors
2554
2585
pMenuCore->handler->color_start.alpha = 255 - static_cast<Uint8>(i);
2555
2586
pMenuCore->handler->color_end.alpha = pMenuCore->handler->color_start.alpha;
2558
GL_Surface *back1 = pFont->RenderText( pFont->font_normal, "Back", text_color );
2589
GL_Surface *back1 = pFont->Render_Text( pFont->font_normal, _("Back"), text_color );
2560
2591
// clear credits
2561
2592
drawlist.clear();
2563
2594
// add credits texts
2564
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Florian Richter (FluXy)", white ), 0, 20, 1 ) );
2595
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Florian Richter (FluXy)", white ), 0, 20, 1 ) );
2565
2596
drawlist.back()->Set_Shadow( black, 1 );
2566
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Dedicated Developer", white ), 0, -3, 1 ) );
2567
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Organizer and Project Leader", white ), 0, -3, 1 ) );
2597
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Dedicated Developer", white ), 0, -3, 1 ) );
2598
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Organizer and Project Leader", white ), 0, -3, 1 ) );
2569
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Holger Fey (Nemo)", white ), 0, 20, 1 ) );
2600
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Holger Fey (Nemo)", white ), 0, 20, 1 ) );
2570
2601
drawlist.back()->Set_Shadow( lila, 1 );
2571
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Game Tester", white ), 0, -3, 1 ) );
2572
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - German Publicity", white ), 0, -3, 1 ) );
2573
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Torrent Packager", white ), 0, -3, 1 ) );
2602
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Game Tester", white ), 0, -3, 1 ) );
2603
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - German Publicity", white ), 0, -3, 1 ) );
2604
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Torrent Packager", white ), 0, -3, 1 ) );
2575
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Grant ... (youngheart80)", white ), 0, 20, 1 ) );
2606
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Grant ... (youngheart80)", white ), 0, 20, 1 ) );
2576
2607
drawlist.back()->Set_Shadow( green, 1 );
2577
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2579
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Mark Richards (dteck)", white ), 0, 20, 1 ) );
2580
drawlist.back()->Set_Shadow( blue, 1 );
2581
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2608
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2583
2610
// Most Valued Persons (MVP)
2584
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "-- Most Valued Persons (MVP) --", white ), 0, 20, 1 ) );
2611
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "-- Most Valued Persons (MVP) --", white ), 0, 20, 1 ) );
2585
2612
drawlist.back()->Set_Shadow( lightgrey, 1 );
2587
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Tristan Heaven (nyhm)", white ), 0, 20, 1 ) );
2588
drawlist.back()->Set_Shadow( lightblue, 1 );
2589
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Gentoo eBuild Maintainer", white ), 0, -3, 1 ) );
2591
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Muammar El Khatib (muammar)", white ), 0, 20, 1 ) );
2592
drawlist.back()->Set_Shadow( lightred, 1 );
2593
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Debian Package Maintainer", white ), 0, -3, 1 ) );
2595
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Robert W... (BowserJr)", white ), 0, 20, 1 ) );
2614
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "... (Helios)", white ), 0, 20, 1 ) );
2615
drawlist.back()->Set_Shadow( Color( 0.8f, 0.8f, 0.1f ), 1 );
2616
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2618
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Robert W... (BowserJr)", white ), 0, 20, 1 ) );
2596
2619
drawlist.back()->Set_Shadow( lightgreen, 1 );
2597
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Forum and Wiki Moderator", white ), 0, -3, 1 ) );
2620
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Forum and Wiki Moderator", white ), 0, -3, 1 ) );
2622
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "... (Sauer2)", white ), 0, 20, 1 ) );
2623
drawlist.back()->Set_Shadow( Color( 0.1f, 0.6f, 0.1f ), 1 );
2624
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Level Contributor", white ), 0, -3, 1 ) );
2626
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "... (Simpletoon)", white ), 0, 20, 1 ) );
2627
drawlist.back()->Set_Shadow( Color( 0.2f, 0.2f, 0.8f ), 1 );
2628
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Developer", white ), 0, -3, 1 ) );
2630
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Markus Hiebl (Frostbringer)", white ), 0, 20, 1 ) );
2631
drawlist.back()->Set_Shadow( Color( 0.9f, 0.1f, 0.8f ), 1 );
2632
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2633
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Level Contributor", white ), 0, -3, 1 ) );
2635
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Tristan Heaven (nyhm)", white ), 0, 20, 1 ) );
2636
drawlist.back()->Set_Shadow( lightblue, 1 );
2637
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Gentoo eBuild Maintainer", white ), 0, -3, 1 ) );
2639
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Muammar El Khatib (muammar)", white ), 0, 20, 1 ) );
2640
drawlist.back()->Set_Shadow( lightred, 1 );
2641
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Debian Package Maintainer", white ), 0, -3, 1 ) );
2643
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "David Hernandez (vencabot_teppoo)", white ), 0, 20, 1 ) );
2644
drawlist.back()->Set_Shadow( Color( 0.8f, 0.6f, 0.2f ), 1 );
2645
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Music Artist", white ), 0, -3, 1 ) );
2600
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "-- Retired --", white ), 0, 20, 1 ) );
2648
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "-- Retired --", white ), 0, 20, 1 ) );
2601
2649
drawlist.back()->Set_Shadow( lightgrey, 1 );
2603
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Mario Fink (maYO)", white ), 0, 20, 1 ) );
2604
drawlist.back()->Set_Shadow( blue, 1 );
2605
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2606
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Website Graphic Designer", white ), 0, -3, 1 ) );
2607
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Other Support", white ), 0, -3, 1 ) );
2609
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Ursula ... (Pipgirl)", white ), 0, 20, 1 ) );
2651
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Mark Richards (dteck)", white ), 0, 20, 1 ) );
2652
drawlist.back()->Set_Shadow( blue, 1 );
2653
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2655
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Mario Fink (maYO)", white ), 0, 20, 1 ) );
2656
drawlist.back()->Set_Shadow( blue, 1 );
2657
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2658
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Website Graphic Designer", white ), 0, -3, 1 ) );
2659
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Other Support", white ), 0, -3, 1 ) );
2661
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "... (Polilla86)", white ), 0, 20, 1 ) );
2662
drawlist.back()->Set_Shadow( Color( 0.7f, 0.1f, 0.2f ), 1 );
2663
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2665
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Ursula ... (Pipgirl)", white ), 0, 20, 1 ) );
2610
2666
drawlist.back()->Set_Shadow( Color( 0.2f, 0.9f, 0.2f ), 1 );
2611
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2667
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2613
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Tobias Maasland (Weirdnose)", white ), 0, 20, 1 ) );
2669
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Tobias Maasland (Weirdnose)", white ), 0, 20, 1 ) );
2614
2670
drawlist.back()->Set_Shadow( Color( 0.9f, 0.7f, 0.2f ), 1 );
2615
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Level and World Contributor", white ), 0, -3, 1 ) );
2616
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Assistant Developer", white ), 0, -3, 1 ) );
2618
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Markus Hiebl (Frostbringer)", white ), 0, 20, 1 ) );
2619
drawlist.back()->Set_Shadow( Color( 0.9f, 0.1f, 0.8f ), 1 );
2620
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2621
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Level Contributor", white ), 0, -3, 1 ) );
2623
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Robert ... (Consonance)", white ), 0, 20, 1 ) );
2671
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Level and World Contributor", white ), 0, -3, 1 ) );
2672
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Assistant Developer", white ), 0, -3, 1 ) );
2674
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Robert ... (Consonance)", white ), 0, 20, 1 ) );
2624
2675
drawlist.back()->Set_Shadow( lightred, 1 );
2625
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Sound and Music Artist", white ), 0, -3, 1 ) );
2676
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Sound and Music Artist", white ), 0, -3, 1 ) );
2627
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Justin ... (LoXodonte)", white ), 0, 20, 1 ) );
2678
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Justin ... (LoXodonte)", white ), 0, 20, 1 ) );
2628
2679
drawlist.back()->Set_Shadow( lightblue, 1 );
2629
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Music Artist", white ), 0, -3, 1 ) );
2680
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Music Artist", white ), 0, -3, 1 ) );
2631
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Matt J... (mattwj)", white ), 0, 20, 1 ) );
2682
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Matt J... (mattwj)", white ), 0, 20, 1 ) );
2632
2683
drawlist.back()->Set_Shadow( red, 1 );
2633
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - eDonkey Packager", white ), 0, -3, 1 ) );
2634
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Quality Assurance", white ), 0, -3, 1 ) );
2684
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - eDonkey Packager", white ), 0, -3, 1 ) );
2685
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Quality Assurance", white ), 0, -3, 1 ) );
2636
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Bodhi Crandall-Rus (Boder)", white ), 0, 20, 1 ) );
2687
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Bodhi Crandall-Rus (Boder)", white ), 0, 20, 1 ) );
2637
2688
drawlist.back()->Set_Shadow( green, 1 );
2638
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - All Hands Person", white ), 0, -3, 1 ) );
2639
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Game Tester", white ), 0, -3, 1 ) );
2640
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Assistant Graphic Designer", white ), 0, -3, 1 ) );
2689
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - All Hands Person", white ), 0, -3, 1 ) );
2690
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Game Tester", white ), 0, -3, 1 ) );
2691
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Assistant Graphic Designer", white ), 0, -3, 1 ) );
2642
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "John Daly (Johnlein)", white ), 0, 20, 1 ) );
2693
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "John Daly (Johnlein)", white ), 0, 20, 1 ) );
2643
2694
drawlist.back()->Set_Shadow( yellow, 1 );
2644
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2695
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Graphic Designer", white ), 0, -3, 1 ) );
2646
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Gustavo Gutierrez (Enzakun)", white ), 0, 20, 1 ) );
2697
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Gustavo Gutierrez (Enzakun)", white ), 0, 20, 1 ) );
2647
2698
drawlist.back()->Set_Shadow( lightred, 1 );
2648
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Maryo Graphic Designer", white ), 0, -3, 1 ) );
2699
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Maryo Graphic Designer", white ), 0, -3, 1 ) );
2650
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Thomas Huth (Thothy)", white ), 0, 20, 1 ) );
2701
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Thomas Huth (Thothy)", white ), 0, 20, 1 ) );
2651
2702
drawlist.back()->Set_Shadow( greenyellow, 1 );
2652
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, " - Linux Maintainer", white ), 0, -3, 1 ) );
2703
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, " - Linux Maintainer", white ), 0, -3, 1 ) );
2655
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "-- Thanks --", white ), 0, 20, 1 ) );
2706
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "-- Thanks --", white ), 0, 20, 1 ) );
2656
2707
drawlist.back()->Set_Shadow( lightblue, 1 );
2658
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Jason Cox (XOC)", white ), 0, 0, 1 ) );
2659
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Ricardo Cruz", white ), 0, 0, 1 ) );
2660
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Devendra (Yuki),", white ), 0, 0, 1 ) );
2661
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "Hans de Goede (Hans)", white ), 0, 0, 1 ) );
2662
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "... (xPatrickx)", white ), 0, 0, 1 ) );
2663
drawlist.push_back( new cHudSprite( pFont->RenderText( pFont->font_normal, "... (rolosworld)", white ), 0, 0, 1 ) );
2709
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Jason Cox (XOC)", white ), 0, 0, 1 ) );
2710
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Ricardo Cruz", white ), 0, 0, 1 ) );
2711
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Devendra (Yuki),", white ), 0, 0, 1 ) );
2712
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Hans de Goede (Hans)", white ), 0, 0, 1 ) );
2713
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "... (xPatrickx)", white ), 0, 0, 1 ) );
2714
drawlist.push_back( new cHudSprite( pFont->Render_Text( pFont->font_normal, "Rolando Gonzalez (rolosworld)", white ), 0, 0, 1 ) );
2665
2716
// set credits position
2666
2717
for( HudSpriteList::iterator itr = drawlist.begin(), itr_end = drawlist.end(); itr != itr_end; ++itr )