I accidentally removed a bit of code. Go to Scratch-UI-Panes --> ScratchFrameMorph --> instance --> menu/button actions --> shareMenu: and copy all the code here please so that I can get it back.
Offline
shareMenu: t1
| t2 |
t2 _ CustomMenu new.
t2 add: 'Share This Project Online' action: #share.
t2 add: 'Go To Scratch Website' action: #launchScratchWebsite.
Sensor shiftPressed ifTrue: [self addServerCommandsTo: t2].
t2 localize.
#(1 2 ) do: [:t3 | t2 labels at: t3 put: ((t2 labels at: t3)
copyFrom: 1 to: (t2 labels at: t3) size - 1)
, ScratchTranslator ellipsesSuffix].
t2 invokeOn: self at: t1 bottomLeft + (0 @ 10)
Offline
Hardmath123 wrote:
Code:
shareMenu: t1 | t2 | t2 _ CustomMenu new. t2 add: 'Share This Project Online' action: #share. t2 add: 'Go To Scratch Website' action: #launchScratchWebsite. Sensor shiftPressed ifTrue: [self addServerCommandsTo: t2]. t2 localize. #(1 2 ) do: [:t3 | t2 labels at: t3 put: ((t2 labels at: t3) copyFrom: 1 to: (t2 labels at: t3) size - 1) , ScratchTranslator ellipsesSuffix]. t2 invokeOn: self at: t1 bottomLeft + (0 @ 10)
![]()
thanks.
Offline