[etoys-notify] [JIRA] Created: (SQ-1093) doMenuItem breaks with localization
Karl Ramberg (JIRA)
tracker at squeakland.org
Tue May 15 15:41:26 EDT 2012
doMenuItem breaks with localization
-----------------------------------
Key: SQ-1093
URL: http://tracker.squeakland.org/browse/SQ-1093
Project: squeakland
Issue Type: Bug
Reporter: Karl Ramberg
Fix For: future release
Menu items are localized and breaks in other translations.
The code is kind of interesting here.
It's scripting to build menu and then simulating a mouse click on the menu item.
doMenuItem: menuString
| aMenu anItem aNominalEvent aHand |
aMenu _ self buildHandleMenu: (aHand _ self currentHand).
aMenu allMorphsDo: [:m | m step]. "Get wordings current"
anItem _ aMenu itemWithWording: menuString.
anItem ifNil:
[^ self player scriptingError: 'Menu item not found: ', menuString].
aNominalEvent _ MouseButtonEvent new
setType: #mouseDown
position: anItem bounds center
which: 4 "red"
buttons: 4 "red"
hand: aHand
stamp: nil.
anItem invokeWithEvent: aNominalEvent
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tracker.squeakland.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the etoys-notify
mailing list