[ENH]WonderlandCameraMorph showCameraControls menu option
Karl Ramberg
karl.ramberg at chello.se
Mon Aug 7 21:27:53 UTC 2000
When you bring up a halo menu on the WonderlandCameraMorph you can now select to
show camera controls. Makes moving the camera easier.
(showing the controls could probaby by scripting but I always look in the menu for what to do with a
morph)
Karl
-------------- next part --------------
'From Squeak2.9alpha of 26 June 2000 [latest update: #2447] on 7 August 2000 at 4:45:50 pm'!
!WonderlandCameraMorph methodsFor: 'controls' stamp: 'kfr 8/7/2000 16:40'!
deleteCameraControls
"Hide the camera controls for the camera rendering into this window"
(self submorphOfClass: WonderlandCameraControls)
ifNotNil: [myControls delete.
myControls _ nil]! !
!WonderlandCameraMorph methodsFor: 'menu' stamp: 'kfr 8/7/2000 09:06'!
addCustomMenuItems: aCustomMenu hand: aHandMorph
super addCustomMenuItems: aCustomMenu hand: aHandMorph.
aCustomMenu addUpdating: #getDragAndDropState action: #toggleDragAndDropState.
(myControls == nil)
ifTrue:[aCustomMenu add: 'showCameraControls' action: #showCameraControls]
ifFalse:[aCustomMenu add: 'hideCameraControls' action: #deleteCameraControls]
! !
More information about the Squeak-dev
mailing list
|