Ejemplo n.º 1
0
// DrawRegisterPanel():
//  Called to draw the Register Panel
void DrawRegisterPanel( LWPanelID panel_id, void *panel_user, DrMode panel_draw_mode ) {
  CDrawFuncs *df = simp_int->panel_funcs->DrawFuncs;

  // Title Image
  logo.DrawInLWPanels( simp_int->simpd->register_panel, df, -205, 0 );

  int ph = PAN_GETH( simp_int->panel_funcs->orig_struct, simp_int->simpd->register_panel );
  int pw = PAN_GETW( simp_int->panel_funcs->orig_struct, simp_int->simpd->register_panel );

  int y = 85;

  for( int i=0; register_text[i] != NULL; i++ ) {
    df->WriteText( simp_int->simpd->register_panel, (char *)register_text[i], COLOR_BLACK,
                   (pw/2)-(df->TextWidth(simp_int->simpd->register_panel, (char *)(register_text[i]) ))/2,
                   y );
    y += 15;
  }

  y = CON_Y( simp_int->simpd->register_now ) + 50;
  df->WriteText( simp_int->simpd->register_panel, (char *)trial_text, COLOR_BLACK,
                 (pw/2)-(df->TextWidth(simp_int->simpd->register_panel, (char *)(trial_text) ))/2,
                 y );
}
Ejemplo n.º 2
0
// DrawMainPanel():
//  Draw details on the main panel (ie: dividers)
void SG_DrawMainPanel( LWPanelID panel_id, void *panel_user, DrMode panel_draw_mode ) {
  CDrawFuncs *df = simpg_int->panel_funcs->DrawFuncs;
  int ph = PAN_GETH( simpg_int->panel_funcs->orig_struct, simpg_int->main_panel );
  int pw = PAN_GETW( simpg_int->panel_funcs->orig_struct, simpg_int->main_panel );

  // Horizontal Dividers
  int y = CON_Y( simpg_int->output_scene );
  int h = CON_H( simpg_int->output_scene );
  PanelDraw::HorizontalDivider( simpg_int->main_panel, df, 0, y+h+2, pw, 1 );

/*
  y = CON_Y( simpg_int->render_filename );
  h = CON_H( simpg_int->render_filename );
  PanelDraw::HorizontalDivider( simpg_int->main_panel, df, 0, y+h+2, pw, 1 );

  y = CON_Y( simpg_int->lod_distance );
  h = CON_H( simpg_int->lod_distance );
  PanelDraw::HorizontalDivider( simpg_int->main_panel, df, 0, y+h+2, pw, 1 );
*/

  // Title Image
//  PanelDraw::DrawImage( simp_int->main_panel, df, logo, -25, 0 );
  logo.DrawInLWPanels( simpg_int->main_panel, df, -25, 0 );
}