public class HudHotIcon : VirindiViewService.Controls.HudControl, IDisposable
{
// ... most stuff left out
public HudHotIcon()
{
_img = new VirindiViewService.Controls.HudImageStack();
}
public override void MouseUp(Point pt, Point orig)
{}
public override void MouseDown(Point pt)
{}
public override void MouseMove(Point pt)
{}
public override void MouseWheel(Point pt, int amt)
{}
public override void DrawNow(VirindiViewService.DxTexture iSavedTarget)
{
base.DrawNow(iSavedTarget);
iSavedTarget.Fill(SavedClipRegion, Color.Transparent);
iSavedTarget.PushClipRect(SavedClipRegion);
try
{
_img.CanDraw = true;
_img.DrawNow(iSavedTarget);
}
finally
{
iSavedTarget.PopClipRect();
}
}
Obviously you'd need to add a lot of code to flesh it out.
You can just add a VirindiViewService.ACImage to the HudImageStack, which just contains a bunch of ACImage class references and it composites them on top of each other. It's a good choice for emulating AC icons or spells. _img.Add(new VirindiViewService.ACImage(0xPORTALDATICON));
-----signature-----
Hazridi of WE, VT, HG, SC
Decal Core Dev -
http://www.decaldev.com - Beta at
http://www.decaldev.com/beta