TmpMenu/BigBaseV2/src/gui/window/main/tab_teleport.cpp

36 lines
680 B
C++
Raw Normal View History

#include "main_tabs.hpp"
#include "fiber_pool.hpp"
#include "util/teleport.hpp"
2021-12-29 14:24:12 +01:00
#include <vector>
namespace big
{
void tab_main::tab_teleport()
{
if (ImGui::BeginTabItem("Teleport"))
{
if (ImGui::Button("Waypoint"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
teleport::to_waypoint();
}QUEUE_JOB_END_CLAUSE
}
2021-12-29 14:24:12 +01:00
if (ImGui::Button("Objective"))
2021-12-29 11:48:53 +01:00
{
QUEUE_JOB_BEGIN_CLAUSE()
{
2021-12-29 14:24:12 +01:00
std::vector<int> blips = {1, 57, 128, 129, 130, 143, 144, 145, 146, 271, 286, 287, 288};
for (int i = 0; i < blips.size(); i++) {
if (teleport::to_blip(blips[i], 5)) {
break;
}
}
2021-12-29 11:48:53 +01:00
}QUEUE_JOB_END_CLAUSE
}
ImGui::EndTabItem();
}
}
}