static void setupBackground(const Graphics::Bitmap & background, int load_x, int load_y, int load_width, int load_height, int infobox_x, int infobox_y, int infoWidth, int infoHeight, const Graphics::Bitmap & infoBackground, const Graphics::Bitmap & work){
- /* will be true if any new info messages appeared */
- bool drawInfo = firstDraw;
- firstDraw = false;
- if ( Global::speed_counter > 0 ){
- double think = Global::speed_counter;
- Global::speed_counter = 0;
- draw = true;
+ double ticks(double system){
+ return system;
+ }
- while ( think > 0 ){
- gradient.backward();
- think -= 1;
+ bool done(){
+ return context.done();
+ }
+ };
+
+ class Draw: public Util::Draw {
+ public:
+ Draw(const Level::LevelInfo & levelInfo, State & state, Messages & infobox, Effects::Gradient & gradient, int load_width, int load_height, int infobox_width, int infobox_height, int load_x, int load_y):
+ gradient(gradient),
+ state(state),
+ infobox(infobox),
+ work(load_width, load_height),
+ infoWork(infobox_width, infobox_height),
+ infoBackground(infobox_width, infobox_height),
+ infobox_x(load_x),
+ infobox_y(load_y + load_height * 2),
+ load_x(load_x),
+ load_y(load_y){
+
+ const Font & myFont = Font::getFont(Global::DEFAULT_FONT, 24, 24);