#include "options_pane.h" #include "ap_state.h" namespace { const char* kDoorShuffleLabels[] = {"None", "Panels", "Doors"}; const char* kLocationChecksLabels[] = {"Normal", "Reduced", "Insanity"}; const char* kPanelShuffleLabels[] = {"None", "Rearrange"}; const char* kVictoryConditionLabels[] = {"The End", "The Master", "Level 2", "Pilgrimage"}; const char* kSunwarpAccessLabels[] = {"Normal", "Disabled", "Unlock", "Individual", "Progressive"}; void AddRow(wxDataViewListCtrl* list, const std::string& text) { wxVector data; data.push_back(wxVariant{text + ": "}); data.push_back(wxVariant{""}); list->AppendItem(data); } } // namespace OptionsPane::OptionsPane(wxWindow* parent) : wxDataViewListCtrl(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_ROW_LINES) { AppendTextColumn("Name", wxDATAVIEW_CELL_INERT, wxCOL_WIDTH_AUTOSIZE); AppendTextColumn("Value"); AddRow(this, "Shuffle Doors"); AddRow(this, "Group Doors"); AddRow(this, "Location Checks"); AddRow(this, "Shuffle Colors"); AddRow(this, "Shuffle Panels"); AddRow(this, "Shuffle Paintings"); AddRow(this, "Victory Condition"); AddRow(this, "Early Color Hallways"); AddRow(this, "Shuffle Postgame"); AddRow(this, "Enable Pilgrimage"); AddRow(this, "Pilgrimage Roof Access"); AddRow(this, "Pilgrimage Paintings"); AddRow(this, "Sunwarp Access"); AddRow(this, "Shuffle Sunwarps"); AddRow(this, "Mastery Achievements"); AddRow(this, "Level 2 Requirement"); } void OptionsPane::OnConnect() { SetTextValue(kDoorShuffleLabels[static_cast(AP_GetDoorShuffleMode())], 0, 1); SetTextValue(AP_AreDoorsGrouped() ? "Yes" : "No", 1, 1); SetTextValue( kLocationChecksLabels[static_cast(AP_GetLocationsChecks())], 2, 1); SetTextValue(AP_IsColorShuffle() ? "Yes" : "No", 3, 1); SetTextValue( kPanelShuffleLabels[static_cast(AP_GetPanelShuffleMode())], 4, 1); SetTextValue(AP_IsPaintingShuffle() ? "Yes" : "No", 5, 1); SetTextValue( kVictoryConditionLabels[static_cast(AP_GetVictoryCondition())], 6, 1); SetTextValue(AP_HasEarlyColorHallways() ? "Yes" : "No", 7, 1); SetTextValue(AP_IsPostgameShuffle() ? "Yes" : "No", 8, 1); SetTextValue(AP_IsPilgrimageEnabled() ? "Yes" : "No", 9, 1); SetTextValue(AP_DoesPilgrimageAllowRoofAccess() ? "Yes" : "No", 10, 1); SetTextValue(AP_DoesPilgrimageAllowPaintings() ? "Yes" : "No", 11, 1); SetTextValue(kSunwarpAccessLabels[static_cast(AP_GetSunwarpAccess())], 12, 1); SetTextValue(AP_IsSunwarpShuffle() ? "Yes" : "No", 13, 1); SetTextValue(std::to_string(AP_GetMasteryRequirement()), 14, 1); SetTextValue(std::to_string(AP_GetLevel2Requirement()), 15, 1); } ='path'>path: root/data/maps/the_great/rooms/Question Room How.txtpb
blob: 8f087d0eea77ec2f4ff23986ade996ba3a7f74c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: "Question Room How"
panel_display_name: "Question Room"
panels {
  name: "QUESTION"
  path: "Panels/Questions/question_3"
  clue: "question"
  answer: "how"
  symbols: EXAMPLE
  proxies { answer: "how" path: "Panels/Question Proxies/question_3_proxied" }
  proxies { answer: "who" path: "Panels/Question Proxies/question_3_proxied2" }
  proxies { answer: "why" path: "Panels/Question Proxies/question_3_proxied3" }
  proxies { answer: "what" path: "Panels/Question Proxies/question_3_proxied4" }
  proxies { answer: "when" path: "Panels/Question Proxies/question_3_proxied5" }
  proxies { answer: "where" path: "Panels/Question Proxies/question_3_proxied6" }
  display_name: "QUESTION (How)"
}
paintings {
  name: "WHY"
  path: "Components/Paintings/why"
  orientation: "east"
}