adventuregamestudio / ags

AGS editor and engine source code
Other
697 stars 159 forks source link

3.5.0: select new room object after one is created by user #782

Closed ghost closed 5 years ago

ghost commented 5 years ago

Right now when you create room object it is not get selected for some reason. This should be done, otherwise it's not convenient, and also not obvious if object was created at all if default sprite is an empty bitmap.

ghost commented 5 years ago

The process of selecting active object in property grid is extremely convoluted... but we mentioned this before.

From what I found the culprit is this line: https://github.com/adventuregamestudio/ags/blob/release-3.5.0/Editor/AGS.Editor/Panes/Room/RoomSettingsEditor.cs#L146 For some reason it keeps selecting previously selected navbar node which in turn forces property grid to switch back to previous object. I.e. if you had just Room selected in navbar then it jumps back to Room, if it was object 0 it jumps back to that, and so on.

EDIT: maybe new object creation is missing some action, like actually making it an active node on a navbar?

ghost commented 5 years ago

Fixed with f502bb842465e45a7d2c822d28d007add35ed29b