What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Looking for a Guide on creating Windows Forms for Archeage Plugins

Beetlebomb

New Member
Joined
Jan 1, 2011
Messages
131
Reaction score
0
Hey guys,

I've created a few private plugins that have some great functionality to it(fully functional AH bidder/sniper/seller and an extremely detailed radar plugin). Some of which I'd love to share with the community. However, most of what I've written is catered to my current preferences. I'd like to create a windows form that would allow anyone to simply change a few settings to their own desire. I've spent countless hours trying to make a Windows Form without having to manually copy and paste tons of Windows Form source code into one .cs file. I want to be able to save my code in Visual Studio 2013 and run it without moving code from one file to another. Long story short, for example, if I want to tweak or move 1 button on my windows form, that means I have to highlight the entire auto-generated code for that form, copy it, and paste it inside one original .cs file. This is because I've yet to see a plugin that has separate .cs files between the form and the actual plugin functions.

If someone could help me out with this, I'm certain I'll be able to create some really great stuff for the Archebuddy community.

Thanks for any help!
 
Just create a form make the attributes public and dont use the auto generated code setup your own delegates. It's not that hard
 
Just create a form make the attributes public and dont use the auto generated code setup your own delegates. It's not that hard

I'm coming from basic C++ knowledge and I haven't programmed in over a year. This is the first time I've ever used C# so I'm sorry if I don't notice something that's right in my face.

I don't know how to use delegates but I'll look up on how to do that right now. Also, I have no clue what you mean by setting up a form but not using the auto generated code. Aren't those two hand-in-hand unless you want to painstakingly declare and adjust every little detail of a form manually?
 
I'm coming from basic C++ knowledge and I haven't programmed in over a year. This is the first time I've ever used C# so I'm sorry if I don't notice something that's right in my face.

I don't know how to use delegates but I'll look up on how to do that right now. Also, I have no clue what you mean by setting up a form but not using the auto generated code. Aren't those two hand-in-hand unless you want to painstakingly declare and adjust every little detail of a form manually?

Add a new file to your project > Windows Form > create your form > double click till you get to the designer.cs > make all your variables public > plugin.cs (your plugin) > Make an instance of your form and you can adjust everything from out your plugin file
 
Thanks. I've managed to get my form to show up when I run the plugin but now I don't know how to use Archebuddy methods from within my form's events. I'm using the correct references but I keep getting the error, for example, "Log does not exist in the current context".
 
make a constructor and add the core as a constructor property. how experienced are you if i may ask?
 
make a constructor and add the core as a constructor property. how experienced are you if i may ask?

I actually did exactly that after posting my dilemma. I've gone through 4-5 C++ classes in college. That's about it. Been a while, like I said :). I figured this would be a perfect opportunity to both help out the archebuddy community and sharpen my programming skills. Luckily navigating the API documentation hasn't been much of a problem at all.

Thanks for you help btw. I think I've got everything I need now!
 
Back
Top