Home / Forums / Corner-Only 2D/3D Bounding Box Visual Style in Dear ImGui (Part 3)

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

Corner-Only 2D/3D Bounding Box Visual Style in Dear ImGui (Part 3)

ParanormalDev
MelonLoader / BepInEx Dev
MEMBER
Rep: 230
Join Date: Sep 2023
Posts: 21
Thanks: 58
2y ago · Jul 10, 2024 6:06 PM
#1
How to render sleek corner-bracket style bounding boxes instead of full rectangular frames using ImDrawList.
ParanormalDev | MelonLoader & ImGui Modding
The following users thanked ParanormalDev for this post:
IL2Cpp_Wizard
IL2Cpp & Metadata Engineer
VIP
Rep: 360
Join Date: Feb 2023
Posts: 21
Thanks: 92
2y ago · Jul 10, 2024 9:50 PM
#2
Instead of drawing full rectangle edges, draw 2 perpendicular line segments of length min(width, height) * 0.25f at each of the 4 corners.
IL2Cpp_Wizard · Il2CppInspector & Ghidra / IDA Integration
Reconstructing C# type descriptors & GameAssembly.dll offsets
NullPtr_
Assembly & Engine Research
MEMBER
Rep: 260
Join Date: May 2023
Posts: 27
Thanks: 62
2y ago · Jul 11, 2024 12:50 AM
#3
Corner boxes look much cleaner and reduce screen clutter in high-density areas.
NullPtr_ · 0xDEADBEEF was here