View Issue Details

IDProjectCategoryLast Update
0019248AI War 2GUIOct 7, 2017 4:13 pm
ReporterBadgerBadger Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version0.523 
Fixed in Version0.524 
Summary0019248: Hitting "B" to open build menu doesn't close previous menus first
DescriptionIf you have part of the bottom menu open (lets say Esc->2 for the debug menu) and then hit "B" to open a build menu, the old windows aren't closed first, so you wind up with really weird looking overlaps. Observe in the picture that I have a build queue, but also "Tracing" and "Spawn AI Wave" options visible.

Here is my proposed fix in Input_MainHandler.cs
                case "SelectBuilder":
                    {
                        if ( !World.Instance.IsLoaded )
                            return;
                        WorldSide localSide = World_AIW2.Instance.GetLocalSide();
                        if ( localSide == null )
                            return;
                        Planet planet = Engine_AIW2.Instance.NonSim_GetPlanetBeingCurrentlyViewed();
                        if ( planet == null )
                            return;

                        GameEntity currentBuilder = null;
                        if ( Engine_AIW2.Instance.GetHasSelection() )
                        {
                            currentBuilder = ArcenExternalUIUtilities.GetEntityToUseForBuildMenu();
                            if ( currentBuilder != null )
                                Engine_AIW2.Instance.ClearSelection();
                        }
                        /* When you select a builder, also close the currently open menus */
                        Window_InGameBottomMenu.Instance.CloseAllExpansions(); //Adding this line will fix the problem
TagsNo tags attached.

Activities

BadgerBadger

Oct 7, 2017 1:51 pm

manager  

overlappingMenus.jpg (551,464 bytes)

keith.lamothe

Oct 7, 2017 4:13 pm

administrator   ~0046501

Fixed for 0.524, thanks :)

Issue History

Date Modified Username Field Change
Oct 7, 2017 1:51 pm BadgerBadger New Issue
Oct 7, 2017 1:51 pm BadgerBadger File Added: overlappingMenus.jpg
Oct 7, 2017 4:13 pm keith.lamothe Assigned To => keith.lamothe
Oct 7, 2017 4:13 pm keith.lamothe Status new => resolved
Oct 7, 2017 4:13 pm keith.lamothe Resolution open => fixed
Oct 7, 2017 4:13 pm keith.lamothe Fixed in Version => 0.524
Oct 7, 2017 4:13 pm keith.lamothe Note Added: 0046501