Patch - Fixes object list item labeling issue - V14.5.34
Avoids duplicated ImGui labels in the object list by adding the entity ID to the item label. Also, corrects ImGui layout issues, preventing window overlap.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[Window][DockSpace]
|
[Window][DockSpace]
|
||||||
Pos=0,0
|
Pos=0,0
|
||||||
Size=1584,845
|
Size=1536,793
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
|
|
||||||
[Window][Debug##Default]
|
[Window][Debug##Default]
|
||||||
@@ -22,7 +22,7 @@ DockId=0x00000009,0
|
|||||||
|
|
||||||
[Window][Objects]
|
[Window][Objects]
|
||||||
Pos=0,19
|
Pos=0,19
|
||||||
Size=234,842
|
Size=234,774
|
||||||
Collapsed=0
|
Collapsed=0
|
||||||
DockId=0x0000000B,0
|
DockId=0x0000000B,0
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ Collapsed=0
|
|||||||
DockId=0x00000002,0
|
DockId=0x00000002,0
|
||||||
|
|
||||||
[Docking][Data]
|
[Docking][Data]
|
||||||
DockSpace ID=0xCCBD8CF7 Window=0x3DA2F1DE Pos=0,19 Size=1584,826 Split=X
|
DockSpace ID=0xCCBD8CF7 Window=0x3DA2F1DE Pos=0,19 Size=1536,774 Split=X
|
||||||
DockNode ID=0x00000001 Parent=0xCCBD8CF7 SizeRef=1350,842 Split=X
|
DockNode ID=0x00000001 Parent=0xCCBD8CF7 SizeRef=1350,842 Split=X
|
||||||
DockNode ID=0x00000005 Parent=0x00000001 SizeRef=1265,842 Split=Y
|
DockNode ID=0x00000005 Parent=0x00000001 SizeRef=1265,842 Split=Y
|
||||||
DockNode ID=0x00000003 Parent=0x00000005 SizeRef=1584,609 Split=X
|
DockNode ID=0x00000003 Parent=0x00000005 SizeRef=1584,609 Split=X
|
||||||
|
|||||||
@@ -614,7 +614,8 @@ void imguiManager::WidgetObjectWindow()
|
|||||||
{
|
{
|
||||||
std::string name = identity->GetName();
|
std::string name = identity->GetName();
|
||||||
if (name.empty()) name = "Entity #" + std::to_string(identity->GetId());
|
if (name.empty()) name = "Entity #" + std::to_string(identity->GetId());
|
||||||
|
// avoid same label by adding the ID at the end
|
||||||
|
name += "##" + std::to_string(identity->GetId());
|
||||||
bool isSelected = (entity->GetID() == m_selected_entity_id);
|
bool isSelected = (entity->GetID() == m_selected_entity_id);
|
||||||
if (SEL(name.c_str(), isSelected))
|
if (SEL(name.c_str(), isSelected))
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
x64/Debug/config.txt
(Stored with Git LFS)
BIN
x64/Debug/config.txt
(Stored with Git LFS)
Binary file not shown.
BIN
x64/Release/config.txt
(Stored with Git LFS)
BIN
x64/Release/config.txt
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user