[V1.0] Addon Information

Poll

How'd you like it?

Looks great!
9 (60%)
Meh
5 (33.3%)
No
1 (6.7%)

Total Members Voted: 15

Author Topic: [V1.0] Addon Information  (Read 1974 times)

Hello, i'm back with another addon!
This addon basically adds a GUI into the game that tells you what addons (who  choose to participate) descriptions/versions/author/prefs are. You can also edit the prefs.
Screenshots



How to set up your own addons to display information on this
Basically, all you have to do is insert this code into the client.cs of your addon:
Code: [Select]
LVLA_regaddon(Name of addon,Your name,Version of addon,ID of the addon your adding. (This is used for variable purposes. Start at 3.),Icon (The name of any RTB icon that is included in the images folder. Just a name, no .png or ./images),Description);So basically,
Code: [Select]
LVLA_regaddon(%name,%author,%version,%id,%icon,%desc);%name = Your addon name
%author = Your name
%version = Version of your addon
%id = A numeric ID. Start at 3, since RTB and Blockland use 1 and 2.
%icon = This is just a simple name. For example, if I wanted the icon to show the man, I would put in "man". Optional.
%desc = Description of your addon. Optional.
<!> Be sure to put quotes around every argument in this code. <!>
Download
http://www.mediafire.com/download/inhdit9sf90nc95/client_addons.zip

Enjoy!

nifty

the gui could use some work tho

nifty

the gui could use some work tho
Yeah, I know.
It's the first time of mine using a list / column system, and making graphical lists (prefs).

The GUI needs some work. It needs one flowing theme. Right now it's just a bunch of stuff jumbled together.

Although a neat thought, I doubt many add-on creators will use this. Because of this, it should attempt to parse existing description.txt files, as many follow this format:
Code: (Description.txt) [Select]
Title: My Add-On
Author: jes00
This is my add-on and it does stuff.
And then if it does not follow that format then it should just read the description.txt and use that(using the folder name for the title, replacing underscores with spaces).

How to set up your own addons to display information on this
Basically, all you have to do is insert this code into the client.cs of your addon:
Code: [Select]
LVLA_regaddon(Name of addon,Your name,Version of addon,ID of the addon your adding. (This is used for variable purposes. Start at 3.),Icon (The name of any RTB icon that is included in the images folder. Just a name, no .png or ./images),Description);So basically,
Code: [Select]
LVLA_regaddon(%name,%author,%version,%id,%icon,%desc);%name = Your addon name
%author = Your name
%version = Version of your addon
%id = A numeric ID. Start at 3, since RTB and Blockland use 1 and 2.
%icon = This is just a simple name. For example, if I wanted the icon to show the man, I would put in "man". Optional.
%desc = Description of your addon. Optional.
<!> Be sure to put quotes around every argument in this code. <!>
This won't work if the add-on is executed before this one.

I mean it's cool but I don't think it's too useful.



You basically took the old Mod Manager from RTB and shoved it into a new GUI.
I do like the concept of showing the add-on prefs, however.

It still needs some work though. It seems like you released this a bit early

This was an idea I had, but my idea was to parse all description.txt files.