mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2024-12-22 20:17:24 +08:00
parent
71c3c2d2e4
commit
d93fb733ca
@ -19,19 +19,23 @@ namespace big
|
||||
const char* name;
|
||||
};
|
||||
|
||||
static uint64_t rid = 0;
|
||||
|
||||
void render_join_game()
|
||||
{
|
||||
ImGui::SeparatorText("JOIN_GAME"_T.data());
|
||||
|
||||
ImGui::BeginGroup();
|
||||
static uint64_t rid = 0;
|
||||
|
||||
ImGui::SetNextItemWidth(200);
|
||||
bool rid_submitted = ImGui::InputScalar("##inputrid", ImGuiDataType_U64, &rid, nullptr, nullptr, nullptr, ImGuiInputTextFlags_EnterReturnsTrue);
|
||||
ImGui::SameLine();
|
||||
if (components::button("JOIN_BY_RID"_T) || rid_submitted)
|
||||
{
|
||||
session::join_by_rockstar_id(rid);
|
||||
const auto rid_lambda = rid;
|
||||
g_fiber_pool->queue_job([rid_lambda]() {
|
||||
session::join_by_rockstar_id(rid_lambda);
|
||||
});
|
||||
}
|
||||
|
||||
ImGui::SetNextItemWidth(200);
|
||||
|
Loading…
Reference in New Issue
Block a user