Add anonymous bounty toggle (#823)

Co-authored-by: tupoy-ya <72797377+tupoy-ya@users.noreply.github.com>
This commit is contained in:
yasmasdas
2023-01-09 18:20:51 +01:00
committed by GitHub
parent 32f8ae890d
commit f9e36693f1
4 changed files with 14 additions and 9 deletions

View File

@ -17,12 +17,14 @@ namespace big
components::player_command_button<"rcplayer">(g_player_service->get_selected());
static int bounty_value = 0;
ImGui::SliderInt("Bounty", &bounty_value, 0, 10000);
ImGui::SameLine();
components::button("Set", [] { troll::set_bounty_on_player(g_player_service->get_selected(), bounty_value);});
components::command_checkbox<"anonbounty">();
ImGui::SameLine();
components::button("Set", [] { troll::set_bounty_on_player(g_player_service->get_selected(), bounty_value, g.session.anonymous_bounty);});
ImGui::TreePop();
}
}
}
}