Vertices mode: fixed an exception when "DeleteItem" action tried to delete already deleted vertex.

Renamed "Set current textures" to "Set default textures" (I hope that makes more sense now).
Fixed and updated documentation.
This commit is contained in:
MaxED 2013-08-26 09:31:43 +00:00
parent e1050775b3
commit 3e11ae734d
7 changed files with 14 additions and 12 deletions

View file

@ -320,8 +320,8 @@
<param name="Local" value="gzdb\features\classic_modes\mode_drawbridge.html">
</OBJECT>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Snap vertices mode">
<param name="Local" value="gzdb\features\classic_modes\mode_snapverts.html">
<param name="Name" value="Snap geometry mode">
<param name="Local" value="gzdb\features\classic_modes\mode_snapelements.html">
</OBJECT>
</UL>
<LI> <OBJECT type="text/sitemap">

View file

@ -894,10 +894,10 @@
<td>Repeats the action(s) performed before Undo was used.</td>
</tr>
<tr>
<td>Set Current Textures</td>
<td><a name="setdefaulttextures" id="setdefaulttextures"></a>Set Default Textures</td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td>Opens the window, which lets user to change textures, which will be used in next drawing operations.</td>
<td>Opens the window, which lets user to change textures, which will be used in drawing operations.</td>
</tr>
<tr>
<td><a href="features/classic_modes/mode_snapelements.html">Snap Selected Map Elements to Grid</a></td>

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -66,7 +66,6 @@
<li>Added errors and warnings indicator to main window (bottom-right corner). You can click on it to open <strong>Errors and warnings</strong> window.</li>
</ul>
</li>
<li></li>
<li>
<h3><a name="allmodes" id="allmodes"></a>Classic and Visual modes:</h3>
</li>
@ -101,7 +100,11 @@
<li><a href="classic_modes/mode_drawcurve.html"><span class="style1"><strong>[new]</strong></span> Draw Curve mode</a>.</li>
<li><a href="classic_modes/mode_drawbridge.html">Bridge mode</a>.</li>
<li><a href="classic_modes/mode_snapelements.html">Snap map elements mode</a>.</li>
<li><span class="style5">[new]</span> 3D floor indication (color can be changed in <strong>Preferences -&gt; Appearance -&gt; 3D Floors</strong>, the setting can be disabled in <a href="../preferences.html#markextrafloors">Preferences</a>)
<li><span class="style5">[new]</span> You can set, which textures to use when drawing new geometry using &quot;<strong><a href="../actions.html#setdefaulttextures">Set Default Textures</a></strong>&quot; action, available in <strong>Edit</strong> menu (by default, the editor uses textures from closest sector when drawing a new one).
<input class="spoilerbutton" type="button" onclick="ToggleSpoiler(this);" href="javascript:void(0);" value="Show image"/>
<div style="display: none; margin: 0px; padding: 6px; border: 1px inset;"> <img src="classic_modes/setdefaulttextures.jpg" alt="" /></div>
</li>
<li><span class="style5">[new]</span> 3D floor indication (color can be changed in <strong>Preferences -&gt; Appearance -&gt; 3D Floors</strong>, the setting can be disabled in <a href="../preferences.html#markextrafloors">Preferences</a>).
<input class="spoilerbutton" type="button" onclick="ToggleSpoiler(this);" href="javascript:void(0);" value="Show image"/>
<div style="display: none; margin: 0px; padding: 6px; border: 1px inset;"> <img src="classic_modes/3dfloor_marks.jpg" alt="" /></div>
</li>
@ -211,9 +214,6 @@
</li>
</ul>
</li>
<li> </li>
<li>
<h3><a name="fields" id="fields"></a>Custom Fields:</h3>
</li>

View file

@ -931,7 +931,7 @@ namespace CodeImp.DoomBuilder.Windows
this.itemSetCurrentTextures.Name = "itemSetCurrentTextures";
this.itemSetCurrentTextures.Size = new System.Drawing.Size(197, 22);
this.itemSetCurrentTextures.Tag = "builder_setcurrenttextures";
this.itemSetCurrentTextures.Text = "Set Current &Textures...";
this.itemSetCurrentTextures.Text = "Set Default &Textures...";
this.itemSetCurrentTextures.Click += new System.EventHandler(this.InvokeTaggedAction);
//
// itemmapoptions

View file

@ -150,7 +150,7 @@
this.Name = "SetCurrentTexturesForm";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Current textures:";
this.Text = "Default textures:";
this.ResumeLayout(false);
this.PerformLayout();

View file

@ -915,7 +915,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
redraw = false;
}
if(redraw) {
if(ld1.Start == null || ld1.End == null) {
ld1.Dispose();
} else if (redraw) {
Vector2D start = ld1.Start.Position;
Vector2D end = ld1.End.Position;
ld1.Dispose();