OsirisAndExtra icon indicating copy to clipboard operation
OsirisAndExtra copied to clipboard

Question

Open SightDev opened this issue 2 years ago • 2 comments

How would I draw this crosshair? As a custom noscope crosshair? image

SightDev avatar Aug 19 '22 21:08 SightDev

How would I draw this crosshair? As a custom noscope crosshair? image

ImGui

JannesBonk avatar Aug 20 '22 10:08 JannesBonk

ImVec2 vecScreenSize = x; float flSize = 50.f;

ImGui::GetBackgroundDrawList()->FilledRectMultiColor(ImVec2(vecScreenSize.x / 2 - 2, vecScreenSize.y / 2 - flSize), ImVec2(vecScreenSize.x / 2 + 2, vecScreenSize.y / 2), ImColor(0,0,0,200), ImColor(0,0,0,200), ImColor(0,0,0,0), ImColor(0,0,0,0));

ImGui::GetBackgroundDrawList()->FilledRectMultiColor(ImVec2(vecScreenSize.x / 2 - 2, vecScreenSize.y / 2 - flSize), ImVec2(vecScreenSize.x / 2 + 2, vecScreenSize.y / 2), ImColor(0,0,255,200), ImColor(0,0,255,200), ImColor(0,0,255,0), ImColor(0,0,255,0));

// you get the idea

Neryliusz avatar Aug 21 '22 12:08 Neryliusz