Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- renderContentOn: html
- "Form to enter the player's names. Checks if the input doesn't include any spaces or if the name already exists."
- self fehlerMeldung:''.
- html div class: 'formular'; with:
- [html form: [html strong: 'Bitte Spieler-Namen eingeben:'.
- 1 to: self anzahlSpieler do:
- [:i | html div with: [
- "Already entered names will be shown"
- html textInput value: (self nameAn: i);
- callback: [:sSpielerName | (self namen at: i put: (sSpielerName))]]].
- (html submitButton) text: 'Spieler anlegen';
- "Checks if the input is correct"
- callback: [(self spielerEingabeGueltig)
- ifTrue: [self answer: namen]
- ifFalse: [self inform: self fehlerMeldung]]].
- ].
Advertisement
Add Comment
Please, Sign In to add comment