Skip to content

Commit

Permalink
Collect Beacon signals [feenkcom/gtoolkit#3908]
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajKubelka committed Jul 26, 2024
1 parent 3bfa540 commit 6b27269
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/GToolkit-Demo-MoldableDevelopment/GtTour.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ GtTour >> allViewsExampleSlideFor: aSlide [
newFadedText: 'Every object is different, and the environment should show it, too.'.
]

{ #category : #accessing }
GtTour >> beaconSignals [
true ifTrue: [ ^ BeaconSignal ].

^ BlDevScripterSignal
, BlGotFocusSignal
, BlLostFocusSignal
", BrAsyncElementFutureSignal"
", BrAsyncElementPromiseSignal"
", BrElementUpdaterSignal"
, GtPharoStreamingMethodsCoderElementSignal
, GtTextualCoderEditorElementSignal
]

{ #category : #accessing }
GtTour >> classCommentAsLiveDocumentExampleSlideFor: aSlide [
<gtSlide>
Expand Down Expand Up @@ -861,8 +875,12 @@ GtTour >> scripterWithElaborateScenario [
onSpace;
play.
moveTokenMethod := GtLudoGame >> #moveTokenNamed:.
scripter
element: (GtPager createWrappedOn: (GtCoder forMethod: moveTokenMethod)).

scripter memoryLogger
runFor: self beaconSignals
during: [ :aStep |
aStep element: (GtPager createWrappedOn: (GtCoder forMethod: moveTokenMethod)) ].

pageWidth := scripter space width / 3.
scripter do
block: [ :aPage | aPage width: pageWidth ];
Expand Down

0 comments on commit 6b27269

Please sign in to comment.