Skip to content

Commit

Permalink
road_editor.as: added point X&Z position input boxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohlidalp committed Dec 15, 2024
1 parent 15df6ae commit ad963fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/scripts/road_editor.as
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,15 @@ void drawPointPropertiesPanel(ProceduralObjectClass@ obj)
{
ProceduralPointClass@ point = obj.getPoint(selected_point);

ImGui::TextDisabled("Location:");
ImGui::SetNextItemWidth(130.f);
ImGui::InputFloat("Elevation (meters)", point.position.y);
ImGui::SetNextItemWidth(130.f);
ImGui::InputFloat("Horizonal X (meters)", point.position.x);
ImGui::SetNextItemWidth(130.f);
ImGui::InputFloat("Horizontal Z (meters)", point.position.z);

ImGui::TextDisabled("Parameters:");

ImGui::SetNextItemWidth(100.f);
ImGui::InputFloat("Width (meters)", point.width);
Expand Down

0 comments on commit ad963fd

Please sign in to comment.