@@ -62,8 +62,8 @@ class GameTab
6262
6363 ImGui::Columns (4 , nullptr , false );
6464
65- if (ImGui::Button (" Blind pick " ))
66- gameID = BlindPick ;
65+ if (ImGui::Button (" Quickplay " ))
66+ gameID = Quickplay ;
6767
6868 if (ImGui::Button (" Draft pick" ))
6969 gameID = DraftPick;
@@ -293,9 +293,10 @@ class GameTab
293293 body = custom;
294294 custom = " " ;
295295 }
296- if (gameID == DraftPick || gameID == SoloDuo || gameID == Flex)
296+ if (gameID == DraftPick || gameID == SoloDuo || gameID == Flex || gameID == Quickplay )
297297 {
298298 result = LCU::Request (" POST" , " https://127.0.0.1/lol-lobby/v2/lobby" , body);
299+
299300 LCU::Request (" PUT" , " /lol-lobby/v1/lobby/members/localMember/position-preferences" ,
300301 R"( {"firstPreference":")" + firstPosition[S.gameTab .indexFirstRole ]
301302 + R"( ","secondPreference":")" + secondPosition[S.gameTab .indexSecondRole ] + " \" }" );
@@ -305,18 +306,6 @@ class GameTab
305306 result = LCU::Request (" POST" , " https://127.0.0.1/lol-lobby/v2/lobby" , body);
306307 }
307308
308- // for (int i = 0; i < 10001; i++)
309- // {
310- // std::string res =
311- // R"({"customGameLobby":{"configuration":{"gameMode":"CLASSIC","gameMutator":"","gameServerRegion":"","mapId":11,"mutators":{"id":)"
312- // + std::to_string(i) +
313- // R"(},"spectatorPolicy":"AllAllowed","teamSize":5},"lobbyName":"KBot","lobbyPassword":null},"isCustom":true})";
314- // if (std::string xdd = http.Request("POST", "https://127.0.0.1/lol-lobby/v2/lobby", res, auth->leagueHeader, "", "", clientPort);
315- // xdd.find("errorCode") == std::string::npos)
316- // std::cout << i << std::endl;
317- // std::this_thread::sleep_for(std::chrono::milliseconds(10));
318- // }
319-
320309 gameID = 0 ;
321310 }
322311
@@ -1461,7 +1450,7 @@ class GameTab
14611450 std::string summoner = LCU::Request (" GET" , " https://127.0.0.1/lol-summoner/v1/summoners/" + summId);
14621451 if (reader->parse (summoner.c_str (), summoner.c_str () + static_cast <int >(summoner.length ()), &rootSummoner, &err))
14631452 {
1464- summNames += Utils::StringToWstring (rootSummoner[" internalName " ].asString ()) + L" ," ;
1453+ summNames += Utils::StringToWstring (rootSummoner[" gameName " ]. asString ()) + L" %23 " + Utils::StringToWstring (rootSummoner[ " tagLine " ].asString ()) + L" ," ;
14651454 }
14661455 }
14671456 }
@@ -1483,7 +1472,7 @@ class GameTab
14831472 {
14841473 for (auto & i : participantsArr)
14851474 {
1486- summNames += Utils::StringToWstring (i[" name " ].asString ()) + L" ," ;
1475+ summNames += Utils::StringToWstring (i[" game_name " ]. asString ()) + L" %23 " + Utils::StringToWstring (i[ " game_tag " ].asString ()) + L" ," ;
14871476 }
14881477 }
14891478 }
0 commit comments