<?xml version="1.0"?>
<!--
	There are three types of children that can be placed in the toolbar container:

	<toolbutton />	A basic tool button
		Required attributes: name, action, tooltip and icon
		The "action" attribute refers to the action labels listed under "Help>Shortcuts List..."
		in DarkRadiant, so it is possible to add button commands that are not necessarily listed here.

	<toggletoolbutton />	A toggle tool button, basically the same as <toolbutton />
		Required attributes: name, action, tooltip and icon
		This is rather unflexible as there is a limited amount of "toggle commands" available in Radiant.

	<separator />	A toolbar separator, to keep your icons organised
-->
<user>
	<ui>
		<showAllLightRadii value="0" />
		<showSelectedLightRadii value="0" />

		<camera>
			<enableCubicClipping value="1" />
			<discreteMovement value="1" />
			<invertMouseVerticalAxis value="0" />
			<movementSpeed value="100" />
			<rotationSpeed value="3" />
			<strafespeed value="0.65" />
			<!-- Use the forward strafe factor to invert the direction of the mouse movement -->
			<forwardStrafeFactor value="1" />
			<cubicScale value="13" />
			<drawMode value="2" />
		</camera>

		<mainFrame>
			<window xPosition="-1" yPosition="-1" width="640" height="480" state="4" />
		</mainFrame>

		<multiMonitor>
			<startMonitorNum value="0" />
		</multiMonitor>

		<ModelSelector>
			<previewSizeFactor value="0.4"/>
		</ModelSelector>

		<transformDialog>
			<window xPosition="150" yPosition="200" width="280" height="242" />
			<rotXStep value="90" />
			<rotYStep value="90" />
			<rotZStep value="90" />
			<scaleXStep value="1.0" />
			<scaleYStep value="1.0" />
			<scaleZStep value="1.0" />
		</transformDialog>

		<clipper>
			<useCaulk value="1" />
			<caulkTexture value="tex_common/nodraw" />
		</clipper>

		<undo>
			<queueSize value="64" />
		</undo>

		<grid>
			<defaultGridPower value="3" />
		</grid>

		<textures>
			<skipCommon value="0" />
			<defaultTextureScale value="0.5" />
			<quality value="3" />
			<mode value="5" />
			<gamma value="1.0" />

			<browser>
				<hideUnused value="0" />
				<hideInvalid value="1" />
				<uniformSize value="128" />
				<thumbnailScale value="2" />
				<licensepath value="../LICENSES" />
			</browser>

			<shaderChooser>
				<window xPosition="200" yPosition="100" width="550" height="500" />
			</shaderChooser>

			<texTool>
				<window xPosition="150" yPosition="200" width="280" height="242" />
				<gridActive value="1" />
				<faceVertexScalePivotIsCentroid value="0" />
			</texTool>

			<surfaceInspector>
				<hShiftStep value="1" />
				<vShiftStep value="1" />
				<hScaleStep value="0.05" />
				<vScaleStep value="0.05" />
				<rotStep value="45" />
			</surfaceInspector>
		</textures>

		<brush>
			<textureLock value="1" />
		</brush>

		<map>
			<numMRU value="5" />
			<loadLastMap value="0" />
			<autoSaveEnabled value="1" />
			<autoSaveInterval value="5" />
			<autoSaveSnapshots value="0" />
			<snapshotFolder value="snapshots/" />
			<maxSnapshotFolderSize value="100" />
		</map>

		<xyview>
			<showGrid value="1" />
			<chaseMouse value="1" />
			<camXYUpdate value="1" />
			<solidSelectionBoxes value="1" />
			<showCrossHairs value="0" />
			<showEntityAngles value="1" />
			<showEntityNames value="1" />
			<showBlocks value="0" />
			<showSizeInfo value="1" />
			<defaultBlockSize value="1024" />
			<showCoordinates value="1" />
			<showOutline value="0" />
			<showAxes value="1" />
			<showWorkzone value="0" />
			<alwaysCaulkForNewBrushes value="1" />
			<caulkTexture value="tex_common/nodraw" />
			<overlay>
				<visible value="0" />
				<transparency value="0.3" />
				<image value="" />
				<proportional value="1" />
				<translationX value="0.0" />
				<translationY value="0.0" />
				<scale value="1.0" />
				<scaleWithOrthoView value="1" />
				<panWithOrthoView value="0" />
			</overlay>
		</xyview>

		<compiler>
			<errorcheckparameters value="-v 1 -check" />
			<errorfixparameters value="-v 1 -fix" />
			<binary value="" />
			<parameters value="-soft" />
			<materialparameters value="-material" />
		</compiler>

		<toolbar name="view" align="horizontal">
				<toolbutton name="open" action="OpenMap" tooltip="Open a map file" icon="file_open.png" />
				<toolbutton name="save" action="SaveMap" tooltip="Save the current map" icon="file_save.png" />
			<separator/>
				<toolbutton name="undo" action="Undo" tooltip="Undo" icon="undo.png" />
				<toolbutton name="redo" action="Redo" tooltip="Redo" icon="redo.png" />
			<separator/>
				<toolbutton name="xflip" action="MirrorSelectionX" tooltip="x-axis Flip" icon="brush_flipx.png"  />
				<toolbutton name="xrotate" action="RotateSelectionX" tooltip="x-axis Rotate" icon="brush_rotatex.png" />
				<toolbutton name="yflip" action="MirrorSelectionY" tooltip="y-axis Flip" icon="brush_flipy.png" />
				<toolbutton name="yrotate" action="RotateSelectionY" tooltip="y-axis Rotate" icon="brush_rotatey.png" />
				<toolbutton name="zflip" action="MirrorSelectionZ" tooltip="z-axis Flip" icon="brush_flipz.png" />
				<toolbutton name="zrotate" action="RotateSelectionZ" tooltip="z-axis Rotate" icon="brush_rotatez.png" />
			<separator/>
				<toolbutton name="selectcompletetall" action="SelectCompleteTall" tooltip="Select complete tall" icon="selection_selectcompletetall.png" />
				<toolbutton name="selecttouching" action="SelectTouching" tooltip="Select touching" icon="selection_selecttouching.png" />
				<toolbutton name="selectinside" action="SelectInside" tooltip="Select inside" icon="selection_selectinside.png" />
				<toolbutton name="selectentity" action="ExpandSelectionToEntities" tooltip="Select whole entity" icon="selection_selectentities.png" />
				<toolbutton name="selectalloftype" action="SelectAllOfType" tooltip="Select all of type" icon="selection_selectcompletetall.png" />
				<toolbutton name="selectallfacetexture" action="SelectAllFacesOfTex" tooltip="Select all Faces of same texture" icon="selection_selectallsametex.png" />
			<separator/>
				<toggletoolbutton name="dragvertices" action="DragVertices" tooltip="Select Vertices" icon="modify_vertices.png" />
				<toggletoolbutton name="dragedges" action="DragEdges" tooltip="Select Edges" icon="modify_edges.png" />
				<toggletoolbutton name="dragfaces" action="DragFaces" tooltip="Select Faces" icon="modify_faces.png" />
				<toggletoolbutton name="dragentities" action="DragEntities" tooltip="Select Entities" icon="modify_entities.png"/>
			<separator/>
				<toolbutton name="refreshmodels" action="RefreshReferences" tooltip="Refresh Models" icon="refresh_models.png" />
			<separator/>
				<toolbutton name="generatematerial" action="GenerateMaterialFromTexture" tooltip="Create material entries for selected faces" icon="material_generate.png" />
			<separator/>
				<toggletoolbutton name="showpathfinding" action="ShowPathfinding" tooltip="Show pathfinding info" icon="pathfinding.png" />
			<separator/>
				<toolbutton name="filterlevel1" action="FilterLevel1" tooltip="Level 1" icon="ufoai_level1.png" />
				<toolbutton name="filterlevel2" action="FilterLevel2" tooltip="Level 2" icon="ufoai_level2.png" />
				<toolbutton name="filterlevel3" action="FilterLevel3" tooltip="Level 3" icon="ufoai_level3.png" />
				<toolbutton name="filterlevel4" action="FilterLevel4" tooltip="Level 4" icon="ufoai_level4.png" />
				<toolbutton name="filterlevel5" action="FilterLevel5" tooltip="Level 5" icon="ufoai_level5.png" />
				<toolbutton name="filterlevel6" action="FilterLevel6" tooltip="Level 6" icon="ufoai_level6.png" />
				<toolbutton name="filterlevel7" action="FilterLevel7" tooltip="Level 7" icon="ufoai_level7.png" />
				<toolbutton name="filterlevel8" action="FilterLevel8" tooltip="Level 8" icon="ufoai_level8.png" />
			<separator/>
				<toggletoolbutton name="showbbox" action="ToggleShowModelBoundingBox" tooltip="Show model bounding box" icon="iconDrawBBox.png" />
				<toggletoolbutton name="shownormals" action="ToggleShowModelNormals" tooltip="Show model normals" icon="model_normals.png" />
			<separator/>
				<toolbutton name="changeviews" action="NextView" tooltip="Change views" icon="view_change.png" />
				<toolbutton name="neworthoview" action="NewOrthoView" tooltip="New XY View" icon="grid_window.png" />
			<separator/>
				<toggletoolbutton name="cubicclip" action="ToggleCubicClip" tooltip="Cubic clip the camera view" icon="view_cubicclipping.png" />
		</toolbar>

		<toolbar name="texture">
				<toolbutton name="flush" action="RefreshShaders" tooltip="Flush &amp; Reload Shaders" icon="texwindow_flushandreload.png"/>
				<toolbutton name="showall" action="ShowAllTextures" tooltip="Show all" icon="texwindow_showall.png"/>
				<toggletoolbutton name="showinuse" action="ShowInUse" tooltip="Hide Unused" icon="texwindow_hideunused.png"/>
				<toggletoolbutton name="showinvalid" action="ShowInvalid" tooltip="Hide Invalid" icon="texwindow_hideinvalid.png"/>
				<toggletoolbutton name="skipcommon" action="SkipCommon" tooltip="Skip common textures" icon="texwindow_skipcommon.png"/>
			<separator/>
				<toolbutton name="findandreplace" action="FindReplaceTextures" tooltip="Find &amp; Replace" icon="texwindow_findandreplace.png"/>
		</toolbar>

		<toolbar name="edit" align="vertical">
				<toggletoolbutton name="translate" action="MouseTranslate" tooltip="Translate" icon="select_mousetranslate.png" />
				<toggletoolbutton name="rotate" action="MouseRotate" tooltip="Rotate" icon="select_mouserotate.png" />
				<toggletoolbutton name="scale" action="MouseScale" tooltip="Scale" icon="select_mousescale.png" />
				<toggletoolbutton name="resize" action="MouseDrag" tooltip="Resize" icon="select_mouseresize.png" />
				<toggletoolbutton name="clipper" action="ToggleClipper" tooltip="Clipper" icon="view_clipper.png" />
			<separator/>
				<toolbutton name="csgsubstract" action="CSGSubtract" tooltip="CSG Subtract" icon="selection_csgsubtract.png" />
				<toolbutton name="csgsubstractoriginal" action="CSGSubtractOrig" tooltip="CSG Subtract Original" icon="selection_csgsubtract.png" />
				<toolbutton name="csgmerge" action="CSGMerge" tooltip="CSG Merge" icon="selection_csgmerge.png" />
				<toolbutton name="csghollow" action="CSGHollow" tooltip="Hollow" icon="selection_makehollow.png" />
			<separator/>
				<toggletoolbutton name="texturelock" action="TogTexLock" tooltip="Texture Lock" icon="texture_lock.png" />
		</toolbar>

		<toolbar name="textool" align="horizontal">
				<toolbutton name="griddown" action="TexToolGridDown" tooltip="Decrease Grid Size" icon="grid_down.png"/>
				<toolbutton name="gridup" action="TexToolGridUp" tooltip="Increase Grid Size" icon="grid_up.png"/>
				<toolbutton name="gridsnap" action="TexToolSnapToGrid" tooltip="Snap to Grid" icon="grid_snap.png"/>
				<toggletoolbutton name="usegrid" action="TexToolToggleGrid" tooltip="Toggle Grid" icon="grid_toggle.png"/>
			<separator/>
				<toolbutton name="mergeitems" action="TexToolMergeItems" tooltip="Merge Selection" icon="textool_merge.png"/>
				<toolbutton name="texflips" action="TexToolFlipS" tooltip="Flip Selection Horiz (S-Axis)" icon="tex_flips.png"/>
				<toolbutton name="texflipt" action="TexToolFlipT" tooltip="Flip Selection Vertical (T-Axis)" icon="tex_flipt.png"/>
			<separator/>
				<toggletoolbutton name="togglefacevertexscalepivot" action="TexToolToggleFaceVertexScalePivot" tooltip="Center Pivot when scaling faces" icon="textool_facescale_pivot.png"/>
		</toolbar>
	</ui>
</user>
