Changeset 9337 for lang/d

Show
Ignore:
Timestamp:
04/12/08 03:26:24 (8 months ago)
Author:
omega
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/d/koke/trunk/gamecore.d

    r7148 r9337  
    6464        PlayChart chart;                                // チャート 
    6565         
    66         int config_reload_timer;                // 「コンフィグをリロードした」表示用 
     66        int message_timer;                              // システムメッセージ表示用タイマ 
     67        string message;                                 // システムメッセージ 
    6768         
    6869        int mray_timer;                                 // 運営レーザー用タイマ 
     
    8384                configparser = new ConfigParser(); 
    8485                configparser.load(CONFIG_PATH); 
    85                 config_reload_timer = 0; 
     86                message_timer = 0; 
     87                message = ""; 
    8688                 
    8789                mray_timer = 0; 
     
    279281                        configparser.update(); 
    280282                        config_reload = 0; 
    281                         config_reload_timer = CONFIG_RELOAD_SHOW_INTERVAL; 
    282                 }else if(config_reload_timer > 0){ 
    283                         config_reload_timer--; 
    284                 } 
     283                        message_timer = CONFIG_RELOAD_SHOW_INTERVAL; 
     284                        message = "CONFIG RELOAD"; 
     285                } 
     286                if(message_timer > 0) message_timer--; 
    285287        } 
    286288         
     
    408410                if(chart_switch.getSelected() != "") chart.draw(); 
    409411                 
    410                 // config_reload 
    411                 if(config_reload_timer > 0 && timer % 11 < 10){ 
    412                 Hell_drawFont("CONFIG RELOADED" , (getScreenWidth() - 8 * 15)/ 2 , getScreenHeight() / 2  
     412                // message 
     413                if(message_timer > 0 && timer % 11 < 10){ 
     414                Hell_drawFont(message , (getScreenWidth() - 8 * message.length)/ 2 , getScreenHeight() / 2  
    413415                                        , 1 , 255,128,0); 
    414416                }