URL:
  <http://gna.org/bugs/?12874>

                 Summary: Clicking past an old-style dialogue skips the next
new-style one because of mouse up/down events
                 Project: Battle for Wesnoth
            Submitted by: pmawhorter
            Submitted on: Monday 01/19/2009 at 09:50
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: User Interface
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.5.7
        Operating System: Ubuntu Linux

    _______________________________________________________

Details:

When you click to move past an old-style dialog that is followed by a
new-style dialog, you skip the new-style dialog as well. It seems clear that
this happens because the mouse-down event triggers the transition from the
old-style dialog to the new-style one, whereas the mouse-up event triggers
the transition from the new-style one to whatever's next. I suspect that line
682 of construct_dialog.cpp has some part to play in this (that's the
beginning of dialog::process, where info.new_left_button is set), but I
haven't traced out all of the code to be sure about that. In any case, if you
hold down the mouse, the old-style dialog disappears as soon as you start, and
the new-style dialog right afterwards lingers until you let up the button.

The only demo I have of this is an entire campaign, which seems a little big
to upload... If you want me to construct a test scenario that shows off this
behavior just ask and I'll do it as soon as I have the time... hopefully the
bug should be clear to someone who knows the codebase better than I do, and
if not, maybe I'll persist and submit a patch file.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?12874>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to