SplashScreen erstellt und playerOnline.png hinzugefügt zu Texturen
This commit is contained in:
1
src/Gui/SplashScreen.cd
Normal file
1
src/Gui/SplashScreen.cd
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
29
src/Gui/Splashscreen.cs
Normal file
29
src/Gui/Splashscreen.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user