DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс UIMenuPanel

Part of main menu hierarchy to create custom menus from script. Подробнее...

+ Граф наследования:UIMenuPanel:

Закрытые члены

proto native UIMenuPanel GetSubMenu ()
 
proto native UIMenuPanel GetParentMenu ()
 
proto native UIMenuPanel GetVisibleMenu ()
 
proto native void SetSubMenu (UIMenuPanel submenu)
 
proto native void SetParentMenu (UIMenuPanel parent)
 
proto native bool CanClose ()
 
proto native bool CanCloseOnEscape ()
 
proto native UIScriptedMenu EnterScriptedMenu (int id)
 Create & open menu with specific id (see MenuID) and set this menu as its parent.
 
proto native void DestroySubmenu ()
 
proto native bool IsAnyMenuVisible ()
 
proto native bool IsVisible ()
 
void OnVisibilityChanged (bool isVisible)
 
proto native void Close ()
 Safe way to close window, using this function can even window safely close itself.
 
bool UseMouse ()
 
bool UseKeyboard ()
 
bool UseGamepad ()
 
int GetID ()
 Returns MenuID.
 
void Refresh ()
 Refresh request, called from anywhere.
 
Widget GetLayoutRoot ()
 
void LockControls ()
 
void UnlockControls ()
 
void UIScriptedMenu ()
 
void ~UIScriptedMenu ()
 
void SetID (int id)
 Sets MenuID.
 
override int GetID ()
 Returns MenuID.
 
void SetWidgetAnimAlpha (Widget widget)
 
Widget Init ()
 
void Cleanup ()
 
void OnShow ()
 
void OnHide ()
 
void Update (float timeslice)
 Per frame update, called from engine.
 
proto native void SetFadingPanels (Widget panel0, Widget panel1, Widget panel2, Widget panel3, Widget panel4)
 Refresh request, called from anywhere.
 
bool OnClick (Widget w, int x, int y, int button)
 
bool OnModalResult (Widget w, int x, int y, int code, int result)
 
bool OnDoubleClick (Widget w, int x, int y, int button)
 
bool OnSelect (Widget w, int x, int y)
 
bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
bool OnFocus (Widget w, int x, int y)
 
bool OnFocusLost (Widget w, int x, int y)
 
bool OnMouseEnter (Widget w, int x, int y)
 
bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
bool OnMouseWheel (Widget w, int x, int y, int wheel)
 
bool OnController (Widget w, int control, int value)
 
bool OnKeyDown (Widget w, int x, int y, int key)
 
bool OnKeyUp (Widget w, int x, int y, int key)
 
bool OnKeyPress (Widget w, int x, int y, int key)
 
bool OnChange (Widget w, int x, int y, bool finished)
 
bool OnDrag (Widget w, int x, int y)
 
bool OnDragging (Widget w, int x, int y, Widget reciever)
 
bool OnDraggingOver (Widget w, int x, int y, Widget reciever)
 
bool OnDrop (Widget w, int x, int y, Widget reciever)
 
bool OnDropReceived (Widget w, int x, int y, Widget reciever)
 
bool OnEvent (EventType eventType, Widget target, int parameter0, int parameter1)
 
ScriptedWidgetEventHandler GetContextMenu ()
 
bool OnXboxEvent (int xboxEvent)
 
void OnRPC (ParamsReadContext ctx)
 
void OnRPCEx (int rpc_type, ParamsReadContext ctx)
 
void InitNoteWrite (EntityAI paper, EntityAI pen, string text="")
 
void InitNoteRead (string text="")
 
void InitMapItem (EntityAI item)
 
void LoadMapMarkers ()
 
bool IsHandlingPlayerDeathEvent ()
 
void OnPlayerDeath ()
 
- Закрытые члены унаследованные от Managed
void IntroSceneCharacter ()
 
void ~IntroSceneCharacter ()
 
bool IsDefaultCharacter ()
 
void SetToDefaultCharacter ()
 
void SetCharacterID (int char_id)
 
int GetCharacterID ()
 
PlayerBase GetCharacterObj ()
 
TStringArray GetCharGenderList ()
 
TStringArray GetCharList (ECharGender gender)
 
TStringArray GetCharShirtsList ()
 
TStringArray GetCharPantsList ()
 
TStringArray GetCharShoesList ()
 
void SetCharacterGender (ECharGender gender)
 
bool IsCharacterFemale ()
 
ECharGender GetCharacterGender ()
 
vector GetPosition ()
 
int GetNextCharacterID ()
 
int GetPrevCharacterID ()
 
void CreateNewCharacterRandom ()
 
void CreateNewCharacterById (int character_id)
 
void CreateNewCharacterByName (string character_name, bool randomize_equip=true)
 
void CreateDefaultCharacter ()
 
void GetLastPlayedServer (int characterID, out string address, out string name, out int port)
 
void GetLastPlayedServerEx (int characterID, out string address, out string name, out int port, out int steamQueryPort)
 
void CreateNewCharacter ()
 
void LoadCharacterData (vector char_pos, vector char_rot, bool default_char=false)
 Generates random equip for the new IntroSceneCharacter, whatever is defined in 'cfgCharacterCreation'.
 
void CharacterUnload ()
 
void CharacterLoad (int character_id, vector char_pos, vector char_rot)
 
void SetupPlayerName (bool new_name)
 
void SetAttachment (string type, int slot)
 
string GetCharacterNameById (int char_id)
 
string GetCharacterName ()
 
void SaveCharName (string name)
 
void SaveDefaultCharacter ()
 
void TransferValues (PlayerBase player)
 
void Init ()
 
void OnScheduledTick (float deltatime)
 
void CheckValues ()
 
float GetBlood ()
 
float GetHealth ()
 
void CheckHealth ()
 
void CheckBlood ()
 
void SendInitValues ()
 Sends values on object creation.
 
void SendValue (int value_type, float value)
 
void ReceiveValue (int value_type, float value)
 
void OnRPC (ParamsReadContext ctx)
 
void ShowDebugValues (bool show)
 
void BleedingIndicator (int source_ID, int severity, GameplayEffectsDataBleeding parent)
 
void InitIndicator (vector position)
 
void StopIndicator (bool instant=false)
 
void StartRunningDrops ()
 
bool IsRunningDrops ()
 Are any drops currently being animated?
 
void TrySpawnNextDrop ()
 
void ResetSequence ()
 
void ResetIndicator ()
 
void Update (float timeSlice)
 
bool GetEndNow ()
 
int GetSeverity ()
 
void GameplayEffectsData (array< ref Widget > input, int type, int user_override=-1)
 
void Init (array< ref Widget > input, int type, Widget layout_root, int user_override=-1)
 
array< ref WidgetGetWidgetSet ()
 
int GetWidgetSetType ()
 
int GetWidgetSetID ()
 
bool HasDefinedHandle ()
 Returns 'true' if this class contains update info.
 
bool DataInitialized ()
 
void UpdateVisibility (bool state)
 
void RegisterData (Param p)
 
void Update (float timeSlice=0, Param p=null, int handle=-1)
 
void ForceStop ()
 

Закрытые данные

int m_id
 
Widget layoutRoot
 
Widget m_AnimAlphaWidget
 
bool m_AnimAlphaIsIncreasing
 
float m_AnimAlphaValue
 
- Закрытые данные унаследованные от Managed
int m_CharacterId
 
string m_CharacterType
 
MenuData m_CharacterDta
 
PlayerBase m_CharacterObj
 
vector m_CharacterPos
 
vector m_CharacterRot
 
ref TStringArray m_CharGenderList = new TStringArray
 
ref TStringArray m_CharShirtList = new TStringArray
 
ref TStringArray m_CharPantsList = new TStringArray
 
ref TStringArray m_CharShoesList = new TStringArray
 
ref map< ECharGender, ref array< string > > m_Characters = new map<ECharGender, ref array<string>>
 
ECharGender m_CharGender
 
bool m_InitialSyncSent
 
bool m_Initialized
 
bool m_Terminating = false
 
bool m_EndNow = false
 
bool m_IsRunning = false
 
int m_DropSpawnsQueued
 
int m_ActiveDropsCount
 
int m_Severity
 
int m_SourceID
 
GameplayEffectsDataBleeding m_ParentMetaData
 
array< floatm_DropProbabilityArray
 
float m_AverageFrequency
 
float m_SequenceTick
 
float m_SequenceDuration
 
float m_TimeElapsedTotal
 
float m_TimeElapsedSequence
 
float m_LastDropSpawnTime
 
float m_DropSpawnMinDelay
 
float m_DropSpawnMaxDelay
 
int m_CurrentDropProbabilityStep
 
int m_DropProbabilityRollsCount
 
vector m_BasePosition
 
ref set< ref BleedingIndicatorDropDatam_ActiveDrops
 
ref set< intm_CleanupQueue
 
ref array< ref Widgetm_WidgetArray
 
int m_Type
 
int m_WidgetSetIdentifier
 
Widget m_LayoutRoot
 

Подробное описание

Part of main menu hierarchy to create custom menus from script.

Конструктор(ы)

◆ ~UIScriptedMenu()

void ~UIScriptedMenu ( )
inlineprivate
140 {
141 }

Методы

◆ CanClose()

proto native bool CanClose ( )
private

◆ CanCloseOnEscape()

proto native bool CanCloseOnEscape ( )
private

◆ Cleanup()

void Cleanup ( )
inlineprivate
167 {
168 }

◆ Close()

proto native void Close ( )
private

Safe way to close window, using this function can even window safely close itself.

◆ DestroySubmenu()

proto native void DestroySubmenu ( )
private

◆ EnterScriptedMenu()

proto native UIScriptedMenu EnterScriptedMenu ( int id)
private

Create & open menu with specific id (see MenuID) and set this menu as its parent.

Используется в MissionBase::CreateLogoutMenu().

◆ GetContextMenu()

ScriptedWidgetEventHandler GetContextMenu ( )
inlineprivate
582 {
583 return null;
584 }
Definition EntityAI.c:95

◆ GetID() [1/2]

int GetID ( )
inlineprivate

Returns MenuID.

53 {
54 return MENU_UNKNOWN;
55 }
const int MENU_UNKNOWN
Definition constants.c:171

Перекрестные ссылки MENU_UNKNOWN.

◆ GetID() [2/2]

override int GetID ( )
inlineprivate

Returns MenuID.

149 {
150 return m_id;
151 }
int m_id
Definition UIScriptedMenu.c:67

◆ GetLayoutRoot()

Widget GetLayoutRoot ( )
inlineprivate
74 {
75 return layoutRoot;
76 }
Widget layoutRoot
Definition UIScriptedMenu.c:68

◆ GetParentMenu()

proto native UIMenuPanel GetParentMenu ( )
private

◆ GetSubMenu()

proto native UIMenuPanel GetSubMenu ( )
private

◆ GetVisibleMenu()

proto native UIMenuPanel GetVisibleMenu ( )
private

◆ Init()

Widget Init ( )
inlineprivate
162 {
163 return NULL;
164 }

◆ InitMapItem()

void InitMapItem ( EntityAI item)
inlineprivate
596{}

◆ InitNoteRead()

void InitNoteRead ( string text = "")
inlineprivate
595{}

◆ InitNoteWrite()

void InitNoteWrite ( EntityAI paper,
EntityAI pen,
string text = "" )
inlineprivate
594{}

◆ IsAnyMenuVisible()

proto native bool IsAnyMenuVisible ( )
private

◆ IsHandlingPlayerDeathEvent()

bool IsHandlingPlayerDeathEvent ( )
inlineprivate
600 {
601 return true;
602 }

◆ IsVisible()

proto native bool IsVisible ( )
private

◆ LoadMapMarkers()

void LoadMapMarkers ( )
inlineprivate
597{}

◆ LockControls()

void LockControls ( )
inlineprivate
79 {
80#ifdef FEATURE_CURSOR
81 if (IsCreatedHidden())
82 return;
83#endif
84
85 if (UseMouse())
86 {
87 GetGame().GetInput().ChangeGameFocus(1, INPUT_DEVICE_MOUSE);
88 GetGame().GetUIManager().ShowUICursor(true);
89 }
90
91 if (UseKeyboard())
92 {
93 GetGame().GetInput().ChangeGameFocus(1, INPUT_DEVICE_KEYBOARD);
94 }
95
96 if (UseGamepad())
97 {
98 GetGame().GetInput().ChangeGameFocus(1, INPUT_DEVICE_GAMEPAD);
99 }
100 }
bool UseGamepad()
Definition UIScriptedMenu.c:48
bool UseMouse()
Definition UIScriptedMenu.c:32
bool UseKeyboard()
Definition UIScriptedMenu.c:40
proto native CGame GetGame()
const int INPUT_DEVICE_MOUSE
Definition constants.c:24
const int INPUT_DEVICE_GAMEPAD
Definition constants.c:28
const int INPUT_DEVICE_KEYBOARD
Definition constants.c:23

Перекрестные ссылки GetGame(), INPUT_DEVICE_GAMEPAD, INPUT_DEVICE_KEYBOARD, INPUT_DEVICE_MOUSE, UIScriptedMenu::UseGamepad(), UIScriptedMenu::UseKeyboard() и UIScriptedMenu::UseMouse().

◆ OnChange()

bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
475 {
477 {
478 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
479 {
480 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnChange( w, x, y, finished ) )
481 {
482 return true;
483 }
484 }
485 }
486
487 return false;
488 }
Icon x
Icon y
@ Count
Definition RandomGeneratorSyncManager.c:8
Definition UIScriptedWindow.c:2
static map< int, UIScriptedWindow > GetActiveWindows()
Definition UIScriptedWindow.c:37

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnClick()

bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
235 {
237 {
238 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
239 {
240 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnClick( w, x, y, button ) )
241 {
242 return true;
243 }
244 }
245 }
246
247 return false;
248 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnController()

bool OnController ( Widget w,
int control,
int value )
inlineprivate
415 {
417 {
418 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
419 {
420 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnController( w, control, value ) )
421 {
422 return true;
423 }
424 }
425 }
426
427 return false;
428 }

Перекрестные ссылки Count и UIScriptedWindow::GetActiveWindows().

◆ OnDoubleClick()

bool OnDoubleClick ( Widget w,
int x,
int y,
int button )
inlineprivate
265 {
267 {
268 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
269 {
270 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDoubleClick( w, x, y, button ) )
271 {
272 return true;
273 }
274 }
275 }
276
277 return false;
278 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnDrag()

bool OnDrag ( Widget w,
int x,
int y )
inlineprivate
490 {
492 {
493 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
494 {
495 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDrag( w, x, y ) )
496 {
497 return true;
498 }
499 }
500 }
501
502 return false;
503 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnDragging()

bool OnDragging ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate
505 {
507 {
508 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
509 {
510 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDragging( w, x, y, reciever ) )
511 {
512 return true;
513 }
514 }
515 }
516
517 return false;
518 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnDraggingOver()

bool OnDraggingOver ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate
520 {
522 {
523 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
524 {
525 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDraggingOver( w, x, y, reciever ) )
526 {
527 return true;
528 }
529 }
530 }
531
532 return false;
533 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnDrop()

bool OnDrop ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate
535 {
537 {
538 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
539 {
540 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDrop( w, x, y, reciever ) )
541 {
542 return true;
543 }
544 }
545 }
546
547 return false;
548 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnDropReceived()

bool OnDropReceived ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate
550 {
552 {
553 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
554 {
555 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnDropReceived( w, x, y, reciever ) )
556 {
557 return true;
558 }
559 }
560 }
561
562 return false;
563 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnEvent()

bool OnEvent ( EventType eventType,
Widget target,
int parameter0,
int parameter1 )
inlineprivate
566 {
568 {
569 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
570 {
571 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnEvent( eventType, target, parameter0, parameter1 ) )
572 {
573 return true;
574 }
575 }
576 }
577
578 return false;
579 }

Перекрестные ссылки Count и UIScriptedWindow::GetActiveWindows().

◆ OnFocus()

bool OnFocus ( Widget w,
int x,
int y )
inlineprivate
310 {
312 {
313 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
314 {
315 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnFocus( w, x, y ) )
316 {
317 return true;
318 }
319 }
320 }
321
322 return false;
323 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnFocusLost()

bool OnFocusLost ( Widget w,
int x,
int y )
inlineprivate
325 {
327 {
328 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
329 {
330 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnFocusLost( w, x, y ) )
331 {
332 return true;
333 }
334 }
335 }
336
337 return false;
338 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnHide()

void OnHide ( )
inlineprivate
182 {
184 if (IsHandlingPlayerDeathEvent() && g_Game && g_Game.GetPlayer())
185 {
186 g_Game.GetPlayer().GetOnDeathStart().Remove(OnPlayerDeath);
187 }
188 }
DayZGame g_Game
Definition DayZGame.c:3815
void OnPlayerDeath()
Definition UIScriptedMenu.c:604
bool IsHandlingPlayerDeathEvent()
Definition UIScriptedMenu.c:599
void UnlockControls()
Definition UIScriptedMenu.c:102

Перекрестные ссылки g_Game и UIScriptedMenu::OnPlayerDeath().

◆ OnItemSelected()

bool OnItemSelected ( Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn )
inlineprivate
295 {
297 {
298 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
299 {
300 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnItemSelected( w, x, y, row, column, oldRow, oldColumn ) )
301 {
302 return true;
303 }
304 }
305 }
306
307 return false;
308 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnKeyDown()

bool OnKeyDown ( Widget w,
int x,
int y,
int key )
inlineprivate
430 {
432 {
433 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
434 {
435 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnKeyDown( w, x, y, key ) )
436 {
437 return true;
438 }
439 }
440 }
441
442 return false;
443 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnKeyPress()

bool OnKeyPress ( Widget w,
int x,
int y,
int key )
inlineprivate
460 {
462 {
463 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
464 {
465 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnKeyPress( w, x, y, key ) )
466 {
467 return true;
468 }
469 }
470 }
471
472 return false;
473 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnKeyUp()

bool OnKeyUp ( Widget w,
int x,
int y,
int key )
inlineprivate
445 {
447 {
448 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
449 {
450 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnKeyUp( w, x, y, key ) )
451 {
452 return true;
453 }
454 }
455 }
456
457 return false;
458 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnModalResult()

bool OnModalResult ( Widget w,
int x,
int y,
int code,
int result )
inlineprivate
250 {
252 {
253 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
254 {
255 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnModalResult( w, x, y, code, result ) )
256 {
257 return true;
258 }
259 }
260 }
261
262 return false;
263 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnMouseButtonDown()

bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprivate
370 {
372 {
373 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
374 {
375 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnMouseButtonDown( w, x, y, button ) )
376 {
377 return true;
378 }
379 }
380 }
381
382 return false;
383 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnMouseButtonUp()

bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprivate
385 {
387 {
388 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
389 {
390 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnMouseButtonUp( w, x, y, button ) )
391 {
392 return true;
393 }
394 }
395 }
396
397 return false;
398 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnMouseEnter()

bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprivate
340 {
342 {
343 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
344 {
345 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnMouseEnter( w, x, y ) )
346 {
347 return true;
348 }
349 }
350 }
351
352 return false;
353 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnMouseLeave()

bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprivate
355 {
357 {
358 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
359 {
360 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnMouseLeave( w, enterW, x, y ) )
361 {
362 return true;
363 }
364 }
365 }
366
367 return false;
368 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnMouseWheel()

bool OnMouseWheel ( Widget w,
int x,
int y,
int wheel )
inlineprivate
400 {
402 {
403 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
404 {
405 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnMouseWheel( w, x, y, wheel ) )
406 {
407 return true;
408 }
409 }
410 }
411
412 return false;
413 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnPlayerDeath()

void OnPlayerDeath ( )
inlineprivate
605 {
606 Close();
607 }
proto native void Close()
Safe way to close window, using this function can even window safely close itself.

Перекрестные ссылки Close().

◆ OnRPC()

void OnRPC ( ParamsReadContext ctx)
inlineprivate
591{}

◆ OnRPCEx()

void OnRPCEx ( int rpc_type,
ParamsReadContext ctx )
inlineprivate
592{}

◆ OnSelect()

bool OnSelect ( Widget w,
int x,
int y )
inlineprivate
280 {
282 {
283 for ( int i = 0; i < UIScriptedWindow.GetActiveWindows().Count(); i++ )
284 {
285 if ( UIScriptedWindow.GetActiveWindows().GetElement( i ).OnSelect( w, x, y ) )
286 {
287 return true;
288 }
289 }
290 }
291
292 return false;
293 }

Перекрестные ссылки Count, UIScriptedWindow::GetActiveWindows(), x и y.

◆ OnShow()

void OnShow ( )
inlineprivate
172 {
173 LockControls();
174 if (IsHandlingPlayerDeathEvent() && g_Game && g_Game.GetPlayer())
175 {
176 g_Game.GetPlayer().GetOnDeathStart().Insert(OnPlayerDeath);
177 }
178 }
void LockControls()
Definition UIScriptedMenu.c:78

Перекрестные ссылки g_Game и UIScriptedMenu::OnPlayerDeath().

◆ OnVisibilityChanged()

void OnVisibilityChanged ( bool isVisible)
inlineprivate

If visibility of application is changed. On console it is called when application is suspended or constrained.

Аргументы
isVisibleindicate if application is visible in foreground
26 {
27 }

◆ OnXboxEvent()

bool OnXboxEvent ( int xboxEvent)
inlineprivate
587 {
588 return true;
589 }

◆ Refresh()

void Refresh ( )
inlineprivate

Refresh request, called from anywhere.

59 {
60 }

◆ SetFadingPanels()

proto native void SetFadingPanels ( Widget panel0,
Widget panel1,
Widget panel2,
Widget panel3,
Widget panel4 )
private

Refresh request, called from anywhere.

◆ SetID()

void SetID ( int id)
inlineprivate

Sets MenuID.

144 {
145 m_id = id;
146 }

◆ SetParentMenu()

proto native void SetParentMenu ( UIMenuPanel parent)
private

◆ SetSubMenu()

proto native void SetSubMenu ( UIMenuPanel submenu)
private

◆ SetWidgetAnimAlpha()

void SetWidgetAnimAlpha ( Widget widget)
inlineprivate
154 {
155 m_AnimAlphaValue = 0.3;
157 }
Widget m_AnimAlphaWidget
Definition UIScriptedMenu.c:69
float m_AnimAlphaValue
Definition UIScriptedMenu.c:71

◆ UIScriptedMenu()

void UIScriptedMenu ( )
inlineprivate
135 {
137 }

Перекрестные ссылки MENU_UNKNOWN.

◆ UnlockControls()

void UnlockControls ( )
inlineprivate
103 {
104#ifdef FEATURE_CURSOR
105 if (IsCreatedHidden())
106 return;
107#endif
108
109 if (UseMouse())
110 {
111 GetGame().GetInput().ChangeGameFocus(-1, INPUT_DEVICE_MOUSE);
112 }
113
115 {
116 GetGame().GetUIManager().ShowUICursor(true);
117 }
118 else
119 {
120 GetGame().GetUIManager().ShowUICursor(false);
121 }
122
123 if(UseKeyboard())
124 {
125 GetGame().GetInput().ChangeGameFocus(-1, INPUT_DEVICE_KEYBOARD);
126 }
127
128 if(UseGamepad())
129 {
130 GetGame().GetInput().ChangeGameFocus(-1, INPUT_DEVICE_GAMEPAD);
131 }
132 }
proto native UIMenuPanel GetParentMenu()

Перекрестные ссылки GetGame(), INPUT_DEVICE_GAMEPAD, INPUT_DEVICE_KEYBOARD, INPUT_DEVICE_MOUSE, UIScriptedMenu::UseGamepad(), UIScriptedMenu::UseKeyboard() и UIScriptedMenu::UseMouse().

◆ Update()

void Update ( float timeslice)
inlineprivate

Per frame update, called from engine.

192 {
193 #ifdef PLATFORM_CONSOLE
194 if ( m_AnimAlphaWidget )
195 {
196 float anim_speed = 1.2;
197 float anim_value_max = 1.0;
198 float anim_value_min = 0.3;
200 {
202
204 {
207 }
208 }
209 else
210 {
212
214 {
217 }
218 }
219
220
222 }
223 #endif
224 }
bool m_AnimAlphaIsIncreasing
Definition UIScriptedMenu.c:70

◆ UseGamepad()

bool UseGamepad ( )
inlineprivate
48 {
49 return true;
50 }

◆ UseKeyboard()

bool UseKeyboard ( )
inlineprivate
40 {
41 #ifdef PLATFORM_CONSOLE
42 return GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
43 #else
44 return true;
45 #endif
46 }

Перекрестные ссылки GetGame().

◆ UseMouse()

bool UseMouse ( )
inlineprivate
32 {
33 #ifdef PLATFORM_CONSOLE
34 return GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
35 #else
36 return true;
37 #endif
38 }

Перекрестные ссылки GetGame().

Поля

◆ layoutRoot

Widget layoutRoot
private

◆ m_AnimAlphaIsIncreasing

bool m_AnimAlphaIsIncreasing
private

◆ m_AnimAlphaValue

float m_AnimAlphaValue
private

◆ m_AnimAlphaWidget

Widget m_AnimAlphaWidget
private

◆ m_id

int m_id
private

Объявления и описания членов класса находятся в файле: