about summary refs log tree commit diff stats
path: root/src/subway_map.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-06-10 19:32:49 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-06-10 19:32:49 -0400
commit902bad34643b10880704dbc41f3b1253bac2f542 (patch)
tree18deb17a81c73a22165785f86bcbec375082f86c /src/subway_map.cpp
parentcce6451f13144d6035a16a52e315c5cebf4f6eb2 (diff)
downloadlingo-ap-tracker-902bad34643b10880704dbc41f3b1253bac2f542.tar.gz
lingo-ap-tracker-902bad34643b10880704dbc41f3b1253bac2f542.tar.bz2
lingo-ap-tracker-902bad34643b10880704dbc41f3b1253bac2f542.zip
Update ECH painting location
Diffstat (limited to 'src/subway_map.cpp')
-rw-r--r--src/subway_map.cpp22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/subway_map.cpp b/src/subway_map.cpp index c7b2c8a..e3b844d 100644 --- a/src/subway_map.cpp +++ b/src/subway_map.cpp
@@ -1,9 +1,9 @@
1#include "subway_map.h" 1#include "subway_map.h"
2 2
3#include <fmt/core.h>
3#include <wx/dcbuffer.h> 4#include <wx/dcbuffer.h>
4#include <wx/dcgraph.h> 5#include <wx/dcgraph.h>
5 6
6#include <fmt/core.h>
7#include <sstream> 7#include <sstream>
8 8
9#include "ap_state.h" 9#include "ap_state.h"
@@ -71,9 +71,8 @@ void SubwayMap::OnConnect() {
71 std::map<std::string, std::vector<int>> tagged; 71 std::map<std::string, std::vector<int>> tagged;
72 for (const SubwayItem &subway_item : GD_GetSubwayItems()) { 72 for (const SubwayItem &subway_item : GD_GetSubwayItems()) {
73 if (AP_HasEarlyColorHallways() && 73 if (AP_HasEarlyColorHallways() &&
74 (subway_item.special == "starting_room_paintings" || 74 subway_item.special == "starting_room_paintings") {
75 subway_item.special == "early_color_hallways")) { 75 tagged["early_ch"].push_back(subway_item.id);
76 tagged["early_color_hallways"].push_back(subway_item.id);
77 } 76 }
78 77
79 if (AP_IsPaintingShuffle() && !subway_item.paintings.empty()) { 78 if (AP_IsPaintingShuffle() && !subway_item.paintings.empty()) {
@@ -406,7 +405,7 @@ void SubwayMap::OnMouseMove(wxMouseEvent &event) {
406 std::vector<int> hovered = tree_->query( 405 std::vector<int> hovered = tree_->query(
407 {static_cast<float>(mouse_pos.x), static_cast<float>(mouse_pos.y), 2, 2}); 406 {static_cast<float>(mouse_pos.x), static_cast<float>(mouse_pos.y), 2, 2});
408 if (!hovered.empty()) { 407 if (!hovered.empty()) {
409 actual_hover_= hovered[0]; 408 actual_hover_ = hovered[0];
410 } else { 409 } else {
411 actual_hover_ = std::nullopt; 410 actual_hover_ = std::nullopt;
412 } 411 }
@@ -532,15 +531,9 @@ void SubwayMap::Redraw() {
532 std::optional<wxColour> shade_color; 531 std::optional<wxColour> shade_color;
533 532
534 if (AP_HasEarlyColorHallways() && 533 if (AP_HasEarlyColorHallways() &&
535 (subway_item.special == "starting_room_paintings" || 534 subway_item.special == "starting_room_paintings") {
536 subway_item.special == "early_color_hallways")) {
537 draw_type = ItemDrawType::kOwl; 535 draw_type = ItemDrawType::kOwl;
538 536 shade_color = wxColour(0, 255, 0, 128);
539 if (subway_item.special == "starting_room_paintings") {
540 shade_color = wxColour(0, 255, 0, 128);
541 } else {
542 shade_color = wxColour(255, 0, 0, 128);
543 }
544 } else if (subway_item.special == "sun_painting") { 537 } else if (subway_item.special == "sun_painting") {
545 if (!AP_IsPilgrimageEnabled()) { 538 if (!AP_IsPilgrimageEnabled()) {
546 if (IsDoorOpen(*subway_item.door)) { 539 if (IsDoorOpen(*subway_item.door)) {
@@ -572,7 +565,8 @@ void SubwayMap::Redraw() {
572 } 565 }
573 } 566 }
574 567
575 if (has_unchecked_painting || has_mapped_painting || has_codomain_painting) { 568 if (has_unchecked_painting || has_mapped_painting ||
569 has_codomain_painting) {
576 draw_type = ItemDrawType::kOwl; 570 draw_type = ItemDrawType::kOwl;
577 571
578 if (has_checked_painting) { 572 if (has_checked_painting) {