SplashScreen erstellt und playerOnline.png hinzugefügt zu Texturen

This commit is contained in:
Wafa Sadri
2014-05-09 10:11:15 +02:00
parent d0c9ec348b
commit 260c84bcac
4 changed files with 31 additions and 0 deletions

1
src/Gui/SplashScreen.cd Normal file
View File

@@ -0,0 +1 @@


29
src/Gui/Splashscreen.cs Normal file
View File

@@ -0,0 +1,29 @@
using System;
using System.Drawing;
using System.Windows.Forms;
namespace WorldOfPeacecraft
{
public class SplashScreen : Form
{
private string ImagesFolder = "textures/";
private Image Logo;
public SplashScreen ()
{
Logo = Image.FromFile (ImagesFolder + "splashscreen.png");
//TODO: Play splashscreen.ogg
}
protected override void OnPaint (PaintEventArgs e)
{
Graphics g = e.Graphics;
}
public void PaintImage(Graphics g)
{
g.DrawImage (Logo, 100, 20, 450, 150);
}
}
}