Skip to content

Commit

Permalink
Add option for maparoo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Sep 1, 2024
1 parent b7c8466 commit 5f337c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1596,13 +1596,13 @@ void UI::DrawMinimap() {
4.f * uiScale * mapScale, 0xee00ffee, 0, 1.5f * uiScale * mapScale);
}

{
if (options["map_kangaroo"].value) {
auto tile = GetNthTile(830, Max::get().kangaroo()->next_encounter);
if (tile.has_value()) {
auto px = tile.value().room.x * roomsize.x +
tile.value().pos.x / 40.f * roomsize.x - 4.0f;
auto py = tile.value().room.y * roomsize.y +
tile.value().pos.y / 22.f * roomsize.y - 4.0f;
tile.value().pos.y / 22.f * roomsize.y - 8.0f;
ImGui::GetWindowDrawList()->AddText(
ImVec2(a.x + d.x + px - c.x - bordersize.x,
a.y + d.y + py - c.y - bordersize.y),
Expand Down
5 changes: 4 additions & 1 deletion ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,12 @@ class UI {
"Draws all special map borders instead of only selected layer."}},
{"map_wheel", {false, "Show wheel on minimap", "For wheel warping."}},
{"map_uv_bunny",
{false, "Show UV bunny on minimap",
{true, "Show UV bunny on minimap",
"The UV bunny follows a path around the common areas next to the hub\n"
"room, but turns around if it's about to run into your UV light."}},
{"map_kangaroo",
{true, "Show kangaroo on minimap",
"Marks the next kangaroo room with a K."}},

{"ui_coords",
{true, "Show coordinate tooltip",
Expand Down

0 comments on commit 5f337c4

Please sign in to comment.