32 using System.Collections.Generic;
35 using System.ComponentModel;
38 using Microsoft.Xna.Framework;
39 using Microsoft.Xna.Framework.GamerServices;
50 internal override bool OkButtonOnPhone {
get {
return true; } }
55 public int MaxCharacters
66 get {
return QueryWidget; }
73 public bool ShowWindowOnPhone {
get;
set; }
78 public delegate
void InputWindowHandler(
InputWindow sender );
85 private void OnTextEntered()
87 if ( TextEntered != null )
98 Closed +=
new WindowHandler( InputWindow_Closed );
99 AddedToGame += AddListeners;
108 public InputWindow(
double width,
double height,
string question )
109 : base( width, height, question )
111 Closed +=
new WindowHandler( InputWindow_Closed );
121 static void InputWindow_Closed(
Window sender )
126 private void Cancel()
132 private void AddListeners()
135 if ( !ShowWindowOnPhone )
137 if ( !Guide.IsVisible )
138 Guide.BeginShowKeyboardInput( PlayerIndex.One,
"", Message.Text,
InputBox.
Text, TouchTextEntered,
this );
148 void TouchTextEntered( IAsyncResult result )
150 string typedText = Guide.EndShowKeyboardInput( result );
PhoneBackButton PhoneBackButton
ButtonState
Napin (minkä tahansa) asento.
Peliluokka reaaliaikaisille peleille.
Keyboard Keyboard
Näppäimistö.