-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathEntityMap.cs
75 lines (61 loc) · 2.66 KB
/
EntityMap.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//By AlSch092 @ Github
using System;
using System.Drawing;
using System.Windows.Forms;
namespace Mir4ClientEmulator
{
public partial class EntityMap : Form //this class is unfinished and may not work
{
public EntityMap()
{
InitializeComponent();
}
private void EntityMap_Load(object sender, EventArgs e)
{
//load initial image/map
//todo: get current map
pictureBox_EntityMap.BackColor = Color.Transparent;
pictureBox_Hero.ImageLocation = "..\\Images\\Hero.PNG";
}
public void LoadMap(uint stageID) //not sure if zone ID is map ID or unique instance
{
switch (stageID)
{
case 100002010:
pictureBox_EntityMap.ImageLocation = ".\\Images\\Maps\\PeachBlossomValley.PNG";
break;
case 101003010: //ginkgo valley
pictureBox_EntityMap.ImageLocation = ".\\Images\\Maps\\GingkoValley.PNG";
break;
case 101004040: //nefariox ruins 2f
pictureBox_EntityMap.ImageLocation = ".\\Images\\Maps\\NefarioxRuins2F.PNG";
break;
case 101003030: //bicheon twon
pictureBox_EntityMap.ImageLocation = ".\\Images\\Maps\\BicheonTown.PNG";
break;
case 103003010: //snake pit
pictureBox_EntityMap.ImageLocation = ".\\Images\\Maps\\SnakePit.PNG";
break;
case 103003070: //viperbeast plain
pictureBox_EntityMap.ImageLocation = ".\\Images\\Maps\\ViperbeastPlain.PNG";
break;
case 201400001:
pictureBox_EntityMap.ImageLocation = ".\\Images\\Maps\\SecretPeak1F.PNG";
break;
case 105002050: //Haven's way peak 1F
pictureBox_EntityMap.ImageLocation = ".\\Images\\Maps\\HeavensPeak1F.PNG";
break;
case 103: //demon bull temple 2f FIX ID
pictureBox_EntityMap.ImageLocation = ".\\Images\\Maps\\DemonBullTemple2F.PNG";
break;
};
pictureBox_EntityMap.SizeMode = PictureBoxSizeMode.AutoSize;
}
public void DrawHeroIcon(int x, int y) //draw our position onto map
{
pictureBox_Hero.BackColor = Color.Transparent;
pictureBox_Hero.Parent = pictureBox_EntityMap;
pictureBox_Hero.Location = new Point(x, y);
}
}
}