# Vertex Slope Assistant

NEW IN UNOFFICIAL 2.10!
Tool to assist on creating and managing Vertex Slopes.
(Only for SRB2 and SRB2 Kart!)
This mode shows a small dialog window that you can use to manage your Vertex Slopes.
Although this mode shows a dialog window, you can still use the main interface and zoom/move your view around the map.
This mode is volatile, which means that this mode returns to the previous stable mode when the map is saved or closed, either accepting or discarding your preview changes. You can access this mode through the Things Mode.

## Creating Vertex Slopes

There's 2 ways to create vertex slopes, either by using a Triangle Group or 3x Vertex Groups.
Note: To create a new group the selected tag should not have an existing group!

## Creating Vertex Slopes with Triangle Group

Triangle groups allow to quickly create triangles with individual vertices.
• Select a free unused tag in "Tag #" or clicking "New" next to "Tag #".
• If no shape exists on map use "Draw New Tagged Triangle" to create both shape and vertex slopes, otherwise use "New Triangle Group" and mark the corner points of the triangle geometry.
• You can adjust heights of each individual vertex slope after the group has been created.
• On map, right-click one of the linedef that form the triangle and apply the correct action.

## Creating Vertex Slopes with 3 Vertex Groups

Vertex groups allows sharing vertex slopes between triangles to optimize resources.
If no shape exists on map you can use "Draw New Empty Triangle" to quickly create a triangle shape.
• Select a free unused tag in "Tag #" or clicking "New" next to "Tag #".
• If a corner of the triangle geometry doesn't have a vertex slope create one with "New Triangle Vertex".
• Repeat those steps for each corner of the triangle.
• On map, right-click one of the linedef that form the triangle and apply the correct action, you'll need to double-click on the list the other 2 groups that form the triangle.

## Managing Vertex Slopes

You can select a vertex slope group by left-clicking a group in the listbox, alternatively you can left-click a triangle group in the map (doesn't work on vertex groups).
To manage the group you either can right-click in the listbox, use the toolstrip buttons or right-click on the map.
Note: Different set of options are available depending if the selected tag have an existing group or not.

## Dialog Settings

Tag # | Tag number to be used for the vertex slope, should be between 1 to 65535.
New (next to Tag #) | Find a new unused tag, that is, not being used by any sector or linedef.
Move Vertex Slopes... | When checked, all Vertex Slopes will slightly move inside the the triangle so height can be adjusted freely without any neighbour sectors affecting it but this will also cause an error of >= 1 pixel on the slope edges. This setting affects: Create New Triangle, New Triangle Group and Remake Group (On triangle groups only).
Vertex Slope listbox | Select tagged group of vertex slopes for editing. Right-click will open context menu.
Selected Vertex Slope Group | Set position and height of all Vertex Slopes.
Absolute Z (unique for each vertex) | When checked the Z position of vertex will be absolute otherwise the value is added into sector height. Note: Absolute Z cannot be positioned less than zero.
Rotate (All) | Rotate the Vertex Slope order on the triangle. Affects position and height.
Flip (All) | Flip the 2nd and 3rd Vertex Slope order on the triangle. Affects position and height.
Rotate (Height) | Rotate the Vertex Slope order on the triangle but only affects Height. Useful if you remade the group with the wrong order.
Flip (Height) | Flip the 2nd and 3rd Vertex Slope order on the triangle. Useful if you remade the group with the wrong order.
Adj. Heights | Adjust all heights together. Any negative value will be clipped to zero.

## Vertex Slope Group options

New Triangle Group | Create a new Triangle Group that consist of 3 vertex slopes.
New Vertex Group | Create a new Vertex Group that consist of a single vertex slope.
Remake Group | Remake selected tagged group by moving the vertex slope(s) position. Invalid group will be valid by having 3 vertex slopes only. Single vertex group will only remake 1 vertex.
Remake Group as Triangle | Remake selected tagged group by moving the vertex slope(s) position. Invalid group will be valid by having 3 vertex slopes only. Group will be remade with 3 vertex slopes.
Remake Group as Vertex | Remake selected tagged group by moving the vertex slope(s) position. Invalid group will be valid by having 1 vertex slope only. Group will be remade with a single vertex slope.
Change Group Tag | Set a new tag to the selected tagged group. Using a tag that belong to another group is not allowed.
Delete Group | Delete current tagged group, all vertex slopes will be erased!
Draw New Tagged Triangle | Draw a new triangle shape with linedefs and attach 3 tagged vertex slopes inside it. Right-click any linedef inside the map to setup a vertex slope action.
Draw New Empty Triangle | Draw a new triangle shape with linedefs.

## Default Controls

Enter | Accept and apply all changes, and return to the previous mode.
Escape | Discard all changes and return to the previous mode.
Backspace | While creating or remarking: Removes the last drawn vertex.
LMB | While creating or remarking: Marks a new point. In selection mode: Selects a triangle group.
RMB | Brings up context menu.
Shift+MWheel | Increase or decrease Tag #.
Ctrl+MWheel | Increase or decrease Tag #.