about summary refs log tree commit diff stats
path: root/tracker_frame.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 18:27:37 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-03 18:27:37 -0400
commit325ea53e7bb873870b46d3e38b2b314493a22f79 (patch)
tree53968efbfd78a5960f68147cd6c671513f04938d /tracker_frame.cpp
parent08ffb400114029569b4043b4f4c5a3f2af9b37b8 (diff)
downloadlingo-ap-tracker-325ea53e7bb873870b46d3e38b2b314493a22f79.tar.gz
lingo-ap-tracker-325ea53e7bb873870b46d3e38b2b314493a22f79.tar.bz2
lingo-ap-tracker-325ea53e7bb873870b46d3e38b2b314493a22f79.zip
Refactored APState
It is no longer a class, because it didn't need to be.
Diffstat (limited to 'tracker_frame.cpp')
-rw-r--r--tracker_frame.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tracker_frame.cpp b/tracker_frame.cpp index 774b710..2a862a5 100644 --- a/tracker_frame.cpp +++ b/tracker_frame.cpp
@@ -11,10 +11,11 @@ wxDEFINE_EVENT(STATE_CHANGED, wxCommandEvent);
11wxDEFINE_EVENT(STATUS_CHANGED, wxCommandEvent); 11wxDEFINE_EVENT(STATUS_CHANGED, wxCommandEvent);
12 12
13TrackerFrame::TrackerFrame() 13TrackerFrame::TrackerFrame()
14 : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE | wxFULL_REPAINT_ON_RESIZE) { 14 : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker", wxDefaultPosition,
15 wxDefaultSize, wxDEFAULT_FRAME_STYLE | wxFULL_REPAINT_ON_RESIZE) {
15 ::wxInitAllImageHandlers(); 16 ::wxInitAllImageHandlers();
16 17
17 GetAPState().SetTrackerFrame(this); 18 AP_SetTrackerFrame(this);
18 19
19 SetSize(1280, 728); 20 SetSize(1280, 728);
20 21
@@ -70,8 +71,8 @@ void TrackerFrame::OnConnect(wxCommandEvent &event) {
70 GetTrackerConfig().ap_password = dlg.GetPasswordValue(); 71 GetTrackerConfig().ap_password = dlg.GetPasswordValue();
71 GetTrackerConfig().Save(); 72 GetTrackerConfig().Save();
72 73
73 GetAPState().Connect(dlg.GetServerValue(), dlg.GetPlayerValue(), 74 AP_Connect(dlg.GetServerValue(), dlg.GetPlayerValue(),
74 dlg.GetPasswordValue()); 75 dlg.GetPasswordValue());
75 } 76 }
76} 77}
77 78