| Plug-Ins Updated 07 Mar 2010 | Upper levels: - QuArK Information Base - 3. Advanced customization

3.6. Plug-Ins | [ Prev - Up - Next ]

Plug-Ins are scripts programmed in Python that modify existing features or add new features to QuArK. They are mainly related to the map editor, which is itself programmed mostly in Python. Plugins as used in QuArK are actually quite different from conventional plugins as found GtkRadiant etc., so here's a bit of background to forestall confusion. QuArK was originally written entirely in Delphi, but halfway through writing QuArK 5, Armin Rigo discovered Python and decided that it would be better than straight Delphi for programming the QuArK GUI. The architecture he came up with (I don't know what its antecedents are) was that each aspect of the interface would be defined by a plugin file, sitting in the subdirectory plugins/, which would be able to call on both a set of facilities provided by Delphi, and also a collection of facilities provided in Python by files in the quarkpy/. So when map or model editor is started, all the corresponding plugins are loaded, and their functionality enabled. Probably the best way to get a feel for plugins is to first work thru a tutorial, then look at some existing examples. There is an archive here, plugin_examples.zip, of working examples for this tutorial (and others) in the 'zips' sub-folder of your QuArK-help folder on your hard drive.

Sections

- 3.6.1. Plugin Tutorial (25 Jul 2009)

- 3.6.1.1. Intro Blather (25 Jul 2009)
- 3.6.1.2. Putting a Command on a Menu (25 Jul 2009)
- 3.6.1.3. Tagging and Gluing (17 Aug 2005)
- 3.6.1.4. Help, etc. (02 Mar 2001)
- 3.6.1.5. Displaying Tagged-ness (02 Mar 2001)
- 3.6.1.6. Right Mouse Menus (15 Feb 2001)

Copyright (c) 2009, GNU General Public License by The QuArK (Quake Army Knife) Community - http://quark.sourceforge.net/ | [ Prev - Top - Next ]