VaultNetwork.net Vault Network Boards
Author Topic: Multiple VVS windows for a plugin? [Locked]
shontsu
Posts: 20
Registered:
Are there any example code on how to do this? Simplest example of what I mean is like the Virindi Huds where you tick a box on one window and it creates a whole new window.

I'm also interested in either replacing or changing the main window (apparantly I have some users on laptops who want very small ui's for their very low res's).

If not, could I get a basic rundown on how to do it?
Virindi-Inquisitor  4 stars
Posts: 1,538
Registered: 2001-11-18 22:25:54
How are you doing it now? Using the wireuphelper?

 

-----signature-----
Virindi
---
****Virindi Plugins FAQ**** http://www.virindi.net/wiki/index.php/Virindi_Plugins_FAQ
http://www.virindi.net - Virindi Tank, Follower, Integrator, Reporter, VCS5, XPHelper, Item Tool, HUDs, etc...
Decal Core Dev - http://www.decaldev.com
shontsu
Posts: 20
Registered:
Yeah, its based on that Mag sample that got posted.

- A mainView.xml file to define the view, then

- [MVView("Nergal.mainView.xml"]
[MVWireUpControlEvents]

Above my class definition, and

Globals.Init("Nergal", Host, Core);

//Initialize the view.
MVWireupHelper.WireupStart(this, Host);


In the Startup. Then I just have the code like:

[MVControlReference("FriendList"]
private IList FriendList = null;

[MVControlEvent("FriendList", "Selected"]
void FriendList_Selected(object sender, MVListSelectEventArgs e)

To interact with it all.
Virindi-Inquisitor  4 stars
Posts: 1,538
Registered: 2001-11-18 22:25:54
If you want to use the same technique, you can make another class, such as an "options window" class for instance, and have it work the same way. Unlike Adapter wireup, my wrapper wireup will work on any class (not just plugincore).

 

-----signature-----
Virindi
---
****Virindi Plugins FAQ**** http://www.virindi.net/wiki/index.php/Virindi_Plugins_FAQ
http://www.virindi.net - Virindi Tank, Follower, Integrator, Reporter, VCS5, XPHelper, Item Tool, HUDs, etc...
Decal Core Dev - http://www.decaldev.com
shontsu
Posts: 20
Registered:
Works a treat. I need to refactor a bit of stuff, but this is really nice.

Thanks.

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.