forked from pharo-graphics/Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added inspector presentation to the card model and card element
- Loading branch information
Showing
5 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/Bloc-MemoryGame-Demo.package/MgdCardElement.class/instance/gtInspectorCardIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
gt-inspector | ||
gtInspectorCardIn: aComposite | ||
<gtInspectorPresentationOrder: 1> | ||
|
||
self card ifNotNil: [ :aCardModel | aCardModel gtInspectorCardIn: aComposite ] |
4 changes: 2 additions & 2 deletions
4
src/Bloc-MemoryGame-Demo.package/MgdCardModel.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/Bloc-MemoryGame-Demo.package/MgdCardModel.class/instance/gtInspectorCardIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
gt-inspector | ||
gtInspectorCardIn: aComposite | ||
<gtInspectorPresentationOrder: 1> | ||
|
||
aComposite fastTable | ||
title: 'Card' translated; | ||
display: [ { | ||
#Symbol: -> self symbol printString. | ||
#'Visible side:' -> (self isFlipped ifTrue: [ 'Face' ] ifFalse: [ 'Back' ]) | ||
} ]; | ||
column: 'Name' evaluated: [ :each | each key ]; | ||
column: 'Value' evaluated: [ :each | each value ] |
5 changes: 5 additions & 0 deletions
5
...oc-MemoryGame-Demo.package/MgdCardModel.class/instance/gtInspectorCardSubscribtionsIn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
gt-inspector | ||
gtInspectorCardSubscribtionsIn: aComposite | ||
<gtInspectorPresentationOrder: 2> | ||
|
||
^ self announcer gtInspectorSubscriptionsIn: aComposite |
2 changes: 1 addition & 1 deletion
2
src/Bloc-MemoryGame-Demo.package/MgdCardModel.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters