2021-07-23 23:00:11 +02:00
|
|
|
#include "main_tabs.hpp"
|
2021-05-26 14:38:38 +02:00
|
|
|
#include "fiber_pool.hpp"
|
|
|
|
#include "util/teleport.hpp"
|
2021-12-29 14:24:12 +01:00
|
|
|
#include <vector>
|
2021-05-26 14:38:38 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2021-05-26 14:38:38 +02:00
|
|
|
ImGui::EndTabItem();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|