Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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)

Atlas-ActorViewer-PlayerColour(1022).patch (3.2 KB ) - added by Mitchell K 12 years ago.
Atlas-ActorViewer-PlayerColour(1022)-v2.patch (4.6 KB ) - added by Mitchell K 12 years ago.
entity ownership code moved to ​ActorViewer::SetActor?() and fixes assuming default is gaia

Download all attachments as: .zip

Change History (9)

comment:1 by Mitchell K, 12 years ago

Cc: mk12360@… added
Keywords: review patch added
Milestone: BacklogAlpha 10
Owner: set to Mitchell K
Status: newassigned
Summary: Changing selection in actor viewer should display correct player colour[PATCH] Changing selection in actor viewer should display correct player colour

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.

comment:2 by historic_bruno, 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 Kieran P, 12 years ago

Keywords: atlas removed

comment:4 by Mitchell K, 12 years ago

Good observation, that seems much better to me. Here's the revised patch.

by Mitchell K, 12 years ago

entity ownership code moved to ​ActorViewer::SetActor?() and fixes assuming default is gaia

comment:5 by ben, 12 years ago

Resolution: fixed
Status: assignedclosed

In 11527:

Fixes player colors in actor viewer, based on patch by mk12. Fixes #1022.

comment:6 by historic_bruno, 12 years ago

Keywords: review removed

comment:7 by Kieran P, 12 years ago

Keywords: simple removed
Note: See TracTickets for help on using tickets.