Fixed teleport::to_coords not respecting the rotation and view angles from persist teleport. (#2396)

* Fixed teleport::to_coords not respecting the rotation and view angles from persist teleport.

* Fixed World -> Vehicles -> Max Vehicle Mods button being cut off.
This commit is contained in:
gir489
2023-11-08 18:12:31 -05:00
committed by GitHub
parent dc321104c4
commit 93dea3bebc
2 changed files with 18 additions and 18 deletions

View File

@ -69,7 +69,7 @@ namespace big
ImGui::SeparatorText("VEHICLES"_T.data());
components::button<ImVec2(110, 0), ImVec4(0.02745f, 0.4745f, 0.10196f, 1.f)>("MAX_VEHICLE"_T, [] {
components::button<ImVec2(0, 0), ImVec4(0.02745f, 0.4745f, 0.10196f, 1.f)>("MAX_VEHICLE"_T, [] {
for (auto vehs : entity::get_entities(true, false))
{
if (entity::take_control_of(vehs))
@ -81,7 +81,7 @@ namespace big
});
ImGui::SameLine();
components::button<ImVec2(110, 0), ImVec4(0.4549f, 0.03529f, 0.03529f, 1.f)>("VIEW_WORLD_DOWNGRADE"_T, [] {
components::button<ImVec2(0, 0), ImVec4(0.4549f, 0.03529f, 0.03529f, 1.f)>("VIEW_WORLD_DOWNGRADE"_T, [] {
for (auto vehs : entity::get_entities(true, false))
{
if (entity::take_control_of(vehs))