#include <intuition/intuitionbase.h>
#include "messages.h"
#include "credits.h"

struct Window *Window3, *OpenWindow();
extern struct Window *Window1;
extern struct Screen *FirstScreen;

void	  Credits()
{
  CreditsFenster.Screen = FirstScreen;
  CreditsFenster.TopEdge = (FirstScreen->Height - CreditsFenster.Height) / 2;
  if (!(Window3 = (struct Window *)
	OpenWindow(&CreditsFenster)))
  {
    MessageReq(Window1, NO_CREDITS_WIN, 8, 10, 12);
    return;
  }
  Cls(Window3, 13);
  Shadow(Window3, CREDITS1, 15, 1, -1, 10);
  Shadow(Window3, CREDITS2, 1, 0, -1, 30);
  Shadow(Window3, CREDITS3, 1, 0, -1, 40);
  Shadow(Window3, CREDITS4, 1, 0, -1, 50);
  Shadow(Window3, CREDITS5, 1, 0, -1, 60);
  Shadow(Window3, CREDITS6, 6, 9, -1, 75);
  Shadow(Window3, CREDITS7, 6, 9, -1, 85);
  Shadow(Window3, CREDITS8, 15, 1, -1, 105);
  Shadow(Window3, CREDITS9, 3, 12, -1, 125);
  Shadow(Window3, CREDITS10, 3, 12, -1, 135);
  Shadow(Window3, CREDITS11, 12, 11, -1, 150);
  Shadow(Window3, CREDITS12, 12, 11, -1, 160);
  Shadow(Window3, CREDITS13, 9, 10, -1, 172);
  Shadow(Window3, CREDITS14, 14, 2, -2, 184);
  Nachricht(Window3);
  CloseWindowSafely(Window3, NULL);
}
