32 using System.Collections.Generic;
36 using System.ComponentModel;
54 get {
return _inputWindow; }
62 get {
return QueryWidget; }
68 public int MaxNameLength
74 internal override bool OkButtonOnPhone {
get {
return true; } }
95 : base( width, height, message )
100 private void Initialize(
ScoreList list )
102 this.List.Bind( list );
103 _inputWindow =
new InputWindow(
"Congratulations, you got a high score of %p points! Please enter your name." );
104 AddedToGame += AddControls;
117 : base( normalMessage )
121 ShowNameInput( newScore );
136 : base( width, height, normalMessage )
139 NameInputWindow.Message.Text = nameMessage;
140 ShowNameInput( newScore );
149 this.lastScore = newScore;
151 if ( ( this.List.Items as
ScoreList).Qualifies( newScore ) )
153 if ( IsAddedToGame ) showNameWindow();
154 else AddedToGame += showNameWindow;
165 void showNameWindow()
167 AddedToGame -= showNameWindow;
170 nameStr = NameInputWindow.Message.Text;
171 NameInputWindow.Message.Text = String.Format( NameInputWindow.Message.Text.Replace(
"%p",
"{0}" ), lastScore );
172 NameInputWindow.InputBox.Text = ( List.Items as
ScoreList ).LastEnteredName;
173 NameInputWindow.TextEntered += nameEntered;
180 NameInputWindow.Message.Text = nameStr;
183 if ( !
string.IsNullOrEmpty( newName ) )
PhoneBackButton PhoneBackButton
void Add(IGameObject o)
Lisää olion peliin. Tavalliset oliot tulevat automaattisesti kerrokselle 0 ja ruutuoliot päällimmäise...
static readonly Color Transparent
Läpinäkyvä väri.
Peliluokka reaaliaikaisille peleille.
Parhaiden pisteiden lista.