Toolbar XML
Format of customized toolbar .xml files.
XML Overview
The toolbar.xml
allows for additional plugin features to be loaded
through included .xml files. It references to all of the
required resources by relative paths.
Example
<root>
<actionlist>
<action tag="Ext_HM_Toolbar_Capture_Screen_to_Clipboard" tooltip="Save graphics area to clipboard" image="save_to_clipboard_toolbar.png" command="tcl: ::ExtensionDemoGlobal::CaptureToClipboard"/>
<action tag="Ext_HM_Toolbar_Capture_Screen_to_File" tooltip="Save graphics area to PNG file" image="save_to_file_toolbar.png" command="tcl: ::ExtensionDemoGlobal::CaptureToPNGFile"/>
<action tag="Ext_HM_Toolbar_Capture_Window_in_WorkDir" tooltip="Save fixed resolution in workdir" image="save_to_file_toolbar.png" command="tcl: ::ExtensionDemoGlobal::CaptureWindowToJPEGFileFixedResolution"/>
</actionlist>
<toolbar tag="GTA_2022_1_Toolbar_HV" location="left">
<item actiontag="Ext_HM_Toolbar_Capture_Screen_to_Clipboard"/>
<item actiontag="Ext_HM_Toolbar_Capture_Screen_to_File"/>
<item actiontag="Ext_HM_Toolbar_Capture_Window_in_WorkDir"/>
</toolbar>
</root>
Tags
root
- Attributes
- none
- Children
- toolbar
toolbar
- Attributes
- name, value
- Children
- item
item
- Attributes
- name, value
- Children
- none
Options
location
Location of the toolbar (left, right, bottom)
actiontag
Reference to the action defined in the actionlist
- Example XML
-
<root> <include src="../mv-actions.xml" /> <toolbar tag="Ext_Toolbar_MV" location="left"> <item actiontag="Ext_Toolbar_ScreeshotMV1"/> <item actiontag="Ext_Toolbar_ScreeshotMV2"/> </toolbar> <toolbar tag="MDL_Vortex_Toolbar" location="left"> <item actiontag="MDL_Vortex_Settings"/> <item actiontag="MDL_Vortex_Export_Deck"/> </toolbar> </root>
- Include my-actions.xml file:
-
<root> <actionlist> <action tag="MDL_Vortex_Settings" tooltip="Settings" image="ribbonVortexSettingsStrip-80.png" command="py: Extension_multiclient_test_HM_HV_MV_HG_final.pyscript.test()"/> <action tag="MDL_Vortex_Export_Deck" tooltip="Export Deck" image="ribbonVortexExportDeckStrip-80.png" command="tcl: ::Vortex::ExportDeck"/> <action tag="Ext_Toolbar_ScreeshotMV1" tooltip="Save image to clipboard" image="save_to_clipboard_toolbar.png" command="tcl: ::Vortex::ToClipboardMV"/> <action tag="Ext_Toolbar_ScreeshotMV2" tooltip="Save image to file" image="save_to_file_toolbar.png" command="tcl: ::Vortex::ToFileMV"/> </actionlist> </root>