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

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

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

IL2Cpp_Wizard
IL2Cpp & Metadata Engineer
VIP
Rep: 360
Join Date: Feb 2023
Posts: 21
Thanks: 92
1y ago · Nov 22, 2024 2:14 PM
#1
How to render sleek corner-bracket style bounding boxes instead of full rectangular frames using ImDrawList.
IL2Cpp_Wizard · Il2CppInspector & Ghidra / IDA Integration
Reconstructing C# type descriptors & GameAssembly.dll offsets
The following users thanked IL2Cpp_Wizard for this post:
KronoDev
C++ / Game Modder
MEMBER
Rep: 195
Join Date: Jan 2023
Posts: 32
Thanks: 48
1y ago · Nov 22, 2024 7:37 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.
KronoDev - Keep coding, keep learning
DarkLogic
Game Logic & SDK Developer
MEMBER
Rep: 180
Join Date: Jun 2024
Posts: 28
Thanks: 41
1y ago · Nov 23, 2024 1:37 AM
#3
Corner boxes look much cleaner and reduce screen clutter in high-density areas.
DarkLogic | Virtual method tables & SDKs