VaultNetwork.net Vault Network Boards
Author Topic: Inventory Management Alternative to Alinco? [Locked]
Hazridi  2 stars
Posts: 411
Registered: 2001-3-15 13:24:12
You can write VVS controls, Mag. That's how I made Defective.

 

-----signature-----
Hazridi of WE, VT, HG, SC
Decal Core Dev - http://www.decaldev.com - Beta at http://www.decaldev.com/beta
mrFlipo  2 stars
Posts: 321
Registered: 2003-6-24 17:15:28
Hazridi posted:

You can write VVS controls, Mag. That's how I made Defective.


Which begs the question 'How'.
Hazridi  2 stars
Posts: 411
Registered: 2001-3-15 13:24:12
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

VaultNetwork.net is an independently operated community forum and is not affiliated with, endorsed by, or technically based on IGN, GameSpy, FilePlanet, GameStats, or the former IGN/GameSpy Vault Network.
References to VaultNetwork.net mean this site/domain. VNBoards-style presentation is a visual homage only. By using this site, you agree to the forum rules.