#1022 closed defect (fixed)
[PATCH] Changing selection in actor viewer should display correct player colour
Reported by: | historic_bruno | Owned by: | Mitchell K |
---|---|---|---|
Priority: | If Time Permits | Milestone: | Alpha 10 |
Component: | Atlas editor | Keywords: | patch |
Cc: | mk12360@… | Patch: |
Description
If you change selections in the object panel with actor viewer open, the player colour of the displayed entity becomes grey, but it should match the colour of the selected player. Probably this involves sending a player ID in the SetActorViewer
message (because the AtlasUI is in a separate thread from the engine and they communicate by messages), and then getting the player colour however it's done in other parts of the engine. If you select a player after switching actors, the colour updates correctly, so this is only a problem when switching actors.
Attachments (2)
Change History (9)
comment:1 by , 12 years ago
Cc: | added |
---|---|
Keywords: | review patch added |
Milestone: | Backlog → Alpha 10 |
Owner: | set to |
Status: | new → assigned |
Summary: | Changing selection in actor viewer should display correct player colour → [PATCH] Changing selection in actor viewer should display correct player colour |
by , 12 years ago
Attachment: | Atlas-ActorViewer-PlayerColour(1022).patch added |
---|
comment:2 by , 12 years ago
The patch looks good, there's just one thing I would change.
The actual simulation code for switching actors is in ActorViewer::SetActor(), so I think ownership should be set there as well (instead of GraphicSetupHandlers.cpp).
comment:3 by , 12 years ago
Keywords: | atlas removed |
---|
comment:4 by , 12 years ago
Good observation, that seems much better to me. Here's the revised patch.
by , 12 years ago
Attachment: | Atlas-ActorViewer-PlayerColour(1022)-v2.patch added |
---|
entity ownership code moved to ActorViewer::SetActor?() and fixes assuming default is gaia
comment:6 by , 12 years ago
Keywords: | review removed |
---|
comment:7 by , 12 years ago
Keywords: | simple removed |
---|
I gave this a try, it certainly took a long time as I'm still learning the codebase. I think I implemented it in the way described in the description.