if(雷达){ stdstring s; //s += stdto_string((int) Distance); FVecto
if(雷达){ std::string s; //s += std::to_string((int) Distance); FVector MyPosition; ASTExtraVehicleBase *CurrentVehicla = Player->CurrentVehicle; if (CurrentVehicla) { MyPosition = CurrentVehicla->RootComponent->RelativeLocation; } else { MyPosition = Player->RootComponent->RelativeLocation; } FVector EnemyPosition; ASTExtraVehicleBase *CurrentVehicle = localPlayer->CurrentVehicle; if (CurrentVehicle) { EnemyPosition = CurrentVehicle->RootComponent->RelativeLocation; } else { EnemyPosition = localPlayer->RootComponent->RelativeLocation; } bool out = false; struct Vector3 坐标; 坐标.X = RadarX; 坐标.Y = RadarY; struct Vector3 Size; Size.X = 200.0f; //Width of Radar Box. Size.Y = 210.0f; //Height of Radar Box. float 雷达X轴 = 坐标.X + (Size.X / 2); float 雷达Y轴 = 坐标.Y + (Size.Y / 2); FVector RadarSketch = WorldToRadar(localController->PlayerCameraManager->CameraCache.POV.Rotation.Yaw, MyPosition, EnemyPosition, 坐标.X,坐标.Y,Vector3(Size.X, Size.Y, 0), out); if (Player->Health == 0.0f && !Player->bDead) { draw->AddCircleFilled({RadarSketch.X, RadarSketch.Y}, {13}, 黄色); std::string sdt = std::to_string((int)Distance); auto textSize = ImGui::CalcTextSize(sdt.c_str(), 0, 25); draw->AddText(NULL, 15, {RadarSketch.X - textSize.x / 3.0, RadarSketch.Y - textSize.y * 0.45}, ImColor(0, 0, 0), sdt.c_str()); }else if (Player ->bEnsure) { draw->AddCircleFilled({RadarSketch.X, RadarSketch.Y}, {13}, ImColor(人机1)); std::string sdt = std::to_string((int)Distance); auto textSize = ImGui::CalcTextSize(sdt.c_str(), 0, 25); draw->AddText(NULL, 15, {RadarSketch.X - textSize.x / 3.0, RadarSketch.Y - textSize.y * 0.45}, ImColor(0, 0, 0), sdt.c_str()); } else { draw->AddCircleFilled({RadarSketch.X, RadarSketch.Y}, {13}, ImColor(真人1)); std::string sdt = std::to_string((int)Distance); auto textSize = ImGui::CalcTextSize(sdt.c_str(), 0, 25); draw->AddText(NULL, 15, {RadarSketch.X - textSize.x / 3.0, RadarSketch.Y - textSize.y * 0.45}, ImColor(0, 0, 0), sdt.c_str()); } 绘制字体描边(20,RadarSketch.X-10,RadarSketch.Y+20,黑色,s.c_str()); }
在Telegram中查看相关推荐

🔍 发送关键词来寻找群组、频道或视频。
启动SOSO机器人