Default UI.
This commit is contained in:
parent
dd23cd83d5
commit
6bfb07dba9
5
RoloLudo.package/DicePool.class/instance/printOn..st
Normal file
5
RoloLudo.package/DicePool.class/instance/printOn..st
Normal file
@ -0,0 +1,5 @@
|
||||
accessing
|
||||
printOn: aStream
|
||||
super initialize.
|
||||
aStream
|
||||
nextPutAll: self dice printString
|
12
RoloLudo.package/DicePool.class/instance/uiDiceFor..st
Normal file
12
RoloLudo.package/DicePool.class/instance/uiDiceFor..st
Normal file
@ -0,0 +1,12 @@
|
||||
accessing
|
||||
uiDiceFor: aView
|
||||
<gtView>
|
||||
| response currentRoll |
|
||||
response := '' writeStream.
|
||||
currentRoll := self roll.
|
||||
response
|
||||
nextPutAll: 'Rolls: ', currentRoll printString; cr;
|
||||
nextPutAll: 'Sums: ', currentRoll sum asString.
|
||||
^ aView text
|
||||
title: 'Dice';
|
||||
text: [ response contents ]
|
Loading…
Reference in New Issue
Block a user