#ifndef TRACKER_PANEL_H_D675A54D #define TRACKER_PANEL_H_D675A54D #include #ifndef WX_PRECOMP #include #endif class AreaPopup; class TrackerPanel : public wxPanel { public: TrackerPanel(wxWindow *parent); void UpdateIndicators(); private: struct AreaIndicator { int area_id = -1; AreaPopup *popup = nullptr; int real_x1 = 0; int real_y1 = 0; int real_x2 = 0; int real_y2 = 0; bool active = true; }; void OnPaint(wxPaintEvent &event); void OnMouseMove(wxMouseEvent &event); void Redraw(); wxImage map_image_; wxImage player_image_; wxBitmap rendered_; wxBitmap scaled_player_; int offset_x_ = 0; int offset_y_ = 0; double scale_x_ = 0; double scale_y_ = 0; std::vector areas_; }; #endif /* end of include guard: TRACKER_PANEL_H_D675A54D */ 1efdc5c3815fc92a711b1e1cc2d'>this commit Autotracker for the Lingo Archipelago integration
about summary refs log tree commit diff stats
blob: b95194e5e2a7b10348c17f994c367bdd78a5fbf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef TRACKER_CONFIG_H_36CDD648
#define TRACKER_CONFIG_H_36CDD648

#include <string>

class TrackerConfig {
 public:
  explicit TrackerConfig(const std::string& filename) : filename_(filename) {}

  void Load();

  void Save();

  std::string ap_server;
  std::string ap_player;
  std::string ap_password;
  bool asked_to_check_for_updates = false;
  bool should_check_for_updates = false;
  bool hybrid_areas = false;
  bool show_hunt_panels = false;

 private:
  std::string filename_;
};

TrackerConfig& GetTrackerConfig();

#endif /* end of include guard: TRACKER_CONFIG_H_36CDD648 */