Author: alink
Date: Sun May 27 01:24:05 2007
New Revision: 17880
URL: http://svn.gna.org/viewcvs/wesnoth?rev=17880&view=rev
Log:
don't allow right-click cancel on dialog with options and just an OK button
also better detection ow what's the outside of the dialog
(still not perfect: I must add tittle and buttons)
Modified:
trunk/src/construct_dialog.cpp
Modified: trunk/src/construct_dialog.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/construct_dialog.cpp?rev=17880&r1=17879&r2=17880&view=diff
==============================================================================
--- trunk/src/construct_dialog.cpp (original)
+++ trunk/src/construct_dialog.cpp Sun May 27 01:24:05 2007
@@ -698,7 +698,10 @@
)
) || (
new_right_button && !info.right_button &&
- !point_in_rect(mousex,mousey,last_dimension_.frame)
+ (type_ != OK_ONLY || !use_menu) &&
+ !point_in_rect(mousex,mousey,last_dimension_.frame) &&
+ !point_in_rect(mousex,mousey,last_dimension_.textbox) &&
+ !point_in_rect(mousex,mousey,last_dimension_.message)
) || (
//any keypress should close a dialog if it has one
standard button (or less)
//and no menu options.
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits