SplashScreen erstellt und playerOnline.png hinzugefügt zu Texturen
This commit is contained in:
@@ -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
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
textures/playerOnline.png
Normal file
BIN
textures/playerOnline.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
Reference in New Issue
Block a user