mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-26 17:04:53 +01:00
fix(editor): the readout of a straight dragged beside another one writes the arrow as ->, the font of the interface has no arrows and showed a question mark
This commit is contained in:
@@ -189,7 +189,7 @@ void editor_mode::draw_straights_overlay() const
|
||||
if (projection.project((foot + target) * 0.5, screen))
|
||||
{
|
||||
auto const angle{glm::degrees(std::abs(std::asin(std::clamp(line.direction.x * other.direction.y - line.direction.y * other.direction.x, -1.0, 1.0))))};
|
||||
auto const text{highlighted ? (offer.snaps ? format(STR_C("parallel %.2f m"), offer.spacing) : format("%.2f → %.2f m %.1f°", std::abs(lateral), offer.spacing, offer.angle)) :
|
||||
auto const text{highlighted ? (offer.snaps ? format(STR_C("parallel %.2f m"), offer.spacing) : format("%.2f -> %.2f m %.1f°", std::abs(lateral), offer.spacing, offer.angle)) :
|
||||
(angle > 0.05 ? format("%.2f m %.1f°", std::abs(lateral), angle) : format("%.2f m", std::abs(lateral)))};
|
||||
auto const *label{text.c_str()};
|
||||
auto const size{ImGui::CalcTextSize(label)};
|
||||
|
||||
Reference in New Issue
Block a user