9 proto native
bool CanClose();
10 proto native
bool CanCloseOnEscape();
14 proto native
void DestroySubmenu();
15 proto native
bool IsAnyMenuVisible();
16 proto native
bool IsVisible();
19 proto native
bool IsCreatedHidden();
25 void OnVisibilityChanged(
bool isVisible)
30 proto native
void Close();
33 #ifdef PLATFORM_CONSOLE
34 return GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
41 #ifdef PLATFORM_CONSOLE
42 return GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
69 private Widget m_AnimAlphaWidget;
70 private bool m_AnimAlphaIsIncreasing;
71 private float m_AnimAlphaValue;
81 if (IsCreatedHidden())
88 GetGame().GetUIManager().ShowUICursor(
true);
102 void UnlockControls()
104 #ifdef FEATURE_CURSOR
105 if (IsCreatedHidden())
114 if (GetParentMenu() && GetParentMenu().UseMouse())
116 GetGame().GetUIManager().ShowUICursor(
true);
120 GetGame().GetUIManager().ShowUICursor(
false);
149 override int GetID() {
153 void SetWidgetAnimAlpha(
Widget widget )
155 m_AnimAlphaValue = 0.3;
156 m_AnimAlphaWidget = widget;
183 void Update(
float timeslice)
185 #ifdef PLATFORM_CONSOLE
186 if ( m_AnimAlphaWidget )
188 float anim_speed = 1.2;
189 float anim_value_max = 1.0;
190 float anim_value_min = 0.3;
191 if ( m_AnimAlphaIsIncreasing )
193 m_AnimAlphaValue += anim_speed * timeslice;
195 if ( m_AnimAlphaValue >= anim_value_max )
197 m_AnimAlphaValue = anim_value_max;
198 m_AnimAlphaIsIncreasing =
false;
203 m_AnimAlphaValue -= anim_speed * timeslice;
205 if ( m_AnimAlphaValue <= anim_value_min )
207 m_AnimAlphaValue = anim_value_min;
208 m_AnimAlphaIsIncreasing =
true;
213 m_AnimAlphaWidget.SetAlpha( m_AnimAlphaValue );
226 bool OnClick(
Widget w,
int x,
int y,
int button)
241 bool OnModalResult(
Widget w,
int x,
int y,
int code,
int result)
247 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnModalResult( w,
x,
y, code, result ) )
256 bool OnDoubleClick(
Widget w,
int x,
int y,
int button)
262 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDoubleClick( w,
x,
y, button ) )
271 bool OnSelect(
Widget w,
int x,
int y)
286 bool OnItemSelected(
Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn)
292 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnItemSelected( w,
x,
y, row, column, oldRow, oldColumn ) )
301 bool OnFocus(
Widget w,
int x,
int y)
316 bool OnFocusLost(
Widget w,
int x,
int y)
331 bool OnMouseEnter(
Widget w,
int x,
int y)
352 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnMouseLeave( w, enterW,
x,
y ) )
361 bool OnMouseButtonDown(
Widget w,
int x,
int y,
int button)
367 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnMouseButtonDown( w,
x,
y, button ) )
376 bool OnMouseButtonUp(
Widget w,
int x,
int y,
int button)
382 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnMouseButtonUp( w,
x,
y, button ) )
391 bool OnMouseWheel(
Widget w,
int x,
int y,
int wheel)
397 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnMouseWheel( w,
x,
y, wheel ) )
406 bool OnController(
Widget w,
int control,
int value)
412 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnController( w, control, value ) )
421 bool OnKeyDown(
Widget w,
int x,
int y,
int key)
436 bool OnKeyUp(
Widget w,
int x,
int y,
int key)
451 bool OnKeyPress(
Widget w,
int x,
int y,
int key)
466 bool OnChange(
Widget w,
int x,
int y,
bool finished)
472 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnChange( w,
x,
y, finished ) )
502 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDragging( w,
x,
y, reciever ) )
517 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDraggingOver( w,
x,
y, reciever ) )
532 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDrop( w,
x,
y, reciever ) )
547 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDropReceived( w,
x,
y, reciever ) )
563 if (
UIScriptedWindow.GetActiveWindows().GetElement( i ).OnEvent( eventType, target, parameter0, parameter1 ) )
578 bool OnXboxEvent(
int xboxEvent)
587 void InitNoteRead(
string text =
"") {}
589 void LoadMapMarkers() {}