<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoWBench%2FExtending</id>
	<title>WoWBench/Extending - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoWBench%2FExtending"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoWBench/Extending&amp;action=history"/>
	<updated>2026-04-22T22:04:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoWBench/Extending&amp;diff=15059&amp;oldid=prev</id>
		<title>WoWWiki&gt;Pcj at 15:09, 8 March 2008</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoWBench/Extending&amp;diff=15059&amp;oldid=prev"/>
		<updated>2008-03-08T15:09:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:09, 8 March 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{breadcrumb1|WoWBench}} {{tocright}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Modifying and extending for local use =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Modifying and extending for local use =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;margin-left: 3%; max-width: 50em;&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;margin-left: 3%; max-width: 50em;&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-15058:rev-15059 --&gt;
&lt;/table&gt;</summary>
		<author><name>WoWWiki&gt;Pcj</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoWBench/Extending&amp;diff=15058&amp;oldid=prev</id>
		<title>WoWWiki&gt;Mikk at 02:14, 21 June 2006</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoWBench/Extending&amp;diff=15058&amp;oldid=prev"/>
		<updated>2006-06-21T02:14:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{breadcrumb1|WoWBench}} {{tocright}}&lt;br /&gt;
&lt;br /&gt;
= Modifying and extending for local use =&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left: 3%; max-width: 50em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The easiest and most non-invasive way to modify existing functionality, or implementing &amp;quot;hacks&amp;quot; for APIs that do not yet exist, is probably to add a new file to the bottom of [[WoWBench/Documentation#world.toc|world.toc]] and have that (re-)define APIs that you need. &lt;br /&gt;
&lt;br /&gt;
Example world.toc:&lt;br /&gt;
 &amp;#039;&amp;#039;(more above...)&amp;#039;&amp;#039;&amp;amp;nbsp;&lt;br /&gt;
 world.xml&lt;br /&gt;
 worldcmds.lua &lt;br /&gt;
 &lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;#My local hacks&amp;#039;&amp;#039;&amp;#039;&amp;amp;nbsp;&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;myhacks.lua&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example myhacks.lua:&lt;br /&gt;
 function CursorCanGoInSlot(slot) &lt;br /&gt;
   &amp;#039;&amp;#039;your code here&amp;#039;&amp;#039;&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
Remember that Lua functions can be re-defined as many times as you like. At the end of world.toc, WoWBench has finished defining everything built-in. All that remains to be loaded after that point is FrameXML and AddOns.&lt;br /&gt;
&lt;br /&gt;
If you want to modify something &amp;#039;&amp;#039;after&amp;#039;&amp;#039; FrameXML has loaded, the best way is probably to create a new &amp;quot;AddOn&amp;quot; (new directory with .toc and everything) that contains your &amp;quot;myhacks.lua&amp;quot;, and list that addon as the first one on the command line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Of course just flat out modifying what&amp;#039;s already there works too, but you might end up regretting it when you download a new copy of WoWBench.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Using command-line .txt files to temporarily load hacks ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left: 3%;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As of v1.11.0.a4, WoWBench will accept .txt file names on the command line. These files will parse just like anything you enter on the command line.&lt;br /&gt;
&lt;br /&gt;
Example commandline script to add extensions and tweak things:&lt;br /&gt;
 dofile(&amp;quot;myhacks.lua&amp;quot;);&lt;br /&gt;
 dofile(&amp;quot;hacks/someotherhacks.lua&amp;quot;);&lt;br /&gt;
 some_var = some_value;&lt;br /&gt;
 &lt;br /&gt;
 say Bob Oh, schnapps!&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
You&amp;#039;d just load this with something like:&lt;br /&gt;
: &amp;lt;tt&amp;gt;lua wowbench.lua MyAddon myscript.txt&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== We want your hacks, too! ==&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left: 3%;&amp;quot;&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
If there&amp;#039;s even a remote chance that your local hacks can be useful to anyone else, we&amp;#039;ll gladly accept them! See [[WoWBench/Contributing]] and [[WoWBench/Hacks]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Guidelines for adding to WoWBench =&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left: 3%; max-width: 50em;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Stub/Other}}&lt;br /&gt;
&lt;br /&gt;
== Widgets ==&lt;br /&gt;
&lt;br /&gt;
Since WoWBench is command line driven, much of the Widget API is just duds. Methods that are not implemented, but have not yet caused problems for anyone, call &amp;lt;tt&amp;gt;_notimplemented(&amp;quot;class.methodname&amp;quot;)&amp;lt;/tt&amp;gt;, which causes an assert. &lt;br /&gt;
&lt;br /&gt;
If any of these methods cause problems for you, but you judge that it is not important for them to be emulated in any way, just &amp;#039;&amp;#039;&amp;#039;replace &amp;quot;_notimplemented&amp;quot; with &amp;quot;_ignore_notimplemented&amp;quot;&amp;#039;&amp;#039;&amp;#039;. Do not simply remove the call; it is useful to be able to modify _ignore_notimplemented() to spot problems in the future.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:WoWBench]]&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Mikk</name></author>
	</entry>
</feed>