Block Syncing Items and Flags when playing Archi (#31)
This commit is contained in:
@@ -126,6 +126,9 @@ void AnchorMainMenu(WidgetInfo& info) {
|
||||
ImGui::SeparatorText("Current Room");
|
||||
ImGui::Text("%s Connected", ICON_FA_CHECK);
|
||||
|
||||
if (IS_ARCHIPELAGO)
|
||||
ImGui::BeginDisabled();
|
||||
|
||||
UIWidgets::PushStyleButton(THEME_COLOR);
|
||||
if (ImGui::Button("Request Team State")) {
|
||||
anchor->SendPacket_RequestTeamState();
|
||||
@@ -133,6 +136,9 @@ void AnchorMainMenu(WidgetInfo& info) {
|
||||
UIWidgets::Tooltip("Try this if you are missing items or flags that your team members have collected");
|
||||
UIWidgets::PopStyleButton();
|
||||
|
||||
if (IS_ARCHIPELAGO)
|
||||
ImGui::EndDisabled();
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
UIWidgets::WindowButton("Toggle Anchor Room Window", CVAR_WINDOW("AnchorRoom"), SohGui::mAnchorRoomWindow);
|
||||
@@ -186,10 +192,20 @@ void AnchorAdminMenu(WidgetInfo& info) {
|
||||
.Color(THEME_COLOR))) {
|
||||
anchor->SendPacket_UpdateRoomState();
|
||||
}
|
||||
|
||||
if (IS_ARCHIPELAGO) {
|
||||
CVarSetInteger(CVAR_REMOTE_ANCHOR("RoomSettings.SyncItemsAndFlags"), 0);
|
||||
ImGui::BeginDisabled();
|
||||
}
|
||||
|
||||
if (UIWidgets::CVarCheckbox("Sync Items & Flags", CVAR_REMOTE_ANCHOR("RoomSettings.SyncItemsAndFlags"),
|
||||
UIWidgets::CheckboxOptions().DefaultValue(true).Color(THEME_COLOR))) {
|
||||
anchor->SendPacket_UpdateRoomState();
|
||||
}
|
||||
|
||||
if (IS_ARCHIPELAGO) {
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
}
|
||||
|
||||
void AnchorInstructionsMenu(WidgetInfo& info) {
|
||||
|
||||
@@ -48,6 +48,8 @@ bool ArchipelagoClient::StartClient() {
|
||||
apClient.reset();
|
||||
}
|
||||
|
||||
CVarSetInteger(CVAR_REMOTE_ANCHOR("RoomSettings.SyncItemsAndFlags"), 0);
|
||||
|
||||
disconnecting = false;
|
||||
retries = 0;
|
||||
uri = CVarGetString(CVAR_REMOTE_ARCHIPELAGO("ServerAddress"), "localhost:38281");
|
||||
|
||||
Reference in New Issue
Block a user