About: Using bindings.xml to create key bindings for your addon   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : dbkwik.org associated with source dataset(s)

See: Bindings file Example: bindings.xml DoSomething(); if ( keystate == "down" ) then DoSomethingElse(); else DoSomethingYetDifferent(); end DoOneThing(); dostuff.lua -- Binding Variables BINDING_HEADER_MYDOSTUFF = "The header"; BINDING_NAME_DOSTUFF = "a name"; BINDING_NAME_DOOTHERSTUFF = "another name"; BINDING_NAME_DOMORESTUFF = "yet another name"; Bindings.xml -- Corruption -- HNB -- blitz -- menu! The above code is equivalent to the below code, except with the above, the user chooses the bindings and with the below, the coder chooses the bindings. yourAddon.lua

AttributesValues
rdfs:label
  • Using bindings.xml to create key bindings for your addon
rdfs:comment
  • See: Bindings file Example: bindings.xml DoSomething(); if ( keystate == "down" ) then DoSomethingElse(); else DoSomethingYetDifferent(); end DoOneThing(); dostuff.lua -- Binding Variables BINDING_HEADER_MYDOSTUFF = "The header"; BINDING_NAME_DOSTUFF = "a name"; BINDING_NAME_DOOTHERSTUFF = "another name"; BINDING_NAME_DOMORESTUFF = "yet another name"; Bindings.xml -- Corruption -- HNB -- blitz -- menu! The above code is equivalent to the below code, except with the above, the user chooses the bindings and with the below, the coder chooses the bindings. yourAddon.lua
dcterms:subject
dbkwik:wowwiki/pro...iPageUsesTemplate
abstract
  • See: Bindings file Example: bindings.xml DoSomething(); if ( keystate == "down" ) then DoSomethingElse(); else DoSomethingYetDifferent(); end DoOneThing(); dostuff.lua -- Binding Variables BINDING_HEADER_MYDOSTUFF = "The header"; BINDING_NAME_DOSTUFF = "a name"; BINDING_NAME_DOOTHERSTUFF = "another name"; BINDING_NAME_DOMORESTUFF = "yet another name"; As of 2.0, "dummy" bindings (bindings containing only a comment) can be used with names that match the Bindings.xml syntax for saving spell, item, macro and click bindings. Because these terms have spaces in them, you will need to use global name-string references to set the names that appear by them. Bindings.xml -- Corruption -- HNB -- blitz -- menu! The above code is equivalent to the below code, except with the above, the user chooses the bindings and with the below, the coder chooses the bindings. SetBindingSpell(key, "Corruption") SetBindingItem(key, "Heavy Netherweave Bandage") SetBindingMacro(key, "RawrBomb!") SetBindingClick(key, "TargetFrame", "RightButton") yourAddon.lua _G["BINDING_NAME_SPELL Corruption"] = "Dot 'em up!" setglobal("BINDING_NAME_CLICK TargetFrame:RightButton", "Open your target menu")
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software