(API) GroupTab
- plamzi
- 
				 Topic Author Topic Author
- Offline
- Administrator
		Less
		More
		
			
	
		- Posts: 285
- Thank you received: 42
			
	
						27 Mar 2014 17:16				#1
		by plamzi
	
	
		
			
	
			
	
		
	
				(API) GroupTab was created by plamzi			
			
				This module creates a tab inside ChatterBox (by default) that shows status bars for any number of characters:
The supported data source for this module is Aardwolf-style GMCP data sent inside a "group" object.
Optionally, you can display spell affects for the first entity in the GroupTab, which can be the player-controlled character. The format is given below, with the parameters "gives" and "to" being optional.
METHODS:
EXAMPLE USE:
			
					The supported data source for this module is Aardwolf-style GMCP data sent inside a "group" object.
Optionally, you can display spell affects for the first entity in the GroupTab, which can be the player-controlled character. The format is given below, with the parameters "gives" and "to" being optional.
char.affs [{ "name": "armor", "duration": 16, "gives": -55, "to": "ARMOR" }]METHODS:
| title | Sets the tab title. Default is "group". | 
| id | Sets the id attribute of the GroupTab div. Default is "#group-tab". | 
EXAMPLE USE:
    Config.GroupTab = new GroupTab();
    Event.listen('gmcp', Config.GroupTab.update);
    Event.listen('chatterbox_ready', Config.GroupTab.init);
			The topic has been locked.		
													