WoW:Khaos: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(v2.1)
Line 1: Line 1:
{{cosmosaddon}}
{{funclib|Khaos}}
Khaos is a universal configuration registration system. It allows you to create configurations for addons or addon-groups and cluster them together. You can import/export your own custom configurations and have them work with anyone else who is using Khaos. Below are some examples of using Khaos.
{{tocright}}


Requires [[Earth]], [[Sea]], and [[Chronos]].  
===v2.1===
#Fixed bug in setSetKeyParameter not returnign after an error
#TOC to 20003


===v2.0===
#No longer requires Earth
#Now uses embedded DynamicPopup library for simple static popups
#Now uses embeddable FireTree XML Template Library
#Included derived Radio Button and Vertical Tab templates
#Now uses the blizzard dropdown menu template
#Changed debug globals to only KHAOS_DEBUG and KHAOS_DEBUG_VALUE
#Available Standalone version with all libs embedded


=== Khaos API ===
{{nocat}}
* [[Khaos.registerFolder|registerFolder]] - Registers a custom folder
* [[Khaos.updateFolder|updateFolder]] - Updates a custom folder
* [[Khaos.validateFolder|validateFolder]] - Validates a custom folder
* [[Khaos.unregisterFolder|unregisterFolder]] - Unregisters a custom folder
 
* [[Khaos.registerOptionSet|registerOptionSet]] - Registers an option set
* [[Khaos.updateOptionSet|updateOptionSet]] - Updates an option set
* [[Khaos.validateOptionSet|validateOptionSet]] - Validates an option set prior to registration
* [[Khaos.unregisterOptionSet|unregisterOptionSet]] - Unregisters an option set
 
* [[Khaos.registerConfigurationLoadNotice|registerConfigurationLoadNotice]] - Register to be notified when the user selects a different configuration
* [[Khaos.unregisterConfigurationLoadNotice|unregisterConfigurationLoadNotice]] - Removes the load updater with specified id
 
* [[Khaos.registerGlobal|registerGlobal]] - Registers a global variable to be saved/loaded when the user selects a new configuration
* [[Khaos.unregisterGlobal|unregisterGlobal]] - Removes a global from the configuration update list
* [[Khaos.updateGlobal|updateGlobal]] - Updates the global variable stored inside the configuration
 
* [[Khaos.getSetKey|getSetKey]] - Allows you to directly access a key-value pair inside the configuration
* [[Khaos.setSetKey|setSetKey]] - Allows you to directly modify a key-value pair inside the configuration
* [[Khaos.setSetKeyParameter|setSetKeyParameter]] - Allows you to directly set a key-value pair's parameter
* [[Khaos.getSetEnabled|getSetEnabled]] - Allows you to detect if an option set is on or off
* [[Khaos.setSetEnabled|setSetEnabled]] - Allows you to turn an option set on or off
 
* [[Khaos.updateSetKeys|updateSetKeys]] - Allows you to update groups of set keys and refresh the gui together
* [[Khaos.refresh|refresh]] - Force a re-draw of the gui
 
 
=== Khaos Data Types ===
* [[KhaosConfigurationFolder]] - folders for sets
* [[KhaosSet]] - sets of options
* [[KhaosOption]] - options
* [[KhaosConfigurationLoadNotice ]] - notify when config is loaded
* [[KhaosSlashCommand]] - slash commands for configurations
 
=== Khaos Examples ===
 
====Simple Options====
 
* [[KhaosExamples|Khaos Option Examples]]
 
==== Khaos Configuration Template ====
 
* [[Khaos Configuration Template]]
 
==== Khaos Difficulty Levels ====
 
* [[Khaos Difficulty System]]
 
==== Login Screen ====
 
Choose a configuration from the drop-down menu that appears when you login.
 
The game will load that configuration so that you can preview it. If you press "Use", it will use that configuration. If you select "Edit" it will display the main screen. Checking the box will make it auto-pick that configuration when you login to this server with that character. === Khaos Tutorials ===
 
==== Configuration Demo ====
 
[[Image:Khaos_example.jpg|thumb|The configuration screen]]
Click [[Khaos_Configuration_Example | here]] to see an example, and the code which generated it. <br clear=all>
 
==== Khaos Folders ====
 
[[Image:Khaos_example_folders.jpg|thumb|Example folders]]
The yellow text marks a folder. White text with checkmarks denotes an option set and if it is enabled or not. <br clear=all>
 
==== Khaos Option Sets ====
 
[[Image:Khaos_example_options.jpg|thumb|Example options]]
Each line is a single option. The whole scrollable pane is considered an option set.
 
[[Category:Function Libraries]]
[[Category:Cosmos AddOns]]

Revision as of 07:22, 10 January 2007

This article is a part of the documentation of the Khaos function library

v2.1

  1. Fixed bug in setSetKeyParameter not returnign after an error
  2. TOC to 20003

v2.0

  1. No longer requires Earth
  2. Now uses embedded DynamicPopup library for simple static popups
  3. Now uses embeddable FireTree XML Template Library
  4. Included derived Radio Button and Vertical Tab templates
  5. Now uses the blizzard dropdown menu template
  6. Changed debug globals to only KHAOS_DEBUG and KHAOS_DEBUG_VALUE
  7. Available Standalone version with all libs embedded

Template:Nocat