RoloLudo/RoloLudo.package/DicePool.class/instance/uiDiceFor..st

12 lines
294 B
Smalltalk
Raw Normal View History

2023-12-03 22:40:36 +00:00
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 ]