mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-30 19:43:06 +08:00
Converted all static strings to translation keys. (#2284)
This commit is contained in:
@ -18,30 +18,30 @@ namespace big
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case 1: return "Open";
|
||||
case 2: return "Moderate";
|
||||
case 3: return "Strict";
|
||||
case 1: return "VIEW_PLAYER_INFO_NAT_TYPE_OPEN"_T.data();
|
||||
case 2: return "VIEW_PLAYER_INFO_NAT_TYPE_MODERATE"_T.data();
|
||||
case 3: return "VIEW_PLAYER_INFO_NAT_TYPE_STRICT"_T.data();
|
||||
}
|
||||
|
||||
return "Unknown";
|
||||
return "VIEW_NET_PLAYER_DB_GAME_MODE_UNKNOWN"_T.data();
|
||||
}
|
||||
|
||||
const char* get_connection_type_str(int type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case 1: return "Direct";
|
||||
case 2: return "Relay";
|
||||
case 3: return "Peer Relay";
|
||||
case 1: return "VIEW_PLAYER_INFO_CONNECTION_TYPE_DIRECT"_T.data();
|
||||
case 2: return "VIEW_PLAYER_INFO_CONNECTION_TYPE_RELAY"_T.data();
|
||||
case 3: return "VIEW_PLAYER_INFO_CONNECTION_TYPE_PEER_RELAY"_T.data();
|
||||
}
|
||||
|
||||
return "Unknown";
|
||||
return "VIEW_NET_PLAYER_DB_GAME_MODE_UNKNOWN"_T.data();
|
||||
}
|
||||
|
||||
void view::player_info()
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Info");
|
||||
components::sub_title("INFO"_T);
|
||||
|
||||
if (ImGui::BeginListBox("##infobox", get_listbox_dimensions()))
|
||||
{
|
||||
@ -62,7 +62,7 @@ namespace big
|
||||
}
|
||||
|
||||
components::options_modal(
|
||||
"Extra Info",
|
||||
"VIEW_PLAYER_INFO_EXTRA_INFO"_T.data(),
|
||||
[ped_health, ped_maxhealth] {
|
||||
ImGui::BeginGroup();
|
||||
|
||||
@ -79,22 +79,21 @@ namespace big
|
||||
if (boss_goon.Language >= 0 && boss_goon.Language < 13)
|
||||
ImGui::Text("PLAYER_INFO_LANGUAGE"_T.data(), languages[boss_goon.Language].name);
|
||||
|
||||
ImGui::Text("PLAYER_INFO_CEO_NAME"_T.data(), boss_goon.GangName);
|
||||
ImGui::Text("PLAYER_INFO_MC_NAME"_T.data(), boss_goon.ClubhouseName);
|
||||
ImGui::Text("PLAYER_INFO_WALLET"_T.data(), wallet);
|
||||
ImGui::Text("PLAYER_INFO_BANK"_T.data(), money - wallet);
|
||||
ImGui::Text("PLAYER_INFO_TOTAL_MONEY"_T.data(), money);
|
||||
ImGui::Text("PLAYER_INFO_RANK"_T.data(), stats.Rank, stats.RP);
|
||||
ImGui::Text("Health: %d (MaxHealth: %d)", ped_health, ped_maxhealth); // TODO: translate
|
||||
ImGui::Text("PLAYER_INFO_KD"_T.data(), stats.KdRatio);
|
||||
ImGui::Text("PLAYER_INFO_KILLS"_T.data(), stats.KillsOnPlayers);
|
||||
ImGui::Text("PLAYER_INFO_DEATHS"_T.data(), stats.DeathsByPlayers);
|
||||
ImGui::Text("PLAYER_INFO_PROSTITUTES"_T.data(), stats.ProstitutesFrequented);
|
||||
ImGui::Text("PLAYER_INFO_LAP_DANCES"_T.data(), stats.LapDancesBought);
|
||||
ImGui::Text("PLAYER_INFO_MISSIONS_CREATED"_T.data(), stats.MissionsCreated);
|
||||
ImGui::Text("PLAYER_INFO_METLDOWN_COMPLETE"_T.data(),
|
||||
scr_globals::gpbd_fm_1.as<GPBD_FM*>()->Entries[id].MeltdownComplete ? "YES"_T.data() :
|
||||
"NO"_T.data()); // curious to see if anyone has actually played singleplayer
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_CEO_NAME"_T, boss_goon.GangName.Data).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_MC_NAME"_T, boss_goon.ClubhouseName.Data).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_WALLET"_T, wallet).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_BANK"_T, money - wallet).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_TOTAL_MONEY"_T, money).c_str());
|
||||
ImGui::Text(std::format("{}: {} ({} {})", "PLAYER_INFO_RANK"_T, stats.Rank, "PLAYER_INFO_RANK_RP"_T, stats.RP).c_str());
|
||||
ImGui::Text(std::format("{}: {} ({} {})", "VIEW_PLAYER_INFO_HEALTH"_T, ped_health, "VIEW_PLAYER_INFO_MAXHEALTH"_T, ped_maxhealth).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_KD"_T, stats.KdRatio).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_KILLS"_T, stats.KillsOnPlayers).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_DEATHS"_T, stats.DeathsByPlayers).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_PROSTITUTES"_T, stats.ProstitutesFrequented).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_LAP_DANCES"_T, stats.LapDancesBought).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_MISSIONS_CREATED"_T, stats.MissionsCreated).c_str());
|
||||
auto meltdown_completed = scr_globals::gpbd_fm_1.as<GPBD_FM*>()->Entries[id].MeltdownComplete ? "YES"_T : "NO"_T;
|
||||
ImGui::Text(std::format("{}: {}", "PLAYER_INFO_METLDOWN_COMPLETE"_T, meltdown_completed).c_str());
|
||||
}
|
||||
|
||||
ImGui::EndGroup();
|
||||
@ -103,38 +102,38 @@ namespace big
|
||||
|
||||
ImGui::BeginGroup();
|
||||
|
||||
ImGui::Text("NAT Type: %s", get_nat_type_str(g_player_service->get_selected()->get_net_data()->m_nat_type));
|
||||
ImGui::Text(std::format("{}: {}", "VIEW_PLAYER_INFO_NAT_TYPE"_T, get_nat_type_str(g_player_service->get_selected()->get_net_data()->m_nat_type)).c_str());
|
||||
|
||||
if (auto peer = g_player_service->get_selected()->get_connection_peer())
|
||||
{
|
||||
ImGui::Text("Connection Type: %s", get_connection_type_str(peer->m_peer_address.m_connection_type));
|
||||
ImGui::Text(std::format("{}: {}", "VIEW_PLAYER_INFO_CONNECTION_TYPE"_T, get_connection_type_str(peer->m_peer_address.m_connection_type)).c_str());
|
||||
|
||||
if (peer->m_peer_address.m_connection_type == 2)
|
||||
{
|
||||
auto ip = peer->m_relay_address.m_relay_address;
|
||||
ImGui::Text("Relay IP: %d.%d.%d.%d", ip.m_field1, ip.m_field2, ip.m_field3, ip.m_field4);
|
||||
ImGui::Text(std::format("{}: {}.{}.{}.{}", "VIEW_PLAYER_INFO_RELAY_IP"_T, ip.m_field1, ip.m_field2, ip.m_field3, ip.m_field4).c_str());
|
||||
}
|
||||
else if (peer->m_peer_address.m_connection_type == 3)
|
||||
{
|
||||
auto ip = peer->m_peer_address.m_relay_address;
|
||||
ImGui::Text("Peer Relay IP: %d.%d.%d.%d", ip.m_field1, ip.m_field2, ip.m_field3, ip.m_field4);
|
||||
ImGui::Text(std::format("{}: {}.{}.{}.{}", "VIEW_PLAYER_INFO_PEER_RELAY_IP"_T, ip.m_field1, ip.m_field2, ip.m_field3, ip.m_field4).c_str());
|
||||
}
|
||||
|
||||
ImGui::Text("Num Messages Sent: %d", peer->m_num_messages_batched);
|
||||
ImGui::Text("Num Reliables Sent: %d", peer->m_num_reliable_messages_batched);
|
||||
ImGui::Text("Num Reliables Resent: %d", peer->m_num_resent_reliable_messages_batched);
|
||||
ImGui::Text("Num Encryption Attempts: %d", peer->m_num_encryption_attempts);
|
||||
ImGui::Text(std::format("{}: {}", "VIEW_PLAYER_INFO_NUM_MESSAGES_SENT"_T, peer->m_num_messages_batched).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "VIEW_PLAYER_INFO_NUM_RELIABLES_SENT"_T, peer->m_num_reliable_messages_batched).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "VIEW_PLAYER_INFO_NUM_RELIABLES_RESENT"_T, peer->m_num_resent_reliable_messages_batched).c_str());
|
||||
ImGui::Text(std::format("{}: {}", "VIEW_PLAYER_INFO_NUM_ENCRYPTION_ATTEMPTS"_T, peer->m_num_encryption_attempts).c_str());
|
||||
}
|
||||
|
||||
ImGui::EndGroup();
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
ImGui::Checkbox("Block Explosions", &g_player_service->get_selected()->block_explosions);
|
||||
ImGui::Checkbox("Block Clone Creates", &g_player_service->get_selected()->block_clone_create);
|
||||
ImGui::Checkbox("Block Clone Syncs", &g_player_service->get_selected()->block_clone_sync);
|
||||
ImGui::Checkbox("Block Network Events", &g_player_service->get_selected()->block_net_events);
|
||||
ImGui::Checkbox("Log Clones", &g_player_service->get_selected()->log_clones);
|
||||
ImGui::Checkbox("VIEW_PLAYER_INFO_BLOCK_EXPLOSIONS"_T.data(), &g_player_service->get_selected()->block_explosions);
|
||||
ImGui::Checkbox("VIEW_PLAYER_INFO_BLOCK_CLONE_CREATE"_T.data(), &g_player_service->get_selected()->block_clone_create);
|
||||
ImGui::Checkbox("VIEW_PLAYER_INFO_BLOCK_CLONE_SYNC"_T.data(), &g_player_service->get_selected()->block_clone_sync);
|
||||
ImGui::Checkbox("VIEW_PLAYER_INFO_BLOCK_NETWORK_EVENTS"_T.data(), &g_player_service->get_selected()->block_net_events);
|
||||
ImGui::Checkbox("VIEW_PLAYER_INFO_LOG_CLONES"_T.data(), &g_player_service->get_selected()->log_clones);
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
@ -162,7 +161,7 @@ namespace big
|
||||
}
|
||||
},
|
||||
false,
|
||||
"Extra Info");
|
||||
"VIEW_PLAYER_INFO_EXTRA_INFO"_T.data());
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
@ -173,7 +172,7 @@ namespace big
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
if (ImGui::SmallButton("SC Profile"))
|
||||
if (ImGui::SmallButton("VIEW_PLAYER_INFO_SC_PROFILE"_T.data()))
|
||||
g_fiber_pool->queue_job([] {
|
||||
uint64_t gamerHandle[13];
|
||||
NETWORK::NETWORK_HANDLE_FROM_PLAYER(g_player_service->get_selected()->id(), (Any*)&gamerHandle, 13);
|
||||
@ -182,7 +181,7 @@ namespace big
|
||||
|
||||
if (CPlayerInfo* player_info = g_player_service->get_selected()->get_player_info(); player_info != nullptr)
|
||||
{
|
||||
ImGui::Text("PLAYER_INFO_WANTED_LEVEL"_T.data(), player_info->m_wanted_level);
|
||||
ImGui::Text(std::format("{}: {}", "WANTED_LEVEL"_T, player_info->m_wanted_level).c_str());
|
||||
}
|
||||
|
||||
if (ped_damage_bits & (uint32_t)eEntityProofs::GOD)
|
||||
@ -201,7 +200,7 @@ namespace big
|
||||
}
|
||||
if (ped_health > 328 || ped_maxhealth > 328 && !(uint32_t)eEntityProofs::EXPLOSION && !(uint32_t)eEntityProofs::BULLET)
|
||||
{
|
||||
mode_str += "Unnatural Health";
|
||||
mode_str += "VIEW_PLAYER_INFO_UNNATURAL_HEALTH"_T.data();
|
||||
}
|
||||
}
|
||||
|
||||
@ -294,20 +293,20 @@ namespace big
|
||||
else
|
||||
{
|
||||
if (net_player_data->m_force_relays)
|
||||
ImGui::Text("IP Address: Hidden");
|
||||
ImGui::Text("VIEW_PLAYER_INFO_IP_HIDDEN"_T.data());
|
||||
else
|
||||
ImGui::Text("IP Address: Unknown");
|
||||
ImGui::Text("VIEW_PLAYER_INFO_IP_UNKNOWN"_T.data());
|
||||
|
||||
auto cxn_type = g_player_service->get_selected()->get_connection_peer() ?
|
||||
g_player_service->get_selected()->get_connection_peer()->m_peer_address.m_connection_type :
|
||||
0;
|
||||
|
||||
if (g.protections.force_relay_connections && ImGui::IsItemHovered())
|
||||
ImGui::SetTooltip("IP addresses cannot be seen when Force Relay Connections is enabled");
|
||||
ImGui::SetTooltip("VIEW_PLAYER_INFO_IP_FORCE_RELAY_TOOLTIP"_T.data());
|
||||
else if (cxn_type == 2 && ImGui::IsItemHovered())
|
||||
ImGui::SetTooltip("Cannot retrieve IP address since this player is connected through dedicated servers");
|
||||
ImGui::SetTooltip("VIEW_PLAYER_INFO_IP_RELAY_TOOLTIP"_T.data());
|
||||
else if (cxn_type == 3 && ImGui::IsItemHovered())
|
||||
ImGui::SetTooltip("Cannot retrieve IP address since this player is connected through another player");
|
||||
ImGui::SetTooltip("VIEW_PLAYER_INFO_IP_PEER_RELAY_TOOLTIP"_T.data());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ namespace big
|
||||
void view::player_kick()
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Kick");
|
||||
components::sub_title("KICK"_T);
|
||||
if (ImGui::BeginListBox("##kick", get_listbox_dimensions()))
|
||||
{
|
||||
auto const is_session_host = [] {
|
||||
@ -15,7 +15,7 @@ namespace big
|
||||
};
|
||||
|
||||
if (!g_player_service->get_self()->is_host())
|
||||
ImGui::Text("Host and breakup kick require session host");
|
||||
ImGui::Text("VIEW_PLAYER_KICK_HOST_AND_BREAKUP_KICK_REQUIRE_SESSION_HOST"_T.data());
|
||||
|
||||
ImGui::BeginDisabled(!g_player_service->get_self()->is_host());
|
||||
|
||||
|
@ -9,7 +9,7 @@ namespace big
|
||||
void view::player_misc()
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Misc");
|
||||
components::sub_title("DEBUG_TAB_MISC"_T);
|
||||
if (ImGui::BeginListBox("##misc", get_listbox_dimensions()))
|
||||
{
|
||||
components::player_command_button<"joinceo">(g_player_service->get_selected());
|
||||
@ -35,7 +35,7 @@ namespace big
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
ImGui::Checkbox("Fix Vehicle", &g_player_service->get_selected()->fix_vehicle);
|
||||
ImGui::Checkbox("VIEW_NET_SESSION_FIX_VEHICLE"_T.data(), &g_player_service->get_selected()->fix_vehicle);
|
||||
|
||||
ImGui::EndListBox();
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ namespace big
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
|
||||
components::sub_title("Teleport");
|
||||
components::sub_title("GUI_TAB_TELEPORT"_T);
|
||||
|
||||
if (ImGui::BeginListBox("##teleport", get_listbox_dimensions()))
|
||||
{
|
||||
@ -20,14 +20,14 @@ namespace big
|
||||
components::player_command_button<"playervehtp">(g_player_service->get_selected());
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"bring">(g_player_service->get_selected());
|
||||
components::button("Waypoint", [] {
|
||||
components::button("VIEW_PLAYER_TELEPORT_WAYPOINT"_T, [] {
|
||||
Vector3 location;
|
||||
if (blip::get_blip_location(location, (int)BlipIcons::Waypoint))
|
||||
entity::load_ground_at_3dcoord(location), teleport::teleport_player_to_coords(g_player_service->get_selected(), location);
|
||||
});
|
||||
|
||||
components::options_modal(
|
||||
"Interior Teleport",
|
||||
"VIEW_PLAYER_TELEPORT_INTERIOR_TELEPORT"_T.data(),
|
||||
[] {
|
||||
components::player_command_button<"intkick">(g_player_service->get_selected(), {});
|
||||
if (ImGui::BeginCombo("##apartment", apartment_names[g.session.send_to_apartment_idx]))
|
||||
@ -92,42 +92,42 @@ namespace big
|
||||
toxic::start_activity(g_player_service->get_selected(), eActivityType::Skydive);
|
||||
});
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {81}, "TP To MOC");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {81}, "VIEW_PLAYER_TELEPORT_TP_TO_MOC"_T);
|
||||
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {123}, "TP To Casino");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {123}, "VIEW_PLAYER_TELEPORT_TP_TO_CASINO"_T);
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {124}, "TP To Penthouse");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {124}, "VIEW_PLAYER_TELEPORT_TP_TO_PENTHOUSE"_T);
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {128}, "TP To Arcade");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {128}, "VIEW_PLAYER_TELEPORT_TP_TO_ARCADE"_T);
|
||||
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {146}, "TP To Music Locker");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {146}, "VIEW_PLAYER_TELEPORT_TP_TO_MUSIC_LOCKER"_T);
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {148}, "TP To Record A Studios");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {148}, "VIEW_PLAYER_TELEPORT_TP_TO_RECORD_A_STUDIOS"_T);
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {149}, "TP To Custom Auto Shop");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {149}, "VIEW_PLAYER_TELEPORT_TP_TO_CUSTOM_AUTO_SHOP"_T);
|
||||
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {155}, "TP To Agency");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {155}, "VIEW_PLAYER_TELEPORT_TP_TO_AGENCY"_T);
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {160}, "TP To Freakshop");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {160}, "VIEW_PLAYER_TELEPORT_TP_TO_FREAKSHOP"_T);
|
||||
ImGui::SameLine();
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {161}, "TP To Multi Floor Garage");
|
||||
components::player_command_button<"interiortp">(g_player_service->get_selected(), {161}, "VIEW_PLAYER_TELEPORT_TP_TO_MULTI_FLOOR_GARAGE"_T);
|
||||
},
|
||||
false,
|
||||
"Interior");
|
||||
"INTERIOR"_T.data());
|
||||
|
||||
if (g_player_service->get_selected()->get_ped())
|
||||
{
|
||||
static float new_location[3];
|
||||
auto& current_location = *reinterpret_cast<float(*)[3]>(g_player_service->get_selected()->get_ped()->get_position());
|
||||
|
||||
components::small_text("Custom TP");
|
||||
components::small_text("VIEW_PLAYER_TELEPORT_CUSTOM_TP"_T);
|
||||
ImGui::SetNextItemWidth(400);
|
||||
ImGui::InputFloat3("##customlocation", new_location);
|
||||
components::button("TP", [] {
|
||||
components::button("GUI_TAB_TELEPORT"_T, [] {
|
||||
teleport::teleport_player_to_coords(g_player_service->get_selected(), *reinterpret_cast<rage::fvector3*>(&new_location));
|
||||
});
|
||||
ImGui::SameLine();
|
||||
if (ImGui::Button("Get current"))
|
||||
if (ImGui::Button("VIEW_PLAYER_TELEPORT_GET_CURRENT"_T.data()))
|
||||
{
|
||||
std::copy(std::begin(current_location), std::end(current_location), std::begin(new_location));
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ namespace big
|
||||
void view::player_toxic()
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Toxic");
|
||||
components::sub_title("TOXIC"_T);
|
||||
if (ImGui::BeginListBox("##toxic", get_listbox_dimensions()))
|
||||
{
|
||||
components::player_command_button<"kill">(g_player_service->get_selected(), {});
|
||||
@ -19,7 +19,7 @@ namespace big
|
||||
|
||||
components::player_command_button<"ceokick">(g_player_service->get_selected(), {});
|
||||
ImGui::SameLine();
|
||||
components::button("Gooch Test", [] {
|
||||
components::button("VIEW_PLAYER_TOXIC_GOOCH_TEST"_T, [] {
|
||||
*scr_globals::gooch.at(289).at(1).as<Player*>() = g_player_service->get_selected()->id();
|
||||
scripts::start_launcher_script(171);
|
||||
});
|
||||
@ -34,11 +34,11 @@ namespace big
|
||||
|
||||
components::player_command_button<"ceoraid">(g_player_service->get_selected(), {});
|
||||
ImGui::SameLine();
|
||||
components::button("Trigger MC Raid", [] {
|
||||
components::button("TRIGGER_MC_RAID"_T, [] {
|
||||
toxic::start_activity(g_player_service->get_selected(), eActivityType::BikerDefend);
|
||||
});
|
||||
ImGui::SameLine();
|
||||
components::button("Trigger Bunker Raid", [] {
|
||||
components::button("TRIGGER_BUNKER_RAID"_T, [] {
|
||||
toxic::start_activity(g_player_service->get_selected(), eActivityType::GunrunningDefend);
|
||||
});
|
||||
|
||||
|
@ -5,7 +5,7 @@ namespace big
|
||||
void view::player_vehicle()
|
||||
{
|
||||
ImGui::BeginGroup();
|
||||
components::sub_title("Vehicle");
|
||||
components::sub_title("VEHICLE"_T);
|
||||
if (ImGui::BeginListBox("##veh", get_listbox_dimensions()))
|
||||
{
|
||||
components::player_command_button<"vehkick">(g_player_service->get_selected(), {});
|
||||
|
@ -12,17 +12,20 @@ namespace big
|
||||
player_ptr current_player = g_player_service->get_selected();
|
||||
navigation_struct& player_tab = g_gui_service->get_navigation().at(tabs::PLAYER);
|
||||
|
||||
strcpy(player_tab.name, current_player->get_name());
|
||||
strcat(player_tab.name, std::format(" ({})", std::to_string(current_player->id())).data());
|
||||
|
||||
std::string name_appendage{};
|
||||
if (current_player->is_host())
|
||||
strcat(player_tab.name, " [HOST]");
|
||||
|
||||
{
|
||||
name_appendage += std::format(" [{}]", "VIEW_PLAYER_IS_HOST"_T);
|
||||
}
|
||||
if (current_player->is_friend())
|
||||
strcat(player_tab.name, " [FRIEND]");
|
||||
|
||||
{
|
||||
name_appendage += std::format(" [{}]", "VIEW_PLAYER_IS_FRIEND"_T);
|
||||
}
|
||||
if (current_player->is_modder)
|
||||
strcat(player_tab.name, " [MOD]");
|
||||
{
|
||||
name_appendage += std::format(" [{}]", "MOD"_T);
|
||||
}
|
||||
strcpy(player_tab.name, std::format("{} ({}){}", current_player->get_name(), current_player->id(), name_appendage).c_str());
|
||||
|
||||
view::player_info();
|
||||
ImGui::SameLine();
|
||||
|
Reference in New Issue
Block a user