2022-05-04 19:16:40 +02:00
|
|
|
#include "views/view.hpp"
|
|
|
|
#include "fiber_pool.hpp"
|
|
|
|
#include "util/teleport.hpp"
|
2022-12-06 16:12:02 +00:00
|
|
|
#include "core/data/region_codes.hpp"
|
|
|
|
#include "core/data/language_codes.hpp"
|
2022-11-13 16:34:44 +00:00
|
|
|
#include <network/ClanData.hpp>
|
2022-05-04 19:16:40 +02:00
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void view::spoofing()
|
2022-10-06 13:30:04 +02:00
|
|
|
{
|
2023-02-01 19:46:33 +01:00
|
|
|
components::small_text("SPOOFING_DESCRIPTION"_T);
|
2022-12-23 00:03:34 +01:00
|
|
|
|
2023-02-13 20:38:30 +00:00
|
|
|
ImGui::Checkbox("Hide From Player List", &g.spoofing.hide_from_player_list);
|
|
|
|
|
2023-02-04 16:35:18 +00:00
|
|
|
components::sub_title("SPOOFING_HIDE_FEATURES"_T);
|
|
|
|
ImGui::Checkbox("SPOOFING_HIDE_GOD_MODE"_T.data(), &g.spoofing.spoof_hide_god);
|
|
|
|
ImGui::Checkbox("SPOOFING_HIDE_SPECTATE"_T.data(), &g.spoofing.spoof_hide_spectate);
|
2022-10-29 05:54:32 -04:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
components::sub_title("CREW"_T);
|
2022-10-06 13:30:04 +02:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("SPOOFING_CREW"_T.data(), &g.spoofing.spoof_crew_data);
|
2022-10-06 13:30:04 +02:00
|
|
|
|
|
|
|
constexpr size_t crew_tag_size = RTL_FIELD_SIZE(ClanData, m_clan_tag);
|
|
|
|
static char crew_tag[crew_tag_size];
|
2022-12-18 23:15:52 +01:00
|
|
|
strcpy_s(crew_tag, sizeof(crew_tag), g.spoofing.crew_tag.c_str());
|
2022-10-06 13:30:04 +02:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Text("SPOOFING_CREW_TAG"_T.data());
|
2023-01-16 15:58:57 -05:00
|
|
|
components::input_text("##crew_tag_input", crew_tag, sizeof(crew_tag));
|
2022-10-06 13:30:04 +02:00
|
|
|
|
2022-12-18 23:15:52 +01:00
|
|
|
if (crew_tag != g.spoofing.crew_tag)
|
|
|
|
g.spoofing.crew_tag = std::string(crew_tag);
|
2022-10-06 13:30:04 +02:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("SPOOFING_CREW_ROCKSTAR"_T.data(), &g.spoofing.rockstar_crew);
|
2022-10-06 13:30:04 +02:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("SPOOFING_CREW_SQUARE_TAG"_T.data(), &g.spoofing.square_crew_tag);
|
2022-10-06 13:30:04 +02:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
components::sub_title("SPOOFING_SESSION_ATTRIBUTES"_T);
|
|
|
|
components::small_text("SPOOFING_ONLY_WORKS_AS_HOST"_T);
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("SPOOFING_ATTRIBUTE_REGION"_T.data(), &g.spoofing.spoof_session_region_type);
|
2022-12-18 23:15:52 +01:00
|
|
|
if (g.spoofing.spoof_session_region_type)
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
ImGui::SameLine();
|
2022-12-18 23:15:52 +01:00
|
|
|
if (ImGui::BeginCombo("###region_select", regions[g.spoofing.session_region_type].name))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
for (const auto& region : regions)
|
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
if (ImGui::Selectable(region.name, g.spoofing.session_region_type == region.id))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
g.spoofing.session_region_type = region.id;
|
2022-12-06 16:12:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
ImGui::EndCombo();
|
|
|
|
}
|
|
|
|
}
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("SPOOFING_ATTRIBUTE_LANGUAGE"_T.data(), &g.spoofing.spoof_session_language);
|
2022-12-18 23:15:52 +01:00
|
|
|
if (g.spoofing.spoof_session_language)
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
ImGui::SameLine();
|
|
|
|
|
2022-12-18 23:15:52 +01:00
|
|
|
if (ImGui::BeginCombo("###language_select", languages[g.spoofing.session_language].name))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
for (const auto& language : languages)
|
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
if (ImGui::Selectable(language.name, g.spoofing.session_language == language.id))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
2022-12-18 23:15:52 +01:00
|
|
|
g.spoofing.session_language = language.id;
|
2022-12-06 16:12:02 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
ImGui::EndCombo();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Checkbox("SPOOFING_ATTRIBUTE_PLAYER_COUNT"_T.data(), &g.spoofing.spoof_session_player_count);
|
2022-12-18 23:15:52 +01:00
|
|
|
if (g.spoofing.spoof_session_player_count)
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
|
|
|
ImGui::SameLine();
|
2022-12-18 23:15:52 +01:00
|
|
|
ImGui::InputInt("###player_count", &g.spoofing.session_player_count);
|
2022-12-06 16:12:02 +00:00
|
|
|
}
|
2022-05-04 19:16:40 +02:00
|
|
|
}
|
|
|
|
}
|