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

                 Summary: Clicking too many options freezes game
                 Project: Battle for Wesnoth
            Submitted by: pentarctag0n
            Submitted on: Wed 20 Apr 2016 03:36:13 AM UTC
                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.13.4+dev
        Operating System: Linux Mint

    _______________________________________________________

Details:

When options are used in messages, and many options are chosen before closing
the message, the message UI becomes increasingly unresponsive until it freezes
entirely.  The following code demonstrates the problem:

[event]
  name="start"
  
  {VARIABLE test 1}
  
  [while]
    [variable]
      name="test"
      equals=1
    [/variable]
    [do]
      [message]
        speaker="narrator"
        message="level 1"
        
        [option]
          description="exit"
          [command]
            {VARIABLE test 0}
          [/command]
        [/option]
        
        [option]
          description="to level 2"
          default="yes"
          [command]
            
            {VARIABLE test1 1}
            
            [while]
              [variable]
                name="test1"
                equals=1
              [/variable]
              [do]
                
                [message]
                  speaker="narrator"
                  message="level 2"
                  
                  [option]
                    description="to level 1"
                    [command]
                      {VARIABLE test1 0}
                    [/command]
                  [/option]
                  
                [/message]
                
              [/do]
            [/while]
            
          [/command]
        [/option]
        
      [/message]
    [/do]
  [/while]
  
[/event]

After going back and forth between level 1 and level 2 ~5 times, the message
UI response time starts dropping quickly.  Once this happens, the log starts
to be filled with the message:

warning gui/event: distributor mouse button left [wml_message_left]: . Mouse
down on non focused widget and mouse not captured, we missed events.





    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to