about summary refs log tree commit diff stats
path: root/data/maps/the_repetitive/rooms/Magenta Room.txtpb
blob: d38e48502f835cee10ca601e2951fab6445ec3dd (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: "Magenta Room"
panels {
  name: "WRITE"
  path: "Panels/Eval/panel_9"
  clue: "write"
  answer: "write"
  symbols: EVAL
}
panels {
  name: "HEARD"
  path: "Panels/Eval/panel_11"
  clue: "heard"
  answer: "herd"
  symbols: EVAL
}
panels {
  name: "HERE"
  path: "Panels/Eval/panel_12"
  clue: "here"
  answer: "hear"
  symbols: EVAL
}
panels {
  name: "HALF"
  path: "Panels/Eval/panel_13"
  clue: "half"
  answer: "haha"
  symbols: EVAL
}
panels {
  name: "NOT (1)"
  path: "Panels/Eval/panel_14"
  clue: "not"
  answer: "no"
  symbols: EVAL
}
panels {
  name: "NOT (2)"
  path: "Panels/Eval/panel_15"
  clue: "not"
  answer: "yes"
  symbols: EVAL
}
panels {
  name: "CLAMBERS (1)"
  path: "Panels/Eval/panel_16"
  clue: "clambers"
  answer: "scramble"
  symbols: EVAL
}
panels {
  name: "CLAMBERS (2)"
  path: "Panels/Eval/panel_17"
  clue: "clambers"
  answer: "scramble"
  symbols: ANAGRAM
}
panels {
  name: "PILFER"
  path: "Panels/Eval/panel_18"
  clue: "pilfer"
  answer: "pilfer"
  symbols: EVAL
}
panels {
  name: "ANTONYM"
  path: "Panels/Eval/panel_19"
  clue: "antonym"
  answer: "synonym"
  symbols: EVAL
}
panels {
  name: "RHYME"
  path: "Panels/Eval/panel_20"
  clue: "rhyme"
  answer: "time"
  symbols: EVAL
}
panels {
  name: "PLURAL"
  path: "Panels/Eval/panel_21"
  clue: "plural"
  answer: "plurals"
  symbols: EVAL
}
panels {
  name: "PANDA"
  path: "Panels/Eval/panel_22"
  clue: "panda"
  answer: "papa"
  symbols: EVAL
}
panels {
  name: "CASE"
  path: "Panels/Eval/panel_23"
  clue: "case"
  answer: "ease"
  symbols: EVAL
}
panels {
  name: "TEASER"
  path: "Panels/Eval/panel_24"
  clue: "teaser"
  answer: "eraser"
  symbols: EVAL
}
panels {
  name: "RESTORES"
  path: "Panels/Eval/panel_25"
  clue: "restores"
  answer: "restores"
  symbols: EVAL
}
ss='alt'>
44
45
46
47








                                
                
 
                                     
        

                                 

                          
         






                               
                       
    
 
                                    
                                        



                     
                        
                     





                          
 
                                    


                                                           
#ifndef TRACKER_PANEL_H_D675A54D
#define TRACKER_PANEL_H_D675A54D

#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#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<AreaIndicator> areas_;
};

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