Opened 9 years ago

Closed 8 years ago

Last modified 5 years ago

#3535 closed defect (fixed)

[PATCH] Chat messages get drawn over the diplomacy window

Reported by: AlThePhoenix Owned by: elexis
Priority: Should Have Milestone: Alpha 20
Component: UI & Simulation Keywords:
Cc: Patch:

Description (last modified by elexis)

When more than 12 chat messages are visible at the same time, they start overlapping with the diplomacy window if it is opened and the messages are long enough.

Apart from that the chat window isn't correctly drawn over the diplomacy window.

https://trac.wildfiregames.com/raw-attachment/ticket/3535/0AD_DiplomacyWindow_ChatWindow.jpg

Attachments (5)

0AD_Spam.jpg (632.8 KB ) - added by AlThePhoenix 9 years ago.
0AD_DiplomacyWindow_ChatWindow.jpg (164.1 KB ) - added by AlThePhoenix 9 years ago.
chat_messages_get_drawn_over_the_diplomacy_window.patch (675 bytes ) - added by Sergey Kushnirenko 8 years ago.
chat_messages_get_drawn_over_the_diplomacy_window_v2.patch (1.1 KB ) - added by Sergey Kushnirenko 8 years ago.
chat_messages_get_drawn_over_the_diplomacy_window_v3.patch (1.6 KB ) - added by Sergey Kushnirenko 8 years ago.

Download all attachments as: .zip

Change History (16)

by AlThePhoenix, 9 years ago

Attachment: 0AD_Spam.jpg added

by AlThePhoenix, 9 years ago

comment:1 by AlThePhoenix, 9 years ago

Description: modified (diff)

comment:2 by AlThePhoenix, 9 years ago

Description: modified (diff)

comment:3 by wraitii, 8 years ago

Keywords: simple added
Milestone: BacklogAlpha 20

comment:4 by Sergey Kushnirenko, 8 years ago

Keywords: review patch added
Summary: Chat messages get drawn over the diplomacy window[PATCH] Chat messages get drawn over the diplomacy window

comment:5 by elexis, 8 years ago

Keywords: review removed

The patch enforces that the chat-messages are always drawn below the chat-input-window. It works with -1 but not 0.

But the patch doesn't address the issue of chat-input-window and diplomacy manager being opened simultaneously (see screenshot).

comment:6 by Sergey Kushnirenko, 8 years ago

Keywords: review added; simple removed

comment:7 by elexis, 8 years ago

In 17691:

Correct z-ordering issue for chat panel and input form. Patch by dalerank, refs #3535.

comment:8 by elexis, 8 years ago

Keywords: patch removed

Thanks for the patch. Your version addresses the two issues described in the ticket. The same issue remains for the trade dialog though.

If the chat input is drawn below the diplomacy manager, the user can interact with an invisible window. Drawing it above the diplomacy manager might work, but then interaction with the diplomacy dialog is limited. Looking at the code, it would be more coherent to just close previous dialogs, eliminating those z-ordering as well.

comment:9 by elexis, 8 years ago

Owner: set to elexis
Resolution: fixed
Status: newclosed

In 17692:

Close previously opened dialogs before opening a new one. Fixes #3535. Also remove many duplicate calls.

comment:10 by sanderd17, 8 years ago

Keywords: review removed

comment:11 by elexis, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.