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

View File

@@ -76,6 +76,7 @@
<Compile Include="src\Gui\MapPanel.cs" />
<Compile Include="src\Pathfinder.cs" />
<Compile Include="src\Gui\IEntity.cs" />
<Compile Include="src\Gui\SplashScreen.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup>

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);
}
}
}

BIN
textures/playerOnline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB