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

map: item x vector(index, width, height) Подробнее...

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

Защищенные члены

void OnWidgetScriptInit (Widget w)
 
bool ResizeParentToChild ()
 
bool ResizeParentToChild (out bool changed_size, int limit=-1, bool immedUpdate=true)
 
void UiHintPanel (Widget parent_widget)
 
void ~UiHintPanel ()
 
void Init (DayZGame game)
 
void LoadContentList ()
 
void BuildLayout (Widget parent_widget)
 
void PopulateLayout ()
 
void SetHintHeadline ()
 
void SetHintDescription ()
 
void SetHintImage ()
 
void SetHintPaging ()
 
void ShowRandomPage ()
 
void RandomizePageIndex ()
 
void ShowNextPage ()
 
void ShowPreviousPage ()
 
void StartSlideshow ()
 
void SlideshowThread ()
 
void StopSlideShow ()
 
void RestartSlideShow ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void InventoryGrid ()
 
void OnWidgetScriptInit (Widget w)
 
bool CanAddItemInHandToInventory ()
 
override bool OnUpdate (Widget w)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnDrop (Widget w, int x, int y, Widget reciever)
 
int GetCol (Widget w)
 
int GetColFromBg (Widget w)
 
int GetGridSize ()
 
void SetGridSize (int size)
 
bool IsValidPos (int index)
 
void ResetItemWidget (Widget item_w, int width, int height)
 
void ResetItem (InventoryItem item)
 
bool HasItem (InventoryItem item)
 
void RemoveItem (InventoryItem item)
 
void CTEvent (int index, int actor, Widget root, bool walk, CameraToolsMenu parent)
 
void ~CTEvent ()
 
void Play ()
 
void Stop ()
 
bool IsTime (float start_time, float end_time)
 
void SetEventTime (float time)
 
void SetEventType (int type)
 
float GetEventTime ()
 
int GetEventType ()
 
int GetEventActor ()
 
bool GetEventWalk ()
 
void Select ()
 
void Unselect ()
 
void CTKeyframe (int index, vector pos, vector orient, float int_value, float fov, float dof, int pin, float time_before, Widget root, CameraToolsMenu parent)
 
void ~CTKeyframe ()
 
float GetInterpTime ()
 
void SetPin (int pin)
 
int GetPin ()
 
void SetFOV (float fov)
 
float GetFOV ()
 
void SetDOF (float dof)
 
float GetDOF ()
 
void SetPosition (vector pos)
 
void SetOrientation (vector orient)
 
vector GetPosition ()
 
vector GetOrientation ()
 
void SetTimeBefore (float time)
 
void SetInterpTime (float time)
 
void Select ()
 
void Unselect ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnFocus (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
void ~CTObjectFollower ()
 
void CreateFollowedObject (string type)
 
void DestroyFollowedObject ()
 
void Update (float timeslice)
 
EntityAI GetObj ()
 
void SetPosition (vector position)
 
void SetRotation (vector dir)
 
vector GetPosition ()
 
vector GetRotation ()
 
void UpdatePos ()
 Function updating the position of the tracker widget.
 
void Show ()
 
void Hide ()
 
void Fade (bool fade)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
void ContinuousActionProgress ()
 
void ~ContinuousActionProgress ()
 
void OnWidgetScriptInit (Widget w)
 
void Update ()
 
void PlayerListEntryScriptedWidget (Widget parent, string name, string uid, bool show_permissions, PlayerListScriptedWidget tab)
 
void ~PlayerListEntryScriptedWidget ()
 
Widget GetButtonWidget ()
 
void LoadPermissions (BiosPrivacyPermissionResultArray results)
 
string GetUID ()
 
bool IsMuted ()
 
bool IsGloballyMuted ()
 
void SetMute (bool mute)
 
void ToggleMute ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void Focus ()
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
bool IsLocalPlayer ()
 
void Select (bool notify=true)
 
void Deselect ()
 
void PlayerListScriptedWidget (Widget parent, string header_text="")
 
void ~PlayerListScriptedWidget ()
 
void FocusFirst ()
 
void Reload (SyncPlayerList player_list)
 
bool IsEmpty ()
 
void OnLoadServersAsync (ref GetServersResult result_list, EBiosError error, string response)
 
void Reload (BiosFriendInfoArray player_list)
 
void Reload (BiosPrivacyUidResultArray player_list)
 
void ReloadLocal (map< string, bool > player_list)
 
PlayerListEntryScriptedWidget FindEntryByWidget (Widget button)
 
string FindPlayerByWidget (Widget button)
 
void AddPlayer (string name, string UID, bool show_permissions)
 
void RemovePlayer (string UID)
 
bool IsMuted (string UID)
 
bool IsGloballyMuted (string UID)
 
void SetMute (string UID, bool mute)
 
void ToggleMute (string UID)
 
PlayerListEntryScriptedWidget GetSelectedPlayer ()
 
void SelectPlayer (PlayerListEntryScriptedWidget entry)
 
void ScrollToEntry (PlayerListEntryScriptedWidget entry)
 
void UpdateInterval ()
 
void SetLayoutName ()
 
void SetImmedUpdate ()
 
void OnSelectAction (ItemBase item, int actionId)
 
void OnSelectActionEx (EntityAI item, int actionId)
 
void ShowActionMenu (InventoryItem item)
 
void LayoutHolder (LayoutHolder parent)
 
void ~LayoutHolder ()
 
LayoutHolder GetRoot ()
 
void SetParentWidget ()
 
LayoutHolder GetParent ()
 
void SetActive (bool active)
 
void SetLastActive ()
 
void SetFirstActive ()
 
bool IsActive ()
 
Widget GetMainWidget ()
 
Widget GetRootWidget ()
 
bool IsDisplayable ()
 
bool IsVisible ()
 
void OnShow ()
 
void OnHide ()
 
void Refresh ()
 
void InspectItem (EntityAI item)
 
void UpdateSelectionIcons ()
 
void PrepareOwnedTooltip (EntityAI item, int x=0, int y=0)
 
void PrepareOwnedSlotsTooltip (Widget w, string name, string desc, int x=0, int y=0)
 
void HideOwnedTooltip ()
 
void HideOwnedSlotsTooltip ()
 
void ItemActionsWidget ()
 
void ~ItemActionsWidget ()
 
void SetInteractXboxIcon (string imageset_name, string image_name)
 DEPRECATED.
 
void SetContinuousInteractXboxIcon (string imageset_name, string image_name)
 
void SetSingleXboxIcon (string imageset_name, string image_name)
 
void SetContinuousXboxIcon (string imageset_name, string image_name)
 
void SetXboxIcon (string name, string imageset_name, string image_name)
 
void SetControllerIcon (string pWidgetName, string pInputName)
 
void ShowXboxHidePCIcons (string widget, bool show_xbox_icon)
 
void OnWidgetScriptInit (Widget w)
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
void BuildCursor ()
 
void Update ()
 
void GetPlayer ()
 
void GetActionManager ()
 
void GetActions ()
 
void GetEntityInHands ()
 
string GetActionDesc (ActionBase action)
 
string GetItemDesc (EntityAI entity)
 
bool GetItemFrozen ()
 
int GetItemHealth ()
 
void GetItemQuantity (out int q_type, out float q_cur, out int q_min, out int q_max)
 
string GetRadioFrequency ()
 
void SetItemDesc (EntityAI entity, string descText, string itemWidget, string descWidget)
 
void SetItemHealth (int health, string itemWidget, string healthWidget, bool enabled)
 
void SetItemQuantity (int type, float current, int min, int max, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
 
void SetWeaponQuantity (int chamber, int mag, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
 
void SetWeaponModeAndZeroing (string itemWidget, string upWidget, string downWidget, bool enabled)
 
string WeaponModeTextTemp ()
 
void SetRadioFrequency (string freq, string itemWidget, string upWidget, string downWidget, bool enabled)
 
void SetActionWidget (ActionBase action, string descText, string actionWidget, string descWidget)
 
void SetMultipleInteractAction (string multiActionsWidget)
 shows arrows near the interact action if there are more than one available
 
void SetMultipleContinuousInteractAction (string multiActionsWidget)
 shows arrows near the interact action if there are more than one available
 
void SetMultipleItemAction (string multiActionsWidget)
 
void SetMultipleContinuousItemAction (string multiActionsWidget)
 shows arrows near the interact action if there are more than one available
 
void SetInteractActionIcon (string actionWidget, string actionIconFrameWidget, string actionIconWidget, string actionIconTextWidget)
 
void CheckRefresherFlagVisibility ()
 
void CheckForActionWidgetOverrides ()
 
IngameHud GetHud ()
 
void TutorialKeybinds (Widget parent, TutorialsMenu menu)
 
bool SetElementTitle (UAInput pInput, int iDeviceFlags, out string output)
 assemble all active bindings at widget element
 
bool SetElementModifier (UAInput pInput, out string output)
 Determine the active limiter of the bindings (currently unreliable, multiple limiters can be active on key combos!)
 
void ~TutorialKeybinds ()
 
string GetLayoutName ()
 
void CreditsElement (int index, Widget parent)
 
void DropdownPrefab (Widget root, string text="")
 
void RefreshContent ()
 
int AddElement (string text, Widget content=null)
 
void RemoveElement (int index)
 
void Close ()
 
void SetText (string text)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
void KeybindingElement (int key_index, Widget parent, KeybindingsGroup group)
 
string GetLayoutName ()
 
bool IsChanged ()
 
bool IsAlternateChanged ()
 
array< intGetChangedBinds ()
 
array< intGetChangedAlternateBinds ()
 
void SetElementTitle (ButtonWidget btnWidget, UAInput pInput, int iDeviceFlags)
 
void Reload ()
 
void Reload (array< int > custom_binds, bool is_alternate)
 
void StartEnteringKeybind ()
 
void CancelEnteringKeybind ()
 
void StartEnteringAlternateKeybind ()
 
void CancelEnteringAlternateKeybind ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void KeybindingElementNew (int key_index, Widget parent, KeybindingsContainer group)
 
string GetLayoutName ()
 
bool IsChanged ()
 
bool IsAlternateChanged ()
 
array< intGetChangedBinds ()
 
array< intGetChangedAlternateBinds ()
 
void SetElementTitle (ButtonWidget btnWidget, UAInput pInput, int iDeviceFlags)
 
void Reload ()
 
void Reload (array< int > custom_binds, bool is_alternate)
 
void StartEnteringKeybind ()
 
void CancelEnteringKeybind ()
 
void StartEnteringAlternateKeybind ()
 
void CancelEnteringAlternateKeybind ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void KeybindingsGroup (int index, Input input, Widget parent, KeybindingsMenu menu)
 
string GetLayoutName ()
 
void InitPresets (int index, Widget parent, Input input)
 
void OnSelectKBPreset (int index)
 
void OnSelectConsolePreset (int index)
 
void ReloadProfiles ()
 
void AddSubgroup (Widget parent, Input input)
 
void AddAction (int index, Widget parent, Input input)
 
void ReloadAction (int index)
 
bool IsEnteringKeyBind ()
 
void ClearKeybind (int key_index)
 
void ClearAlternativeKeybind (int key_index)
 
void StartEnteringKeybind (int key_index)
 
void CancelEnteringKeybind ()
 
void StartEnteringAlternateKeybind (int key_index)
 
void CancelEnteringAlternateKeybind ()
 
bool IsChanged ()
 
void Apply ()
 
void Reset ()
 
void ResetEx (bool forced=false)
 
void Update (float timeslice)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
void BannerHandlerBase (Widget parent)
 
void SetBannerColor (int argb)
 
void SetBannerText (string text)
 
override bool OnUpdate (Widget w)
 
void MainMenuNewsfeed (Widget root)
 
void ShowNewsfeed ()
 
void HideNewsfeed ()
 
void OpenDLC ()
 
void OpenDiscord ()
 
void OpenFeedback ()
 
void OpenForums ()
 
void OpenTwitter ()
 
void OpenYoutube ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
void ColorRed (Widget w, int x, int y)
 
void ColorWhite (Widget w, Widget enterW, int x, int y)
 
void MainMenuDlcHandlerBase (ModInfo info, Widget parent, JsonDataDLCInfo DlcInfo)
 
void ~MainMenuDlcHandlerBase ()
 
void Init ()
 
void CreateRootWidget (Widget parent)
 
void ShowInfoPanel (bool show)
 
bool IsInfoPanelVisible ()
 
void OnPanelVisibilityChanged ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
bool LoadVideoFile ()
 returns 'true' when video is loaded
 
void StartVideo ()
 
void StopVideo ()
 
void PauseVideo ()
 
void UnloadVideo ()
 
void ColorFocussed (Widget w, int x, int y)
 
void ColorUnfocussed (Widget w, Widget enterW, int x, int y)
 
void UpdateOwnedStatus ()
 
void OnDLCChange ()
 
void SetPlatformSpecifics ()
 
void UpdateAllPromotionInfo ()
 
void UpdateDlcData ()
 
void UpdateIconVisibility ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
ModInfo GetModInfo ()
 
string GetDistanceString (float total_distance, bool meters_only=false)
 
string GetValueString (float total_value, bool show_decimals=false)
 
string GetTimeString (float total_time)
 
void ModsMenuDetailed (array< ref ModInfo > data, Widget parent, ModsMenuTooltip tooltip, UIScriptedMenu menu_parent)
 
void ~ModsMenuDetailed ()
 
void Open ()
 
void Close ()
 
bool IsOpen ()
 
ModInfo GetHighlighted ()
 
void HighlightFirst ()
 
void Highlight (ModInfo mod_ref)
 
void ScrollToMod (ModInfo mod_ref)
 
void Select (ModInfo mod_ref, bool show)
 
void PrepareTooltip (ModInfo mod_ref)
 
void ShowTooltip ()
 
void HideTooltip ()
 
void LoadEntries (array< ref ModInfo > data)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
void ModsMenuDetailedEntry (ModInfo data, Widget parent, ModsMenuDetailed parent_menu)
 
void ~ModsMenuDetailedEntry ()
 
Widget GetWidget ()
 
void Select ()
 
void Deselect ()
 
void LoadData ()
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void ModsMenuSimple (array< ref ModInfo > data, Widget parent, ModsMenuDetailed detail_menu)
 
void ~ModsMenuSimple ()
 
void LoadEntries (array< ref ModInfo > data)
 
void Select (ModInfo mod)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
void ModsMenuSimpleEntry (ModInfo data, int index, Widget parent, ModsMenuSimple parent_menu)
 
void ~ModsMenuSimpleEntry ()
 
void LoadData ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
void ModsMenuTooltip (Widget parent)
 
void ~ModsMenuTooltip ()
 
void ShowTooltip (ModInfo mod_ref)
 
void HideTooltip ()
 
void OptionsMenuControls (Widget parent, Widget details_root, GameOptions options, OptionsMenu menu)
 
string GetLayoutName ()
 
void EnterKeybindingMenu ()
 
void Focus ()
 Focuses the first viable item.
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsFocusable (Widget w)
 
bool TextMapUpdateWidget (int key)
 
bool IsChanged ()
 
void Apply ()
 
void Revert ()
 
void SetToDefaults ()
 
void UpdateMouseInvertView (int index)
 
void UpdateMouseVSensitivity (float value)
 
void UpdateMouseHSensitivity (float value)
 
void UpdateMouseAimModVSensitivity (float value)
 
void UpdateMouseAimModHSensitivity (float value)
 
void ReloadOptions ()
 
void SetOptions (GameOptions options)
 
void ToggleDependentOptions (int mode, bool state)
 
void InitDependentOptionsVisibility ()
 
void FillTextMap ()
 
void ColorRed (Widget w)
 
void ColorWhite (Widget w, Widget enterW)
 
void OptionsMenuGame (Widget parent, Widget details_root, GameOptions options, OptionsMenu menu)
 
void ~OptionsMenuGame ()
 
string GetLayoutName ()
 
void Focus ()
 
bool IsChanged ()
 
void Apply ()
 
void Revert ()
 
void SetToDefaults ()
 
void ReloadOptions ()
 
void SetOptions (GameOptions options)
 
void ToggleDependentOptions (int mode, bool state)
 
void InitDependentOptionsVisibility ()
 
void UpdateLanguageOption (int new_index)
 
void UpdatePauseOption (int new_index)
 
void UpdateFOVOption (float new_value)
 
void UpdateHUDBrightnessOption (float newValue)
 
void UpdateHUDOption (int new_index)
 
void UpdateBleedingIndication (int new_index)
 
void UpdateConnectivityInfo (int newIndex)
 
void UpdateCrosshairOption (int new_index)
 
void UpdateQuickbarOption (int new_index)
 
void UpdateHUDVehicleOption (int new_index)
 
void UpdateGameOption (int new_index)
 
void UpdateAdminOption (int new_index)
 
void UpdatePlayerOption (int new_index)
 
void UpdateServerInfoOption (int new_index)
 
IngameHud GetHud ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
void OnBleedingIndicationChanged (bool state)
 
bool TextMapUpdateWidget (int key)
 
void FillTextMap ()
 
void OptionsMenuVideo (Widget parent, Widget details_root, GameOptions options, OptionsMenu menu)
 
void ~OptionsMenuVideo ()
 
void InitSelectors ()
 
string GetLayoutName ()
 
void Focus ()
 
void ReloadOptions ()
 
bool IsChanged ()
 
void Apply ()
 
void Revert ()
 
void SetToDefaults ()
 
void SetOptions (GameOptions options)
 
void ToggleDependentOptions (int mode, bool state)
 
void InitDependentOptionsVisibility ()
 
void RefreshCustom ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void OnOptionChanged ()
 
void OnOverallQualityChanged (int value)
 
void OnDisplayModeChanged (int value)
 
void OnResolutionChanged (int value)
 
void OnBrightnessChanged (float value)
 
void OnVSyncChanged (float value)
 
void OnColorDepthChanged (int value)
 
void OnObjectDetailChanged (int value)
 
void OnTerrainDetailChanged (int value)
 
void OnTextureDetailChanged (int value)
 
void OnShadowDetailChanged (int value)
 
void OnVisibilityChanged (int value)
 
void OnObjectVisibilityChanged (int value)
 
void OnTextureFilteringChanged (int value)
 
void OnTerrainSurfaceDetailChanged (int value)
 
void OnPPAAChanged (int value)
 
void OnHWAAChanged (int value)
 
void OnATOCChanged (int value)
 
void OnAOChanged (int value)
 
void OnPPQualityChanged (int value)
 
void OnSSRQualityChanged (int value)
 
override bool OnFocus (Widget w, int x, int y)
 
bool TextMapUpdateWidget (int key)
 
void FillTextMap ()
 
void ~OptionSelectorBase ()
 
Widget GetParent ()
 
bool IsFocusable (Widget w)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
void Focus ()
 
void Enable ()
 
void Disable ()
 
void ColorHighlight (Widget w)
 
void ColorNormal (Widget w)
 
void ColorDisabled (Widget w)
 
void ButtonSetColor (Widget w, int color)
 
void ColorHighlightConsole (Widget w)
 
void ColorNormalConsole (Widget w)
 
void ColorDisabledConsole (Widget w)
 
void ButtonSetColorConsole (Widget w, int color)
 
void ButtonSetAlphaAnimConsole (Widget w)
 
void ButtonSetTextColorConsole (Widget w, int color)
 
void ServerBrowserDetailsContainer (Widget root, ServerBrowserTab parent)
 
void SetDetails (GetServersResultRow serverInfo, bool online=false)
 
void ClearDetails ()
 
void SetName (string name)
 
void SetType (string shardId)
 
void SetMode (int mode)
 
void SetServerIP (string ip)
 
void SetTimeAcceleration (float timeMul, float nightTimeMul)
 
void SetTimeIcon (string time, float multiplier)
 
void SetBattleyeState (int enabled=-1)
 
void SetVersion (string version)
 
void SetServerDesc (string desc)
 
void SetServerMap (GetServersResultRow serverInfo)
 
void Focus ()
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void ServerBrowserEntry (Widget parent, int index, ServerBrowserTab tab)
 
void ~ServerBrowserEntry ()
 
Widget GetRoot ()
 
void Show (bool show)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
void OnSelect ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
void Focus ()
 
void ServerListFocus (bool focus)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
bool IsOnline ()
 
bool IsFocusable (Widget w)
 
void FillInfo (GetServersResultRow server_info)
 
void UpdateEntry ()
 
void SetName (string name)
 
void SetPasswordLocked (bool locked)
 
void ServerBrowserFilterContainer (Widget root, ServerBrowserTab parent)
 
array< stringLoadMapFilterOptions ()
 
void OnFilterChanged ()
 
void OnMapFilterChanged ()
 
void LoadFilters ()
 
void SaveFilters ()
 
void ResetFilters ()
 
bool PingIsSet ()
 
bool FavoriteIsSet ()
 
bool PreviouslyIsSet ()
 
bool ProcessIntoIPAddress (out string potential_ip)
 Removes all characters from the given string whirh are NOT a number, '.' or ':'. Returns true if any change was done to the input text.
 
bool LimitTextBoxCharacterCount (out string text, int max_length)
 Limits the given text to 'max_length' character count. Returns true if any change was done to the input.
 
string GenerateValidIP (string potential_ip)
 Attempts to generate a valid IP address & port from the given string in format like this: "192.168.0.2:2503". If the process fails, then an empty string is returned.
 
bool GenerateValidFilter (out string potential_filter)
 Turns any given string into a more convenient filter (limits character count, forces lowercase, trims empty spaces).
 
void OnSortChanged (int value)
 
void Focus ()
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
GetServersInput GetFilterOptionsPC ()
 
GetServersInput GetFilterOptionsConsoles ()
 
void OnInputPresetChanged ()
 
void OnInputDeviceChanged (EInputDeviceType pInputDeviceType)
 
void Init ()
 
void OnWidgetScriptInit (Widget w)
 
void AlignTabbers ()
 
int AddTab (string name)
 
void RemoveTab (int index)
 
Widget GetTab (int index)
 
int GetTabCount ()
 
bool CanSwitchTab ()
 
void SetCanSwitch (bool value)
 
void PerformSwitchTab (int index)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
override bool OnChildAdd (Widget w, Widget child)
 
override bool OnChildRemove (Widget w, Widget child)
 
void EnableTabControl (int index, bool enable)
 
void SelectTabControl (int index)
 
void SelectTabPanel (int index)
 
void DeselectTabControl (int index)
 
void DeselectTabPanel (int index)
 
void DeselectAll ()
 
void NextTab ()
 
void PreviousTab ()
 
int GetSelectedIndex ()
 
void RefreshTab (bool performInitAlignment=false)
 
void UpdateControlsElements ()
 
void DisableTabs (bool disable)
 useful if we want to disable actual tabs for whatever reason
 
void VideoPlayer (Widget parent)
 
void ~VideoPlayer ()
 
void Show (bool show)
 
void OnPlaybackStart ()
 
void OnPlaybackStop ()
 
void OnBufferingStart ()
 
void OnBufferingEnd ()
 
void ToggleVideoSelection ()
 
void LoadVideo (string videoPath)
 
void PlayVideo ()
 
void PauseVideo ()
 
void StopVideo ()
 
void OnceVideo ()
 
void RepeatVideo ()
 
void KillVideo ()
 
void ObjectFollower ()
 
void ~ObjectFollower ()
 
void OnWidgetScriptInit (Widget w)
 
void SetTarget (Object obj)
 
override bool OnUpdate (Widget w)
 
void Update ()
 
void GetOnScreenPosition (out float x, out float y)
 
void ProjectedCrosshair ()
 
void ~ProjectedCrosshair ()
 
void OnWidgetScriptInit (Widget w)
 
void Update ()
 Update.
 
void GetPlayer ()
 
void GetCrosshairPosition ()
 

Защищенные данные

Widget m_Root
 
Widget m_Child
 
int m_SlideShowDelay = 25000
 
string m_RootPath = "Gui/layouts/new_ui/hints/in_game_hints.layout"
 
const string m_DataPath = "scripts/data/hints.json"
 
Widget m_RootFrame
 
Widget m_SpacerFrame
 
ButtonWidget m_UiLeftButton
 
ButtonWidget m_UiRightButton
 
RichTextWidget m_UiDescLabel
 
TextWidget m_UiHeadlineLabel
 
ImageWidget m_UiHintImage
 
TextWidget m_UiPageingLabel
 
ref array< ref HintPagem_ContentList
 
int m_PageIndex = int.MIN
 
DayZGame m_Game
 
bool m_Initialized
 
Widget m_ParentWidget
 
int m_PreviousRandomIndex = int.MIN
 
ref map< int, Widgetm_BackgroundWidgets
 
ref map< int, Widgetm_ItemWidgets
 
ref TItemsMap m_Items
 
InventoryGridController m_Controller
 
int m_GridSize
 
bool m_IsMouseLeftDown
 
bool m_CanAddItemInHandToInventory
 
Widget m_context_menu_root_widget
 
int m_Index
 
int m_ActorIndex
 
int m_EventType
 
float m_EventTime
 
CameraToolsMenu m_Menu
 
TextWidget m_IndexWidget
 
EditBoxWidget m_EventActorWidget
 
EditBoxWidget m_EventTimeWidget
 
EditBoxWidget m_EventTypeWidget
 
CheckBoxWidget m_EventWalkWidget
 
HumanCommandActionCallback m_Callback
 
float m_InterpTime
 
float m_TotalTimeBefore
 
vector m_Position
 
vector m_Orientation
 
EditBoxWidget m_InterpTimeWidget
 
EditBoxWidget m_FOVWidget
 
EditBoxWidget m_DOFWidget
 
EditBoxWidget m_PinWidget
 
TextWidget m_TotalTimeWidget
 
Widget m_FollowerRoot
 
Widget m_FollowerButton
 
EntityAI m_FollowedObject
 
float m_MaxFade
 
float m_MinFade
 
PlayerBase m_Player
 
ActionBase m_Action
 
int m_ActionState
 
ActionManagerBase m_AM
 
ref WidgetFadeTimer m_FadeTimer
 
bool m_Faded
 
float m_InitProgress
 
float m_Speed
 
Widget m_RadialWidget
 
ImageWidget m_LoaderImage
 
ref RadialProgressBar m_Radial
 
string m_Name
 
string m_UID
 
bool m_Mute
 
bool m_GlobalMute
 
TextWidget m_PlayerName
 
ImageWidget m_PlayerAvatar
 
ImageWidget m_MicrophoneIcon
 
ImageWidget m_MuteIcon
 
ButtonWidget m_PlayerButton
 
PlayerListScriptedWidget m_Tab
 
bool m_Selected
 
ScrollWidget m_ScrollContainer
 
Widget m_Content
 
ref map< string, ref PlayerListEntryScriptedWidgetm_Entries
 
int m_TotalEntries
 
PlayerListEntryScriptedWidget m_SelectedEntry
 
Widget m_MainWidget
 
Widget m_RootWidget
 
LayoutHolder m_Parent
 
string m_LayoutName
 
bool m_IsActive
 
bool m_ImmedUpdate
 
bool m_TooltipOwner
 
EntityAI m_am_entity1
 
EntityAI m_am_entity2
 
EntityAI m_EntityInHands
 
ActionBase m_Interact
 
ActionBase m_ContinuousInteract
 
ActionBase m_Single
 
ActionBase m_Continuous
 
ActionManagerClient m_AM
 
IngameHud m_Hud
 
UAIDWrapper m_UseActionWrapper
 
int m_InteractActionsNum
 
int m_ContinuousInteractActionsNum
 
int m_ItemActionsNum
 
int m_ContinuousItemActionsNum
 
bool m_HealthEnabled
 
bool m_QuantityEnabled
 
bool m_Hidden
 
bool m_ItemFrozen
 
Widget m_ItemLeft
 
float m_MaxWidthChild
 widget width
 
float m_RootWidth
 
float m_RootHeight
 
Widget m_DetailsRoot
 
TutorialsMenu m_Menu
 
Widget m_Parent
 
ScrollWidget m_Scroller
 
Widget m_ContentContainer
 
ref array< Widgetm_Content = new array<Widget>
 
Widget m_Button
 
Widget m_Holder
 
TextWidget m_Text
 
ImageWidget m_ImageExpand
 
ImageWidget m_ImageCollapse
 
bool m_IsExpanded
 
ref ScriptInvoker m_OnSelectItem = new ScriptInvoker()
 
KeybindingsGroup m_Group
 
TextWidget m_ElementName
 
TextWidget m_ElementModifier
 
ButtonWidget m_PrimaryBindButton
 
ButtonWidget m_AlternativeBindButton
 
Widget m_PrimaryClear
 
Widget m_AlternativeClear
 
int m_ElementIndex
 
bool m_IsEdited
 
bool m_IsAlternateEdited
 
ref array< intm_CustomBind
 
ref array< intm_CustomAlternateBind
 
ref Timer m_EntryTimer = new Timer( CALL_CATEGORY_GUI )
 
KeybindingsContainer m_Container
 
KeybindingsMenu m_Menu
 
ref map< int, ref KeybindingElementm_KeyWidgets
 
int m_CurrentSettingKeyIndex = -1
 
int m_CurrentSettingAlternateKeyIndex = -1
 
ref DropdownPrefab m_KBDropdown
 
Widget m_BannerBody
 
Widget m_BannerWedge
 
TextWidget m_BannerText
 
Widget m_DLDLC
 
Widget m_Discord
 
Widget m_Feedback
 
Widget m_DayZForum
 
Widget m_Twitter
 
Widget m_Youtube
 
TextWidget m_MainText1
 
TextWidget m_MainText2
 
TextWidget m_MainText3
 
TextWidget m_SecText1
 
TextWidget m_SecText2
 
TextWidget m_SecText3
 
const string TEXT_OWNED = "#layout_dlc_owned"
 
const string TEXT_UNOWNED = "#layout_dlc_unowned"
 
int m_ColorBackgroundOriginal
 
Widget m_BannerFrame
 
Widget m_Background
 
Widget m_StoreButton
 
Widget m_GamepadStoreImage
 
ImageWidget m_DlcPromotionImage
 
TextWidget m_TitleTextDlc
 
MultilineTextWidget m_DescriptionTextDlc
 
VideoWidget m_VideoWidget
 
ref ModInfo m_ThisModInfo
 
ref JsonDataDLCInfo m_DlcInfo
 
ref BannerHandlerBase m_BannerHandler
 
Widget m_TimeSurvived
 
TextWidget m_TimeSurvivedValue
 
Widget m_PlayersKilled
 
TextWidget m_PlayersKilledValue
 
Widget m_InfectedKilled
 
TextWidget m_InfectedKilledValue
 
Widget m_DistanceTraveled
 
TextWidget m_DistanceTraveledValue
 
Widget m_LongRangeShot
 
TextWidget m_LongRangeShotValue
 
Widget m_CloseButton
 
ScrollWidget m_Scroll
 
ref map< ref ModInfo, ref ModsMenuDetailedEntrym_Data
 
ModInfo m_Highlighted
 
UIScriptedMenu m_Menu
 
ModsMenuTooltip m_Tooltip
 
ref Timer m_TooltipTimer
 
ModInfo m_TooltipMod
 
Widget m_Detail
 
ImageWidget m_IconSmall
 
ImageWidget m_IconCollapse
 
TextWidget m_Name
 
ImageWidget m_IconBig
 
MultilineTextWidget m_Author
 
TextWidget m_Version
 
RichTextWidget m_ActionWebsite
 
RichTextWidget m_ActionPurchase
 
RichTextWidget m_Description
 
ModInfo m_Data
 
ModsMenuDetailed m_ParentMenu
 
bool m_IsOpen
 
const int MOD_DISPLAY_COUNT_MAX = 3
 
Widget m_MoreButton
 
Widget m_MoreHighlight
 
ref map< ModInfo, ref ModsMenuSimpleEntrym_Data
 
ModsMenuDetailed m_DetailMenu
 
ButtonWidget m_ModButton
 
ImageWidget m_Icon
 
Widget m_Hover
 
bool m_HasLogoOver
 
ModsMenuSimple m_ParentMenu
 
RichTextWidget m_Text
 
Widget m_SettingsRoot
 
Widget m_DetailsBodyDefault
 
Widget m_DetailsBodyConnectivity
 
TextWidget m_DetailsLabel
 
RichTextWidget m_DetailsText
 
GridSpacerWidget m_Keybindings
 
GameOptions m_Options
 
OptionsMenu m_Menu
 
ref SwitchOptionsAccess m_KeyboardOption
 
ref SwitchOptionsAccess m_AimHelperOption
 
ref OptionSelectorMultistate m_KeyboardSelector
 
ref OptionSelectorMultistate m_AimHelperSelector
 
ref SwitchOptionsAccess m_Mouse_InvertOption
 
ref NumericOptionsAccess m_Mouse_VSensitivityOption
 
ref NumericOptionsAccess m_Mouse_HSensitivityOption
 
ref NumericOptionsAccess m_Mouse_AimMod_VSensitivityOption
 
ref NumericOptionsAccess m_Mouse_AimMod_HSensitivityOption
 
ref OptionSelectorMultistate m_Mouse_InvertSelector
 
ref OptionSelectorSlider m_Mouse_VSensitivitySelector
 
ref OptionSelectorSlider m_Mouse_HSensitivitySelector
 
ref OptionSelectorSlider m_Mouse_AimMod_VSensitivitySelector
 
ref OptionSelectorSlider m_Mouse_AimMod_HSensitivitySelector
 
ref NumericOptionsAccess m_ControllerLS_VSensitivityOption
 
ref NumericOptionsAccess m_ControllerLS_HSensitivityOption
 
ref NumericOptionsAccess m_ControllerLS_VehicleMod_HSensitivityOption
 
ref SwitchOptionsAccess m_ControllerRS_InvertOption
 
ref NumericOptionsAccess m_ControllerRS_VSensitivityOption
 
ref NumericOptionsAccess m_ControllerRS_HSensitivityOption
 
ref NumericOptionsAccess m_ControllerRS_CurvatureOption
 
ref NumericOptionsAccess m_ControllerRS_AimMod_VSensitivityOption
 
ref NumericOptionsAccess m_ControllerRS_AimMod_HSensitivityOption
 
ref NumericOptionsAccess m_ControllerRS_AimMod_CurvatureOption
 
ref NumericOptionsAccess m_ControllerLS_DeadZoneOption
 
ref NumericOptionsAccess m_ControllerRS_DeadZoneOption
 
ref OptionSelectorSlider m_ControllerLS_VSensitivitySelector
 
ref OptionSelectorSlider m_ControllerLS_HSensitivitySelector
 
ref OptionSelectorSlider m_ControllerLS_VehicleMod_HSensitivitySelector
 
ref OptionSelectorMultistate m_ControllerRS_InvertSelector
 
ref OptionSelectorSlider m_ControllerRS_VSensitivitySelector
 
ref OptionSelectorSlider m_ControllerRS_HSensitivitySelector
 
ref OptionSelectorSlider m_ControllerRS_CurvatureSelector
 
ref OptionSelectorSlider m_ControllerRS_AimMod_VSensitivitySelector
 
ref OptionSelectorSlider m_ControllerRS_AimMod_HSensitivitySelector
 
ref OptionSelectorSlider m_ControllerRS_AimMod_CurvatureSelector
 
ref OptionSelectorSlider m_ControllerLS_DeadZoneSelector
 
ref OptionSelectorSlider m_ControllerRS_DeadZoneSelector
 
ref map< int, ref Param2< string, string > > m_TextMap
 
ButtonWidget m_QuickbarButton
 
ref NumericOptionsAccess m_FOVOption
 
ref ListOptionsAccess m_LanguageOption
 
ref ListOptionsAccess m_PauseOption
 
ref OptionSelectorMultistate m_LanguageSelector
 
ref OptionSelectorSlider m_FOVSelector
 
ref OptionSelectorMultistate m_ShowHUDSelector
 
ref OptionSelectorMultistate m_ShowCrosshairSelector
 
ref OptionSelectorMultistate m_ShowQuickbarSelector
 
ref OptionSelectorMultistate m_ShowHUDVehicleSelector
 
ref OptionSelectorMultistate m_ShowGameSelector
 
ref OptionSelectorMultistate m_ShowAdminSelector
 
ref OptionSelectorMultistate m_ShowPlayerSelector
 
ref OptionSelectorMultistate m_ShowServerInfoSelector
 
ref OptionSelectorMultistate m_BleedingIndication
 
ref OptionSelectorMultistate m_ConnectivityInfo
 
ref OptionSelectorSlider m_HUDBrightnessSelector
 
ref OptionSelectorMultistate m_PauseSelector
 
ref NumericOptionsAccess m_MasterOption
 
ref NumericOptionsAccess m_EffectsOption
 
ref NumericOptionsAccess m_VOIPOption
 
ref NumericOptionsAccess m_VOIPThresholdOption
 
ref NumericOptionsAccess m_MusicOption
 
ref ListOptionsAccess m_InputModeOption
 
ref OptionSelectorSlider m_MasterSelector
 
ref OptionSelectorSlider m_EffectsSelector
 
ref OptionSelectorSlider m_VOIPSelector
 
ref OptionSelectorLevelMarker m_VOIPThresholdSelector
 
ref OptionSelectorSlider m_MusicSelector
 
ref OptionSelectorMultistate m_InputModeSelector
 
ref OptionSelectorMultistate m_AmbientMusicSelector
 
ref Timer m_AudioLevelTimer
 
MissionGameplay m_MissionGameplay
 
VONManagerBase m_VonManager
 
ref OptionSelectorMultistate m_OverallQualitySelector
 
ref OptionSelectorMultistate m_DisplayModeSelector
 
ref OptionSelectorMultistate m_ResolutionSelector
 
ref OptionSelectorSlider m_BrightnessSelector
 
ref OptionSelectorMultistate m_VSyncSelector
 
ref OptionSelectorMultistate m_ObjectDetailSelector
 
ref OptionSelectorMultistate m_TerrainDetailSelector
 
ref OptionSelectorMultistate m_TextureDetailSelector
 
ref OptionSelectorMultistate m_ShadowDetailSelector
 
ref OptionSelectorMultistate m_VisibilitySelector
 
ref OptionSelectorMultistate m_ObjectVisibilitySelector
 
ref OptionSelectorMultistate m_TextureFilteringSelector
 
ref OptionSelectorMultistate m_TerrainSurfaceDetailSelector
 
ref OptionSelectorMultistate m_PPAASelector
 
ref OptionSelectorMultistate m_HWAASelector
 
ref OptionSelectorMultistate m_ATOCSelector
 
ref OptionSelectorMultistate m_AOSelector
 
ref OptionSelectorMultistate m_PPQualitySelector
 
ref OptionSelectorMultistate m_SSRQualitySelector
 
ref ListOptionsAccess m_OverallQualityOption
 
ref ListOptionsAccess m_DisplayModeOption
 
ref ListOptionsAccess m_ResolutionOption
 
ref NumericOptionsAccess m_BrightnessOption
 
ref ListOptionsAccess m_VSyncOption
 
ref ListOptionsAccess m_ObjectDetailOption
 
ref ListOptionsAccess m_TerrainDetailOption
 
ref ListOptionsAccess m_TextureDetailOption
 
ref ListOptionsAccess m_ShadowDetailOption
 
ref ListOptionsAccess m_VisibilityOption
 
ref ListOptionsAccess m_ObjectVisibilityOption
 
ref ListOptionsAccess m_TextureFilteringOption
 
ref ListOptionsAccess m_TerrainSurfaceDetailOption
 
ref ListOptionsAccess m_PPAAOption
 
ref ListOptionsAccess m_HWAAOption
 
ref ListOptionsAccess m_ATOCOption
 
ref ListOptionsAccess m_AOOption
 
ref ListOptionsAccess m_PPQualityOption
 
ref ListOptionsAccess m_SSRQualityOption
 
int m_SelectorType = 0
 
bool m_Enabled
 
ScriptedWidgetEventHandler m_ParentClass
 
ref ScriptInvoker m_OptionFocused = new ScriptInvoker
 
ref ScriptInvoker m_OptionUnfocused = new ScriptInvoker
 
ref ScriptInvoker m_AttemptOptionChange = new ScriptInvoker
 
ref ScriptInvoker m_OptionChanged = new ScriptInvoker
 
ServerBrowserTab m_Tab
 
TextWidget m_ServerNameText
 
TextWidget m_ServerTypeResult
 
TextWidget m_ServerModeResult
 
TextWidget m_LastCharacterResult
 
TextWidget m_ServerIP
 
TextWidget m_TimeAccelerationResult
 
ImageWidget m_TimeIcon
 
TextWidget m_BattleyeResult
 
WrapSpacerWidget m_VersionContainer
 
TextWidget m_VersionResult
 
GridSpacerWidget m_ServerDecContainer
 
MultilineTextWidget m_ServerDesc
 
WrapSpacerWidget m_DetailsContainerRight
 
ImageWidget m_MapImage
 
ButtonWidget m_BtnShowFilters
 
ButtonWidget m_RefreshList
 
bool m_IsOnline
 
Widget m_Favorite
 
TextWidget m_ServerName
 
TextWidget m_ServerPopulation
 
TextWidget m_ServerSlots
 
TextWidget m_ServerPing
 
ImageWidget m_ServerTime
 
ImageWidget m_ServerLock
 
ImageWidget m_ServerModIcon
 
ImageWidget m_ServerMaKIcon
 
TextWidget m_ServerShard
 
TextWidget m_ServerCharacterAlive
 
TextWidget m_ServerFriends
 
TextWidget m_ServerMode
 
TextWidget m_ServerBattleye
 
TextWidget m_ServerAcceleration
 
TextWidget m_ServerMap
 
TextWidget m_ServerMods
 
ButtonWidget m_ServerModsExpand
 
ref array< stringm_Mods
 
Widget m_DetailedInfo
 
bool m_IsFavorited
 
ref GetServersResultRow m_ServerData
 
bool m_FirstExpand = true
 
EditBoxWidget m_SearchByName
 
EditBoxWidget m_SearchByIP
 
ref OptionSelectorMultistate m_CharacterAliveFilter
 
ref OptionSelectorMultistate m_SortingFilter
 
ref OptionSelectorMultistate m_RegionFilter
 
ref OptionSelectorMultistate m_PingFilter
 
ref OptionSelectorMultistate m_MapFilter
 
ref OptionSelector m_DLCFilter
 
ref OptionSelector m_FavoritedFilter
 
ref OptionSelector m_FriendsPlayingFilter
 
ref OptionSelector m_BattleyeFilter
 
ref OptionSelector m_PasswordFilter
 
ref OptionSelector m_WhitelistFilter
 
ref OptionSelector m_KeyboardFilter
 
ref OptionSelector m_PreviouslyPlayedFilter
 
ref OptionSelector m_VersionMatchFilter
 
ref OptionSelector m_FullServerFilter
 
ref OptionSelector m_ThirdPersonFilter
 
ref OptionSelector m_PublicFilter
 
ref OptionSelector m_AcceleratedTimeFilter
 
bool m_FirstInit = true
 
Widget m_TabControlsRoot
 
int m_TabsCount
 
ref map< int, Widgetm_TabControls
 
ref map< int, Widgetm_Tabs
 
int m_SelectedIndex
 
float m_ResolutionMultiplier
 
bool m_CanSwitch
 
ref ScriptInvoker m_OnTabSwitch = new ScriptInvoker()
 
ref ScriptInvoker m_OnAttemptTabSwitch = new ScriptInvoker()
 
ref Timer m_InitTimer
 
ButtonWidget m_PlayButton
 
ButtonWidget m_PauseButton
 
ButtonWidget m_StopButton
 
ButtonWidget m_OnceButton
 
ButtonWidget m_RepeatButton
 
ButtonWidget m_LoadButton
 
GridSpacerWidget m_LoadVideo
 
SliderWidget m_Progress
 
TextWidget m_CurrentTime
 
TextWidget m_TotalTime
 
ImageWidget m_Buffering
 
Object m_TargetObject
 
bool m_Visible
 
bool m_Debug
 
Weapon_Base m_Weapon
 

Статические защищенные данные

static bool m_IgnoredBool
 
static ref ContextMenu m_ContextMenuInstance
 
static const float SLIDER_STEP = 0.025
 

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

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 OnMouseWheel (Widget w, int x, int y, int wheel)
 
bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
bool OnController (Widget w, int control, int value)
 control is one of ControlID
 
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 OnResize (Widget w, int x, int y)
 
bool OnChildAdd (Widget w, Widget child)
 
bool OnChildRemove (Widget w, Widget child)
 
bool OnUpdate (Widget w)
 
bool OnEvent (EventType eventType, Widget target, int parameter0, int parameter1)
 
void OnItemEnter (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemLeave (InventoryGrid grid, Widget w)
 
void OnItemDrag (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemDraggingOver (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemDrop (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemDropReceived (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemClick (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemLeftClick (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemRightClick (InventoryGrid grid, Widget w, int row, int col)
 
void OnItemDoubleClick (InventoryGrid grid, Widget w, int row, int col)
 
int GetItemColor (ScriptedWidgetEventHandler grid, InventoryItem item)
 
int GetQuickbarItemColor (InventoryGrid grid, InventoryItem item)
 
vector GetItemSize (InventoryGrid grid, InventoryItem item)
 
string GetItemQuantityText (InventoryItem item)
 
int HasItemQuantity (InventoryItem item)
 
float GetItemQuantity (InventoryItem item)
 
int GetItemQuantityMax (InventoryItem item)
 
int GetItemCount (InventoryItem item)
 
bool CanAddItemInHandToInventory ()
 
override bool OnDrag (Widget w, int x, int y)
 
override bool OnDraggingOver (Widget w, int x, int y, Widget reciever)
 
override bool OnDropReceived (Widget w, int x, int y, Widget reciever)
 
TItemsMap GetItems ()
 
Widget GetItem (int index)
 
Widget GetItemBackground (int index)
 
Widget GetRoot ()
 
void SetItemColor (InventoryItem item, int color)
 
void SetController (InventoryGridController controller)
 
InventoryGridController GetController ()
 
void GenerateQuickBarBackgroundTiles (int count)
 
void UpdateQuickbarItems (TItemsMap items)
 
void UpdateItems (TItemsMap items, bool show_quantity, bool show_temperature)
 
void UpdateQuantityItems ()
 
void UpdateTemperatureItems ()
 
void RefreshQuickbarItemVariables (InventoryItem item, vector data)
 
void RefreshItemVariables (InventoryItem item, vector data, bool show_quantity, bool show_temperature)
 
void AddItem (InventoryItem item, vector data, vector rotation)
 
void SetItem (InventoryItem item, vector data, vector rotation)
 
void ContextMenu ()
 
void ~ContextMenu ()
 
void Init (Widget layoutRoot, bool builtIn=false)
 
void Show (int x, int y)
 
void SetSize (float x, float y)
 
void ShowBackdrop (bool show)
 
void Hide ()
 
bool IsVisible ()
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
void Add (string label, Class obj, string fn_name, Param params)
 
void AddEx (string label, int labelColor, Class obj, string funcName, Param params)
 
void Remove (int index)
 
int Count ()
 
void Clear ()
 
void BuildContextMenu (notnull EntityAI entity, notnull Widget rootWidget, Class target)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnMouseButtonUp (Widget w, int x, int y, int button)
 
void GetPlayer ()
 
void GetActionManager ()
 
void GetActions ()
 
void SetProgress (float progress)
 
void HudDebugEventHandler (HudDebug hud_debug)
 
HudDebug GetHudDebug ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
override bool OnFocus (Widget w, int x, int y)
 
override bool OnFocusLost (Widget w, int x, int y)
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnSelect (Widget w, int x, int y)
 
override bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
override bool OnModalResult (Widget w, int x, int y, int code, int result)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
void UpdateControllerInputIcons ()
 Loads icons from the latest keybinds.
 
void UpdatePCIconsVisibility ()
 Contains logic for icon set switching (Gamepad/M&K)
 
void MainMenuStats (Widget root)
 
void ShowStats ()
 
void HideStats ()
 
void UpdateStats ()
 
void RevertHUDBrightness ()
 
void OptionsMenuSounds (Widget parent, Widget details_root, GameOptions options, OptionsMenu menu)
 
void ~OptionsMenuSounds ()
 
string GetLayoutName ()
 
void Focus ()
 
override bool OnMouseEnter (Widget w, int x, int y)
 
override bool OnMouseLeave (Widget w, Widget enterW, int x, int y)
 
override bool OnFocus (Widget w, int x, int y)
 
bool TextMapUpdateWidget (int key)
 
void OnVonStateEvent ()
 
void OnPartyChatChangedEvent ()
 
void UpdateWasMicCapturing ()
 
bool IsChanged ()
 
void Apply ()
 
void Revert ()
 
void SetToDefaults ()
 
void ReloadOptions ()
 
void SetOptions (GameOptions options)
 
void ToggleDependentOptions (int mode, bool state)
 
void InitDependentOptionsVisibility ()
 
void UpdateMaster (float value)
 
void UpdateEffects (float value)
 
void UpdateVOIP (float value)
 
void UpdateVOIPThreshold (float value)
 
void UpdateMusic (float value)
 
void UpdateAmbientSoundModeOption (int value)
 
void UpdateInputMode (int newIndex)
 
void UpdateAudioLevel ()
 
void FillTextMap ()
 
void SetPopulationEx (GetServersResultRow serverInfo)
 
void SetSlots (int slots)
 
void SetPing (int ping)
 
void SetTime (string time, float multiplier)
 
void SetShard (int shard)
 
void RefreshDLCIcon ()
 
void SetCharacterAlive (string char_alive)
 
void SetFriends (string friends_text)
 
void SetMode (int mode)
 
void SetBattleye (bool battleye)
 
void SetIP (string ip)
 
string GetIP ()
 
int GetPort ()
 
int GetSteamQueryPort ()
 
string GetServerID ()
 
string GetMapToRun ()
 
void SetFavorite (bool favorite)
 
void SetAcceleration (float mult)
 
void SetModded (bool is_modded)
 
void SetServerMapName ()
 
void SetMods (array< string > mods)
 
void SetMouseAndKeyboard (bool is_mkenabled)
 
void SetIsOnline (bool isOnline)
 
bool ToggleFavorite ()
 
bool ToggleExpand ()
 
bool SetExpand (bool expand)
 
void Select (bool notify=true)
 
void Deselect ()
 
void UpdateColors ()
 
void Preview (Widget w, int x, int y)
 
void Darken (Widget w, int x, int y)
 
void Lighten (Widget w, Widget enterW, int x, int y)
 
GetServersResultRow GetServerData ()
 
string GetMapName ()
 
void SetMapName (string mapName)
 
void SetPopulation (int population, int slots)
 
void Init ()
 
void InitVideoLoading ()
 
void CreateVideoLoadingEntry (string entryName)
 
void UpdateCurrentTime ()
 
void UpdateTotalTime ()
 
void UpdateTime (TextWidget widget, int time)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnClick (Widget w, int x, int y, int button)
 
void ~ProfileOptionsUI ()
 
void Attach (int profileOption, array< Widget > widget_array)
 
void Deattach ()
 
void Init ()
 
void SetValue ()
 
override bool OnClick (Widget w, int x, int y, int button)
 
void SetButtonStates (int index)
 
array< WidgetGetWidgetArray ()
 
int GetProfileOption ()
 
- Закрытые члены унаследованные от 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 ()
 

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

static void DisplayContextMenu (int x, int y, notnull EntityAI entity, notnull Widget rootWidget, Class target)
 

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

reference string m_ChildName
 
reference float m_HorizontalOffset
 
reference float m_VerticalOffset
 
reference bool m_ResizeHorizontal
 
reference bool m_ResizeVertical
 
reference bool m_IsDebugOutput
 
Widget m_on_drag_item
 
int m_col
 
Widget m_context_menu_panel_widget
 
ref array< ref CallQueueContextm_commands
 
int m_max_item_width
 
int m_count
 
bool m_builtIn = false
 
const int ITEMS_COUNT = 27
 
PluginDayZInfectedDebug m_pPluginInfectedDebug
 
PluginItemDiagnostic m_Owner
 
reference string RadialBarWidgetName
 
HudDebug m_HudDebug
 
ref FullTimeData m_TimeSurvivedFull
 
const float HUD_BRIGHTNESS_MIN = -1.0
 
const float HUD_BRIGHTNESS_MAX = 0.0
 
bool m_WasMicCapturing
 
ref map< string, stringm_Options = new map<string, string>
 
reference int m_PivotYOffset
 
int m_profileOption
 
Widget m_widget
 
ref array< Widgetm_widget_array
 
- Закрытые данные унаследованные от 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
 

Закрытые статические данные

static int ITEM_COLOR_QUICKBAR_NORMAL = 0x0AFFFFFF
 
static int ITEM_COLOR_QUICKBAR_H_GOOD = 0x2A6e980d
 
static int ITEM_COLOR_QUICKBAR_H_BAD = 0x2A980d0d
 
static int ITEM_COLOR_QUICKBAR_I_BAD = 0x2A986e0d
 
static int ITEM_COLOR_NORMAL = 0x0AFFFFFF
 
static int ITEM_COLOR_DRAG = 0x0AFFFFFF
 

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

map: item x vector(index, width, height)

base class for promo implementation

Deprecated.

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

◆ ~UiHintPanel()

void ~UiHintPanel ( )
inlineprotected
43 {
45
46 if(m_RootFrame)
47 m_RootFrame.Unlink();
48 }
Widget m_RootFrame
Definition UiHintPanel.c:16
void StopSlideShow()
Definition UiHintPanel.c:238

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

◆ ~ContextMenu()

void ~ContextMenu ( )
inlineprivate
22 {
23 Clear();
24
26 }
Widget m_context_menu_root_widget
Definition ContextMenu.c:6
void Clear()
Definition ContextMenu.c:232

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

◆ ~CTEvent()

void ~CTEvent ( )
inlineprotected
39 {
40 delete m_Root;
41 }
Widget m_Root
Definition SizeToChild.c:9

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

◆ ~CTKeyframe()

void ~CTKeyframe ( )
inlineprotected
46 {
47 delete m_Root;
48 }

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

◆ ~CTObjectFollower()

void ~CTObjectFollower ( )
inlineprotected
16 {
18 delete m_FollowerRoot;
19 }
void DestroyFollowedObject()
Definition CTObjectFollower.c:28
Widget m_FollowerRoot
Definition CTObjectFollower.c:3

◆ ~ContinuousActionProgress()

void ~ContinuousActionProgress ( )
inlineprotected
39 {
40 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Remove(Update);
41 }
void Update()
Definition ContinuousActionProgress.c:56
proto native CGame GetGame()
const int CALL_CATEGORY_GUI
Definition tools.c:9

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

◆ ~PlayerListEntryScriptedWidget()

void ~PlayerListEntryScriptedWidget ( )
inlineprotected
38 {
39 delete m_Root;
40 }

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

◆ ~PlayerListScriptedWidget()

void ~PlayerListScriptedWidget ( )
inlineprotected
23 {
24 delete m_Root;
25 }

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

◆ ~LayoutHolder()

void ~LayoutHolder ( )
inlineprotected
124 {
126 delete m_RootWidget;
127 }
void HideOwnedTooltip()
Definition LayoutHolder.c:235
Widget m_RootWidget
Definition LayoutHolder.c:4

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

◆ ~ItemActionsWidget()

void ~ItemActionsWidget ( )
inlineprotected
60 {
61 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Remove(Update);
62 }

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

◆ ~TutorialKeybinds()

void ~TutorialKeybinds ( )
inlineprotected
164 {
165
166 }

◆ ~MainMenuDlcHandlerBase()

void ~MainMenuDlcHandlerBase ( )
inlineprotected
41 {
42 #ifdef PLATFORM_CONSOLE
43 if (GetGame().GetContentDLCService())
44 GetGame().GetContentDLCService().m_OnChange.Remove(OnDLCChange);
45 #endif
46 }
void OnDLCChange()
Definition MainMenuPromo.c:164

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

◆ ~ModsMenuDetailed()

void ~ModsMenuDetailed ( )
inlineprotected
34 {
35 delete m_Root;
36 }

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

◆ ~ModsMenuDetailedEntry()

void ~ModsMenuDetailedEntry ( )
inlineprotected
60 {
61 delete m_Root;
62 }

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

◆ ~ModsMenuSimple()

void ~ModsMenuSimple ( )
inlineprotected
24 {
25 delete m_Root;
26 }

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

◆ ~ModsMenuSimpleEntry()

void ~ModsMenuSimpleEntry ( )
inlineprotected
26 {
27 delete m_ModButton;
28 }
ButtonWidget m_ModButton
Definition ModsMenuSimpleEntry.c:3

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

◆ ~ModsMenuTooltip()

void ~ModsMenuTooltip ( )
inlineprotected
13 {
14 delete m_Root;
15 }

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

◆ ~OptionsMenuGame()

void ~OptionsMenuGame ( )
inlineprotected
147 {
148 if (m_FOVOption)
149 {
150 m_FOVOption.Revert();
151 g_Game.SetUserFOV(m_FOVOption.ReadValue());
152 }
153
155 }
DayZGame g_Game
Definition DayZGame.c:3815
ref NumericOptionsAccess m_FOVOption
Definition OptionsMenuGame.c:16
void RevertHUDBrightness()
Definition OptionsMenuGame.c:619

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

◆ ~OptionsMenuSounds()

void ~OptionsMenuSounds ( )
inlineprivate
123 {
126
128 {
129 // reset mic to previous capturing state
130 GetGame().EnableMicCapture(m_WasMicCapturing);
131 }
132
133 m_AudioLevelTimer.Stop();
134 }
MissionGameplay m_MissionGameplay
Definition OptionsMenuSounds.c:30
void OnVonStateEvent()
Definition OptionsMenuSounds.c:225
void OnPartyChatChangedEvent()
Definition OptionsMenuSounds.c:238
VONManagerBase m_VonManager
Definition OptionsMenuSounds.c:31
ref Timer m_AudioLevelTimer
Definition OptionsMenuSounds.c:27
bool m_WasMicCapturing
Definition OptionsMenuSounds.c:35
ref ScriptInvoker m_OnPartyChatChangedEvent
Definition VONManager.c:5
ref ScriptInvoker m_OnVonStateEvent
Definition VONManager.c:4

Перекрестные ссылки GetGame(), VONManagerBase::m_OnPartyChatChangedEvent и VONManagerBase::m_OnVonStateEvent.

◆ ~OptionsMenuVideo()

void ~OptionsMenuVideo ( )
inlineprotected
144 {
145 GetGame().EndOptionsVideo();
146 }

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

◆ ~OptionSelectorBase()

void ~OptionSelectorBase ( )
inlineprotected
17 {
18 delete m_Root;
19 }

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

◆ ~ServerBrowserEntry()

void ~ServerBrowserEntry ( )
inlineprotected
89 {
90 delete m_Root;
91 }

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

◆ ~VideoPlayer()

void ~VideoPlayer ( )
inlineprotected
33 {
34 }

◆ ~ObjectFollower()

void ~ObjectFollower ( )
inlineprotected
16 {
17 //GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Remove(Update);
18 }

◆ ~ProfileOptionsUI()

void ~ProfileOptionsUI ( )
inlineprivate
4 {
5 Deattach();
6 }
void Deattach()
Definition ProfileOptionsUI.c:26

◆ ~ProjectedCrosshair()

void ~ProjectedCrosshair ( )
inlineprotected
22 {
23 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Remove(this.Update);
24 }

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

Методы

◆ Add()

void Add ( string label,
Class obj,
string fn_name,
Param params )
inlineprivate
179 {
180 AddEx(label, FadeColors.LIGHT_GREY, obj, fn_name, params);
181 }
Definition EntityAI.c:95
void AddEx(string label, int labelColor, Class obj, string funcName, Param params)
Definition ContextMenu.c:183

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

◆ AddAction()

void AddAction ( int index,
Widget parent,
Input input )
inlineprotected
106 {
107 m_KeyWidgets.Insert( index, new KeybindingElement( index, parent, this ) );
108 }
ref map< int, ref KeybindingElement > m_KeyWidgets
Definition KeybindingsGroup.c:7
void KeybindingElement(int key_index, Widget parent, KeybindingsGroup group)
Definition KeybindingElement.c:23

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

Используется в AddSubgroup().

◆ AddElement()

int AddElement ( string text,
Widget content = null )
inlineprotected
65 {
66 ButtonWidget element = ButtonWidget.Cast( GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/dropdown_prefab/dropdown_element.layout", m_ContentContainer ) );
67 RichTextWidget textWidget = RichTextWidget.Cast(element.FindAnyWidget("dropdown_element_text"));
68 textWidget.SetText( text );
69
70 if( content )
71 {
72 element.AddChild( content, false );
73 }
74 m_ContentContainer.Update();
75 textWidget.Update();
76 m_Root.Update();
77 element.Update();
78
79 m_Content.Insert( element );
80 return m_Content.Count() - 1;
81 }
Definition gameplay.c:316
Widget m_Content
Definition PlayerListScriptedWidget.c:5
Widget m_ContentContainer
Definition DropdownPrefab.c:6

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

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

◆ AddEx()

void AddEx ( string label,
int labelColor,
Class obj,
string funcName,
Param params )
inlineprivate
184 {
185 int count = Count();
186 ButtonWidget menuButton = ButtonWidget.Cast(m_context_menu_root_widget.FindAnyWidget(string.Format("Button%1", count + 1)));
187 if (menuButton)
188 {
189 label.ToUpper();
190 menuButton.SetText(label);
191 menuButton.SetTextColor(labelColor);
192 menuButton.Show(true);
193
194 if (funcName == "")
195 {
196 menuButton.SetFlags(menuButton.GetFlags() | WidgetFlags.IGNOREPOINTER);
197 }
198 else
199 {
200 menuButton.ClearFlags(WidgetFlags.IGNOREPOINTER);
201 }
202
203 int itemWidth = label.Length();
204 if (m_max_item_width < itemWidth)
205 m_max_item_width = itemWidth;
206 }
207
208 m_count++;
209 m_commands.Insert(new CallQueueContext(obj, funcName, params));
210 }
Definition tools.c:16
int Count()
Definition ContextMenu.c:226
ref array< ref CallQueueContext > m_commands
Definition ContextMenu.c:8
int m_max_item_width
Definition ContextMenu.c:9
int m_count
Definition ContextMenu.c:10
WidgetFlags
Definition EnWidgets.c:58

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

Используется в Add() и BuildContextMenu().

◆ AddItem()

void AddItem ( InventoryItem item,
vector data,
vector rotation )
inlineprivate
651 {
652 m_Items.Set(item, data);
653
654 int index = Math.Round(data[0]);
655 int width = Math.Round(data[1]);
656 int height = Math.Round(data[2]);
657
659 Widget item_w_bck = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory/inventoryGridItem.layout", bck);
660 Widget item_w = item_w_bck.FindAnyWidget("GridItem");
661
662 bck.FindAnyWidget("LabelTR").Show( true );
663 bck.FindAnyWidget("LabelCC").Show( false );
664
665 m_ItemWidgets.Insert( index, item_w );
666
668
669 if ( item )
670 {
671 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast( item_w.FindAnyWidget("Preview") );
672 item_preview.SetItem(item);
673 item_preview.SetModelOrientation( rotation );
674 item_preview.SetView( item_preview.GetItem().GetViewIndex() );
675
676 RefreshItemVariables( item, data, true, true );
677 }
678 }
Definition gameplay.c:276
Definition EnMath.c:7
void ResetItemWidget(Widget item_w, int width, int height)
Definition InventoryGrid.c:719
ref TItemsMap m_Items
Definition InventoryGrid.c:50
void RefreshItemVariables(InventoryItem item, vector data, bool show_quantity, bool show_temperature)
Definition InventoryGrid.c:584
ref map< int, Widget > m_ItemWidgets
Definition InventoryGrid.c:49
Widget GetItemBackground(int index)
Definition InventoryGrid.c:347
Definition EnWidgets.c:190
static proto float Round(float f)
Returns mathematical round of value.

Перекрестные ссылки GetGame(), GetItemBackground(), RefreshItemVariables(), ResetItemWidget() и Math::Round().

Используется в UpdateItems() и UpdateQuickbarItems().

◆ AddPlayer()

void AddPlayer ( string name,
string UID,
bool show_permissions )
inlineprotected
176 {
177 if ( m_Entries )
178 {
181 }
182 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
@ UID
Definition ConnectErrorServerModule.c:19
void PlayerListEntryScriptedWidget(Widget parent, string name, string uid, bool show_permissions, PlayerListScriptedWidget tab)
Definition PlayerListEntryScriptedWidget.c:18
int m_TotalEntries
Definition PlayerListScriptedWidget.c:8
ref map< string, ref PlayerListEntryScriptedWidget > m_Entries
Definition PlayerListScriptedWidget.c:6

Перекрестные ссылки m_Entries, name, PlayerListEntryScriptedWidget() и UID.

Используется в Reload() и Reload().

◆ AddSubgroup()

void AddSubgroup ( Widget parent,
Input input )
inlineprotected
88 {
89 Widget subgroup = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/options/keybindings_selectors/keybinding_subgroup.layout", parent );
90 TextWidget subgroup_name = TextWidget.Cast( subgroup.FindAnyWidget( "subgroup_text" ) );
91
92 subgroup_name.SetText( "TestSubgroup" );
93 Widget subgroup_content = subgroup.FindAnyWidget( "subgroup_content" );
94
96 GetUApi().GetActiveInputs(actions);
97 for( int i = 0; i < actions.Count(); i++ )
98 {
100 }
101
102 subgroup_content.Update();
103 }
proto native UAInputAPI GetUApi()
void AddAction(int index, Widget parent, Input input)
Definition KeybindingsGroup.c:105
Definition EnWidgets.c:220
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
array< int > TIntArray
Definition EnScript.c:687

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

Используется в array::CreateSubgroups() и KeybindingsGroup().

◆ AddTab()

int AddTab ( string name)
inlineprotected
162 {
163 int new_index = m_Tabs.Count();
164 Widget tab = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/tabber_prefab/tab.layout", m_Root );
165 Widget control = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/tabber_prefab/tab_control.layout", m_Root.FindAnyWidget( "Tab_Control_Container" ) );
166 TextWidget control_text = TextWidget.Cast( control.FindAnyWidget( "Tab_Control_x_Title" ) );
167
168 tab.SetName( "Tab_" + new_index );
169 control.SetName( "Tab_Control_" + new_index );
170 control_text.SetName( "Tab_Control_" + new_index + "_Title" );
171 control.FindAnyWidget( "Tab_Control_x_Background" ).SetName( "Tab_Control_" + new_index + "_Background" );
172
173 control_text.SetText( name );
174
175 control.SetHandler( this );
177 m_Tabs.Insert( new_index, tab );
178
179 AlignTabbers();
180
181 return new_index;
182 }
void AlignTabbers()
Definition TabberUI.c:108
ref map< int, Widget > m_Tabs
Definition TabberUI.c:9
ref map< int, Widget > m_TabControls
Definition TabberUI.c:8

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

◆ AlignTabbers()

void AlignTabbers ( )
inlineprotected
109 {
110 float total_size;
111 float x, y;
112
113 Widget tab_controls_container = m_TabControlsRoot.FindAnyWidget( "Tab_Control_Container" );
114 Widget tab_controls_scroller = m_TabControlsRoot.FindAnyWidget( "Tab_Control_Scroller" );
115
116 m_TabControlsRoot.Update();
117 tab_controls_container.Update();
118
120 while ( tab_child )
121 {
122 if ( tab_child.IsVisible() )
123 {
124 TextWidget tab_text = TextWidget.Cast( tab_child.FindAnyWidget( tab_child.GetName() + "_Title" ) );
125 int t_x, t_y;
126 tab_text.Update();
127 tab_text.GetTextSize( t_x, t_y );
128 tab_child.SetSize( t_x + 10 * m_ResolutionMultiplier, 1 );
129 tab_controls_container.Update();
130
132 }
133
134 tab_child = tab_child.GetSibling();
135 }
136
137 tab_child = tab_controls_container.GetChildren();
138
139 float x_f_c, y_f_c;
140 tab_controls_container.GetScreenPos( x_f_c, y_f_c );
141
142 while ( tab_child )
143 {
144 Widget tab_bg = tab_child.FindAnyWidget( tab_child.GetName() + "_Background" );
145 tab_child.GetScreenPos( x, y );
146 tab_bg.SetPos( ( x_f_c - x ), 0 );
147 tab_bg.SetSize( total_size, 1 );
148
149 tab_child = tab_child.GetSibling();
150 }
151
152 m_TabControlsRoot.GetSize( x, y );
153
154 m_TabControlsRoot.SetSize( total_size, y );
155 tab_controls_container.Update();
157 tab_controls_scroller.Update();
158 m_TabControlsRoot.Update();
159 }
Icon x
Icon y
float m_ResolutionMultiplier
Definition TabberUI.c:12
Widget m_TabControlsRoot
Definition TabberUI.c:5

Перекрестные ссылки x и y.

◆ Apply() [1/5]

void Apply ( )
inlineprotected
178 {
181 {
182 UAInput input = ua_api.GetInputByID( index );
183 int i;
184 if( element.IsChanged() )
185 {
186 array<int> new_keys = element.GetChangedBinds();
187
188/* if( input.AlternativeCount() == 0 )
189 {
190 input.AddAlternative();
191 }
192 else*/
193 {
194 input.ClearDeviceBind(EUAINPUT_DEVICE_KEYBOARDMOUSE);
195// input.SelectAlternative( 0 );
196// input.ClearAlternative( 0 );
197 }
198
199 if( new_keys.Count() > 0 )
200 {
201 input.BindComboByHash( new_keys.Get( 0 ) );
202 for( i = 1; i < new_keys.Count(); i++ )
203 {
204 input.BindComboByHash( new_keys.Get( i ) );
205 }
206 }
207 }
208
209 if( element.IsAlternateChanged() )
210 {
211 array<int> new_alt_keys = element.GetChangedAlternateBinds();
212
213 if( input.AlternativeCount() == 0 )
214 {
215 input.AddAlternative();
216 }
217
218/* if( input.AlternativeCount() < 2 )
219 {
220 input.AddAlternative();
221 }
222 else*/
223 {
224 input.ClearDeviceBind(EUAINPUT_DEVICE_CONTROLLER);
225// input.SelectAlternative( 1 );
226// input.ClearAlternative( 1 );
227 }
228
229 if( new_alt_keys.Count() > 0 )
230 {
231 input.BindComboByHash( new_alt_keys.Get( 0 ) );
232 for( i = 1; i < new_alt_keys.Count(); i++ )
233 {
234 input.BindComboByHash( new_alt_keys.Get( i ) );
235 }
236 }
237 }
238 element.Reload();
239 }
240 }
Definition UAInput.c:165
Definition UAInput.c:24

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

◆ Apply() [2/5]

void Apply ( )
inlineprotected
372 {
373 #ifdef PLATFORM_CONSOLE
374 bool changed = false;
376 {
377 //on change
378 if ((m_KeyboardSelector.IsEnabled() && m_KeyboardOption.GetIndex() == 0) || (!m_KeyboardSelector.IsEnabled() && m_KeyboardOption.GetIndex() == 1))
379 {
380 m_KeyboardOption.Switch();
381 changed = true;
382 }
383 }
384
385 Focus();
386 GetGame().GetUIManager().ShowUICursor( m_MaKOptionAvailable && m_KeyboardOption.GetIndex() );
387 if (changed)
388 g_Game.UpdateInputDeviceDisconnectWarning();
389
390 m_Menu.Refresh();
391 #endif
392 }
ref SwitchOptionsAccess m_KeyboardOption
Definition OptionsMenuControls.c:22
void Focus()
Definition PlayerListEntryScriptedWidget.c:137
CameraToolsMenu m_Menu
Definition CTEvent.c:8
ref OptionSelectorMultistate m_KeyboardSelector
Definition OptionsMenuControls.c:26

Перекрестные ссылки Focus(), g_Game, GetGame() и m_Menu.

◆ Apply() [3/5]

void Apply ( )
inlineprotected
192 {
193 IngameHud hud = GetHud();
194 InGameMenu menu = InGameMenu.Cast(GetGame().GetUIManager().FindMenu(MENU_INGAME));
195 MissionGameplay mission = MissionGameplay.Cast(GetGame().GetMission());
196
197 g_Game.SetProfileOptionBool(EDayZProfilesOptions.HUD, m_ShowHUDSelector.GetValue());
198 g_Game.SetProfileOptionBool(EDayZProfilesOptions.CROSSHAIR, m_ShowCrosshairSelector.GetValue());
199 g_Game.SetProfileOptionBool(EDayZProfilesOptions.HUD_VEHICLE, m_ShowHUDVehicleSelector.GetValue());
200 g_Game.SetProfileOptionBool(EDayZProfilesOptions.GAME_MESSAGES, m_ShowGameSelector.GetValue());
201 g_Game.SetProfileOptionBool(EDayZProfilesOptions.ADMIN_MESSAGES, m_ShowAdminSelector.GetValue());
202 g_Game.SetProfileOptionBool(EDayZProfilesOptions.PLAYER_MESSAGES, m_ShowPlayerSelector.GetValue());
203 g_Game.SetProfileOptionFloat(EDayZProfilesOptions.HUD_BRIGHTNESS, m_HUDBrightnessSelector.GetValue());
204
205 #ifndef PLATFORM_CONSOLE
206 g_Game.SetProfileOptionBool(EDayZProfilesOptions.QUICKBAR, m_ShowQuickbarSelector.GetValue());
207 g_Game.SetProfileOptionBool(EDayZProfilesOptions.SERVERINFO_DISPLAY, m_ShowServerInfoSelector.GetValue());
208 #endif
209
210 if (hud)
211 {
212 #ifndef PLATFORM_CONSOLE
213 hud.ShowQuickBar(m_ShowQuickbarSelector.GetValue());
214 #else
215 hud.ShowQuickBar(GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer());
216 #endif
217 hud.ShowHud(m_ShowHUDSelector.GetValue());
218 hud.SetVehicleHudDisabled(!m_ShowHUDVehicleSelector.GetValue());
219 }
220
221 bool bleedingIndicationOld = g_Game.GetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION);
223 bool connectivityOld = g_Game.GetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO);
224 bool connectivityNew = m_ConnectivityInfo.GetValue();
225
226 g_Game.SetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION, bleedingIndicationNew);
227 g_Game.SetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO, connectivityNew);
228
229 if (mission)
230 {
231 //BLEEDINGINDICATION changed
233 {
235 }
236
237 //CONNECTIVITY_INFO changed
239 {
240 mission.GetConnectivityInvoker().Invoke(connectivityNew);
241 }
242 }
243
244 #ifndef PLATFORM_CONSOLE
245 if (menu)
246 {
247 menu.SetServerInfoVisibility(m_ShowServerInfoSelector.GetValue());
248 }
249 #endif
250
251 if (m_LanguageOption.IsChanged()) //language changed
252 {
253 if (mission)
254 {
256 }
257 else
258 {
259 ErrorEx("mission not found!", ErrorExSeverity.INFO);
260 }
261 }
262 }
Mission mission
Definition DisplayStatus.c:28
EDayZProfilesOptions
Definition EDayZProfilesOptions.c:2
void ResetGUI()
Definition gameplay.c:712
IngameHud GetHud()
Definition ItemActionsWidget.c:735
ref OptionSelectorMultistate m_ShowServerInfoSelector
Definition OptionsMenuGame.c:33
ref OptionSelectorMultistate m_BleedingIndication
Definition OptionsMenuGame.c:34
ref OptionSelectorMultistate m_ShowCrosshairSelector
Definition OptionsMenuGame.c:27
ref OptionSelectorMultistate m_ShowGameSelector
Definition OptionsMenuGame.c:30
ref OptionSelectorSlider m_HUDBrightnessSelector
Definition OptionsMenuGame.c:36
ref OptionSelectorMultistate m_ShowQuickbarSelector
Definition OptionsMenuGame.c:28
ref OptionSelectorMultistate m_ShowAdminSelector
Definition OptionsMenuGame.c:31
void OnBleedingIndicationChanged(bool state)
Definition OptionsMenuGame.c:548
ref OptionSelectorMultistate m_ShowHUDVehicleSelector
Definition OptionsMenuGame.c:29
ref OptionSelectorMultistate m_ShowHUDSelector
Definition OptionsMenuGame.c:26
ref ListOptionsAccess m_LanguageOption
Definition OptionsMenuGame.c:17
ref OptionSelectorMultistate m_ShowPlayerSelector
Definition OptionsMenuGame.c:32
ref OptionSelectorMultistate m_ConnectivityInfo
Definition OptionsMenuGame.c:35
ErrorExSeverity
Definition EnDebug.c:62
enum ShapeType ErrorEx
const int MENU_INGAME
Definition constants.c:176

Перекрестные ссылки ErrorEx, g_Game, GetGame(), GetHud(), MENU_INGAME, mission, OnBleedingIndicationChanged() и Mission::ResetGUI().

◆ Apply() [4/5]

void Apply ( )
inlineprivate
273 {
274 g_Game.SetProfileOptionInt(EDayZProfilesOptions.AMBIENT_MUSIC_MODE, m_AmbientMusicSelector.GetValue());
275 }
ref OptionSelectorMultistate m_AmbientMusicSelector
Definition OptionsMenuSounds.c:25

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

◆ Apply() [5/5]

void Apply ( )
inlineprotected
262 {
263
264 }

◆ Attach()

void Attach ( int profileOption,
array< Widget > widget_array )
inlineprivate
9 {
13
14 for (int i = 0; i < m_widget_array.Count(); i++)
15 {
17 if (m_widget)
18 {
19 m_widget.SetHandler(this);
20
21 Init();
22 }
23 }
24 }
Widget m_widget
Definition ProfileOptionsUI.c:100
int m_profileOption
Definition ProfileOptionsUI.c:99
void Init()
Definition MainMenuPromo.c:48
ref array< Widget > m_widget_array
Definition ProfileOptionsUI.c:101

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

◆ BannerHandlerBase()

void BannerHandlerBase ( Widget parent)
inlineprotected
10 {
11 m_Parent = parent;
12 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/dlc_panels/BannerTemplate.layout", m_Parent);
13 m_Root.SetHandler(this);
14
15 m_BannerBody = m_Root.FindAnyWidget("BadgeBody");
16 m_BannerWedge = m_Root.FindAnyWidget("BadgeWedge");
17 m_BannerText = TextWidget.Cast(m_Root.FindAnyWidget("BadgeText"));
18
19 m_BannerBody.SetAlpha(1.0);
20 m_BannerWedge.SetAlpha(1.0);
21 }
LayoutHolder m_Parent
Definition LayoutHolder.c:6
Widget m_BannerWedge
Definition BannerHandlerBase.c:6
Widget m_BannerBody
Definition BannerHandlerBase.c:5
TextWidget m_BannerText
Definition BannerHandlerBase.c:7

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

Используется в Init().

◆ BuildContextMenu()

void BuildContextMenu ( notnull EntityAI entity,
notnull Widget rootWidget,
Class target )
inlineprivate
257 {
258 Clear();
259
261 entity.GetDebugActions(customActions);
262
263 int actionsCount = customActions.Count();
264 for (int i = 0; i < customActions.Count(); i++)
265 {
267 if (actionInfo)
268 {
269 int actionId = actionInfo.param2;
270 int textColor = actionInfo.param4;
271 string actionText = actionInfo.param3;
272
273 if (actionId == EActions.SEPARATOR)
275 else
277 }
278 }
279 }
EActions
Definition EActions.c:2

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

◆ BuildCursor()

void BuildCursor ( )
inlineprotected

weapon specific

transmitter/PAS specific

133 {
134 m_ItemFrozen = false;
135 int health = -1;
136 int quantityType = 0;
137 int quantityMin = -1;
138 int quantityMax = -1;
139 float quantityCurrent = -1.0;
140
141 // item health
144 SetItemHealth(health, "ia_item", "ia_item_health_mark", m_HealthEnabled);
145
146 // quantity
148 if (m_EntityInHands && m_EntityInHands.IsWeapon())
149 {
150 SetWeaponQuantity(0, 0, "ia_item", "ia_item_quantity_pb", "ia_item_quantity_text", m_QuantityEnabled);
151 SetWeaponModeAndZeroing("ia_item_subdesc", "ia_item_subdesc_up", "ia_item_subdesc_down", true);
152 }
154 else if (m_EntityInHands && m_EntityInHands.IsTransmitter())
155 {
156 SetRadioFrequency(GetRadioFrequency(), "ia_item_subdesc", "ia_item_subdesc_up", "ia_item_subdesc_down", m_QuantityEnabled);
158 SetItemQuantity(quantityType, quantityCurrent, quantityMin, quantityMax, "ia_item", "ia_item_quantity_pb", "ia_item_quantity_text", true);
159 }
160 else
161 {
163 SetItemQuantity(quantityType, quantityCurrent, quantityMin, quantityMax, "ia_item", "ia_item_quantity_pb", "ia_item_quantity_text", m_QuantityEnabled);
164 SetWeaponModeAndZeroing("ia_item_subdesc", "", "", false);
165 }
166
167 SetItemDesc(m_EntityInHands, GetItemDesc(m_EntityInHands), "ia_item", "ia_item_desc");
168 SetInteractActionIcon("ia_interact", "ia_interact_icon_frame", "ia_interact_btn_inner_icon", "ia_interact_btn_text");
169 SetActionWidget(m_Interact, GetActionDesc(m_Interact), "ia_interact", "ia_interact_action_name");
170
171 SetInteractActionIcon("ia_continuous_interact", "ia_continuous_interact_icon_frame", "ia_continuous_interact_btn_inner_icon", "ia_continuous_interact_btn_text");
172 SetActionWidget(m_ContinuousInteract, GetActionDesc(m_ContinuousInteract), "ia_continuous_interact", "ia_continuous_interact_action_name");
173
174 SetActionWidget(m_Single, GetActionDesc(m_Single), "ia_single", "ia_single_action_name");
175 SetActionWidget(m_Continuous, GetActionDesc(m_Continuous), "ia_continuous", "ia_continuous_action_name");
176 SetMultipleInteractAction("ia_interact_mlt_wrapper");
177 SetMultipleContinuousInteractAction("ia_continuous_interact_mlt_wrapper");
178 SetMultipleItemAction("ia_single_mlt_wrapper");
179 SetMultipleContinuousItemAction("ia_continuous_mlt_wrapper");
180 }
float quantityMax
Definition CfgPlayerSpawnDataJson.c:209
float quantityMin
Definition CfgPlayerSpawnDataJson.c:208
ActionBase m_Interact
Definition ItemActionsWidget.c:5
void SetMultipleContinuousInteractAction(string multiActionsWidget)
shows arrows near the interact action if there are more than one available
Definition ItemActionsWidget.c:657
void SetInteractActionIcon(string actionWidget, string actionIconFrameWidget, string actionIconWidget, string actionIconTextWidget)
Definition ItemActionsWidget.c:682
void SetItemHealth(int health, string itemWidget, string healthWidget, bool enabled)
Definition ItemActionsWidget.c:361
string GetActionDesc(ActionBase action)
Definition ItemActionsWidget.c:276
void SetMultipleContinuousItemAction(string multiActionsWidget)
shows arrows near the interact action if there are more than one available
Definition ItemActionsWidget.c:674
ActionBase m_Continuous
Definition ItemActionsWidget.c:8
bool m_ItemFrozen
Definition ItemActionsWidget.c:24
void SetMultipleItemAction(string multiActionsWidget)
Definition ItemActionsWidget.c:665
void SetWeaponQuantity(int chamber, int mag, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
Definition ItemActionsWidget.c:475
ActionBase m_Single
Definition ItemActionsWidget.c:7
void SetItemDesc(EntityAI entity, string descText, string itemWidget, string descWidget)
Definition ItemActionsWidget.c:343
void SetItemQuantity(int type, float current, int min, int max, string itemWidget, string quantityPBWidget, string quantityTextWidget, bool enabled)
Definition ItemActionsWidget.c:424
EntityAI m_EntityInHands
Definition ItemActionsWidget.c:4
float GetItemQuantity(InventoryItem item)
Definition InventoryGrid.c:26
bool GetItemFrozen()
Definition ItemActionsWidget.c:292
string GetItemDesc(EntityAI entity)
Definition ItemActionsWidget.c:284
void SetWeaponModeAndZeroing(string itemWidget, string upWidget, string downWidget, bool enabled)
Definition ItemActionsWidget.c:565
void SetRadioFrequency(string freq, string itemWidget, string upWidget, string downWidget, bool enabled)
Definition ItemActionsWidget.c:598
ActionBase m_ContinuousInteract
Definition ItemActionsWidget.c:6
string GetRadioFrequency()
Definition ItemActionsWidget.c:331
bool m_HealthEnabled
Definition ItemActionsWidget.c:18
int GetItemHealth()
Definition ItemActionsWidget.c:297
void SetActionWidget(ActionBase action, string descText, string actionWidget, string descWidget)
Definition ItemActionsWidget.c:619
void SetMultipleInteractAction(string multiActionsWidget)
shows arrows near the interact action if there are more than one available
Definition ItemActionsWidget.c:648
bool m_QuantityEnabled
Definition ItemActionsWidget.c:19

Перекрестные ссылки GetActionDesc(), GetItemDesc(), GetItemFrozen(), GetItemHealth(), GetItemQuantity(), GetRadioFrequency(), quantityMax, quantityMin, SetActionWidget(), SetInteractActionIcon(), SetItemDesc(), SetItemHealth(), SetItemQuantity(), SetMultipleContinuousInteractAction(), SetMultipleContinuousItemAction(), SetMultipleInteractAction(), SetMultipleItemAction(), SetRadioFrequency(), SetWeaponModeAndZeroing() и SetWeaponQuantity().

Используется в Update().

◆ BuildLayout()

void BuildLayout ( Widget parent_widget)
inlineprotected
94 {
95 // Create the layout
96 m_RootFrame = m_Game.GetWorkspace().CreateWidgets(m_RootPath, parent_widget);
97
98 if (m_RootFrame)
99 {
100 // Find Widgets
101 m_SpacerFrame = m_RootFrame.FindAnyWidget("GridSpacerWidget1");
102 m_UiLeftButton = ButtonWidget.Cast(m_RootFrame.FindAnyWidget("LeftButton"));
103 m_UiRightButton = ButtonWidget.Cast(m_RootFrame.FindAnyWidget("RightButton"));
104 m_UiHeadlineLabel = TextWidget.Cast(m_RootFrame.FindAnyWidget("HeadlineLabel"));
105 m_UiDescLabel = RichTextWidget.Cast(m_RootFrame.FindAnyWidget("HintDescLabel"));
106 m_UiHintImage = ImageWidget.Cast(m_RootFrame.FindAnyWidget("HintImage"));
107 m_UiPageingLabel = TextWidget.Cast(m_RootFrame.FindAnyWidget("PageInfoLabel"));
108 // Set handler
109 m_RootFrame.SetHandler(this);
110 }
111 }
ImageWidget m_UiHintImage
Definition UiHintPanel.c:22
ButtonWidget m_UiRightButton
Definition UiHintPanel.c:19
string m_RootPath
Definition UiHintPanel.c:13
Widget m_SpacerFrame
Definition UiHintPanel.c:17
RichTextWidget m_UiDescLabel
Definition UiHintPanel.c:20
TextWidget m_UiHeadlineLabel
Definition UiHintPanel.c:21
DayZGame m_Game
Definition UiHintPanel.c:27
TextWidget m_UiPageingLabel
Definition UiHintPanel.c:23
ButtonWidget m_UiLeftButton
Definition UiHintPanel.c:18

Перекрестные ссылки m_Game, m_RootFrame, m_RootPath, m_SpacerFrame, m_UiDescLabel, m_UiHeadlineLabel, m_UiHintImage, m_UiLeftButton, m_UiPageingLabel и m_UiRightButton.

Используется в Init().

◆ ButtonSetAlphaAnimConsole()

void ButtonSetAlphaAnimConsole ( Widget w)
inlineprotected
275 {
276 if (!w)
277 return;
278
279 Widget panel = w.FindAnyWidget(w.GetName() + "_panel");
280
281 if (panel)
282 {
283 //m_Root.SetWidgetAnimAlpha(panel);
284 }
285 }

◆ ButtonSetColor()

void ButtonSetColor ( Widget w,
int color )
inlineprotected
221 {
222 Widget option = w.FindAnyWidget(w.GetName() + "_image");
223
224 if (option)
225 {
226 option.SetColor(color);
227 }
228 }

◆ ButtonSetColorConsole()

void ButtonSetColorConsole ( Widget w,
int color )
inlineprotected
270 {
271 w.SetColor(color);
272 }

◆ ButtonSetTextColorConsole()

void ButtonSetTextColorConsole ( Widget w,
int color )
inlineprotected
288 {
289 if (!w)
290 return;
291
292 TextWidget label = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_label"));
293 TextWidget text = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text"));
294 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget(w.GetName() + "_text_1"));
295
296 if (label)
297 {
298 label.SetColor(color);
299 }
300
301 if (text)
302 {
303 text.SetColor(color);
304 }
305
306 if (text2)
307 {
308 text2.SetColor(color);
309 }
310 }

◆ CanAddItemInHandToInventory() [1/2]

bool CanAddItemInHandToInventory ( )
inlineprivate
29{}

◆ CanAddItemInHandToInventory() [2/2]

bool CanAddItemInHandToInventory ( )
inlineprotected
74 {
76 }
bool m_CanAddItemInHandToInventory
Definition InventoryGrid.c:57

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

◆ CancelEnteringAlternateKeybind() [1/3]

void CancelEnteringAlternateKeybind ( )
inlineprotected
226 {
227 Reload();
228 }
void Reload()
Definition KeybindingElement.c:122

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

◆ CancelEnteringAlternateKeybind() [2/3]

void CancelEnteringAlternateKeybind ( )
inlineprotected
224 {
225 Reload();
226 }

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

◆ CancelEnteringAlternateKeybind() [3/3]

void CancelEnteringAlternateKeybind ( )
inlineprotected
157 {
159 {
160 m_KeyWidgets.Get( m_CurrentSettingAlternateKeyIndex ).CancelEnteringAlternateKeybind();
162 }
163 }
int m_CurrentSettingAlternateKeyIndex
Definition KeybindingsGroup.c:9

◆ CancelEnteringKeybind() [1/3]

void CancelEnteringKeybind ( )
inlineprotected
215 {
216 Reload();
217 }

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

◆ CancelEnteringKeybind() [2/3]

void CancelEnteringKeybind ( )
inlineprotected
213 {
214 Reload();
215 }

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

◆ CancelEnteringKeybind() [3/3]

void CancelEnteringKeybind ( )
inlineprotected
141 {
142 if( m_CurrentSettingKeyIndex != -1 )
143 {
144 m_KeyWidgets.Get( m_CurrentSettingKeyIndex ).CancelEnteringKeybind();
146 }
147 }
int m_CurrentSettingKeyIndex
Definition KeybindingsGroup.c:8

◆ CanSwitchTab()

bool CanSwitchTab ( )
inlineprotected
201 {
202 return m_CanSwitch;
203 }
bool m_CanSwitch
Definition TabberUI.c:13

◆ CheckForActionWidgetOverrides()

void CheckForActionWidgetOverrides ( )
inlineprotected
722 {
724 typename actionName;
725 if (Class.CastTo(item, m_EntityInHands) && item.GetActionWidgetOverride(actionName))
726 {
727 ActionBase action = ActionManagerBase.GetAction(actionName);
728 if (action)
729 {
731 }
732 }
733 }
Definition ActionBase.c:53
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition InventoryItem.c:731
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

Перекрестные ссылки Class::CastTo().

Используется в Update().

◆ CheckRefresherFlagVisibility()

void CheckRefresherFlagVisibility ( )
inlineprotected
708 {
709 Widget w = m_Root.FindAnyWidget("ia_item_flag_icon");
710 if (m_Player && m_Player.GetHologramLocal())
711 {
712 EntityAI entity = m_Player.GetHologramLocal().GetProjectionEntity();
713 w.Show(entity.IsRefresherSignalingViable() && m_Player.IsTargetInActiveRefresherRange(entity));
714 }
715 else if (w.IsVisible())
716 {
717 w.Show(false);
718 }
719 }
Definition Building.c:6
PlayerBase m_Player
Definition ContinuousActionProgress.c:5

Перекрестные ссылки m_Player и m_Root.

Используется в ActionTargetsCursor::Update() и Update().

◆ Clear()

void Clear ( )
inlineprivate
233 {
234 int i;
235
236 m_commands.Clear();
237
239 return;
241 while(child)
242 {
244 if(button)
245 {
246 button.Show(false);
247 }
248 child = child.GetSibling();
249
250
251 }
252 m_count = 0;
254 }
Widget m_context_menu_panel_widget
Definition ContextMenu.c:7

Используется в BuildContextMenu(), Hide() и ~ContextMenu().

◆ ClearAlternativeKeybind()

void ClearAlternativeKeybind ( int key_index)
inlineprotected
129 {
130 m_Menu.ClearAlternativeKeybind( key_index );
131 }

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

◆ ClearDetails()

void ClearDetails ( )
inlineprotected
134 {
135 m_ServerNameText.SetText("#STR_server_browser_details_no_server_selected");
136 m_ServerTypeResult.SetText("-");
137 m_ServerModeResult.SetText("-");
138 m_ServerIP.SetText("-");
139 m_TimeIcon.Show(false);
140 m_TimeAccelerationResult.Show(true);
141 m_TimeAccelerationResult.SetText("-");
142 }
TextWidget m_ServerTypeResult
Definition ServerBrowserDetailsContainer.c:7
TextWidget m_ServerModeResult
Definition ServerBrowserDetailsContainer.c:8
ImageWidget m_TimeIcon
Definition ServerBrowserDetailsContainer.c:20
TextWidget m_ServerNameText
Definition ServerBrowserDetailsContainer.c:6
TextWidget m_TimeAccelerationResult
Definition ServerBrowserDetailsContainer.c:19
TextWidget m_ServerIP
Definition ServerBrowserDetailsContainer.c:10

Используется в SetDetails().

◆ ClearKeybind()

void ClearKeybind ( int key_index)
inlineprotected
124 {
125 m_Menu.ClearKeybind( key_index );
126 }

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

◆ Close() [1/2]

void Close ( )
inlineprotected
95 {
96 if( m_IsExpanded )
97 {
102
103 m_Root.Update();
104 m_Parent.Update();
105 }
106 }
ScrollWidget m_Scroller
Definition DropdownPrefab.c:5
ImageWidget m_ImageCollapse
Definition DropdownPrefab.c:13
ImageWidget m_ImageExpand
Definition DropdownPrefab.c:12
bool m_IsExpanded
Definition DropdownPrefab.c:15

Перекрестные ссылки m_IsExpanded, m_Parent и m_Root.

Используется в OnMouseButtonUp().

◆ Close() [2/2]

void Close ( )
inlineprotected
47 {
48 Highlight( null );
49 m_Root.Show( false );
50 GetGame().GetMission().GetOnModMenuVisibilityChanged().Invoke(true);
51 }
void Highlight(ModInfo mod_ref)
Definition ModsMenuDetailed.c:68

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

◆ ColorDisabled()

void ColorDisabled ( Widget w)
inlineprotected
197 {
198 if (!w)
199 return;
200
201 int color_pnl = ARGB(0, 0, 0, 0);
202 int color_lbl = ARGB(120, 255, 255, 255);
203
205
206 Widget title_label = w.FindAnyWidget(w.GetName() + "_label");
207 Widget option_label = w.FindAnyWidget("option_label");
208
209 if (title_label)
210 {
211 title_label.SetColor(color_lbl);
212 }
213
214 if (option_label)
215 {
216 option_label.SetColor(color_lbl);
217 }
218 }
void ButtonSetColor(Widget w, int color)
Definition OptionSelectorBase.c:220
int ARGB(int a, int r, int g, int b)
Definition proto.c:322

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

◆ ColorDisabledConsole()

void ColorDisabledConsole ( Widget w)
inlineprotected
257 {
258 if (!w)
259 return;
260
261 int color_pnl = ARGB(0, 0, 0, 0);
262 int color_lbl = ARGB(120, 255, 255, 255);
263
267 }
void ButtonSetColorConsole(Widget w, int color)
Definition OptionSelectorBase.c:269
void ButtonSetAlphaAnimConsole(Widget w)
Definition OptionSelectorBase.c:274
void ButtonSetTextColorConsole(Widget w, int color)
Definition OptionSelectorBase.c:287

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

◆ ColorFocussed()

void ColorFocussed ( Widget w,
int x,
int y )
inlineprotected
138 {
139 m_Background.SetColor(ARGB(255,54,16,16));
140 }
Widget m_Background
Definition MainMenuPromo.c:11

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

◆ ColorHighlight()

void ColorHighlight ( Widget w)
inlineprotected
165 {
166 if (!w)
167 return;
168
169 ButtonSetColor(w, ARGB(255, 255, 0, 0));
170 }

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

◆ ColorHighlightConsole()

void ColorHighlightConsole ( Widget w)
inlineprotected
231 {
232 if (!w)
233 return;
234
235 int color_pnl = ARGB(255, 200, 0, 0);
236 int color_lbl = ARGB(255, 255, 255, 255);
237
241 }

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

◆ ColorNormal()

void ColorNormal ( Widget w)
inlineprotected
173 {
174 if (!w)
175 return;
176
177 int color_pnl = ARGB(255, 255, 255, 255);
178 int color_lbl = ARGB(255, 255, 255, 255);
179
181
182 Widget title_label = w.FindAnyWidget(w.GetName() + "_label");
183 Widget option_label = w.FindAnyWidget("option_label");
184
185 if (title_label)
186 {
187 title_label.SetColor(color_lbl);
188 }
189
190 if (option_label)
191 {
192 option_label.SetColor(color_lbl);
193 }
194 }

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

◆ ColorNormalConsole()

void ColorNormalConsole ( Widget w)
inlineprotected
244 {
245 if (!w)
246 return;
247
248 int color_pnl = ARGB(0, 0, 0, 0);
249 int color_lbl = ARGB(255, 255, 255, 255);
250
254 }

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

◆ ColorRed() [1/2]

void ColorRed ( Widget w)
inlineprotected
698 {
699 SetFocus( w );
701 if (Class.CastTo(button,w))
702 {
703 button.SetTextColor( ARGB( 255, 255, 0, 0 ) );
704 button.SetAlpha( 0.9 );
705 }
706 }
proto native void SetFocus(Widget w)

Перекрестные ссылки ARGB(), Class::CastTo() и SetFocus().

◆ ColorRed() [2/2]

void ColorRed ( Widget w,
int x,
int y )
inlineprotected
183 {
184 SetFocus( w );
185 if( w.IsInherited( ButtonWidget ) )
186 {
188 button.SetTextColor( ARGB( 255, 255, 0, 0 ) );
189 button.SetAlpha( 0.9 );
190 }
191
192 TextWidget text = TextWidget.Cast(w.FindWidget( w.GetName() + "_text" ) );
193 TextWidget text2 = TextWidget.Cast(w.FindWidget( w.GetName() + "_text_1" ) );
194 ImageWidget image = ImageWidget.Cast( w.FindWidget( w.GetName() + "_image" ) );
195
196 if( text )
197 {
198 text.SetColor( ARGB( 255, 255, 0, 0 ) );
199 }
200
201 if( text2 )
202 {
203 text2.SetColor( ARGB( 255, 255, 0, 0 ) );
204 }
205
206 if( image )
207 {
208 image.SetColor( ARGB( 255, 255, 0, 0 ) );
209 }
210 }

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

Используется в OnFocus() и OnMouseEnter().

◆ ColorUnfocussed()

void ColorUnfocussed ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
143 {
145 }
int m_ColorBackgroundOriginal
Definition MainMenuPromo.c:7

◆ ColorWhite() [1/2]

void ColorWhite ( Widget w,
Widget enterW )
inlineprotected
709 {
711 if (Class.CastTo(button,w))
712 {
713 button.SetTextColor( ARGB( 255, 255, 255, 255 ) );
714 button.SetAlpha( 0.0 );
715 }
716 }

Перекрестные ссылки ARGB() и Class::CastTo().

◆ ColorWhite() [2/2]

void ColorWhite ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
213 {
214 if( w.IsInherited( ButtonWidget ) )
215 {
217 button.SetTextColor( ARGB( 255, 255, 255, 255 ) );
218 button.SetAlpha( 0.75 );
219 }
220
221 TextWidget text = TextWidget.Cast(w.FindWidget( w.GetName() + "_text" ) );
222 TextWidget text2 = TextWidget.Cast(w.FindWidget( w.GetName() + "_text_1" ) );
223 ImageWidget image = ImageWidget.Cast( w.FindWidget( w.GetName() + "_image" ) );
224
225 if( text )
226 {
227 text.SetColor( ARGB( 255, 255, 255, 255 ) );
228 }
229
230 if( text2 )
231 {
232 text2.SetColor( ARGB( 255, 255, 255, 255 ) );
233 }
234
235 if( image )
236 {
237 image.SetColor( ARGB( 255, 255, 255, 255 ) );
238 }
239 }

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

Используется в OnFocusLost() и OnMouseLeave().

◆ ContextMenu()

void ContextMenu ( )
inlineprivate
16 {
18 m_count = 0;
19 }

Используется в DisplayContextMenu().

◆ ContinuousActionProgress()

void ContinuousActionProgress ( )
inlineprotected
22 {
23 m_Action = null;
24 m_ActionState = -1;
25 m_AM = null;
28 m_Radial = null;
29 m_Speed = 0;
30 m_InitProgress = 100;
31
32 m_FadeTimer = new WidgetFadeTimer;
33 m_Faded = true;
34
35 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Insert(Update);
36 }
ActionManagerBase m_AM
Definition ContinuousActionProgress.c:8
float m_Speed
Definition ContinuousActionProgress.c:14
int m_ActionState
Definition ContinuousActionProgress.c:7
ref WidgetFadeTimer m_FadeTimer
Definition ContinuousActionProgress.c:10
ref RadialProgressBar m_Radial
Definition ContinuousActionProgress.c:19
bool m_Faded
Definition ContinuousActionProgress.c:11
float m_InitProgress
Definition ContinuousActionProgress.c:13
ImageWidget m_LoaderImage
Definition ContinuousActionProgress.c:18
ActionBase m_Action
Definition ContinuousActionProgress.c:6
Widget m_RadialWidget
Definition ContinuousActionProgress.c:17

Перекрестные ссылки CALL_CATEGORY_GUI, GetGame(), m_Action, m_AM и Update().

◆ Count()

int Count ( )
inlineprivate
227 {
228 return m_commands.Count();
229 }

Используется в AddEx().

◆ CreateFollowedObject()

void CreateFollowedObject ( string type)
inlineprotected
22 {
23 m_FollowedObject = EntityAI.Cast( GetGame().CreateObject( type, m_Position, true ) );
26 }
void SetRotation(vector dir)
Definition CTObjectFollower.c:57
void SetPosition(vector pos)
Definition CTKeyframe.c:87
vector m_Position
Definition CTKeyframe.c:7
vector m_Orientation
Definition CTKeyframe.c:8
EntityAI m_FollowedObject
Definition CTObjectFollower.c:8

Перекрестные ссылки GetGame(), m_Orientation, m_Position, SetPosition() и SetRotation().

◆ CreateRootWidget()

void CreateRootWidget ( Widget parent)
inlineprotected
69 {
70 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/dlc_panels/DLC_Panel.layout", parent);
71 }

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

Используется в MainMenuDlcHandlerBase().

◆ CreateVideoLoadingEntry()

void CreateVideoLoadingEntry ( string entryName)
inlineprivate
97 {
98 Widget entry = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/video_player_entry.layout", m_LoadVideo);
99 ButtonWidget entryButton = ButtonWidget.Cast(entry.GetChildren());
100 entryButton.SetText(entryName);
101 entryButton.SetUserID(333);
102 }
GridSpacerWidget m_LoadVideo
Definition VideoPlayer.c:14

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

Используется в InitVideoLoading().

◆ CreditsElement()

void CreditsElement ( int index,
Widget parent )
inlineprotected
6 {
7
8 }

◆ CTEvent()

void CTEvent ( int index,
int actor,
Widget root,
bool walk,
CameraToolsMenu parent )
inlineprotected
20 {
21 m_Menu = parent;
22 m_Index = index;
24
25 m_Root = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/camera_tools/event_entry.layout", root );
26 m_IndexWidget = TextWidget.Cast( m_Root.FindAnyWidget( "event_id" ) );
27 m_EventActorWidget = EditBoxWidget.Cast( m_Root.FindAnyWidget( "event_actor_edit" ) );
28 m_EventTimeWidget = EditBoxWidget.Cast( m_Root.FindAnyWidget( "event_time_edit" ) );
29 m_EventTypeWidget = EditBoxWidget.Cast( m_Root.FindAnyWidget( "event_type_edit" ) );
30 m_EventWalkWidget = CheckBoxWidget.Cast( m_Root.FindAnyWidget( "auto_walk" ) );
31
32 m_EventWalkWidget.SetChecked( walk );
33 m_IndexWidget.SetText( m_Index.ToString() );
34 m_EventActorWidget.SetText( m_ActorIndex.ToString() );
35 m_Root.SetHandler( this );
36 }
Definition EnWidgets.c:354
TextWidget m_IndexWidget
Definition CTEvent.c:11
EditBoxWidget m_EventActorWidget
Definition CTEvent.c:12
EditBoxWidget m_EventTimeWidget
Definition CTEvent.c:13
int m_Index
Definition CTEvent.c:3
CheckBoxWidget m_EventWalkWidget
Definition CTEvent.c:15
EditBoxWidget m_EventTypeWidget
Definition CTEvent.c:14
int m_ActorIndex
Definition CTEvent.c:4

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

◆ CTKeyframe()

void CTKeyframe ( int index,
vector pos,
vector orient,
float int_value,
float fov,
float dof,
int pin,
float time_before,
Widget root,
CameraToolsMenu parent )
inlineprotected
20 {
21 m_Menu = parent;
22
23 m_Root = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/camera_tools/keyframe_entry.layout", root );
24
25 m_IndexWidget = TextWidget.Cast( m_Root.FindAnyWidget( "keyframe_id" ) );
26 m_InterpTimeWidget = EditBoxWidget.Cast( m_Root.FindAnyWidget( "keyframe_time_edit" ) );
27 m_FOVWidget = EditBoxWidget.Cast( m_Root.FindAnyWidget( "keyframe_fov_edit" ) );
28 m_DOFWidget = EditBoxWidget.Cast( m_Root.FindAnyWidget( "keyframe_dof_edit" ) );
29 m_PinWidget = EditBoxWidget.Cast( m_Root.FindAnyWidget( "keyframe_pin_edit" ) );
30 m_TotalTimeWidget = TextWidget.Cast( m_Root.FindAnyWidget( "keyframe_time" ) );
31
32 m_Index = index;
34 m_Position = pos;
36
38 SetFOV( fov );
39 SetDOF( dof );
40 SetPin( pin );
41 m_IndexWidget.SetText( m_Index.ToString() );
42 m_Root.SetHandler( this );
43 }
EditBoxWidget m_PinWidget
Definition CTKeyframe.c:16
TextWidget m_TotalTimeWidget
Definition CTKeyframe.c:17
EditBoxWidget m_DOFWidget
Definition CTKeyframe.c:15
float m_TotalTimeBefore
Definition CTKeyframe.c:5
EditBoxWidget m_FOVWidget
Definition CTKeyframe.c:14
void SetInterpTime(float time)
Definition CTKeyframe.c:113
void SetFOV(float fov)
Definition CTKeyframe.c:67
void SetPin(int pin)
Definition CTKeyframe.c:57
EditBoxWidget m_InterpTimeWidget
Definition CTKeyframe.c:13
void SetDOF(float dof)
Definition CTKeyframe.c:77

Перекрестные ссылки GetGame(), m_Menu, m_Orientation, m_Position, m_Root, SetDOF(), SetFOV(), SetInterpTime() и SetPin().

◆ Darken()

void Darken ( Widget w,
int x,
int y )
inlineprivate
766 {
767 if (m_Selected)
768 return;
769
770 switch (w)
771 {
772 case m_Root:
773 case m_Favorite:
774 {
775 m_Root.SetColor(ARGB(255, 200, 0, 0));
777 UpdateColors();
778 break;
779 }
780 }
781 }
void UpdateColors()
Definition ServerBrowserEntry.c:694
bool m_Selected
Definition PlayerListEntryScriptedWidget.c:16
Widget m_Favorite
Definition ServerBrowserEntry.c:4
ref GetServersResultRow m_ServerData
Definition ServerBrowserEntry.c:34
void SetPopulationEx(GetServersResultRow serverInfo)
Definition ServerBrowserEntry.c:339

Перекрестные ссылки ARGB(), m_Favorite, m_Root, m_Root, SetPopulationEx() и UpdateColors().

Используется в OnFocus(), OnSelect() и UpdateEntry().

◆ Deattach()

void Deattach ( )
inlineprivate
27 {
28 //m_profileOption = NULL;
29 if (m_widget_array && m_widget_array.Count() > 0)
30 {
31 for (int i = 0; i < m_widget_array.Count(); i++)
32 {
34 if (m_widget)
35 {
36 m_widget.SetHandler(NULL);
37 m_widget = NULL;
38 }
39 }
40 }
41 }

◆ Deselect() [1/3]

void Deselect ( )
inlineprotected
216 {
217 if( m_Selected )
218 {
219 m_Selected = false;
220 }
221 }

Используется в OnFocusLost(), OnMouseLeave() и UpdateEntry().

◆ Deselect() [2/3]

void Deselect ( )
inlineprotected
83 {
84 m_Root.SetColor( ARGBF( m_Root.GetAlpha(), 0.2, 0.2, 0.2 ) );
85
86 m_Detail.Show(false);
87 m_IconBig.Show( false );
88 m_IconSmall.Show( true );
89 m_IconCollapse.SetImage( 0 );
90 m_Detail.Update();
91 m_Root.Update();
92 m_IsOpen = false;
93 }
bool m_IsOpen
Definition ModsMenuDetailedEntry.c:23
ImageWidget m_IconBig
Definition ModsMenuDetailedEntry.c:12
ImageWidget m_IconSmall
Definition ModsMenuDetailedEntry.c:7
Widget m_Detail
Definition ModsMenuDetailedEntry.c:4
ImageWidget m_IconCollapse
Definition ModsMenuDetailedEntry.c:8
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.
Definition proto.c:332

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

◆ Deselect() [3/3]

void Deselect ( )
inlineprivate
684 {
685 if (m_Selected)
686 {
687 m_ServerData.m_IsSelected = false;
688 m_Selected = false;
689
690 Lighten(m_Root, null, 0, 0);
691 }
692 }
void Lighten(Widget w, Widget enterW, int x, int y)
Definition ServerBrowserEntry.c:783

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

◆ DeselectAll()

void DeselectAll ( )
inlineprotected
378 {
379 for (int i = 0; i < m_TabControls.Count(); i++)
380 {
383 }
384 }
void DeselectTabControl(int index)
Definition TabberUI.c:350
void DeselectTabPanel(int index)
Definition TabberUI.c:368

◆ DeselectTabControl()

void DeselectTabControl ( int index)
inlineprotected
351 {
353 if ( tab_control )
354 {
355 /*
356 Widget tab_bg = tab_control.FindAnyWidget( tab_control.GetName() + "_Background" );
357 if( tab_bg )
358 {
359 tab_bg.Show( false );
360 }
361 */
362 Widget tab_title = TextWidget.Cast(tab_control.FindAnyWidget( tab_control.GetName() + "_Title" ));
363 tab_title.SetColor( ARGB(255, 255, 255,255) );
364 tab_control.SetColor( ARGB(0, 0, 0 ,0) );
365 }
366 }

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

◆ DeselectTabPanel()

void DeselectTabPanel ( int index)
inlineprotected
369 {
370 Widget tab = m_Tabs.Get( index );
371 if ( tab )
372 {
373 tab.Show( false );
374 }
375 }

◆ DestroyFollowedObject()

void DestroyFollowedObject ( )
inlineprotected
29 {
31 {
32 GetGame().ObjectDelete( m_FollowedObject );
33 }
34 }

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

◆ Disable()

void Disable ( )
inlineprotected
152 {
153 m_Enabled = false;
154
155 m_Parent.SetFlags(WidgetFlags.IGNOREPOINTER);
156
157 #ifdef PLATFORM_CONSOLE
159 #else
161 #endif
162 }
void ColorDisabled(Widget w)
Definition OptionSelectorBase.c:196
bool m_Enabled
Definition OptionSelectorBase.c:7
void ColorDisabledConsole(Widget w)
Definition OptionSelectorBase.c:256

Перекрестные ссылки OptionSelectorBase::ColorDisabledConsole(), m_Enabled и m_Parent.

◆ DisableTabs()

void DisableTabs ( bool disable)
inlineprotected

useful if we want to disable actual tabs for whatever reason

481 {
482 foreach (Widget w : m_Tabs)
483 {
484 if (disable)
485 {
486 w.SetFlags( WidgetFlags.IGNOREPOINTER );
487 }
488 else
489 {
490 w.ClearFlags( WidgetFlags.IGNOREPOINTER );
491 }
492 w.Enable(!disable);
493 }
494 }

◆ DisplayContextMenu()

static void DisplayContextMenu ( int x,
int y,
notnull EntityAI entity,
notnull Widget rootWidget,
Class target )
inlinestaticprivate
283 {
286 {
288 m_ContextMenuInstance.BuildContextMenu(entity, rootWidget, target);
289
290 m_ContextMenuInstance.SetSize(1,1);
292 }
293 }
static ref ContextMenu m_ContextMenuInstance
Definition ContextMenu.c:4
void ContextMenu()
Definition ContextMenu.c:15

Перекрестные ссылки ContextMenu(), x и y.

◆ DropdownPrefab()

void DropdownPrefab ( Widget root,
string text = "" )
inlineprotected
19 {
20 m_Parent = root;
21 m_Root = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/new_ui/dropdown_prefab/dropdown_prefab.layout", root );
22
23 m_Scroller = ScrollWidget.Cast( m_Root.FindAnyWidget( "dropdown_container" ) );
24 m_ContentContainer = m_Root.FindAnyWidget( "dropdown_content" );
25 m_Text = TextWidget.Cast( m_Root.FindAnyWidget( "dropdown_text" ) );
26 m_Holder = m_Root.FindAnyWidget( "holder" );
27 SetText( text );
28
29 m_Button = m_Root.FindAnyWidget( "dropdown_selector_button" );
30 m_ImageExpand = ImageWidget.Cast( m_Root.FindAnyWidget( "expand_image" ) );
31 m_ImageCollapse = ImageWidget.Cast( m_Root.FindAnyWidget( "collapse_image" ) );
32
33 m_Root.SetHandler( this );
34
36 }
void RefreshContent()
Definition DropdownPrefab.c:38
void SetText(string text)
Definition DropdownPrefab.c:108
Widget m_Button
Definition DropdownPrefab.c:9
TextWidget m_Text
Definition DropdownPrefab.c:11
Widget m_Holder
Definition DropdownPrefab.c:10

Перекрестные ссылки GetGame(), m_Parent, m_Root, RefreshContent() и SetText().

Используется в InitPresets().

◆ Enable()

void Enable ( )
inlineprotected
139 {
140 m_Enabled = true;
141
142 m_Parent.ClearFlags(WidgetFlags.IGNOREPOINTER);
143
144 #ifdef PLATFORM_CONSOLE
146 #else
148 #endif
149 }
void ColorNormal(Widget w)
Definition OptionSelectorBase.c:172
void ColorNormalConsole(Widget w)
Definition OptionSelectorBase.c:243

Перекрестные ссылки OptionSelectorBase::ColorNormal(), OptionSelectorBase::ColorNormalConsole(), m_Enabled и m_Parent.

◆ EnableTabControl()

void EnableTabControl ( int index,
bool enable )
inlineprotected
306 {
307 Widget tab_control = m_Root.FindAnyWidget( "Tab_Control_" + index );
308 if ( tab_control )
309 tab_control.Show( enable );
310 AlignTabbers();
311 }

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

◆ EnterKeybindingMenu()

void EnterKeybindingMenu ( )
inlineprotected
231 {
232 m_Menu.EnterScriptedMenu( MENU_KEYBINDINGS );
233 }
const int MENU_KEYBINDINGS
Definition constants.c:201

Перекрестные ссылки m_Menu и MENU_KEYBINDINGS.

Используется в OnMouseButtonUp().

◆ Fade()

void Fade ( bool fade)
inlineprotected
128 {
129 if( fade )
130 {
131 m_FollowerRoot.SetAlpha( m_MinFade );
132 }
133 else
134 {
135 m_FollowerRoot.SetAlpha( m_MaxFade );
136 }
137 }
float m_MaxFade
Definition CTObjectFollower.c:10
float m_MinFade
Definition CTObjectFollower.c:11

◆ FavoriteIsSet()

bool FavoriteIsSet ( )
inlineprotected
250 {
251 return (m_Options["m_FavoritedFilter"] != m_FavoritedFilter.GetOptions()[0]);
252 }
GameOptions m_Options
Definition OptionsMenuControls.c:18
ref OptionSelector m_FavoritedFilter
Definition ServerBrowserFilterContainer.c:15

◆ FillInfo()

void FillInfo ( GetServersResultRow server_info)
inlineprotected
271 {
273 m_FirstExpand = true;
274
275 #ifndef PLATFORM_CONSOLE
276 m_DetailedInfo.Show(server_info.m_IsExpanded);
277 #endif
278
279 SetName(server_info.m_Name);
280 SetPasswordLocked(server_info.m_IsPasswordProtected);
282 SetSlots(server_info.m_MaxPlayers);
283 SetPing(server_info.m_Ping);
284 SetFavorite(server_info.m_Favorite);
285 SetModded(server_info.m_Modded);
288
289 #ifdef PLATFORM_CONSOLE
290 SetMouseAndKeyboard(server_info.m_MouseAndKeyboardEnabled);
291 #endif
292
293#ifdef PLATFORM_WINDOWS
294 #ifndef PLATFORM_CONSOLE
295 SetExpand(server_info.m_IsExpanded);
296
297 int pp = 0; // private
298 if (server_info.m_ShardId.Length() == 3 && server_info.m_ShardId.ToInt() < 200)
299 {
300 pp = 1; // official
301 }
302
303 SetShard(pp);
304 SetCharacterAlive(server_info.m_CharactersAlive);
305 SetFriends(server_info.m_SteamFriends);
306 SetMode(server_info.m_Disable3rdPerson);
307 SetBattleye(server_info.m_AntiCheat);
308 SetIP(server_info.m_Id);
309 SetAcceleration(server_info.m_EnvironmentTimeMul);
310 #endif
311#endif
312 }
void RefreshDLCIcon()
Definition ServerBrowserEntry.c:458
void SetPasswordLocked(bool locked)
Definition ServerBrowserEntry.c:334
bool SetExpand(bool expand)
Definition ServerBrowserEntry.c:644
void SetPing(int ping)
Definition ServerBrowserEntry.c:380
void SetModded(bool is_modded)
Definition ServerBrowserEntry.c:570
void SetFriends(string friends_text)
Definition ServerBrowserEntry.c:482
bool m_FirstExpand
Definition ServerBrowserEntry.c:38
void SetFavorite(bool favorite)
Definition ServerBrowserEntry.c:550
void SetName(string name)
Definition ServerBrowserDetailsContainer.c:144
void SetServerMapName()
Definition ServerBrowserEntry.c:575
void SetAcceleration(float mult)
Definition ServerBrowserEntry.c:557
void SetIP(string ip)
Definition ServerBrowserEntry.c:520
void SetShard(int shard)
Definition ServerBrowserEntry.c:439
void SetCharacterAlive(string char_alive)
Definition ServerBrowserEntry.c:474
void SetMode(int mode)
Definition ServerBrowserDetailsContainer.c:170
Widget m_DetailedInfo
Definition ServerBrowserEntry.c:29
void SetSlots(int slots)
Definition ServerBrowserEntry.c:368
void SetBattleye(bool battleye)
Definition ServerBrowserEntry.c:506
void SetMouseAndKeyboard(bool is_mkenabled)
Definition ServerBrowserEntry.c:605

Перекрестные ссылки RefreshDLCIcon(), SetAcceleration(), SetBattleye(), SetCharacterAlive(), SetExpand(), SetFavorite(), SetFriends(), SetIP(), SetModded(), SetMode(), SetMouseAndKeyboard(), SetName(), SetPasswordLocked(), SetPing(), SetPopulationEx(), SetServerMapName(), SetShard() и SetSlots().

◆ FillTextMap() [1/4]

void FillTextMap ( )
inlineprotected
669 {
671 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_MOUSE_YAXIS_INVERTED, new Param2<string, string>( "#STR_Invert_Vertical_tip_header", "#STR_Invert_Vertical_tip" ) );
672 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_MOUSE_YAXIS, new Param2<string, string>( "#STR_Camera_V_Sensitivity_tip_header", "#STR_Camera_V_Sensitivity_tip" ) );
673 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_MOUSE_XAXIS, new Param2<string, string>( "#STR_Camera_H_Sensitivity_tip_header", "#STR_Camera_H_Sensitivity_tip" ) );
674 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_MOUSE_YAXIS_AIM_MOD, new Param2<string, string>( "#STR_Aiming_V_Sensitivity_tip_header", "#STR_Aiming_V_Sensitivity_tip" ) );
675 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_MOUSE_XAXIS_AIM_MOD, new Param2<string, string>( "#STR_Aiming_H_Sensitivity_tip_header", "#STR_Aiming_H_Sensitivity_tip" ) );
676
677 #ifdef PLATFORM_CONSOLE
678 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_MOUSE_AND_KEYBOARD, new Param2<string, string>( "#xbox_options_controls_mandk_contr", "#xbox_options_controls_mandk_contr_desc" ) );
679 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_AIM_HELPER, new Param2<string, string>( "#ps4_options_controls_aim_helper_contr", "#ps4_options_controls_aim_helper_contr_desc" ) );
680
681 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_LS_YAXIS, new Param2<string, string>( "#STR_Movement_V_Sensitivity_tip_header", "#STR_Movement_V_Sensitivity_tip" ) );
682 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_LS_XAXIS, new Param2<string, string>( "#STR_Movement_H_Sensitivity_tip_header", "#STR_Movement_H_Sensitivity_tip" ) );
683 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_LS_XAXIS_VEHICLE_MOD, new Param2<string, string>( "#STR_Movement_Vehicle_Sensitivity_tip_header", "#STR_Movement_Vehicle_Sensitivity_tip" ) );
684 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_INVERTED, new Param2<string, string>( "#STR_Invert_Vertical_tip_header", "#STR_Invert_Vertical_tip" ) );
685 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS, new Param2<string, string>( "#STR_Camera_V_Sensitivity_tip_header", "#STR_Camera_V_Sensitivity_tip" ) );
686 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_XAXIS, new Param2<string, string>( "#STR_Camera_H_Sensitivity_tip_header", "#STR_Camera_H_Sensitivity_tip" ) );
687 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_CURVATURE, new Param2<string, string>( "#STR_Camera_Curvature_tip_header", "#STR_Camera_Curvature_tip" ) );
688 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_AIM_MOD, new Param2<string, string>( "#STR_Aiming_V_Sensitivity_tip_header", "#STR_Aiming_V_Sensitivity_tip" ) );
689 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_XAXIS_AIM_MOD, new Param2<string, string>( "#STR_Aiming_H_Sensitivity_tip_header", "#STR_Aiming_H_Sensitivity_tip" ) );
690 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_CURVATURE_AIM_MOD, new Param2<string, string>( "#STR_Aiming_Curvature_tip_header", "#STR_Camera_Curvature_tip" ) );
691 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_LS_DEADZONE, new Param2<string, string>( "#STR_Aiming_L_Deadzone_tip_header", "#STR_Aiming_L_Deadzone_tip" ) );
692 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_DEADZONE, new Param2<string, string>( "#STR_Aiming_R_Deadzone_tip_header", "#STR_Aiming_R_Deadzone_tip" ) );
693 #endif
694 }
ref map< int, ref Param2< string, string > > m_TextMap
Definition OptionsMenuControls.c:71
OptionAccessType
C++ OptionAccessType.
Definition gameplay.c:1218

Используется в OptionsMenuControls(), OptionsMenuGame(), OptionsMenuSounds() и OptionsMenuVideo().

◆ FillTextMap() [2/4]

void FillTextMap ( )
inlineprotected
584 {
586 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_LANGUAGE, new Param2<string, string>("#options_game_select_language", "#options_game_select_language_desc"));
587 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_FIELD_OF_VIEW, new Param2<string, string>("#options_game_field_of_view", "#options_game_field_of_view_desc"));
588 m_TextMap.Insert(OptionIDsScript.OPTION_HUD, new Param2<string, string>("#options_game_show_HUD", "#options_game_show_HUD_desc"));
589 m_TextMap.Insert(OptionIDsScript.OPTION_HUD_VEHICLE, new Param2<string, string>("#options_game_show_HUD_vehicle", "#options_game_show_HUD_vehicle_desc"));
590 m_TextMap.Insert(OptionIDsScript.OPTION_HUD_BRIGHTNESS, new Param2<string, string>("#options_game_hud_brightness", "#options_game_hud_brightness_desc"));
591 m_TextMap.Insert(OptionIDsScript.OPTION_CROSSHAIR, new Param2<string, string>("#options_game_show_crosshair", "#options_game_show_crosshair_desc"));
592 m_TextMap.Insert(OptionIDsScript.OPTION_QUICKBAR, new Param2<string, string>("#options_game_show_quickbar", "#options_game_show_quickbar_desc"));
593 m_TextMap.Insert(OptionIDsScript.OPTION_SERVER_INFO, new Param2<string, string>("#options_game_show_serverinfo", "#options_game_show_serverinfo_desc"));
594 m_TextMap.Insert(OptionIDsScript.OPTION_BLEEDINGINDICATION, new Param2<string, string>("#options_game_show_bleedingindication", "#options_game_show_bleedingindication_desc"));
595 m_TextMap.Insert(OptionIDsScript.OPTION_CONNECTIVITY_INFO, new Param2<string, string>("#options_game_connectivity", ""));
596
597 #ifdef PLATFORM_WINDOWS
598 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_PAUSE, new Param2<string, string>("#layout_options_pc_nopause_title", "#layout_options_pc_nopause_tooltip"));
599 m_TextMap.Insert(OptionIDsScript.OPTION_GAME_MESSAGES, new Param2<string, string>("#options_pc_game_messages", "#options_game_show_game_msg"));
600 m_TextMap.Insert(OptionIDsScript.OPTION_ADMIN_MESSAGES, new Param2<string, string>("#options_pc_admin_mes", "#options_game_show_admin_msg"));
601 m_TextMap.Insert(OptionIDsScript.OPTION_PLAYER_MESSAGES, new Param2<string, string>("#options_pc_player_messages", "#options_game_show_player_msg"));
602 #else
603 #ifdef PLATFORM_XBOX
604 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER, new Param2<string, string>("#options_video_brightness", "#options_video_brightness_desc"));
605 m_TextMap.Insert(OptionIDsScript.OPTION_GAME_MESSAGES, new Param2<string, string>("#options_xbox_game_messages", "#options_game_show_game_msg"));
606 m_TextMap.Insert(OptionIDsScript.OPTION_ADMIN_MESSAGES, new Param2<string, string>("#options_xbox_admin_mes", "#options_game_show_admin_msg"));
607 m_TextMap.Insert(OptionIDsScript.OPTION_PLAYER_MESSAGES, new Param2<string, string>("#options_xbox_player_messages","#options_game_show_player_msg"));
608 #else
609 #ifdef PLATFORM_PS4
610 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER, new Param2<string, string>("#ps4_options_video_brightness", "#ps4_options_video_brightness_desc"));
611 m_TextMap.Insert(OptionIDsScript.OPTION_GAME_MESSAGES, new Param2<string, string>("#ps4_options_game_messages", "#ps4_options_game_show_game_msg"));
612 m_TextMap.Insert(OptionIDsScript.OPTION_ADMIN_MESSAGES, new Param2<string, string>("#ps4_options_admin_mes", "#ps4_options_game_show_admin_msg"));
613 m_TextMap.Insert(OptionIDsScript.OPTION_PLAYER_MESSAGES, new Param2<string, string>("#ps4_options_player_messages","#ps4_options_game_show_player_msg"));
614 #endif
615 #endif
616 #endif
617 }
OptionIDsScript
Used for script-based game options. For anything C++ based, you would most likely use "Option Access ...
Definition gameplay.c:1287

◆ FillTextMap() [3/4]

void FillTextMap ( )
inlineprivate
415 {
417
418 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MASTER_VOLUME, new Param2<string, string>("#STR_sound_tab_master_tip_header", "#STR_sound_tab_master_tip"));
419 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_EFFECTS_SLIDER, new Param2<string, string>("#STR_sound_tab_effects_tip_header", "#STR_sound_tab_effects_tip"));
420 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_MUSIC_SLIDER, new Param2<string, string>("#STR_sound_tab_music_tip_header", "#STR_sound_tab_music_tip"));
421 m_TextMap.Insert(OptionIDsScript.OPTION_AMBIENT_MUSIC_MODE, new Param2<string, string>("#STR_sound_tab_ambient_mode_tip_header", "#STR_sound_tab_ambient_mode_tip"));
422
423 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_VON_SLIDER, new Param2<string, string>("#STR_sound_tab_voice_output_tip_header", "#STR_sound_tab_voice_output_tip"));
424 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER, new Param2<string, string>("#STR_sound_tab_voice_threshold_tip_header", "#STR_sound_tab_voice_threshold_tip"));
425 m_TextMap.Insert(OptionAccessType.AT_OPTIONS_VON_INPUT_MODE, new Param2<string, string>("#STR_sound_tab_voice_mode_tip_header", "#STR_sound_tab_voice_mode_tip"));
426 }

◆ FillTextMap() [4/4]

void FillTextMap ( )
inlineprotected
634 {
636
637 #ifdef PLATFORM_CONSOLE
638 #ifdef PLATFORM_PS4
639 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_FLIPMODE, new Param2<string, string>( "#options_video_V-sync", "#options_video_V-sync_desc" ) );
640 #endif
641 #else
642 m_TextMap.Insert( OptionAccessType.AT_QUALITY_PREFERENCE, new Param2<string, string>( "#options_video_quality", "#options_video_quality_desc" ) );
643 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_DISPLAY_MODE, new Param2<string, string>( "#options_video_display_mode", "#options_video_display_mode_desc" ) );
644 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_RESOLUTION, new Param2<string, string>( "#options_video_resolution", "#options_video_resolution_desc" ) );
645 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER, new Param2<string, string>( "#options_video_brightness", "#options_video_brightness_desc" ) );
646 m_TextMap.Insert( OptionAccessType.AT_VSYNC_VALUE, new Param2<string, string>( "#options_video_V-sync", "#options_video_V-sync_desc" ) );
647 m_TextMap.Insert( OptionAccessType.AT_HDR_DETAIL, new Param2<string, string>( "#options_video_color_depth", "#options_video_color_depth_desc" ) );
648 m_TextMap.Insert( OptionAccessType.AT_OBJECTS_DETAIL, new Param2<string, string>( "#options_video_object_detail", "#options_video_object_detail_desc" ) );
649 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_TERRAIN, new Param2<string, string>( "#options_video_terrain_detail", "#options_video_terrain_detail_desc" ) );
650 m_TextMap.Insert( OptionAccessType.AT_TEXTURE_DETAIL, new Param2<string, string>( "#options_video_texture_detail", "#options_video_texture_detail_desc" ) );
651 m_TextMap.Insert( OptionAccessType.AT_SHADOW_DETAIL, new Param2<string, string>( "#options_video_shadow_detail", "#options_video_shadow_detail_desc" ) );
652 m_TextMap.Insert( OptionAccessType.AT_ANISO_DETAIL, new Param2<string, string>( "#options_video_texture_filtering", "#options_video_texture_filtering_desc" ) );
653 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_TERRAIN_SHADER, new Param2<string, string>( "#options_video_terrain_surface_detail", "#options_video_terrain_surface_detail_desc" ) );
654 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_FXAA_VALUE, new Param2<string, string>( "#options_video_anti-aliasing", "#options_video_anti-aliasing_desc" ) );
655 m_TextMap.Insert( OptionAccessType.AT_FSAA_DETAIL, new Param2<string, string>( "#options_video_anti-aliasing_hardware", "#options_video_anti-aliasing_hardware_desc" ) );
656 m_TextMap.Insert( OptionAccessType.AT_ATOC_DETAIL, new Param2<string, string>( "#options_video_foliage_smoothing", "#options_video_foliage_smoothing_desc" ) );
657 m_TextMap.Insert( OptionAccessType.AT_AMBIENT_OCCLUSION, new Param2<string, string>( "#options_video_ambient_occlusion", "#options_video_ambient_occlusion_desc" ) );
658 m_TextMap.Insert( OptionAccessType.AT_POSTPROCESS_EFFECTS, new Param2<string, string>( "#options_video_post_process", "#options_video_post_process_desc" ) );
659 m_TextMap.Insert( OptionAccessType.AT_WATER_DETAIL, new Param2<string, string>( "#STR_option_video_ssr_quality_tip_header", "#STR_option_video_ssr_quality_tip" ) );
660 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_VISIBILITY_COMBO, new Param2<string, string>( "#STR_option_video_visibility", "#STR_option_video_visibility_desc" ) );
661 m_TextMap.Insert( OptionAccessType.AT_OPTIONS_OBJECT_VISIBILITY_COMBO, new Param2<string, string>( "#STR_option_video_objectvisibility", "#STR_option_video_objectvisibility_desc" ) );
662 #endif
663 }

◆ FindEntryByWidget()

PlayerListEntryScriptedWidget FindEntryByWidget ( Widget button)
inlineprotected
144 {
145 if ( button && m_Entries )
146 {
148 {
149 if ( widget && widget.GetButtonWidget() == button )
150 {
151 return widget;
152 }
153 }
154 }
155
156 return null;
157 }

Перекрестные ссылки m_Entries, m_Entries и UID.

◆ FindPlayerByWidget()

string FindPlayerByWidget ( Widget button)
inlineprotected
160 {
161 if ( button && m_Entries )
162 {
164 {
165 if ( widget && widget.GetButtonWidget() == button )
166 {
167 return UID;
168 }
169 }
170 }
171
172 return "";
173 }

Перекрестные ссылки m_Entries, m_Entries и UID.

◆ Focus() [1/9]

void Focus ( )
inlineprotected
138 {
139 OnFocus( m_Root, 0, 0 );
140 }
bool OnFocus(Widget w, int x, int y)

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

Используется в Apply() и SetToDefaults().

◆ Focus() [2/9]

void Focus ( )
inlineprotected

Focuses the first viable item.

237 {
238 #ifdef PLATFORM_CONSOLE
239 if (m_KeyboardSelector && m_KeyboardSelector.IsSelectorEnabled())
240 {
241 m_KeyboardSelector.Focus();
242 }
243 else if (m_AimHelperSelector)
244 {
245 m_AimHelperSelector.Focus();
246 }
247 #endif
248 }
ref OptionSelectorMultistate m_AimHelperSelector
Definition OptionsMenuControls.c:27

◆ Focus() [3/9]

void Focus ( )
inlineprotected
167 {
168 #ifdef PLATFORM_CONSOLE
169 SetFocus(m_LanguageSelector.GetParent());
170 #endif
171 }
ref OptionSelectorMultistate m_LanguageSelector
Definition OptionsMenuGame.c:24

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

◆ Focus() [4/9]

void Focus ( )
inlineprivate
148 {
149 #ifdef PLATFORM_CONSOLE
150 SetFocus(m_MasterSelector.GetParent());
151 #endif
152 }
ref OptionSelectorSlider m_MasterSelector
Definition OptionsMenuSounds.c:19

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

◆ Focus() [5/9]

void Focus ( )
inlineprotected
242 {
243 #ifdef PLATFORM_PS4
245 {
246 SetFocus( m_FlipModeSelector.GetParent() );
247 }
248 #endif
249 }

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

◆ Focus() [6/9]

void Focus ( )
inlineprotected
130 {
131 #ifndef PLATFORM_CONSOLE
133 #else
135 #endif
136 }

Перекрестные ссылки m_Parent, m_Root и SetFocus().

◆ Focus() [7/9]

void Focus ( )
inlineprotected
306 {
307 #ifdef PLATFORM_CONSOLE
308 if (m_Tab.GetTabType() == TabType.FAVORITE)
309 {
311 }
312 else
313 {
315 }
316 #endif
317 }
TabType
Definition ServerBrowserTab.c:2
ButtonWidget m_BtnShowFilters
Definition ServerBrowserDetailsContainer.c:33
ButtonWidget m_RefreshList
Definition ServerBrowserDetailsContainer.c:34
PlayerListScriptedWidget m_Tab
Definition PlayerListEntryScriptedWidget.c:15

Перекрестные ссылки m_BtnShowFilters, m_RefreshList и SetFocus().

◆ Focus() [8/9]

void Focus ( )
inlineprotected
208 {
210 }

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

◆ Focus() [9/9]

void Focus ( )
inlineprotected
403 {
404 #ifdef PLATFORM_CONSOLE
405 switch (m_Tab.GetTabType())
406 {
407 case TabType.FAVORITE:
408 {
410 break;
411 }
412 case TabType.OFFICIAL:
413 case TabType.COMMUNITY:
414 {
416 break;
417 }
418 }
419 #endif
420 #ifdef PLATFORM_WINDOWS
422 #endif
423 }
EditBoxWidget m_SearchByName
Definition ServerBrowserFilterContainer.c:5

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

◆ FocusFirst()

void FocusFirst ( )
inlineprotected
28 {
29 if ( m_Content && m_Content.GetChildren() )
30 SetFocus( m_Content.GetChildren().FindAnyWidget( "Button" ) );
31 m_ScrollContainer.VScrollToPos01( 0 );
32 }
ScrollWidget m_ScrollContainer
Definition PlayerListScriptedWidget.c:4

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

◆ GenerateQuickBarBackgroundTiles()

void GenerateQuickBarBackgroundTiles ( int count)
inlineprivate
383 {
384 for (int i = 0; i < count; i++)
385 {
386 Widget root_widget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/inventory/inventoryGridBackground.layout", m_Root);
387 TextWidget label_widget = TextWidget.Cast( root_widget.FindAnyWidget( "Label1" ) );
388 TextWidget label_widget2 = TextWidget.Cast( root_widget.FindAnyWidget( "Label2" ) );
389 label_widget.SetText( (i+1).ToString() );
390 label_widget2.SetText( (i+1).ToString() );
392 }
393 }
proto string ToString()
ref map< int, Widget > m_BackgroundWidgets
Definition InventoryGrid.c:48

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

◆ GenerateValidFilter()

bool GenerateValidFilter ( out string potential_filter)
inlineprotected

Turns any given string into a more convenient filter (limits character count, forces lowercase, trims empty spaces).

371 {
373 }
bool LimitTextBoxCharacterCount(out string text, int max_length)
Limits the given text to 'max_length' character count. Returns true if any change was done to the inp...
Definition ServerBrowserFilterContainer.c:283

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

Используется в OnChange().

◆ GenerateValidIP()

string GenerateValidIP ( string potential_ip)
inlineprotected

Attempts to generate a valid IP address & port from the given string in format like this: "192.168.0.2:2503". If the process fails, then an empty string is returned.

299 {
300 string correct_ip_format;
301
304
305 string ip_entries;
306 int port;
307
308 if(array_ip_and_port.Count() > 0)
309 {
312 ip_entries.Split(".", array_ip);
313
314 string ip_string;
315 int ip_entries_count = array_ip.Count();
316
318 return "";
319
320 for (int i = 0; i < 4; i++)
321 {
322 int ip_entry = array_ip.Get(i).ToInt();
323
324 // Check if the entry is a valid number
325 if (ip_entry > 255 || ip_entry < 0)
326 ip_entry = 0;
327
328 ip_string = ip_string + ip_entry.ToString();
329
330 if (i < ip_entries_count - 1)
331 ip_string = ip_string + ".";
332 ;
333 }
334
336 }
337 else
338 {
339 ip_entries = "";
341 }
342
343 if (correct_ip_format == "")
344 return ""; // Input string was not recognized as a valid IP address. Thus return an empty string.
345
346 // The input string was recognized as a valid IP address. Thus continue with port number.
347
348 if(array_ip_and_port.Count() > 1)
349 {
350 port = array_ip_and_port.Get(1).ToInt();
351
352 if (port > 65535 | port < 0) // max port value is 65535
353 port = 2302;
354
355
356 if (port >= 0)
357 correct_ip_format = correct_ip_format + ":" + port.ToString();
358
359 }
360 else
361 {
362 port = 2302;
363 correct_ip_format = correct_ip_format + ":" + port.ToString();
364 }
365
366 return correct_ip_format;
367 }
array< string > TStringArray
Definition EnScript.c:685

◆ GetActionDesc()

string GetActionDesc ( ActionBase action)
inlineprotected
277 {
278 if (action && action.GetText())
279 return action.GetText();
280
281 return string.Empty;
282 }

Используется в BuildCursor().

◆ GetActionManager() [1/2]

void GetActionManager ( )
inlineprivate
117 {
118 if( m_Player && m_Player.IsPlayerSelected() )
119 {
120 Class.CastTo(m_AM, m_Player.GetActionManager());
121 }
122 else
123 m_AM = null;
124 }

Перекрестные ссылки Class::CastTo(), DayZPlayer::IsPlayerSelected(), m_AM и m_Player.

Используется в Update() и Update().

◆ GetActionManager() [2/2]

void GetActionManager ( )
inlineprotected
226 {
227 if (m_Player && m_Player.IsPlayerSelected())
228 ActionManagerClient.CastTo(m_AM, m_Player.GetActionManager());
229 else
230 m_AM = null;
231 }
Definition ActionManagerClient.c:5

Перекрестные ссылки DayZPlayer::IsPlayerSelected(), m_AM и m_Player.

◆ GetActions() [1/2]

void GetActions ( )
inlineprivate
127 {
128 if(!m_AM) return;
129
130 m_Action = null;
131 m_ActionState = -1;
132 m_Action = m_AM.GetRunningAction();
133
134 if(m_Action && m_Action.GetInput().GetInputType() == ActionInputType.AIT_CONTINUOUS)
135 m_ActionState = m_AM.GetActionState(m_Action);
136 else
137 m_Action = null;
138 }
ActionInputType
Definition ActionInput.c:2
ActionInput GetInput()
Definition ActionBase.c:1202
int GetInputType()
Definition ActionInput.c:89

Перекрестные ссылки m_Action и m_AM.

Используется в Update().

◆ GetActions() [2/2]

void GetActions ( )
inlineprotected
234 {
237 m_Single = null;
239
240 if (!m_AM)
241 return;
242
243 if (m_Player.IsSprinting())
244 return;
245
246 m_Interact = m_AM.GetPossibleAction(InteractActionInput);
248 m_Single = m_AM.GetPossibleAction(DefaultActionInput);
249 m_Continuous = m_AM.GetPossibleAction(ContinuousDefaultActionInput);
250
252 m_Hidden = false;
253
254 m_InteractActionsNum = m_AM.GetPossibleActionCount(InteractActionInput);
256 m_ItemActionsNum = m_AM.GetPossibleActionCount(DefaultActionInput);
257 m_ContinuousItemActionsNum = m_AM.GetPossibleActionCount(ContinuousDefaultActionInput);
258 }
Definition ActionInput.c:522
Definition ActionInput.c:631
Definition ActionInput.c:535
int m_InteractActionsNum
Definition ItemActionsWidget.c:14
int m_ContinuousItemActionsNum
Definition ItemActionsWidget.c:17
bool m_Hidden
Definition ItemActionsWidget.c:23
int m_ItemActionsNum
Definition ItemActionsWidget.c:16
int m_ContinuousInteractActionsNum
Definition ItemActionsWidget.c:15

Перекрестные ссылки m_AM и m_Player.

◆ GetButtonWidget()

Widget GetButtonWidget ( )
inlineprotected
43 {
44 return m_PlayerButton;
45 }
ButtonWidget m_PlayerButton
Definition PlayerListEntryScriptedWidget.c:13

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

◆ GetChangedAlternateBinds() [1/2]

array< int > GetChangedAlternateBinds ( )
inlineprotected
61 {
63 }
ref array< int > m_CustomAlternateBind
Definition KeybindingElement.c:19

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

◆ GetChangedAlternateBinds() [2/2]

array< int > GetChangedAlternateBinds ( )
inlineprotected
60 {
62 }

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

◆ GetChangedBinds() [1/2]

array< int > GetChangedBinds ( )
inlineprotected
56 {
57 return m_CustomBind;
58 }
ref array< int > m_CustomBind
Definition KeybindingElement.c:18

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

◆ GetChangedBinds() [2/2]

array< int > GetChangedBinds ( )
inlineprotected
55 {
56 return m_CustomBind;
57 }

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

◆ GetCol()

int GetCol ( Widget w)
inlineprotected
223 {
224 int index;
225
226 if( m_ItemWidgets.GetKeyByValueChecked( w, index ) )
227 return index;
228 else if( m_BackgroundWidgets.GetKeyByValueChecked( w, index ) )
229 return index;
230 else
231 return -1;
232 }

Используется в OnDoubleClick(), OnDrag(), OnDraggingOver(), OnDropReceived(), OnMouseButtonDown(), OnMouseButtonUp() и OnMouseEnter().

◆ GetColFromBg()

int GetColFromBg ( Widget w)
inlineprotected
235 {
236 return m_BackgroundWidgets.GetKeyByValue( w );
237 }

◆ GetController()

InventoryGridController GetController ( )
inlineprivate
377 {
378 return m_Controller;
379 }
InventoryGridController m_Controller
Definition InventoryGrid.c:51

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

◆ GetCrosshairPosition()

void GetCrosshairPosition ( )
inlineprotected
70 {
71 m_Visible = false;
73 itemInHands = m_Player.GetItemInHands();
74 if ( itemInHands && itemInHands.IsWeapon() )
75 {
77 {
78 //m_Visible = MiscGameplayFunctions.GetProjectedCursorPos3d(m_Position, m_Weapon);
79 }
80 }
81 }
Weapon_Base m_Weapon
Definition ProjectedCrosshair.c:9
bool m_Visible
Definition ObjectFollower.c:7

Перекрестные ссылки Class::CastTo(), m_Player, m_Visible и m_Weapon.

Используется в Update().

◆ GetDistanceString()

string GetDistanceString ( float total_distance,
bool meters_only = false )
inlineprotected
83 {
84 if (total_distance > 0)
85 {
86 string distanceString;
87
88 float kilometers = total_distance * 0.001;
90 if ( kilometers >= 10 && !meters_only )
91 {
92 distanceString = GetValueString(kilometers, true) + " #STR_distance_unit_abbrev_kilometer_0";
93 }
94 else
95 {
96 distanceString = GetValueString(total_distance) + " #STR_distance_unit_abbrev_meter_0";
97 }
98
99 return distanceString;
100 }
101
102 return "0" + " #STR_distance_unit_abbrev_meter_0";
103 }
string GetValueString(float total_value, bool show_decimals=false)
Definition MainMenuStats.c:105

Перекрестные ссылки GetValueString() и Math::Round().

Используется в UpdateStats().

◆ GetDOF()

float GetDOF ( )
inlineprotected
83 {
84 return m_DOFWidget.GetText().ToFloat();
85 }

◆ GetEntityInHands()

void GetEntityInHands ( )
inlineprotected
261 {
262 if (!m_Player) return;
263
264 EntityAI eai = m_Player.GetHumanInventory().GetEntityInHands();
265
266 if (eai && !eai.IsInherited(DummyItem))
267 {
269 }
270 else
271 {
273 }
274 }
Definition Magnum.c:404

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

Используется в Update().

◆ GetEventActor()

int GetEventActor ( )
inlineprotected
114 {
115 return m_EventActorWidget.GetText().ToInt();
116 }

Используется в Play() и Stop().

◆ GetEventTime()

float GetEventTime ( )
inlineprotected
103 {
104 m_EventTime = m_EventTimeWidget.GetText().ToFloat();
105 return m_EventTime;
106 }
float m_EventTime
Definition CTEvent.c:6

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

◆ GetEventType()

int GetEventType ( )
inlineprotected
109 {
110 return m_EventTypeWidget.GetText().ToInt();
111 }

Используется в Play().

◆ GetEventWalk()

bool GetEventWalk ( )
inlineprotected
119 {
120 return m_EventWalkWidget.IsChecked();
121 }

◆ GetFilterOptionsConsoles()

GetServersInput GetFilterOptionsConsoles ( )
inlineprotected
559 {
561
562 input.m_RowsPerPage = SERVER_BROWSER_PAGE_SIZE;
563
564 #ifdef PLATFORM_XBOX
565 input.m_Platform = 2;
566 #endif
567 #ifdef PLATFORM_PS4
568 input.m_Platform = 3;
569 #endif
570
571 if (m_SearchByName)
572 {
573 string name_text = m_SearchByName.GetText();
574 if(name_text != "")
575 {
576 input.SetNameFilter(name_text);
577 }
578 }
579
580 if (m_RegionFilter.IsSet())
581 {
582 input.SetRegionIdFilter(m_RegionFilter.GetValue());
583 }
584
585 if (m_DLCFilter.IsSet())
586 {
587 input.SetIsDLC(m_DLCFilter.IsEnabled());
588 }
589
590 if (m_FullServerFilter.IsSet())
591 {
592 input.SetFullServer(m_FullServerFilter.IsEnabled());
593 if (m_FullServerFilter.IsEnabled())
594 {
595 input.SetFreeSlotsMax(1);
596 }
597 else
598 {
599 input.SetFreeSlotsMin(1);
600 }
601 }
602
603 if (m_ThirdPersonFilter.IsSet())
604 {
605 // modeId is used to specify whether third person is allowed on CONSOLE servers
606 // ALLOW third person: modeId = 0
607 // BLOCK third person: modeId = 1
608 input.SetModeIdFilter(!m_ThirdPersonFilter.IsEnabled());
609 }
610
611 if (m_PasswordFilter.IsSet())
612 {
613 input.SetIsPasswordProtectedFilter(m_PasswordFilter.IsEnabled());
614 }
615
616 if (m_WhitelistFilter.IsSet())
617 {
618 input.SetWhitelistEnabled(m_WhitelistFilter.IsEnabled());
619 }
620
621 if (m_KeyboardFilter.IsSet())
622 {
623 input.SetMouseAndKeyboardEnabled(m_KeyboardFilter.IsEnabled());
624 }
625
626 if (m_MapFilter.IsSet())
627 {
629 if (internalMapName != "")
630 input.SetMapNameToRun(internalMapName);
631 }
632
633 return input;
634 }
const int SERVER_BROWSER_PAGE_SIZE
Definition ServerBrowserMenuNew.c:6
GetServersInput the input structure of the GetServers operation.
Definition BiosLobbyService.c:354
ref OptionSelector m_PasswordFilter
Definition ServerBrowserFilterContainer.c:18
ref OptionSelectorMultistate m_RegionFilter
Definition ServerBrowserFilterContainer.c:11
ref OptionSelector m_KeyboardFilter
Definition ServerBrowserFilterContainer.c:20
ref OptionSelector m_DLCFilter
Definition ServerBrowserFilterContainer.c:14
ref OptionSelector m_ThirdPersonFilter
Definition ServerBrowserFilterContainer.c:24
ref OptionSelector m_WhitelistFilter
Definition ServerBrowserFilterContainer.c:19
ref OptionSelectorMultistate m_MapFilter
Definition ServerBrowserFilterContainer.c:13
ref OptionSelector m_FullServerFilter
Definition ServerBrowserFilterContainer.c:23
Definition BiosLobbyService.c:26
static string GetInternalMapName(string mapName)
Definition BiosLobbyService.c:50

Перекрестные ссылки ServerBrowserHelperFunctions::GetInternalMapName() и SERVER_BROWSER_PAGE_SIZE.

◆ GetFilterOptionsPC()

GetServersInput GetFilterOptionsPC ( )
inlineprotected
475 {
477
478 input.m_RowsPerPage = SERVER_BROWSER_PAGE_SIZE;
479 input.m_Platform = 1;
480
481 if (m_SearchByName)
482 {
483 string name_text = m_SearchByName.GetText();
484 if (name_text != "")
485 {
486 input.SetNameFilter(name_text);
487 }
488 }
489
490 if (m_DLCFilter.IsSet())
491 {
492 input.SetIsDLC(m_DLCFilter.IsEnabled());
493 }
494
495 if (m_FullServerFilter.IsSet())
496 {
497 input.SetFullServer(m_FullServerFilter.IsEnabled());
498 }
499
500 if (m_ThirdPersonFilter.IsSet())
501 {
502 input.SetThirdPerson(m_ThirdPersonFilter.IsEnabled());
503 }
504
505 if (m_PasswordFilter.IsSet())
506 {
507 input.SetPassworded(m_PasswordFilter.IsEnabled());
508 }
509
510 if (m_WhitelistFilter.IsSet())
511 {
512 input.SetWhitelistEnabled(m_WhitelistFilter.IsEnabled());
513 }
514
515 if (m_MapFilter.IsSet())
516 {
518 if (internalMapName != "")
519 input.SetMapNameToRun(internalMapName);
520 }
521
522 #ifndef PLATFORM_CONSOLE
523 if (m_SearchByIP)
524 {
525 string ip_text = m_SearchByIP.GetText();
526 if (ip_text != "")
527 {
528 input.SetHostIp(ip_text);
529 }
530 }
531
532 if (m_PingFilter.IsSet())
533 {
534 string str_ping = m_PingFilter.GetStringValue();
535 int ping = str_ping.Substring(1, str_ping.Length() - 1).ToInt();
536 input.SetPingFilter(ping);
537 }
538
539 if (m_FriendsPlayingFilter.IsSet())
540 {
541 input.SetFriendsPlaying(m_FriendsPlayingFilter.IsEnabled());
542 }
543
544 if (m_PreviouslyPlayedFilter.IsSet())
545 {
546 input.SetPreviouslyPlayed(m_PreviouslyPlayedFilter.IsEnabled());
547 }
548
549 if (m_VersionMatchFilter.IsSet())
550 {
551 input.SetProperVersionMatch(m_VersionMatchFilter.IsEnabled());
552 }
553 #endif
554
555 return input;
556 }
ref OptionSelector m_FriendsPlayingFilter
Definition ServerBrowserFilterContainer.c:16
ref OptionSelector m_PreviouslyPlayedFilter
Definition ServerBrowserFilterContainer.c:21
EditBoxWidget m_SearchByIP
Definition ServerBrowserFilterContainer.c:6
ref OptionSelectorMultistate m_PingFilter
Definition ServerBrowserFilterContainer.c:12
ref OptionSelector m_VersionMatchFilter
Definition ServerBrowserFilterContainer.c:22

Перекрестные ссылки ServerBrowserHelperFunctions::GetInternalMapName() и SERVER_BROWSER_PAGE_SIZE.

◆ GetFOV()

float GetFOV ( )
inlineprotected
73 {
74 return m_FOVWidget.GetText().ToFloat();
75 }

◆ GetGridSize()

int GetGridSize ( )
inlineprotected
240 {
241 return m_GridSize;
242 }
int m_GridSize
Definition InventoryGrid.c:55

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

◆ GetHighlighted()

ModInfo GetHighlighted ( )
inlineprotected
59 {
60 return m_Highlighted;
61 }
ModInfo m_Highlighted
Definition ModsMenuDetailed.c:9

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

◆ GetHud() [1/2]

IngameHud GetHud ( )
inlineprotected
736 {
737 Mission mission = GetGame().GetMission();
738 if (mission)
739 {
740 IngameHud hud = IngameHud.Cast(mission.GetHud());
741 return hud;
742 }
743
744 return null;
745 }
Mission class.
Definition gameplay.c:681
Hud GetHud()
Definition gameplay.c:715

Перекрестные ссылки GetGame(), Mission::GetHud() и mission.

Используется в Apply() и ItemActionsWidget().

◆ GetHud() [2/2]

IngameHud GetHud ( )
inlineprotected
479 {
480 Mission mission = GetGame().GetMission();
481 if (mission)
482 {
483 IngameHud hud = IngameHud.Cast(mission.GetHud());
484 return hud;
485 }
486 return null;
487 }

Перекрестные ссылки GetGame(), Mission::GetHud() и mission.

◆ GetHudDebug()

HudDebug GetHudDebug ( )
inlineprivate
14 {
15 return m_HudDebug;
16 }
HudDebug m_HudDebug
Definition HudDebug.c:6

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

Используется в OnChange() и OnClick().

◆ GetInterpTime()

float GetInterpTime ( )
inlineprotected
51 {
52 string time_text = m_InterpTimeWidget.GetText();
53 m_InterpTime = time_text.ToFloat();
54 return m_InterpTime;
55 }
float m_InterpTime
Definition CTKeyframe.c:4

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

◆ GetIP()

string GetIP ( )
inlineprivate
526 {
527 return m_ServerData.GetIP();
528 }

◆ GetItem()

Widget GetItem ( int index)
inlineprivate
339 {
340 if( m_ItemWidgets.Contains( index ) )
341 return m_ItemWidgets.Get( index );
342 else
343 return null;
344 }

◆ GetItemBackground()

Widget GetItemBackground ( int index)
inlineprivate
348 {
349 if( m_BackgroundWidgets.Contains( index ) )
350 return m_BackgroundWidgets.Get( index );
351 else
352 return null;
353 }

Используется в AddItem(), RefreshItemVariables(), RefreshQuickbarItemVariables(), RemoveItem(), ResetItem() и SetItem().

◆ GetItemColor()

int GetItemColor ( ScriptedWidgetEventHandler grid,
InventoryItem item )
inlineprivate
16 {
17 return 0;
18 }

◆ GetItemCount()

int GetItemCount ( InventoryItem item)
inlineprivate
28{}

◆ GetItemDesc()

string GetItemDesc ( EntityAI entity)
inlineprotected
285 {
286 if (m_EntityInHands)
287 return m_EntityInHands.GetDisplayName();
288
289 return string.Empty;
290 }

Используется в BuildCursor().

◆ GetItemFrozen()

bool GetItemFrozen ( )
inlineprotected
293 {
294 return m_EntityInHands && m_EntityInHands.GetIsFrozen();
295 }

Используется в BuildCursor().

◆ GetItemHealth()

int GetItemHealth ( )
inlineprotected
298 {
299 if (m_EntityInHands)
300 return m_EntityInHands.GetHealthLevel();
301
302 return -1;
303 }

Используется в BuildCursor().

◆ GetItemQuantity() [1/2]

float GetItemQuantity ( InventoryItem item)
inlineprivate
26{}

Используется в BuildCursor().

◆ GetItemQuantity() [2/2]

void GetItemQuantity ( out int q_type,
out float q_cur,
out int q_min,
out int q_max )
inlineprotected
306 {
307 if (m_EntityInHands)
308 {
311 if (q_type > 0)
312 {
314 {
316
317 q_cur = (q_cur / q_max);
318 // to percents
319 q_min = 0;
320 q_cur = q_cur * 100;
321 q_max = 100;
322 }
323 else
324 {
326 }
327 }
328 }
329 }
Definition ItemBase.c:15
Definition QuantityConversions.c:2
static int HasItemQuantity(notnull EntityAI item)
Definition QuantityConversions.c:143
static float GetItemQuantity(InventoryItem item)
Definition QuantityConversions.c:72
const int QUANTITY_PROGRESS
Definition constants.c:495

Перекрестные ссылки QuantityConversions::GetItemQuantity(), QuantityConversions::HasItemQuantity() и QUANTITY_PROGRESS.

◆ GetItemQuantityMax()

int GetItemQuantityMax ( InventoryItem item)
inlineprivate
27{}

◆ GetItemQuantityText()

string GetItemQuantityText ( InventoryItem item)
inlineprivate
24{}

◆ GetItems()

TItemsMap GetItems ( )
inlineprivate
333 {
334 return m_Items;
335 }

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

◆ GetItemSize()

vector GetItemSize ( InventoryGrid grid,
InventoryItem item )
inlineprivate
21 {
22 return Vector(0, 1, 1);
23 }
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

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

◆ GetLayoutName() [1/8]

string GetLayoutName ( )
inlineprotected
169 {
170 return "gui/layouts/new_ui/tutorials/xbox/keybinds_tab.layout";
171 }

Используется в KeybindingElement(), KeybindingElementNew(), array::KeybindingsContainer(), KeybindingsGroup(), OptionsMenuControls(), OptionsMenuGame(), OptionsMenuSounds(), OptionsMenuVideo() и TutorialKeybinds().

◆ GetLayoutName() [2/8]

string GetLayoutName ( )
inlineprotected
41 {
42 return "gui/layouts/new_ui/options/keybindings_selectors/keybinding_option.layout";
43 }

◆ GetLayoutName() [3/8]

string GetLayoutName ( )
inlineprotected
40 {
41 return "gui/layouts/new_ui/options/keybindings_selectors/keybinding_option.layout";
42 }

◆ GetLayoutName() [4/8]

string GetLayoutName ( )
inlineprotected
37 {
38 return "gui/layouts/new_ui/options/keybindings_selectors/keybinding_group.layout";
39 }

◆ GetLayoutName() [5/8]

string GetLayoutName ( )
inlineprotected
222 {
223 #ifdef PLATFORM_CONSOLE
224 return "gui/layouts/new_ui/options/xbox/controls_tab.layout";
225 #else
226 return "gui/layouts/new_ui/options/pc/controls_tab.layout";
227 #endif
228 }

◆ GetLayoutName() [6/8]

string GetLayoutName ( )
inlineprotected
158 {
159 #ifdef PLATFORM_CONSOLE
160 return "gui/layouts/new_ui/options/xbox/game_tab.layout";
161 #else
162 return "gui/layouts/new_ui/options/pc/game_tab.layout";
163 #endif
164 }

◆ GetLayoutName() [7/8]

string GetLayoutName ( )
inlineprivate
137 {
138 #ifdef PLATFORM_CONSOLE
139 return "gui/layouts/new_ui/options/xbox/sound_tab.layout";
140 #else
141 #ifdef PLATFORM_WINDOWS
142 return "gui/layouts/new_ui/options/pc/sound_tab.layout";
143 #endif
144 #endif
145 }

◆ GetLayoutName() [8/8]

string GetLayoutName ( )
inlineprotected
231 {
232 #ifdef PLATFORM_PS4
233 return "gui/layouts/new_ui/options/ps/video_tab.layout";
234 #else
235 #ifdef PLATFORM_WINDOWS
236 return "gui/layouts/new_ui/options/pc/video_tab.layout";
237 #endif
238 #endif
239 }

◆ GetMainWidget()

Widget GetMainWidget ( )
inlineprotected
167 {
168 return m_MainWidget;
169 }
Widget m_MainWidget
Definition LayoutHolder.c:3

◆ GetMapName()

string GetMapName ( )
private

◆ GetMapToRun()

string GetMapToRun ( )
inlineprivate
546 {
547 return m_ServerData.m_MapNameToRun;
548 }

Используется в RefreshDLCIcon().

◆ GetModInfo()

ModInfo GetModInfo ( )
inlineprotected
213 {
214 return m_ThisModInfo;
215 }
ref ModInfo m_ThisModInfo
Definition MainMenuPromo.c:18

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

◆ GetObj()

EntityAI GetObj ( )
inlineprotected
42 {
43 return m_FollowedObject;
44 }

◆ GetOnScreenPosition()

void GetOnScreenPosition ( out float x,
out float y )
inlineprotected
62 {
63 const float DEFAULT_HANDLE_OFFSET = 0.2;
64
65 float pivotYOffset = 0.0;
66
67 bool ignorePivot = false;
68 bool traceMatched = false;
69 bool isDefaultPos = false;
70
72
74 {
76
77 traceMatched = true;
78 objectPos = m_TargetObject.GetPosition();
79 if ( pivotYOffset != 0.0 )
80 { objectPos[1] = objectPos[1] + pivotYOffset; }
81 else
83 }
84 else
85 {
86 // default position for the action cursor
87 traceMatched = false;
88 isDefaultPos = true;
89 }
90
91 if ( ignorePivot && !traceMatched )
92 {
93 // hides the widget if we are in situation that the widget will be displayed on pivot point
94 // and we do not want to display it
95 x = 0.0;
96 y = 0.0;
97 }
98 else
99 {
100 // calculate screen position from traced results
101 if( isDefaultPos )
102 {
103 int w,h;
104 GetScreenSize(w, h);
105 x = w/2;
106 y = h/2;
107 }
108 else
109 {
110 vector screen_pos = GetGame().GetScreenPos( objectPos );
111 x = screen_pos[0];
112 y = screen_pos[1];
113 }
114 }
115
116 objectPos = "0 0 0";
117 isDefaultPos = false;
118 }
reference int m_PivotYOffset
Definition ObjectFollower.c:3
Object m_TargetObject
Definition ObjectFollower.c:6
Definition EnConvert.c:106
proto void GetScreenSize(out int x, out int y)

Перекрестные ссылки GetGame(), GetScreenSize(), m_PivotYOffset, m_TargetObject, x и y.

Используется в Update().

◆ GetOrientation()

vector GetOrientation ( )
inlineprotected
103 {
104 return m_Orientation;
105 }

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

◆ GetParent() [1/2]

LayoutHolder GetParent ( )
inlineprotected
149 {
150 return m_Parent;
151 }

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

◆ GetParent() [2/2]

Widget GetParent ( )
inlineprotected
22 {
23 return m_Parent;
24 }

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

◆ GetPin()

int GetPin ( )
inlineprotected
63 {
64 return m_PinWidget.GetText().ToInt();
65 }

◆ GetPlayer() [1/3]

void GetPlayer ( )
inlineprivate
112 {
114 }
void GetPlayer()
Definition ContinuousActionProgress.c:111

Перекрестные ссылки Class::CastTo(), GetGame(), GetPlayer() и m_Player.

Используется в GetPlayer(), GetPlayer(), Update() и Update().

◆ GetPlayer() [2/3]

void GetPlayer ( )
inlineprotected
221 {
223 }

Перекрестные ссылки Class::CastTo(), GetGame(), GetPlayer() и m_Player.

◆ GetPlayer() [3/3]

void GetPlayer ( )
inlineprotected
65 {
67 }

Перекрестные ссылки Class::CastTo(), GetGame(), GetPlayer() и m_Player.

◆ GetPort()

int GetPort ( )
inlineprivate
531 {
532 return m_ServerData.m_HostPort;
533 }

◆ GetPosition() [1/2]

vector GetPosition ( )
inlineprotected
98 {
99 return m_Position;
100 }

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

◆ GetPosition() [2/2]

vector GetPosition ( )
inlineprotected
69 {
70 if( m_FollowedObject && m_FollowedObject.GetPosition() != m_Position )
71 {
72 SetPosition( m_FollowedObject.GetPosition() );
73 }
74 return m_Position;
75 }

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

◆ GetProfileOption()

int GetProfileOption ( )
inlineprivate
95 {
96 return m_profileOption;
97 }

◆ GetQuickbarItemColor()

int GetQuickbarItemColor ( InventoryGrid grid,
InventoryItem item )
inlineprivate
19{}

◆ GetRadioFrequency()

string GetRadioFrequency ( )
inlineprotected
332 {
335 {
336 return trans.GetTunedFrequency().ToString();
337 }
338
339 return string.Empty;
340 }
Definition BaseRadio.c:2

Перекрестные ссылки Class::CastTo().

Используется в BuildCursor().

◆ GetRoot() [1/3]

Widget GetRoot ( )
inlineprivate
356 {
357 return m_Root;
358 }

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

◆ GetRoot() [2/3]

LayoutHolder GetRoot ( )
inlineprotected
130 {
131 if ( m_Parent )
132 {
134 return container;
135 }
136 else
137 {
138 return this;
139 }
140 }
Definition Container.c:2

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

◆ GetRoot() [3/3]

Widget GetRoot ( )
inlineprotected
94 {
95 return m_Root;
96 }

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

◆ GetRootWidget()

Widget GetRootWidget ( )
inlineprotected
172 {
173 return m_RootWidget;
174 }

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

◆ GetRotation()

vector GetRotation ( )
inlineprotected
78 {
80 {
81 return m_FollowedObject.GetOrientation();
82 }
83 return "0 0 0";
84 }

◆ GetSelectedIndex()

int GetSelectedIndex ( )
inlineprotected
447 {
448 return m_SelectedIndex;
449 }
int m_SelectedIndex
Definition TabberUI.c:11

◆ GetSelectedPlayer()

PlayerListEntryScriptedWidget GetSelectedPlayer ( )
inlineprotected
243 {
244 return m_SelectedEntry;
245 }
PlayerListEntryScriptedWidget m_SelectedEntry
Definition PlayerListScriptedWidget.c:9

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

◆ GetServerData()

GetServersResultRow GetServerData ( )
inlineprivate
810 {
811 return m_ServerData;
812 }

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

◆ GetServerID()

string GetServerID ( )
inlineprivate
541 {
542 return m_ServerData.m_Id;
543 }

◆ GetSteamQueryPort()

int GetSteamQueryPort ( )
inlineprivate
536 {
537 return m_ServerData.m_SteamQueryPort;
538 }

◆ GetTab()

Widget GetTab ( int index)
inlineprotected
191 {
192 return m_Tabs.Get( index );
193 }

◆ GetTabCount()

int GetTabCount ( )
inlineprotected
196 {
197 return m_Tabs.Count();
198 }

◆ GetTimeString()

string GetTimeString ( float total_time)
protected

DEPRECATED

◆ GetUID()

string GetUID ( )
inlineprotected
67 {
68 return m_UID;
69 }
string m_UID
Definition PlayerListEntryScriptedWidget.c:4

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

◆ GetValueString()

string GetValueString ( float total_value,
bool show_decimals = false )
inlineprotected
106 {
107 if (total_value > 0)
108 {
109 string out_string;
110
112 string number_str = total_value_int.ToString();
113
114 //number
115 if ( total_value >= 1000 )
116 {
117 int count;
118 int first_length = number_str.Length() % 3; //calculate position of the first separator
119 if ( first_length > 0 )
120 {
121 count = 3 - first_length;
122 }
123
124 for ( int i = 0; i < number_str.Length(); ++i )
125 {
126 out_string += number_str.Get( i );
127 count ++;
128
129 if ( count >= 3 )
130 {
131 out_string += " "; //separator
132 count = 0;
133 }
134 }
135 }
136 else
137 {
139 }
140
141 //decimals
142 if ( show_decimals )
143 {
144 string total_value_str = total_value.ToString();
145 int decimal_idx = total_value_str.IndexOf( "." );
146
147 if ( decimal_idx > -1 )
148 {
149 out_string.TrimInPlace();
151 }
152 }
153
154 return out_string;
155 }
156
157 return "0";
158 }

Используется в GetDistanceString() и UpdateStats().

◆ GetWidget()

Widget GetWidget ( )
inlineprotected
65 {
66 return m_Root;
67 }

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

◆ GetWidgetArray()

array< Widget > GetWidgetArray ( )
inlineprivate
90 {
91 return m_widget_array;
92 }

◆ HasItem()

bool HasItem ( InventoryItem item)
inlineprotected
745 {
746 return m_Items.Contains(item);
747 }

◆ HasItemQuantity()

int HasItemQuantity ( InventoryItem item)
inlineprivate
25{}

◆ Hide() [1/2]

void Hide ( )
inlineprivate
127 {
128 m_context_menu_root_widget.Show(false);
129
130 Clear();
131 }

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

Используется в OnMouseButtonDown() и OnMouseLeave().

◆ Hide() [2/2]

void Hide ( )
inlineprotected
123 {
124 m_FollowerRoot.Show( false );
125 }

◆ HideNewsfeed()

void HideNewsfeed ( )
inlineprotected
60 {
61 m_Root.Show( false );
62 }

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

◆ HideOwnedSlotsTooltip()

void HideOwnedSlotsTooltip ( )
inlineprotected
245 {
246 if (m_TooltipOwner)
247 {
248 ItemManager.GetInstance().HideTooltipSlot();
249 m_TooltipOwner = false;
250 }
251 }
Definition ItemManager.c:2
static ItemManager GetInstance()
Definition ItemManager.c:283
bool m_TooltipOwner
Definition LayoutHolder.c:11

Перекрестные ссылки ItemManager::GetInstance().

◆ HideOwnedTooltip()

void HideOwnedTooltip ( )
inlineprotected
236 {
237 if (m_TooltipOwner)
238 {
239 ItemManager.GetInstance().HideTooltip();
240 m_TooltipOwner = false;
241 }
242 }

Перекрестные ссылки ItemManager::GetInstance().

◆ HideStats()

void HideStats ( )
inlineprivate
51 {
52 m_Root.Show(false);
53 }

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

◆ HideTooltip() [1/2]

void HideTooltip ( )
inlineprotected
159 {
160 if ( m_TooltipTimer )
161 m_TooltipTimer.Stop();
162
164 if ( m_Tooltip )
165 m_Tooltip.HideTooltip();
166 }
ModInfo m_TooltipMod
Definition ModsMenuDetailed.c:15
ref Timer m_TooltipTimer
Definition ModsMenuDetailed.c:14
ModsMenuTooltip m_Tooltip
Definition ModsMenuDetailed.c:13

◆ HideTooltip() [2/2]

void HideTooltip ( )
inlineprotected
31 {
32 m_Root.Show(false);
33 m_Root.SetPos(0, 0);
34 m_Text.SetText("");
35 }

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

◆ Highlight()

void Highlight ( ModInfo mod_ref)
inlineprotected
69 {
70 if ( m_Highlighted )
71 {
72 m_Data.Get( m_Highlighted ).Deselect();
73 m_Content.Update();
74 }
75
77 if ( m_Highlighted )
78 {
79 m_Data.Get( m_Highlighted ).Select();
80 m_Content.Update();
82 }
83 }
ref map< ref ModInfo, ref ModsMenuDetailedEntry > m_Data
Definition ModsMenuDetailed.c:7
void ScrollToMod(ModInfo mod_ref)
Definition ModsMenuDetailed.c:85

Перекрестные ссылки string::Get(), m_Data и ScrollToMod().

Используется в Close() и HighlightFirst().

◆ HighlightFirst()

void HighlightFirst ( )
inlineprotected
64 {
65 Highlight( m_Data.GetKey( 0 ) );
66 }

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

◆ HudDebugEventHandler()

void HudDebugEventHandler ( HudDebug hud_debug)
inlineprivate
9 {
11 }

◆ Init() [1/6]

void Init ( )
inlineprotected
49 {
51 m_StoreButton = m_Root.FindAnyWidget("dlc_openStore");
53 m_VideoWidget = VideoWidget.Cast(m_Root.FindAnyWidget("dlc_Video"));
54 m_VideoWidget.Show(false);
55 m_DlcPromotionImage = ImageWidget.Cast(m_Root.FindAnyWidget("dlc_ImageMain"));
56 m_DlcPromotionImage.Show(true);
57 m_BannerFrame = m_Root.FindAnyWidget("dlc_BannerFrame");//dlc_BannerFrame //dlc_BannerFrameVideo
59 m_TitleTextDlc = TextWidget.Cast(m_Root.FindAnyWidget("dlc_title"));
60 m_DescriptionTextDlc = MultilineTextWidget.Cast(m_Root.FindAnyWidget("dlc_Description"));
61 m_DescriptionTextDlc.SetLineBreakingOverride(LinebreakOverrideMode.LINEBREAK_WESTERN);
63
65 //StartVideo();
66 }
MultilineTextWidget m_DescriptionTextDlc
Definition MainMenuPromo.c:16
ref BannerHandlerBase m_BannerHandler
Definition MainMenuPromo.c:21
TextWidget m_TitleTextDlc
Definition MainMenuPromo.c:15
VideoWidget m_VideoWidget
Definition MainMenuPromo.c:17
void UpdateAllPromotionInfo()
Definition MainMenuPromo.c:187
void BannerHandlerBase(Widget parent)
Definition BannerHandlerBase.c:9
ImageWidget m_DlcPromotionImage
Definition MainMenuPromo.c:14
Widget m_BannerFrame
Definition MainMenuPromo.c:10
void SetPlatformSpecifics()
Definition MainMenuPromo.c:169
Widget m_StoreButton
Definition MainMenuPromo.c:12

Перекрестные ссылки BannerHandlerBase(), m_Root, m_Root, SetPlatformSpecifics() и UpdateAllPromotionInfo().

Используется в MainMenuDlcHandlerBase(), OnWidgetScriptInit(), UiHintPanel() и VideoPlayer().

◆ Init() [2/6]

void Init ( )
inlineprotected
45 {
46 int x, y;
47 GetScreenSize( x, y );
49 m_CanSwitch = true;
50 m_TabsCount = 0;
51
52 Widget tab_controls = m_Root.FindAnyWidget("Tab_Control_Container");
53 if ( tab_controls )
54 {
55 Widget tab_child = tab_controls.GetChildren();
56
57 while ( tab_child )
58 {
60 tab_child = tab_child.GetSibling();
61 }
62
63 for ( int i = 0; i < m_TabsCount; i++ )
64 {
65 Widget tab_control = tab_controls.FindAnyWidget("Tab_Control_" + i);
66 Widget tab_widget = m_Root.FindAnyWidget("Tab_" + i);
68 {
69 tab_control.SetHandler(this);
71 m_Tabs.Insert(i, tab_widget);
72 }
73 else
74 {
75 Error("Tabber could not find correctly named tab or control at index " + i);
76 }
77 }
78
80 #ifdef PLATFORM_CONSOLE
82 #endif
83
85
86 m_InitTimer.Run(0.01, this, "AlignTabbers");
87 }
88
89 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
90 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
91
92 OnInputDeviceChanged(GetGame().GetInput().GetCurrentInputDevice());
93 }
void OnInputPresetChanged()
Definition ItemActionsWidget.c:97
int m_TabsCount
Definition TabberUI.c:7
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
Definition ItemActionsWidget.c:104
ref Timer m_InitTimer
Definition TabberUI.c:17
void UpdateControlsElements()
Definition TabberUI.c:458
void SelectTabControl(int index)
Definition TabberUI.c:313
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90

Перекрестные ссылки Error(), GetGame(), GetScreenSize(), m_Root, OnInputDeviceChanged(), OnInputPresetChanged(), UpdateControlsElements(), x и y.

◆ Init() [3/6]

void Init ( )
inlineprivate
42 {
43 m_PlayButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_PlayButton"));
44 m_PauseButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_PauseButton"));
45 m_StopButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_StopButton"));
46
47 m_OnceButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_OnceButton"));
48 m_RepeatButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_RepeatButton"));
49
50 m_LoadButton = ButtonWidget.Cast(m_Root.FindAnyWidget("vp_LoadButton"));
51 m_LoadVideo = GridSpacerWidget.Cast(m_Root.FindAnyWidget("vp_LoadVideo"));
52 m_LoadVideo.Show(false);
53
54 m_Progress = SliderWidget.Cast(m_Root.FindAnyWidget("vp_Progress"));
55 m_Progress.SetCurrent(0);
56
57 m_CurrentTime = TextWidget.Cast(m_Root.FindAnyWidget("vp_CurrentTime"));
58 m_TotalTime = TextWidget.Cast(m_Root.FindAnyWidget("vp_TotalTime"));
59
60 m_Buffering = ImageWidget.Cast(m_Root.FindAnyWidget("vp_Buffering"));
61 m_Buffering.Show(false);
62 m_VideoWidget = VideoWidget.Cast(m_Root.FindAnyWidget("vp_Video"));
63
64 m_VideoWidget.SetCallback(VideoCallback.ON_PLAY, OnPlaybackStart);
65 m_VideoWidget.SetCallback(VideoCallback.ON_PAUSE, OnPlaybackStop);
66 m_VideoWidget.SetCallback(VideoCallback.ON_STOP, OnPlaybackStop);
67 m_VideoWidget.SetCallback(VideoCallback.ON_END, OnPlaybackStop);
68 m_VideoWidget.SetCallback(VideoCallback.ON_LOAD, OnPlaybackStop);
69 m_VideoWidget.SetCallback(VideoCallback.ON_SEEK, UpdateCurrentTime);
70 m_VideoWidget.SetCallback(VideoCallback.ON_BUFFERING_START, OnBufferingStart);
71 m_VideoWidget.SetCallback(VideoCallback.ON_BUFFERING_END, OnBufferingEnd);
72 }
TextWidget m_TotalTime
Definition VideoPlayer.c:19
SliderWidget m_Progress
Definition VideoPlayer.c:16
void OnPlaybackStart()
Definition VideoPlayer.c:185
ButtonWidget m_LoadButton
Definition VideoPlayer.c:13
void OnPlaybackStop()
Definition VideoPlayer.c:193
ButtonWidget m_StopButton
Definition VideoPlayer.c:8
void UpdateCurrentTime()
Definition VideoPlayer.c:104
ButtonWidget m_OnceButton
Definition VideoPlayer.c:10
ButtonWidget m_RepeatButton
Definition VideoPlayer.c:11
void OnBufferingStart()
Definition VideoPlayer.c:203
TextWidget m_CurrentTime
Definition VideoPlayer.c:18
ButtonWidget m_PlayButton
Definition VideoPlayer.c:5
void OnBufferingEnd()
Definition VideoPlayer.c:208
ImageWidget m_Buffering
Definition VideoPlayer.c:21
ButtonWidget m_PauseButton
Definition VideoPlayer.c:6
VideoCallback
Definition EnWidgets.c:531

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

◆ Init() [4/6]

void Init ( )
inlineprivate
44 {
45 int state;
47
49 {
51 button.SetState( g_Game.GetProfileOption(m_profileOption) == state ); //works for bool values only!!!
52 }
53 }

Перекрестные ссылки Class::CastTo() и g_Game.

◆ Init() [5/6]

void Init ( DayZGame game)
inlineprotected
52 {
53 //as this class is now also being instantiated from within the DayZGame CTOR, where GetGame() does not work yet, we need a way to pass the game instance from DayZGame CTOR
54 //however for modding legacy support purposes, this was done without modifying the CTOR signature with the addition of the Init method,
55 //in order to keep compatibility with existing MODs, there is still a way to instantiate this class properly even without calling Init from the outside
56
57 if (m_Initialized)
58 return;
59 if (!game)//is null when instantiated from DayZGame during loading before calling Init explicitly
60 return;
61 m_Initialized = true;
62
63 m_Game = game;
64 // Load Json File
66 // If load successful
67 if (m_ContentList)
68 {
69 // Build the layout
71 // Get random page index
73 // Populate the layout with data
75 // Start the slideshow
77 }
78 else
79 ErrorEx("Could not create the hint panel. The data are missing!");
80 }
void BuildLayout(Widget parent_widget)
Definition UiHintPanel.c:93
void PopulateLayout()
Definition UiHintPanel.c:114
Widget m_ParentWidget
Definition UiHintPanel.c:29
bool m_Initialized
Definition UiHintPanel.c:28
ref array< ref HintPage > m_ContentList
Definition UiHintPanel.c:25
void LoadContentList()
Definition UiHintPanel.c:85
void RandomizePageIndex()
Definition UiHintPanel.c:171
void StartSlideshow()
Definition UiHintPanel.c:228

Перекрестные ссылки BuildLayout(), ErrorEx, LoadContentList(), m_ContentList, m_Game, m_Initialized, m_ParentWidget, PopulateLayout(), RandomizePageIndex() и StartSlideshow().

◆ Init() [6/6]

void Init ( Widget layoutRoot,
bool builtIn = false )
inlineprivate
29 {
32 {
33 m_context_menu_root_widget = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_inventory_context_menu.layout", layoutRoot);
34 m_context_menu_panel_widget = m_context_menu_root_widget.FindAnyWidget("PanelWidget");
36 m_context_menu_root_widget.SetHandler(this);
37 }
38 }
bool m_builtIn
Definition ContextMenu.c:11

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

◆ InitDependentOptionsVisibility() [1/4]

void InitDependentOptionsVisibility ( )
inlineprotected
665 {
666 }

Используется в OptionsMenuGame().

◆ InitDependentOptionsVisibility() [2/4]

void InitDependentOptionsVisibility ( )
inlineprotected
395 {
396 #ifdef PLATFORM_CONSOLE
397 m_QuickbarButton.Show(false);
398 #endif
399 }
ButtonWidget m_QuickbarButton
Definition OptionsMenuGame.c:14

◆ InitDependentOptionsVisibility() [3/4]

void InitDependentOptionsVisibility ( )
inlineprivate
364 {
365 }

◆ InitDependentOptionsVisibility() [4/4]

void InitDependentOptionsVisibility ( )
inlineprotected
347 {
348 }

◆ InitPresets()

void InitPresets ( int index,
Widget parent,
Input input )
inlineprotected
42 {
43 Widget kb_root = parent.FindAnyWidget( "keyboard_dropown" );
44
45 string profile_text;
46 input.GetProfileName( input.GetCurrentProfile(), profile_text );
47
49
50 m_KBDropdown.m_OnSelectItem.Insert( OnSelectKBPreset );
51
52 for( int i = 0; i < input.GetProfilesCount(); i++ )
53 {
54 input.GetProfileName( i, profile_text );
55 m_KBDropdown.AddElement( profile_text );
56 }
57
58 kb_root.Update();
59 }
ref DropdownPrefab m_KBDropdown
Definition KeybindingsGroup.c:11
void OnSelectKBPreset(int index)
Definition KeybindingsGroup.c:61
void DropdownPrefab(Widget root, string text="")
Definition DropdownPrefab.c:18

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

Используется в KeybindingsGroup().

◆ InitSelectors()

void InitSelectors ( )
inlineprotected
149 {
150 #ifdef PLATFORM_CONSOLE
151 #ifdef PLATFORM_PS4
152 array<string> opt1 = { "#STR_ENABLED", "#STR_DISABLED", "#STR_SELECTIVE" };
153 m_FlipModeSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "vsync_setting_option" ), m_FlipModeOption.GetIndex(), this, false, opt1 );
154 #endif
155 #else
156 array<string> opt1 = { "#options_controls_disabled", "#options_controls_enabled" };
157 array<string> opt2 = { "#options_video_fullscreen", "#options_video_windowed" };
158 array<string> opt3 = { "#options_video_low", "#options_video_medium", "#options_video_high" };
159 array<string> opt4 = { "#options_video_poor", "#options_video_low", "#options_video_medium", "#options_video_high", "#options_video_extreme" };
160 array<string> opt41 = { "#options_video_low", "#options_video_medium", "#options_video_high", "#options_video_extreme" };
161 array<string> opt6 = { "#options_controls_disabled", "#options_video_low", "#options_video_medium", "#options_video_high", "#options_video_extreme" };
162 array<string> opt7 = { "#options_controls_disabled", "#options_video_low", "#options_video_medium", "#options_video_high" };
163 array<string> opt9 = { "#options_controls_disabled", "#options_video_low", "#options_video_high" };
164
165
166 //Overall
167 m_OverallQualitySelector = OptionSelectorMultistate.NewFromAccess( m_Root.FindAnyWidget( "overall_quality_setting_option" ), m_OverallQualityOption, this, false );
168
169 //Screen
170 m_DisplayModeSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "display_mode_setting_option" ), m_DisplayModeOption.GetIndex(), this, false, opt2 );
171 m_ResolutionSelector = OptionSelectorMultistate.NewFromAccess( m_Root.FindAnyWidget( "resolution_setting_option" ), m_ResolutionOption, this, false );
172 m_BrightnessSelector = new OptionSelectorSlider( m_Root.FindAnyWidget( "brightness_setting_option" ), m_BrightnessOption.ReadValue(), this, false, m_BrightnessOption.GetMin(), m_BrightnessOption.GetMax() );
173 m_VSyncSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "vsync_setting_option" ), m_VSyncOption.GetIndex(), this, false, opt1 );
174 //m_ColorDepthSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "color_depth_setting_option" ), m_ColorDepthOption.GetIndex(), this, false, opt3 );
175
176 //Scene
177 m_ObjectDetailSelector = OptionSelectorMultistate.NewFromAccess( m_Root.FindAnyWidget( "object_detail_setting_option" ), m_ObjectDetailOption, this, false );
178 m_TerrainDetailSelector = OptionSelectorMultistate.NewFromAccess( m_Root.FindAnyWidget( "terrain_detail_setting_option" ), m_TerrainDetailOption, this, false );
179 m_TextureDetailSelector = OptionSelectorMultistate.NewFromAccess( m_Root.FindAnyWidget( "texture_detail_setting_option" ), m_TextureDetailOption, this, false );
180 m_ShadowDetailSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "shadow_detail_setting_option" ), m_ShadowDetailOption.GetIndex(), this, false, opt4 );
181 m_VisibilitySelector = OptionSelectorMultistate.NewFromAccess( m_Root.FindAnyWidget( "visibility_setting_option" ), m_VisibilityOption, this, false );
182 m_ObjectVisibilitySelector = OptionSelectorMultistate.NewFromAccess( m_Root.FindAnyWidget( "object_visibility_setting_option" ), m_ObjectVisibilityOption, this, false );
183 //Rendering
184 m_TextureFilteringSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "texture_filtering_setting_option" ), m_TextureFilteringOption.GetIndex(), this, false, opt3 );
185 m_TerrainSurfaceDetailSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "terrain_surface_detail_setting_option" ), m_TerrainSurfaceDetailOption.GetIndex(), this, false, opt41 );
186
187 m_PPAASelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "ppaa_setting_option" ), m_PPAAOption.GetIndex(), this, false, opt6 );
188 m_HWAASelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "hwaa_setting_option" ), m_HWAAOption.GetIndex(), this, false, opt7 );
189 m_ATOCSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "atoc_setting_option" ), m_ATOCOption.GetIndex(), this, false, opt1 );
190 m_AOSelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "ao_setting_option" ), m_AOOption.GetIndex(), this, false, opt6 );
191 m_PPQualitySelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "pp_setting_option" ), m_PPQualityOption.GetIndex(), this, false, opt3 );
192 m_SSRQualitySelector = new OptionSelectorMultistate( m_Root.FindAnyWidget( "ssr_setting_option" ), m_SSRQualityOption.GetIndex(), this, false, opt9 );
193 #endif
194
195 #ifdef PLATFORM_CONSOLE
196 #ifdef PLATFORM_PS4
197 m_FlipModeSelector.m_OptionChanged.Insert( OnFlipModeChanged );
198 #endif
199 #else
200 //Overall
201 m_OverallQualitySelector.m_OptionChanged.Insert( OnOverallQualityChanged );
202
203 //Screen
204 m_DisplayModeSelector.m_OptionChanged.Insert( OnDisplayModeChanged );
205 m_ResolutionSelector.m_OptionChanged.Insert( OnResolutionChanged );
206 m_BrightnessSelector.m_OptionChanged.Insert( OnBrightnessChanged );
207 m_VSyncSelector.m_OptionChanged.Insert( OnVSyncChanged );
208 //m_ColorDepthSelector.m_OptionChanged.Insert( OnColorDepthChanged );
209
210 //Scene
211 m_ObjectDetailSelector.m_OptionChanged.Insert( OnObjectDetailChanged );
212 m_TerrainDetailSelector.m_OptionChanged.Insert( OnTerrainDetailChanged );
213 m_TextureDetailSelector.m_OptionChanged.Insert( OnTextureDetailChanged );
214 m_ShadowDetailSelector.m_OptionChanged.Insert( OnShadowDetailChanged );
215 m_VisibilitySelector.m_OptionChanged.Insert( OnVisibilityChanged );
217
218 //Rendering
221 m_PPAASelector.m_OptionChanged.Insert( OnPPAAChanged );
222 m_HWAASelector.m_OptionChanged.Insert( OnHWAAChanged );
223 m_ATOCSelector.m_OptionChanged.Insert( OnATOCChanged );
224 m_AOSelector.m_OptionChanged.Insert( OnAOChanged );
225 m_PPQualitySelector.m_OptionChanged.Insert( OnPPQualityChanged );
226 m_SSRQualitySelector.m_OptionChanged.Insert( OnSSRQualityChanged );
227 #endif
228 }
ref NumericOptionsAccess m_BrightnessOption
Definition OptionsMenuVideo.c:60
ref ListOptionsAccess m_ObjectDetailOption
Definition OptionsMenuVideo.c:65
ref OptionSelectorMultistate m_PPAASelector
Definition OptionsMenuVideo.c:41
void OnPPQualityChanged(int value)
Definition OptionsMenuVideo.c:572
ref ListOptionsAccess m_PPAAOption
Definition OptionsMenuVideo.c:75
void OnOverallQualityChanged(int value)
Definition OptionsMenuVideo.c:429
ref OptionSelectorMultistate m_DisplayModeSelector
Definition OptionsMenuVideo.c:24
ref ListOptionsAccess m_OverallQualityOption
Definition OptionsMenuVideo.c:55
void OnATOCChanged(int value)
Definition OptionsMenuVideo.c:558
ref OptionSelectorMultistate m_PPQualitySelector
Definition OptionsMenuVideo.c:45
ref OptionSelectorMultistate m_AOSelector
Definition OptionsMenuVideo.c:44
ref ListOptionsAccess m_ResolutionOption
Definition OptionsMenuVideo.c:59
ref ListOptionsAccess m_HWAAOption
Definition OptionsMenuVideo.c:76
ref OptionSelectorMultistate m_TextureFilteringSelector
Definition OptionsMenuVideo.c:39
ref ListOptionsAccess m_TextureDetailOption
Definition OptionsMenuVideo.c:67
ref OptionSelectorSlider m_BrightnessSelector
Definition OptionsMenuVideo.c:26
ref OptionSelectorMultistate m_TerrainSurfaceDetailSelector
Definition OptionsMenuVideo.c:40
ref ListOptionsAccess m_VisibilityOption
Definition OptionsMenuVideo.c:69
void OnAOChanged(int value)
Definition OptionsMenuVideo.c:565
void OnBrightnessChanged(float value)
Definition OptionsMenuVideo.c:456
void OnSSRQualityChanged(int value)
Definition OptionsMenuVideo.c:579
ref ListOptionsAccess m_SSRQualityOption
Definition OptionsMenuVideo.c:80
void OnDisplayModeChanged(int value)
Definition OptionsMenuVideo.c:444
void OnHWAAChanged(int value)
Definition OptionsMenuVideo.c:537
void OnShadowDetailChanged(int value)
Definition OptionsMenuVideo.c:495
ref ListOptionsAccess m_TerrainDetailOption
Definition OptionsMenuVideo.c:66
ref ListOptionsAccess m_TerrainSurfaceDetailOption
Definition OptionsMenuVideo.c:74
ref OptionSelectorMultistate m_OverallQualitySelector
Definition OptionsMenuVideo.c:21
void OnTextureDetailChanged(int value)
Definition OptionsMenuVideo.c:488
ref ListOptionsAccess m_TextureFilteringOption
Definition OptionsMenuVideo.c:73
ref OptionSelectorMultistate m_TerrainDetailSelector
Definition OptionsMenuVideo.c:32
void OnVSyncChanged(float value)
Definition OptionsMenuVideo.c:462
void OnTextureFilteringChanged(int value)
Definition OptionsMenuVideo.c:516
ref OptionSelectorMultistate m_SSRQualitySelector
Definition OptionsMenuVideo.c:46
ref OptionSelectorMultistate m_HWAASelector
Definition OptionsMenuVideo.c:42
ref OptionSelectorMultistate m_ObjectDetailSelector
Definition OptionsMenuVideo.c:31
ref OptionSelectorMultistate m_VSyncSelector
Definition OptionsMenuVideo.c:27
ref OptionSelectorMultistate m_VisibilitySelector
Definition OptionsMenuVideo.c:35
ref ListOptionsAccess m_ShadowDetailOption
Definition OptionsMenuVideo.c:68
void OnResolutionChanged(int value)
Definition OptionsMenuVideo.c:450
void OnObjectVisibilityChanged(int value)
Definition OptionsMenuVideo.c:509
void OnVisibilityChanged(int value)
Definition OptionsMenuVideo.c:502
ref OptionSelectorMultistate m_ObjectVisibilitySelector
Definition OptionsMenuVideo.c:36
ref OptionSelectorMultistate m_ATOCSelector
Definition OptionsMenuVideo.c:43
void OnTerrainSurfaceDetailChanged(int value)
Definition OptionsMenuVideo.c:523
ref OptionSelectorMultistate m_ResolutionSelector
Definition OptionsMenuVideo.c:25
ref ListOptionsAccess m_PPQualityOption
Definition OptionsMenuVideo.c:79
ref OptionSelectorMultistate m_TextureDetailSelector
Definition OptionsMenuVideo.c:33
void OnPPAAChanged(int value)
Definition OptionsMenuVideo.c:530
ref ListOptionsAccess m_VSyncOption
Definition OptionsMenuVideo.c:61
void OnTerrainDetailChanged(int value)
Definition OptionsMenuVideo.c:481
ref ListOptionsAccess m_DisplayModeOption
Definition OptionsMenuVideo.c:58
ref ListOptionsAccess m_ObjectVisibilityOption
Definition OptionsMenuVideo.c:70
ref OptionSelectorMultistate m_ShadowDetailSelector
Definition OptionsMenuVideo.c:34
ref ListOptionsAccess m_AOOption
Definition OptionsMenuVideo.c:78
void OnObjectDetailChanged(int value)
Definition OptionsMenuVideo.c:474
ref ListOptionsAccess m_ATOCOption
Definition OptionsMenuVideo.c:77

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

Используется в OptionsMenuVideo().

◆ InitVideoLoading()

void InitVideoLoading ( )
inlineprivate
75 {
76 string path = "video\\*";
77
78 string fileName;
80
82
83 if (fileName != "")
84 {
86 }
87
88 while (FindNextFile(handle, fileName, fileAttr))
89 {
91 }
92
93 CloseFindFile(handle);
94 }
string path
Definition OptionSelectorMultistate.c:142
void CreateVideoLoadingEntry(string entryName)
Definition VideoPlayer.c:96
proto native void CloseFindFile(FindFileHandle handle)
enum FindFileFlags FindFile(string pattern, out string fileName, out FileAttr fileAttributes, FindFileFlags flags)
FindFileFlags
Definition EnSystem.c:514
proto bool FindNextFile(FindFileHandle handle, out string fileName, out FileAttr fileAttributes)
FileAttr
Definition EnSystem.c:506

Перекрестные ссылки CloseFindFile(), CreateVideoLoadingEntry(), FindFile(), FindNextFile() и path.

Используется в ToggleVideoSelection().

◆ InspectItem()

void InspectItem ( EntityAI item)
inlineprotected
208 {
209 InventoryMenu menu = InventoryMenu.Cast( GetGame().GetUIManager().FindMenu(MENU_INVENTORY) );
210 InspectMenuNew inspect_menu = InspectMenuNew.Cast( menu.EnterScriptedMenu(MENU_INSPECT) );
211 if ( inspect_menu )
212 {
213 GetGame().GetMission().GetHud().ShowHudUI( false );
214 GetGame().GetMission().GetHud().ShowQuickbarUI( false );
215 inspect_menu.SetItem( item );
216 }
217 }
void InventoryMenu()
Definition InventoryMenu.c:20
const int MENU_INSPECT
Definition constants.c:177
const int MENU_INVENTORY
Definition constants.c:178

Перекрестные ссылки GetGame(), InventoryMenu(), MENU_INSPECT и MENU_INVENTORY.

◆ InventoryGrid()

void InventoryGrid ( )
inlineprotected

◆ IsActive()

bool IsActive ( )
inlineprotected
162 {
163 return m_IsActive;
164 }
bool m_IsActive
Definition LayoutHolder.c:9

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

◆ IsAlternateChanged() [1/2]

bool IsAlternateChanged ( )
inlineprotected
51 {
53 }
bool m_IsAlternateEdited
Definition KeybindingElement.c:16

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

◆ IsAlternateChanged() [2/2]

bool IsAlternateChanged ( )
inlineprotected
50 {
52 }

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

◆ IsChanged() [1/7]

bool IsChanged ( )
inlineprotected
46 {
47 return m_IsEdited;
48 }
bool m_IsEdited
Definition KeybindingElement.c:15

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

◆ IsChanged() [2/7]

bool IsChanged ( )
inlineprotected
45 {
46 return m_IsEdited;
47 }

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

◆ IsChanged() [3/7]

bool IsChanged ( )
inlineprotected
166 {
168 {
169 if( element.IsChanged() || element.IsAlternateChanged() )
170 {
171 return true;
172 }
173 }
174 return false;
175 }

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

◆ IsChanged() [4/7]

bool IsChanged ( )
inlineprotected
363 {
364 #ifdef PLATFORM_CONSOLE
365 return ( ( m_KeyboardSelector.IsEnabled() && m_KeyboardOption.GetIndex() == 0 ) || ( !m_KeyboardSelector.IsEnabled() && m_KeyboardOption.GetIndex() == 1 ) );
366 #else
367 return false;
368 #endif
369 }

◆ IsChanged() [5/7]

bool IsChanged ( )
inlineprotected
174 {
175 bool universal = (m_ShowHUDSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.HUD) || m_ShowCrosshairSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.CROSSHAIR));
176 universal = universal || m_HUDBrightnessSelector.GetValue() != g_Game.GetProfileOptionFloat(EDayZProfilesOptions.HUD_BRIGHTNESS);
177 universal = universal || m_ShowHUDVehicleSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.HUD_VEHICLE);
178 universal = universal || (m_ShowGameSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.GAME_MESSAGES) || m_ShowAdminSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.ADMIN_MESSAGES));
179 universal = universal || m_ShowPlayerSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.PLAYER_MESSAGES);
180 universal = universal || m_BleedingIndication.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION);
181 universal = universal || m_ConnectivityInfo.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO);
182 universal = universal || m_LanguageOption.IsChanged();
183
184 #ifdef PLATFORM_CONSOLE
185 return universal;
186 #else
187 return (universal || m_ShowQuickbarSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.QUICKBAR) || m_ShowServerInfoSelector.GetValue() != g_Game.GetProfileOptionBool(EDayZProfilesOptions.SERVERINFO_DISPLAY));
188 #endif
189 }

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

◆ IsChanged() [6/7]

bool IsChanged ( )
inlineprivate
266 {
267 bool universal = (m_AmbientMusicSelector.GetValue() != g_Game.GetProfileOptionInt(EDayZProfilesOptions.AMBIENT_MUSIC_MODE));
268
269 return universal;
270 }

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

◆ IsChanged() [7/7]

bool IsChanged ( )
inlineprotected
257 {
258 return false;
259 }

◆ IsDisplayable()

bool IsDisplayable ( )
inlineprotected
177 {
178 return true;
179 }

◆ IsEmpty()

bool IsEmpty ( )
inlineprotected
69 {
70 return ( m_Entries.Count() == 0 );
71 }

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

◆ IsEnteringKeyBind()

bool IsEnteringKeyBind ( )
inlineprotected
119 {
121 }

◆ IsFocusable() [1/5]

bool IsFocusable ( Widget w)
inlineprotected
157 {
158 if( w )
159 {
160 return ( w == m_InterpTimeWidget || w == m_TotalTimeWidget || w == m_FOVWidget || w == m_DOFWidget );
161 }
162 return false;
163 }

Используется в OnFocus(), OnFocusLost(), OnMouseEnter() и OnMouseLeave().

◆ IsFocusable() [2/5]

bool IsFocusable ( Widget w)
inlineprotected
173 {
174 if( w )
175 {
176 return ( w == m_DLDLC || w == m_Discord || w == m_Feedback || w == m_DayZForum || w == m_Twitter || w == m_Youtube );
177 }
178 return false;
179 }
Widget m_DLDLC
Definition MainMenuNewsfeed.c:5
Widget m_DayZForum
Definition MainMenuNewsfeed.c:8
Widget m_Twitter
Definition MainMenuNewsfeed.c:9
Widget m_Feedback
Definition MainMenuNewsfeed.c:7
Widget m_Youtube
Definition MainMenuNewsfeed.c:10
Widget m_Discord
Definition MainMenuNewsfeed.c:6

◆ IsFocusable() [3/5]

bool IsFocusable ( Widget w)
inlineprotected
333 {
334 return w && (w.GetFlags() & ~WidgetFlags.NOFOCUS);
335 }

◆ IsFocusable() [4/5]

bool IsFocusable ( Widget w)
inlineprotected
27 {
28 if (w)
29 {
30 return w == m_Parent;
31 }
32 return false;
33 }

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

◆ IsFocusable() [5/5]

bool IsFocusable ( Widget w)
inlineprotected
263 {
264 if (w)
265 return (w == m_Root || w == m_Favorite || w == m_ServerModsExpand);
266
267 return false;
268 }
ButtonWidget m_ServerModsExpand
Definition ServerBrowserEntry.c:26

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

◆ IsGloballyMuted() [1/2]

bool IsGloballyMuted ( )
inlineprotected
77 {
78 return m_GlobalMute;
79 }
bool m_GlobalMute
Definition PlayerListEntryScriptedWidget.c:6

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

◆ IsGloballyMuted() [2/2]

bool IsGloballyMuted ( string UID)
inlineprotected
218 {
219 if ( m_Entries && m_Entries.Get( UID ) )
220 {
221 return m_Entries.Get( UID ).IsGloballyMuted();
222 }
223 return false;
224 }

Перекрестные ссылки m_Entries и UID.

◆ IsInfoPanelVisible()

bool IsInfoPanelVisible ( )
inlineprotected
80 {
81 return m_Root.IsVisible();
82 }

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

◆ IsLocalPlayer()

bool IsLocalPlayer ( )
inlineprotected
194 {
195 string local_uid;
196 if( GetGame().GetUserManager() )
197 {
198 return GetGame().GetUserManager().GetSelectedUser().GetUid() == m_UID;
199 }
200 return false;
201 }

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

Используется в OnDoubleClick(), PlayerListEntryScriptedWidget() и ToggleMute().

◆ IsMuted() [1/2]

bool IsMuted ( )
inlineprotected
72 {
73 return m_Mute;
74 }
bool m_Mute
Definition PlayerListEntryScriptedWidget.c:5

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

◆ IsMuted() [2/2]

bool IsMuted ( string UID)
inlineprotected
209 {
210 if ( m_Entries && m_Entries.Get( UID ) )
211 {
212 return m_Entries.Get( UID ).IsMuted();
213 }
214 return false;
215 }

Перекрестные ссылки m_Entries и UID.

◆ IsOnline()

bool IsOnline ( )
inlineprotected
258 {
259 return m_IsOnline;
260 }
bool m_IsOnline
Definition ServerBrowserDetailsContainer.c:36

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

Используется в OnClick(), OnDoubleClick(), Preview(), SetPing(), SetPopulationEx(), SetServerMapName(), SetSlots() и UpdateColors().

◆ IsOpen()

bool IsOpen ( )
inlineprotected
54 {
55 return m_Root.IsVisible();
56 }

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

◆ IsTime()

bool IsTime ( float start_time,
float end_time )
inlineprotected
80 {
81 if( m_EventTime >= start_time )
82 {
83 if( m_EventTime <= end_time )
84 {
85 return true;
86 }
87 }
88 return false;
89 }

◆ IsValidPos()

bool IsValidPos ( int index)
inlineprotected
261 {
262 return ( m_GridSize > index && index > -1 );
263 }

Используется в OnDoubleClick(), OnDrag(), OnDraggingOver(), OnDropReceived(), OnMouseButtonDown(), OnMouseButtonUp() и OnMouseEnter().

◆ IsVisible() [1/2]

bool IsVisible ( )
inlineprivate
135 {
136 return m_context_menu_root_widget.IsVisible();
137 }

◆ IsVisible() [2/2]

bool IsVisible ( )
inlineprotected
182 {
183 if (m_RootWidget)
184 {
185 return m_RootWidget.IsVisible();
186 }
187 return false;
188 }

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

◆ ItemActionsWidget()

void ItemActionsWidget ( )
inlineprotected
35 {
38 m_Single = null;
40 m_AM = null;
41
42 m_FadeTimer = new WidgetFadeTimer;
43 m_Faded = true;
44
45 m_HealthEnabled = true;
46 m_QuantityEnabled = true;
47
48 m_Hud = GetHud();
49 m_Hidden = true;
50 m_ItemFrozen = false;
51
52 m_UseActionWrapper = GetUApi().GetInputByID(UAAction).GetPersistentWrapper();
53
54 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Insert(Update);
55 GetGame().GetMission().GetOnInputPresetChanged().Insert(OnInputPresetChanged);
56 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
57 }
UAIDWrapper m_UseActionWrapper
Definition ItemActionsWidget.c:12
IngameHud m_Hud
Definition ItemActionsWidget.c:10

Перекрестные ссылки CALL_CATEGORY_GUI, GetGame(), GetHud(), GetUApi(), m_AM, m_Hud, OnInputDeviceChanged(), OnInputPresetChanged() и Update().

◆ KeybindingElement()

void KeybindingElement ( int key_index,
Widget parent,
KeybindingsGroup group )
inlineprotected
24 {
25 m_Root = GetGame().GetWorkspace().CreateWidgets( GetLayoutName(), parent );
26 m_ElementName = TextWidget.Cast( m_Root.FindAnyWidget( "setting_label" ) );
27 m_ElementModifier = TextWidget.Cast( m_Root.FindAnyWidget( "modifier_label" ) );
28 m_PrimaryBindButton = ButtonWidget.Cast( m_Root.FindAnyWidget( "primary_bind" ) );
29 m_AlternativeBindButton = ButtonWidget.Cast( m_Root.FindAnyWidget( "alternative_bind" ) );
30 m_PrimaryClear = m_Root.FindAnyWidget( "primary_clear" );
31 m_AlternativeClear = m_Root.FindAnyWidget( "alternative_clear" );
32
33 m_Group = group;
35
36 Reload();
37 m_Root.SetHandler( this );
38 }
Widget m_AlternativeClear
Definition KeybindingElement.c:12
TextWidget m_ElementModifier
Definition KeybindingElement.c:8
string GetLayoutName()
Definition ControlMappingKeybinds.c:168
ButtonWidget m_AlternativeBindButton
Definition KeybindingElement.c:10
Widget m_PrimaryClear
Definition KeybindingElement.c:11
TextWidget m_ElementName
Definition KeybindingElement.c:7
int m_ElementIndex
Definition KeybindingElement.c:14
ButtonWidget m_PrimaryBindButton
Definition KeybindingElement.c:9
KeybindingsGroup m_Group
Definition KeybindingElement.c:4

Перекрестные ссылки GetGame(), GetLayoutName(), m_Root и Reload().

Используется в AddAction().

◆ KeybindingElementNew()

void KeybindingElementNew ( int key_index,
Widget parent,
KeybindingsContainer group )
inlineprotected
23 {
24 m_Root = GetGame().GetWorkspace().CreateWidgets( GetLayoutName(), parent );
25 m_ElementName = TextWidget.Cast( m_Root.FindAnyWidget( "setting_label" ) );
26 m_ElementModifier = TextWidget.Cast( m_Root.FindAnyWidget( "modifier_label" ) );
27 m_PrimaryBindButton = ButtonWidget.Cast( m_Root.FindAnyWidget( "primary_bind" ) );
28 m_AlternativeBindButton = ButtonWidget.Cast( m_Root.FindAnyWidget( "alternative_bind" ) );
29 m_PrimaryClear = m_Root.FindAnyWidget( "primary_clear" );
30 m_AlternativeClear = m_Root.FindAnyWidget( "alternative_clear" );
31
34
35 Reload();
36 m_Root.SetHandler( this );
37 }
KeybindingsContainer m_Container
Definition KeybindingElementNew.c:3

Перекрестные ссылки GetGame(), GetLayoutName(), m_Root и Reload().

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

◆ KeybindingsGroup()

void KeybindingsGroup ( int index,
Input input,
Widget parent,
KeybindingsMenu menu )
inlineprotected
14 {
16 m_Menu = menu;
17
18 string group_name;
19 input.GetActionGroupName( index, group_name );
20
21 m_Root = GetGame().GetWorkspace().CreateWidgets( GetLayoutName(), parent );
22 Widget subgroup = m_Root.FindAnyWidget( "group_content" );
23
24// for( int i = 0; i < 1; i++ )
25// {
26 AddSubgroup( /*index, */subgroup, input );
27// }
28
29 InitPresets( index, m_Root.FindAnyWidget( "group_header" ), input );
30
31 subgroup.Update();
32
33 m_Root.SetHandler( this );
34 }
void AddSubgroup(Widget parent, Input input)
Definition KeybindingsGroup.c:87
void InitPresets(int index, Widget parent, Input input)
Definition KeybindingsGroup.c:41

Перекрестные ссылки AddSubgroup(), GetGame(), GetLayoutName(), InitPresets(), m_Menu и m_Root.

◆ KillVideo()

void KillVideo ( )
inlineprotected
284 {
285 m_VideoWidget.Unload();
286 }

◆ LayoutHolder()

void LayoutHolder ( LayoutHolder parent)
inlineprotected
90 {
91 m_Parent = parent;
92
96
97 m_TooltipOwner = false;
98
99 if ( m_LayoutName != "" )
100 {
101 m_MainWidget = GetGame().GetWorkspace().CreateWidgets( m_LayoutName, null, false );
102 m_MainWidget.Show( true, false );
103 }
104
106
107 if ( m_ParentWidget )
108 {
109 m_ParentWidget.Show( true, false );
110 if ( m_MainWidget )
111 {
112 m_ParentWidget.AddChild( m_MainWidget, false );
113 }
114 }
115
116 if ( m_ImmedUpdate )
117 {
118 if ( m_MainWidget )
119 m_MainWidget.Update();
120 }
121 }
bool m_ImmedUpdate
Definition LayoutHolder.c:10
void SetParentWidget()
Definition LayoutHolder.c:142
string m_LayoutName
Definition LayoutHolder.c:7
void SetImmedUpdate()
Definition LayoutHolder.c:20

Перекрестные ссылки GetGame(), m_Parent, m_ParentWidget, m_RootWidget и LayoutHolder::SetLayoutName().

◆ Lighten()

void Lighten ( Widget w,
Widget enterW,
int x,
int y )
inlineprivate
784 {
785 float alpha = 0.3;
786
787 if (GetFocus() == w || m_Selected)
788 {
789 return;
790 }
791
792 if (w == m_Root && (m_Favorite && enterW == m_Favorite))
793 {
794 return;
795 }
796
797 m_Root.SetColor(ARGB(255, 0, 0, 0));
799 UpdateColors();
800
801 if (m_Index % 2)
802 {
803 alpha = 0;
804 }
805
806 m_Root.SetAlpha(alpha);
807 }
proto native Widget GetFocus()

Перекрестные ссылки ARGB(), GetFocus(), m_Root, SetPopulationEx() и UpdateColors().

Используется в Deselect(), OnFocusLost(), OnMouseLeave() и UpdateEntry().

◆ LimitTextBoxCharacterCount()

bool LimitTextBoxCharacterCount ( out string text,
int max_length )
inlineprotected

Limits the given text to 'max_length' character count. Returns true if any change was done to the input.

284 {
285 int length = text.Length();
286 bool was_text_changed = false;
287
288 if (length > max_length)
289 {
290 text = text.Substring(0, max_length);
291 was_text_changed = true;
292 }
293
294 return was_text_changed;
295 }

Используется в GenerateValidFilter() и ProcessIntoIPAddress().

◆ LoadContentList()

void LoadContentList ( )
inlineprotected
86 {
87 string errorMessage;
90 }
const string m_DataPath
Definition UiHintPanel.c:14

Перекрестные ссылки ErrorEx, m_ContentList и m_DataPath.

Используется в Init().

◆ LoadData() [1/2]

void LoadData ( )
inlineprotected
96 {
97 string picture = m_Data.GetPicture();
98 string logo = m_Data.GetLogoSmall();
99 string name = m_Data.GetName();
100 string description = m_Data.GetOverview();
101 string author = m_Data.GetAuthor();
102 string version = m_Data.GetVersion();
103 string action = m_Data.GetAction();
104
105 //Load Large Icon
106 if (picture != "")
107 {
108 m_IconBig.LoadImageFile(0, picture);
109 }
110 else if (logo != "")
111 {
112 m_IconBig.LoadImageFile(0, logo);
113 }
114 else
115 {
116 m_IconBig.LoadImageFile(0, ModInfo.DEFAULT_PICTURE);
117 }
118
119 //Load Small Icon
120 if (logo != "")
121 {
122 m_IconSmall.LoadImageFile(0, logo);
123 }
124 else if (picture != "")
125 {
126 m_IconSmall.LoadImageFile(0, picture);
127 }
128 else
129 {
130 m_IconSmall.LoadImageFile(0, ModInfo.DEFAULT_LOGO_SMALL);
131 }
132
133 if (name != "")
134 {
135 m_Name.SetText(name);
136 }
137
138 if (description != "")
139 {
140 m_Description.SetText(description);
141 }
142 else
143 {
145 }
146 m_Description.Update();
147 m_Detail.Update();
148
149 if (author != "")
150 {
151 m_Author.Show( true );
152 m_Author.SetText(author);
153 }
154
155 if (version != "")
156 {
157 m_Version.Show( true );
158 m_Version.SetText(version);
159 }
160
161 #ifdef PLATFORM_WINDOWS
162 if (action != "")
163 {
164 m_ActionWebsite.Show( true );
165 }
166 #endif
167
168 if ( m_Data.GetIsDLC() )
169 {
170 bool isOwned = m_Data.GetIsOwned();
171 m_Root.FindAnyWidget("ModOwnership").Show( true );
172 m_Root.FindAnyWidget("Owned").Show( isOwned );
173 m_Root.FindAnyWidget("Unowned").Show( !isOwned );
174 m_ActionPurchase.Show( true );
175 m_Version.Show( false );
176 }
177 }
Definition ModInfo.c:2
static const string DEFAULT_LOGO_SMALL
Definition ModInfo.c:20
static const string DEFAULT_PICTURE
Definition ModInfo.c:18
static const string DEFAULT_OVERVIEW
Definition ModInfo.c:22
MultilineTextWidget m_Author
Definition ModsMenuDetailedEntry.c:13
RichTextWidget m_ActionPurchase
Definition ModsMenuDetailedEntry.c:16
RichTextWidget m_Description
Definition ModsMenuDetailedEntry.c:19
string m_Name
Definition PlayerListEntryScriptedWidget.c:3
TextWidget m_Version
Definition ModsMenuDetailedEntry.c:14
RichTextWidget m_ActionWebsite
Definition ModsMenuDetailedEntry.c:15

Перекрестные ссылки ModInfo::DEFAULT_LOGO_SMALL, ModInfo::DEFAULT_OVERVIEW, ModInfo::DEFAULT_PICTURE, m_Data, m_Description, m_Name, m_Root и name.

Используется в LoadFilters(), ModsMenuDetailedEntry() и ModsMenuSimpleEntry().

◆ LoadData() [2/2]

void LoadData ( )
inlineprotected
31 {
32 string logo = m_Data.GetLogo();
33 string logo_over = m_Data.GetLogoOver();
34
35 if (logo != "")
36 {
37 m_Icon.LoadImageFile(0, logo);
38 }
39 else
40 {
41 m_Icon.LoadImageFile(0, ModInfo.DEFAULT_LOGO);
42 }
43
44 if (logo_over != "")
45 {
46 m_Icon.LoadImageFile(1, logo_over);
47 }
48 else
49 {
50 m_Icon.LoadImageFile(1, ModInfo.DEFAULT_LOGO_OVER);
51 }
52 m_HasLogoOver = true;
53 }
static const string DEFAULT_LOGO
Definition ModInfo.c:19
static const string DEFAULT_LOGO_OVER
Definition ModInfo.c:21
bool m_HasLogoOver
Definition ModsMenuSimpleEntry.c:7
ImageWidget m_Icon
Definition ModsMenuSimpleEntry.c:4

Перекрестные ссылки ModInfo::DEFAULT_LOGO, ModInfo::DEFAULT_LOGO_OVER и m_Data.

◆ LoadEntries() [1/2]

void LoadEntries ( array< ref ModInfo > data)
inlineprotected
169 {
170 foreach (ModInfo var : data)
171 {
173 m_Data.Insert(var, entry);
174 }
175
176 m_Content.Update();
177 float y_c = m_Scroll.GetContentHeight();
178 float x, y;
179 m_Content.GetScreenSize( x, y );
180 if ( y > y_c )
181 {
182 m_Scroll.SetAlpha( 1 );
183 }
184 }
void ModsMenuDetailedEntry(ModInfo data, Widget parent, ModsMenuDetailed parent_menu)
Definition ModsMenuDetailedEntry.c:25
ScrollWidget m_Scroll
Definition ModsMenuDetailed.c:6

Перекрестные ссылки string::Insert(), m_Data, ModsMenuDetailedEntry(), x и y.

Используется в ModsMenuDetailed() и ModsMenuSimple().

◆ LoadEntries() [2/2]

void LoadEntries ( array< ref ModInfo > data)
inlineprotected
29 {
31 int count = Math.Clamp(data.Count(),0,MOD_DISPLAY_COUNT_MAX);
32
33 for (int i = 0; i < count; i++)
34 {
36 m_Data.Insert(data[i], entry);
37 }
38 }
void ModsMenuSimpleEntry(ModInfo data, int index, Widget parent, ModsMenuSimple parent_menu)
Definition ModsMenuSimpleEntry.c:11
const int MOD_DISPLAY_COUNT_MAX
Definition ModsMenuSimple.c:3
Widget m_MoreButton
Definition ModsMenuSimple.c:6
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

Перекрестные ссылки Math::Clamp(), string::Insert(), m_Data, m_Root и ModsMenuSimpleEntry().

◆ LoadFilters()

void LoadFilters ( )
inlineprotected
126 {
127 string data;
128 if (m_Tab.GetTabType() == TabType.LAN || m_Tab.GetTabType() == TabType.FAVORITE)
129 return;
130
131 GetGame().GetProfileString("SB_Filter_" + m_Tab.GetTabType(), data);
132
133 m_Options.Clear();
134
135 if (data != "")
136 {
137 string errorMessage;
140 }
141
142 if (m_Options && m_Options.Count() >= 6)
143 {
144 m_SearchByName.SetText(m_Options.Get("m_SearchByName"));
145 m_DLCFilter.SetStringOption(m_Options.Get("m_DLCFilter"));
146 m_RegionFilter.SetStringOption(m_Options.Get("m_RegionFilter"), false);
147 m_PingFilter.SetStringOption(m_Options.Get("m_PingFilter"), false);
148 m_FriendsPlayingFilter.SetStringOption(m_Options.Get("m_FriendsPlayingFilter"), false);
149 m_PreviouslyPlayedFilter.SetStringOption(m_Options.Get("m_PreviouslyPlayedFilter"), false);
150 m_FullServerFilter.SetStringOption(m_Options.Get("m_FullServerFilter"), false);
151 m_ThirdPersonFilter.SetStringOption(m_Options.Get("m_ThirdPersonFilter"), false);
152 m_PasswordFilter.SetStringOption(m_Options.Get("m_PasswordFilter"), false);
153 m_WhitelistFilter.SetStringOption(m_Options.Get("m_WhitelistFilter"), false);
154 m_MapFilter.SetStringOption(m_Options.Get("m_MapFilter"), false);
155
156 #ifdef PLATFORM_CONSOLE
157 m_SortingFilter.SetStringOption(m_Options.Get("m_SortingFilter"), false);
158 m_KeyboardFilter.SetStringOption(m_Options.Get("m_KeyboardFilter"), false);
159 #else
160 m_FavoritedFilter.SetStringOption(m_Options.Get("m_FavoritedFilter"), false);
161 #endif
162
163 if (m_Options.Count() >= 12)
164 {
165 #ifdef PLATFORM_WINDOWS
166 #ifndef PLATFORM_CONSOLE
167 m_SearchByIP.SetText(m_Options.Get("m_SearchByIP"));
168 m_CharacterAliveFilter.SetStringOption(m_Options.Get("m_CharacterAliveFilter"), false);
169 m_VersionMatchFilter.SetStringOption(m_Options.Get("m_VersionMatchFilter"), false);
170 #endif
171 #endif
172 }
173 }
174 }
ref OptionSelectorMultistate m_CharacterAliveFilter
Definition ServerBrowserFilterContainer.c:9
ref OptionSelectorMultistate m_SortingFilter
Definition ServerBrowserFilterContainer.c:10
void LoadData()
Definition ModsMenuDetailedEntry.c:95

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

Используется в ServerBrowserFilterContainer().

◆ LoadMapFilterOptions()

array< string > LoadMapFilterOptions ( )
inlineprotected
105 {
106 array<string> mapOptions = {"#server_browser_disabled"};
107 for (int i = ServerBrowserHelperFunctions.GetInstance().INTERNAL_MAP_NAMES.Count() - 1; i >= 0; i--)
108 {
109 mapOptions.Insert(ServerBrowserHelperFunctions.GetInstance().INTERNAL_MAP_NAMES.GetElement(i));
110 }
111
112 return mapOptions;
113 }
static ServerBrowserHelperFunctions GetInstance()
Definition BiosLobbyService.c:127

Перекрестные ссылки ServerBrowserHelperFunctions::GetInstance().

Используется в ServerBrowserFilterContainer().

◆ LoadPermissions()

void LoadPermissions ( BiosPrivacyPermissionResultArray results)
inlineprotected
48 {
50 {
51 if ( result.m_Permission == EBiosPrivacyPermission.COMMUNICATE_VOICE )
52 {
53 m_GlobalMute = !result.m_IsAllowed;
54 if ( result.m_IsAllowed && !m_Mute )
55 {
56 m_MuteIcon.Show( false );
57 }
58 else if ( !result.m_IsAllowed || m_Mute )
59 {
60 m_MuteIcon.Show( true );
61 }
62 }
63 }
64 }
EBiosPrivacyPermission
EBiosPrivacyPermission represents possible privacy permissions.
Definition BiosPrivacyService.c:6
BiosPrivacyPermissionResult represents the per permission result of the GetPermissionsAsync reqeust.
Definition BiosPrivacyService.c:28
ImageWidget m_MuteIcon
Definition PlayerListEntryScriptedWidget.c:12

◆ LoadVideo()

void LoadVideo ( string videoPath)
inlineprotected
235 {
236 string path;
237 #ifdef PLATFORM_WINDOWS
238 path = ".\\video\\";
239 #endif
240 #ifdef PLATFORM_PS4
241 path = "/app0/video/";
242 #endif
243 #ifdef PLATFORM_XBOX
244 path = "G:\\video\\";
245 #endif
246
247 m_VideoWidget.Load(path + videoPath, m_VideoWidget.IsLooping());
248
249 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(UpdateTotalTime, 0, true);
250 }
void UpdateTotalTime()
Definition VideoPlayer.c:113
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

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

Используется в OnClick().

◆ LoadVideoFile()

bool LoadVideoFile ( )
inlineprotected

returns 'true' when video is loaded

104 {
105 if (m_VideoWidget.GetState() != VideoState.NONE)
106 return true;
107
108 string path = "video\\" + m_DlcInfo.VideoFileName;
109 if (m_DlcInfo.VideoFileName != "")
110 return m_VideoWidget.Load(path, true);
111
112 return false;
113 }
ref JsonDataDLCInfo m_DlcInfo
Definition MainMenuPromo.c:19
VideoState
Definition EnWidgets.c:517

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

Используется в StartVideo().

◆ MainMenuDlcHandlerBase()

void MainMenuDlcHandlerBase ( ModInfo info,
Widget parent,
JsonDataDLCInfo DlcInfo )
inlineprotected
24 {
25 CreateRootWidget(parent);
26 m_Root.SetHandler(this);
29 Init();
30
31 #ifdef PLATFORM_CONSOLE
32 GetGame().GetContentDLCService().m_OnChange.Insert(OnDLCChange);
33 if (GetGame().GetMission())
34 {
35 GetGame().GetMission().GetOnInputDeviceChanged().Insert(OnInputDeviceChanged);
36 }
37 #endif
38 }
void CreateRootWidget(Widget parent)
Definition MainMenuPromo.c:68

Перекрестные ссылки CreateRootWidget(), GetGame(), Init(), m_Root, OnDLCChange() и OnInputDeviceChanged().

◆ MainMenuNewsfeed()

void MainMenuNewsfeed ( Widget root)
inlineprotected
20 {
21 m_Root = root;
22
23 m_DLDLC = m_Root.FindAnyWidget( "downloaddlc" );
24 m_Discord = m_Root.FindAnyWidget( "discord" );
25 m_Feedback = m_Root.FindAnyWidget( "feedback_tracker" );
26 m_DayZForum = m_Root.FindAnyWidget( "dayz_forums" );
27 m_Twitter = m_Root.FindAnyWidget( "twitter" );
28 m_Youtube = m_Root.FindAnyWidget( "youtube" );
29
30 m_MainText1 = TextWidget.Cast( m_Root.FindAnyWidget( "SGInfoT1" ) );
31 m_MainText2 = TextWidget.Cast( m_Root.FindAnyWidget( "SGInfoT2" ) );
32 m_MainText3 = TextWidget.Cast( m_Root.FindAnyWidget( "SGInfoT3" ) );
33 m_SecText1 = TextWidget.Cast( m_Root.FindAnyWidget( "SGInfoC1" ) );
34 m_SecText2 = TextWidget.Cast( m_Root.FindAnyWidget( "SGInfoC2" ) );
35 m_SecText3 = TextWidget.Cast( m_Root.FindAnyWidget( "SGInfoC3" ) );
36
38
39 m_Root.SetHandler( this );
40 }
TextWidget m_MainText3
Definition MainMenuNewsfeed.c:14
TextWidget m_SecText1
Definition MainMenuNewsfeed.c:15
TextWidget m_SecText3
Definition MainMenuNewsfeed.c:17
void ShowNewsfeed()
Definition MainMenuNewsfeed.c:42
TextWidget m_MainText1
Definition MainMenuNewsfeed.c:12
TextWidget m_MainText2
Definition MainMenuNewsfeed.c:13
TextWidget m_SecText2
Definition MainMenuNewsfeed.c:16

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

◆ MainMenuStats()

void MainMenuStats ( Widget root)
inlineprivate
23 {
24 m_Root = root;
25
27
28 m_TimeSurvived = m_Root.FindAnyWidget("TimeSurvived");
29 m_TimeSurvivedValue = TextWidget.Cast(m_Root.FindAnyWidget("TimeSurvivedValue"));
30
31 m_PlayersKilled = m_Root.FindAnyWidget("PlayersKilled");
32 m_PlayersKilledValue = TextWidget.Cast(m_Root.FindAnyWidget("PlayersKilledValue"));
33
34 m_InfectedKilled = m_Root.FindAnyWidget("InfectedKilled");
35 m_InfectedKilledValue = TextWidget.Cast(m_Root.FindAnyWidget("InfectedKilledValue"));
36
37 m_DistanceTraveled = m_Root.FindAnyWidget("DistanceTraveled");
38 m_DistanceTraveledValue = TextWidget.Cast(m_Root.FindAnyWidget("DistanceTraveledValue"));
39
40 m_LongRangeShot = m_Root.FindAnyWidget("LongRangeShot");
41 m_LongRangeShotValue = TextWidget.Cast(m_Root.FindAnyWidget("LongRangeShotValue"));
42 }
struct that keeps Time relevant information for future formatting
Definition TimeConversions.c:5
Widget m_LongRangeShot
Definition MainMenuStats.c:17
TextWidget m_TimeSurvivedValue
Definition MainMenuStats.c:6
ref FullTimeData m_TimeSurvivedFull
Definition MainMenuStats.c:20
TextWidget m_DistanceTraveledValue
Definition MainMenuStats.c:15
TextWidget m_LongRangeShotValue
Definition MainMenuStats.c:18
Widget m_InfectedKilled
Definition MainMenuStats.c:11
Widget m_DistanceTraveled
Definition MainMenuStats.c:14
TextWidget m_InfectedKilledValue
Definition MainMenuStats.c:12
Widget m_TimeSurvived
Definition MainMenuStats.c:5
TextWidget m_PlayersKilledValue
Definition MainMenuStats.c:9
Widget m_PlayersKilled
Definition MainMenuStats.c:8

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

◆ ModsMenuDetailed()

void ModsMenuDetailed ( array< ref ModInfo > data,
Widget parent,
ModsMenuTooltip tooltip,
UIScriptedMenu menu_parent )
inlineprotected
18 {
19 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_menu_detailed.layout", parent);
20 m_Content = m_Root.FindAnyWidget("ModsDetailedContent");
21 m_Scroll = ScrollWidget.Cast(m_Root.FindAnyWidget("ModsDetailedScroller"));
22 m_CloseButton = m_Root.FindAnyWidget("ModsDetailedHeaderButton");
23
27
28 m_Root.SetHandler(this);
29
31 }
Widget m_CloseButton
Definition ModsMenuDetailed.c:5
void LoadEntries(array< ref ModInfo > data)
Definition ModsMenuDetailed.c:168

Перекрестные ссылки GetGame(), LoadEntries(), m_CloseButton, m_Data, m_Menu и m_Root.

◆ ModsMenuDetailedEntry()

void ModsMenuDetailedEntry ( ModInfo data,
Widget parent,
ModsMenuDetailed parent_menu )
inlineprotected
26 {
27 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_menu_detailed_entry.layout", parent);
28 m_Detail = m_Root.FindAnyWidget("DetailContainer");
29
30 m_IconSmall = ImageWidget.Cast(m_Root.FindAnyWidget("IconSmall"));
31 m_IconCollapse = ImageWidget.Cast(m_Root.FindAnyWidget("collapse_button"));
32 m_IconCollapse.LoadImageFile( 1, "set:dayz_gui image:icon_open" );
33 m_Name = TextWidget.Cast(m_Root.FindAnyWidget("Name"));
34
35 m_IconBig = ImageWidget.Cast(m_Root.FindAnyWidget("IconBig"));
36 m_Author = MultilineTextWidget.Cast(m_Root.FindAnyWidget("Author"));
37 m_Author.SetLineBreakingOverride(LinebreakOverrideMode.LINEBREAK_WESTERN);
38
39 m_Version = TextWidget.Cast(m_Root.FindAnyWidget("Version"));
40 m_ActionWebsite = RichTextWidget.Cast(m_Root.FindAnyWidget("Link"));
41 m_ActionPurchase = RichTextWidget.Cast(m_Root.FindAnyWidget("Purchase"));
42 #ifdef PLATFORM_PS4
43 m_ActionPurchase.SetText("#mod_detail_info_store_PS");
44 #endif
45 #ifdef PLATFORM_XBOX
46 m_ActionPurchase.SetText("#mod_detail_info_store_Xbox");
47 #endif
48
49 m_Description = RichTextWidget.Cast(m_Root.FindAnyWidget("Description"));
50
51 m_Data = data;
53
54 m_Root.SetHandler(this);
55
56 LoadData();
57 }
ModsMenuDetailed m_ParentMenu
Definition ModsMenuDetailedEntry.c:22

Перекрестные ссылки GetGame(), LoadData(), m_Data, m_Description, m_Name и m_Root.

Используется в LoadEntries().

◆ ModsMenuSimple()

void ModsMenuSimple ( array< ref ModInfo > data,
Widget parent,
ModsMenuDetailed detail_menu )
inlineprotected
12 {
13 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_menu_simple.layout", parent);
14 m_MoreButton = m_Root.FindAnyWidget("ModMore");
15 m_MoreHighlight = m_Root.FindAnyWidget("ModMoreOverlay");
18
19 m_Root.SetHandler(this);
21 }
ModsMenuDetailed m_DetailMenu
Definition ModsMenuSimple.c:9
Widget m_MoreHighlight
Definition ModsMenuSimple.c:7

Перекрестные ссылки GetGame(), LoadEntries(), m_Data и m_Root.

◆ ModsMenuSimpleEntry()

void ModsMenuSimpleEntry ( ModInfo data,
int index,
Widget parent,
ModsMenuSimple parent_menu )
inlineprotected
12 {
13 m_ModButton = ButtonWidget.Cast(GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_menu_simple_entry.layout", parent));
14 m_Icon = ImageWidget.Cast(m_ModButton.FindAnyWidget("Icon"));
15 m_Hover = m_ModButton.FindAnyWidget("Overlay");
16 m_Data = data;
18
19 m_ModButton.SetSort(index);
20 m_ModButton.SetHandler(this);
21
22 LoadData();
23 }
Widget m_Hover
Definition ModsMenuSimpleEntry.c:5

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

Используется в LoadEntries().

◆ ModsMenuTooltip()

void ModsMenuTooltip ( Widget parent)
inlineprotected
7 {
8 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/mods_menu/mods_tooltip.layout", parent);
9 m_Text = RichTextWidget.Cast(m_Root.FindAnyWidget("TooltipText"));
10 }

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

◆ NextTab()

void NextTab ( )
inlineprotected
387 {
388 int next_index = m_SelectedIndex + 1;
389
390 while ( next_index < m_Tabs.Count() && !m_TabControls[next_index].IsVisible() )
391 {
392 next_index++;
393 }
394
395 if ( next_index >= m_Tabs.Count() )
396 {
397 next_index = 0;
398 }
399
401 {
403 if ( CanSwitchTab() )
404 {
406 }
407 }
408
409 if ( m_FirstInit )
410 {
411 AlignTabbers();
412 m_FirstInit = false;
413 }
414 }
ref ScriptInvoker m_OnAttemptTabSwitch
Definition TabberUI.c:16
void PerformSwitchTab(int index)
Definition TabberUI.c:210
bool CanSwitchTab()
Definition TabberUI.c:200
bool m_FirstInit
Definition TabberUI.c:3

◆ ObjectFollower()

void ObjectFollower ( )
inlineprotected
10 {
11 m_Visible = false;
12 //GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Insert(Update);
13 }

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

◆ OnAOChanged()

void OnAOChanged ( int value)
inlineprotected
566 {
567 m_AOOption.SetIndex( value );
569 m_Menu.OnChanged();
570 }
void OnOptionChanged()
Definition OptionsMenuVideo.c:408

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

◆ OnATOCChanged()

void OnATOCChanged ( int value)
inlineprotected
559 {
560 m_ATOCOption.SetIndex( value );
562 m_Menu.OnChanged();
563 }

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

◆ OnBleedingIndicationChanged()

void OnBleedingIndicationChanged ( bool state)
inlineprotected
549 {
550 MissionGameplay mission = MissionGameplay.Cast(GetGame().GetMission());
551 if (mission)
552 {
555 }
556 }
override void UpdateWidgets(int type=-1, float timeSlice=0, Param p=null, int handle=-1)
Usually called in course of an OnFrame update, can be manually called from elsewhere with parameters.
Definition GameplayEffectWidgets.c:379
GameplayEffectWidgets_base GetEffectWidgets()

Перекрестные ссылки Mission::GetEffectWidgets(), GetGame(), mission и GameplayEffectWidgets_base::UpdateWidgets().

Используется в Apply().

◆ OnBrightnessChanged()

void OnBrightnessChanged ( float value)
inlineprotected
457 {
458 m_BrightnessOption.WriteValue( value );
459 m_Menu.OnChanged();
460 }

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

◆ OnBufferingEnd()

void OnBufferingEnd ( )
inlineprotected
209 {
210 m_Buffering.Show(false);
211 }

◆ OnBufferingStart()

void OnBufferingStart ( )
inlineprotected
204 {
205 m_Buffering.Show(true);
206 }

◆ OnceVideo()

void OnceVideo ( )
inlineprotected
270 {
271 m_VideoWidget.SetLooping(false);
272 m_OnceButton.Show(false);
273 m_RepeatButton.Show(true);
274 }

Используется в OnClick().

◆ OnChange() [1/4]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
13 {
14 super.OnChange(w, x, y, finished);
15 return m_pPluginInfectedDebug.OnChange(w, x, y, finished);
16 }
PluginDayZInfectedDebug m_pPluginInfectedDebug
Definition PluginDayZInfectedDebug.c:18

Перекрестные ссылки m_pPluginInfectedDebug, x и y.

◆ OnChange() [2/4]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
73 {
74 //Print("OnChange " + finished);
75 super.OnChange( w, x, y, finished );
76 return GetHudDebug().OnChange( w, x, y, finished );
77 }
HudDebug GetHudDebug()
Definition HudDebug.c:13

Перекрестные ссылки GetHudDebug(), x и y.

◆ OnChange() [3/4]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprotected
426 {
427 if(w)
428 {
429 if(w == m_SearchByName)
430 {
431 string input_name = m_SearchByName.GetText();
432
434 m_SearchByName.SetText(input_name); // Warning! Using SetText() causes the cursor to move at the end of the text box!
435
438
439 return true;
440 }
441 else if(w == m_SearchByIP)
442 {
443 string input_ip = m_SearchByIP.GetText();
444
446 m_SearchByIP.SetText(input_ip); // Warning! Using SetText() causes the cursor to move at the end of the text box!
447
450
451 return true;
452 }
453 }
454 return false;
455 }
bool GenerateValidFilter(out string potential_filter)
Turns any given string into a more convenient filter (limits character count, forces lowercase,...
Definition ServerBrowserFilterContainer.c:370
bool ProcessIntoIPAddress(out string potential_ip)
Removes all characters from the given string whirh are NOT a number, '.' or ':'. Returns true if any ...
Definition ServerBrowserFilterContainer.c:260
void OnFilterChanged()
Definition ServerBrowserFilterContainer.c:115

Перекрестные ссылки GenerateValidFilter(), OnFilterChanged(), ProcessIntoIPAddress() и SetFocus().

◆ OnChange() [4/4]

override bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
133 {
134 if (w == m_Progress)
135 {
136 m_VideoWidget.SetTime(m_Progress.GetCurrent(), finished);
137 }
138
139 return super.OnChange(w, x, y, finished);
140 }

Перекрестные ссылки x и y.

◆ OnChildAdd()

override bool OnChildAdd ( Widget w,
Widget child )
inlineprotected
286 {
287 if ( w == m_Root.FindAnyWidget( "Tab_Control_Container" ) )
288 {
289 AlignTabbers();
290 return true;
291 }
292 return false;
293 }

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

◆ OnChildRemove()

override bool OnChildRemove ( Widget w,
Widget child )
inlineprotected
296 {
297 if ( w == m_Root.FindAnyWidget( "Tab_Control_Container" ) )
298 {
299 AlignTabbers();
300 return true;
301 }
302 return false;
303 }

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

◆ OnClick() [1/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
253 {
254 if (button == MouseState.LEFT)
255 {
256 switch (w)
257 {
258 case m_UiLeftButton:
259 {
261 return true;
262 }
263 case m_UiRightButton:
264 {
265 ShowNextPage();
266 return true;
267 }
268 }
269 }
270 return false;
271 }
void ShowNextPage()
Definition UiHintPanel.c:192
void ShowPreviousPage()
Definition UiHintPanel.c:208
MouseState
Definition EnSystem.c:311

Перекрестные ссылки m_UiLeftButton, m_UiRightButton, ShowNextPage() и ShowPreviousPage().

◆ OnClick() [2/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
7 {
8 super.OnClick(w, x, y, button);
9 return m_pPluginInfectedDebug.OnClick(w, x, y, button);
10 }

Перекрестные ссылки m_pPluginInfectedDebug, x и y.

◆ OnClick() [3/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
25 {
26 return m_Owner.OnClick( w, x, y, button );
27 }
PluginItemDiagnostic m_Owner
Definition PluginItemDiagnostic.c:3

Перекрестные ссылки m_Owner, x и y.

◆ OnClick() [4/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
137 {
138 if( w == m_Root )
139 {
140 m_Menu.SelectKeyframe( this );
141 return true;
142 }
143 return false;
144 }

Перекрестные ссылки m_Menu и m_Root.

◆ OnClick() [5/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
140 {
141 return false;
142 }

◆ OnClick() [6/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
19 {
20 super.OnClick( w, x, y, button );
21 return GetHudDebug().OnClick( w, x, y, button );
22 }

Перекрестные ссылки GetHudDebug(), x и y.

◆ OnClick() [7/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
114 {
115 int index = m_Content.Find( w );
116 if ( index > -1 )
117 {
118 m_OnSelectItem.Invoke( index );
119 m_IsExpanded = false;
120 m_Scroller.Show( m_IsExpanded );
123 return true;
124 }
125 return false;
126 }
ref ScriptInvoker m_OnSelectItem
Definition DropdownPrefab.c:16

◆ OnClick() [8/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
231 {
232 if( !m_Group.IsEnteringKeyBind() )
233 {
234 if( w == m_PrimaryBindButton )
235 {
236 m_EntryTimer.Run( 0.01, this, "StartEnteringKeybind" );
237 }
239 {
240 m_EntryTimer.Run( 0.01, this, "StartEnteringAlternateKeybind" );
241 }
242 }
243 return false;
244 }
ref Timer m_EntryTimer
Definition KeybindingElement.c:21

◆ OnClick() [9/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
229 {
230 if( !m_Container.IsEnteringKeyBind() )
231 {
232 if( w == m_PrimaryBindButton )
233 {
234 m_EntryTimer.Run( 0.01, this, "StartEnteringKeybind" );
235 }
237 {
238 m_EntryTimer.Run( 0.01, this, "StartEnteringAlternateKeybind" );
239 }
240 }
241 return false;
242 }

◆ OnClick() [10/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
95 {
96 if( button == MouseState.LEFT )
97 {
98 if ( w == m_DLDLC )
99 {
100 OpenDLC();
101 return true;
102 }
103 else if ( w == m_Discord )
104 {
105 OpenDiscord();
106 return true;
107 }
108 else if ( w == m_Feedback )
109 {
110 OpenFeedback();
111 return true;
112 }
113 else if ( w == m_DayZForum )
114 {
115 OpenForums();
116 return true;
117 }
118 else if ( w == m_Twitter )
119 {
120 OpenTwitter();
121 return true;
122 }
123 else if ( w == m_Youtube )
124 {
125 OpenYoutube();
126 return true;
127 }
128 }
129 return false;
130 }
void OpenTwitter()
Definition MainMenuNewsfeed.c:84
void OpenDiscord()
Definition MainMenuNewsfeed.c:69
void OpenFeedback()
Definition MainMenuNewsfeed.c:74
void OpenYoutube()
Definition MainMenuNewsfeed.c:89
void OpenForums()
Definition MainMenuNewsfeed.c:79
void OpenDLC()
Definition MainMenuNewsfeed.c:64

Перекрестные ссылки OpenDiscord(), OpenDLC(), OpenFeedback(), OpenForums(), OpenTwitter() и OpenYoutube().

◆ OnClick() [11/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
97 {
98 m_ThisModInfo.GoToStore();
99 return super.OnClick(w,x,y,button);
100 }

Перекрестные ссылки x и y.

◆ OnClick() [12/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
56 {
57 if( w == m_ModButton )
58 {
59 m_ParentMenu.Select( m_Data );
60 return true;
61 }
62 return false;
63 }

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

◆ OnClick() [13/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprotected
105 {
106 if (!IsOnline() || w == null)
107 {
108 return false;
109 }
110
111 switch (w)
112 {
113 #ifdef PLATFORM_CONSOLE
114 case m_Root:
115 {
116 m_Tab.Connect(this);
117 return true;
118 }
119 #endif
121 {
122 string mods_text;
123 if (m_Mods && m_Mods.Count() > 0)
124 {
125 mods_text = m_Mods[0];
126 for (int i = 1; i < m_Mods.Count(); i++)
127 {
128 mods_text += "\n" + m_Mods[i];
129 }
130 }
131
132 GetGame().GetUIManager().ShowDialog("#main_menu_mods", mods_text, 0, 0, 0, 0, GetGame().GetUIManager().GetMenu());
133 return true;
134 }
135 }
136
137 return false;
138 }
ref array< string > m_Mods
Definition ServerBrowserEntry.c:27
bool IsOnline()
Definition ServerBrowserEntry.c:257

Перекрестные ссылки GetGame(), IsOnline(), m_Mods, m_Root и m_ServerModsExpand.

◆ OnClick() [14/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
143 {
144 if (w == m_PlayButton)
145 {
146 PlayVideo();
147 }
148 else if (w == m_PauseButton)
149 {
150 PauseVideo();
151 }
152 else if (w == m_StopButton)
153 {
154 StopVideo();
155 }
156 else if (w == m_OnceButton)
157 {
158 OnceVideo();
159 }
160 else if (w == m_RepeatButton)
161 {
162 RepeatVideo();
163 }
164 else if (w == m_LoadButton)
165 {
167 }
168 else if (w == m_Progress)
169 {
170 Print(x);
171 Print(y);
172 Print(button);
173 }
174 else if (w.GetUserID() == 333)
175 {
176 string name;
177 ButtonWidget.Cast(w).GetText(name);
180 }
181
182 return super.OnClick(w, x, y, button);
183 }
void OnceVideo()
Definition VideoPlayer.c:269
void RepeatVideo()
Definition VideoPlayer.c:276
void PauseVideo()
Definition MainMenuPromo.c:126
void ToggleVideoSelection()
Definition VideoPlayer.c:213
void LoadVideo(string videoPath)
Definition VideoPlayer.c:234
void PlayVideo()
Definition VideoPlayer.c:252
void StopVideo()
Definition MainMenuPromo.c:121
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки LoadVideo(), name, OnceVideo(), PauseVideo(), PlayVideo(), Print(), RepeatVideo(), StopVideo(), ToggleVideoSelection(), x и y.

◆ OnClick() [15/15]

override bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate
68 {
69 super.OnClick(w, x, y, button);
70 m_widget = w;
71 SetValue();
72 return false;
73 }
void SetValue()
Definition ProfileOptionsUI.c:55

Перекрестные ссылки SetValue(), x и y.

◆ OnColorDepthChanged()

void OnColorDepthChanged ( int value)
inlineprotected
469 {
470 //m_ColorDepthOption.SetIndex( value );
471 m_Menu.OnChanged();
472 }

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

◆ OnDisplayModeChanged()

void OnDisplayModeChanged ( int value)
inlineprotected
445 {
446 m_DisplayModeOption.SetIndex( value );
447 m_Menu.OnChanged();
448 }

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

◆ OnDLCChange()

void OnDLCChange ( )
inlineprotected
165 {
167 }
void UpdateOwnedStatus()
Definition MainMenuPromo.c:147

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

◆ OnDoubleClick() [1/4]

override bool OnDoubleClick ( Widget w,
int x,
int y,
int button )
inlineprotected
179 {
180 if (button != MouseState.LEFT) return false;
181
182 int col = GetCol( w );
183
184 if ( !IsValidPos( col ) )
185 return false;
186
187 if (m_IsDebugOutput)
188 {
189 PrintString (m_Root.GetName() + "::OnDoubleClick(" + col.ToString() + ")");
190 }
191
192 if (m_Controller) m_Controller.OnItemDoubleClick(this, w, 0, col);
193
194 return true;
195 }
int GetCol(Widget w)
Definition InventoryGrid.c:222
reference bool m_IsDebugOutput
Definition InventoryGrid.c:46
bool IsValidPos(int index)
Definition InventoryGrid.c:260
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.
Definition EnScript.c:345

Перекрестные ссылки GetCol(), IsValidPos(), m_Root и PrintString().

◆ OnDoubleClick() [2/4]

override bool OnDoubleClick ( Widget w,
int x,
int y,
int button )
inlineprotected
145 {
146 return false;
147 }

◆ OnDoubleClick() [3/4]

override bool OnDoubleClick ( Widget w,
int x,
int y,
int button )
inlineprotected
169 {
170 if( button == MouseState.LEFT && GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() )
171 {
172 if( !IsLocalPlayer() )
173 {
175 }
176 }
177 return false;
178 }
Definition OnlineServices.c:2
static void ShowUserProfile(string uid)
Definition OnlineServices.c:247
bool IsLocalPlayer()
Definition PlayerListEntryScriptedWidget.c:193

Перекрестные ссылки GetGame(), IsLocalPlayer() и OnlineServices::ShowUserProfile().

◆ OnDoubleClick() [4/4]

override bool OnDoubleClick ( Widget w,
int x,
int y,
int button )
inlineprotected
141 {
142 if (!IsOnline())
143 {
144 return false;
145 }
146
147 if (button == MouseState.LEFT && w == m_Root)
148 {
149 m_Tab.Connect(this);
150 return true;
151 }
152
153 return false;
154 }

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

◆ OnDrag()

override bool OnDrag ( Widget w,
int x,
int y )
inlineprivate
270 {
271 w.SetPos(x, y);
272
273 m_col = GetCol( w );
274
275 if ( !IsValidPos( m_col ) )
276 return false;
277
278 if (m_IsDebugOutput)
279 {
280 PrintString (m_Root.GetName() + "::OnDrag(" + m_col.ToString() + ")");
281 }
282
284
285 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast( w.FindAnyWidget("Preview") );
286 if (item_preview)
287 {
288 item_preview.SetView( item_preview.GetItem().GetViewIndex() );
289 }
290 return true;
291 }
override void OnItemDrag(InventoryGrid grid, Widget w, int row, int col)
Definition InventoryQuickbar.c:224
int m_col
Definition InventoryGrid.c:266

Перекрестные ссылки GetCol(), IsValidPos(), m_Root, InventoryGridController::OnItemDrag(), PrintString(), x и y.

◆ OnDraggingOver()

override bool OnDraggingOver ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate
295 {
296 int col = GetCol( reciever );
297
298 if ( !IsValidPos( col ) )
299 {
300 return false;
301 }
302
303 if (m_IsDebugOutput)
304 {
305 PrintString (m_Root.GetName() + "::OnDraggingOver(" + col.ToString() + ")");
306 }
307
309
310
311 return true;
312 }
override void OnItemDraggingOver(InventoryGrid grid, Widget w, int row, int col)
Definition InventoryQuickbar.c:99

Перекрестные ссылки GetCol(), IsValidPos(), m_Root, InventoryGridController::OnItemDraggingOver() и PrintString().

◆ OnDrop()

override bool OnDrop ( Widget w,
int x,
int y,
Widget reciever )
inlineprotected
199 {
200 if (m_IsDebugOutput)
201 {
202 PrintString (m_Root.GetName() + "::OnDrop()");
203 }
204
205 if (m_Controller)
206 {
207 m_Controller.OnItemDrop(this, w, 0, m_col);
208 }
209
210 if (w)
211 {
212 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast( w.FindAnyWidget("Preview") );
213 if (item_preview)
214 {
215 item_preview.SetView( item_preview.GetItem().GetViewIndex() );
216 }
217 }
218
219 return true;
220 }
override void OnItemDrop(InventoryGrid grid, Widget w, int row, int col)
Definition InventoryQuickbar.c:206

Перекрестные ссылки m_Root, InventoryGridController::OnItemDrop() и PrintString().

◆ OnDropReceived()

override bool OnDropReceived ( Widget w,
int x,
int y,
Widget reciever )
inlineprivate
316 {
317 int col = GetCol( reciever );
318
319 if ( !IsValidPos( col ) )
320 return false;
321
322 if (m_IsDebugOutput)
323 {
324 PrintString (m_Root.GetName() + "::OnDropReceived(" + col.ToString() + ")");
325 }
326
328
329
330 return true;
331 }
override void OnItemDropReceived(InventoryGrid grid, Widget w, int row, int col)
Definition InventoryQuickbar.c:162

Перекрестные ссылки GetCol(), IsValidPos(), m_Root, InventoryGridController::OnItemDropReceived() и PrintString().

◆ OnFilterChanged()

void OnFilterChanged ( )
inlineprotected
116 {
117 m_Tab.OnFilterChanged();
118 }

Перекрестные ссылки ServerBrowserTab::OnFilterChanged().

Используется в OnChange().

◆ OnFocus() [1/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
147 {
148 if( IsFocusable( w ) )
149 {
150 m_Menu.SelectKeyframe( this );
151 return true;
152 }
153 return false;
154 }
bool IsFocusable(Widget w)
Definition CTKeyframe.c:156

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

◆ OnFocus() [2/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprivate
25 {
26 //Print("OnFocus");
27 return true;
28 }

◆ OnFocus() [3/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
143 {
144 if( !m_Selected )
145 {
146 #ifdef PLATFORM_CONSOLE
147 if( w == m_PlayerButton )
148 {
149 Select();
150 }
151 #endif
152 return true;
153 }
154 return false;
155 }
void Select()
Definition CTEvent.c:123

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

◆ OnFocus() [4/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
153 {
154 if( IsFocusable( w ) )
155 {
156 ColorRed( w, x, y );
157 return true;
158 }
159 return false;
160 }
void ColorRed(Widget w, int x, int y)
Definition MainMenuNewsfeed.c:182

Перекрестные ссылки ColorRed(), IsFocusable(), x и y.

◆ OnFocus() [5/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
80 {
81 if (w == m_MoreButton)
82 {
83 m_MoreHighlight.Show(true);
84 return true;
85 }
86 return false;
87 }

◆ OnFocus() [6/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
90 {
91 if( w == m_ModButton )
92 {
93 if( m_HasLogoOver )
94 m_Icon.SetImage( 1 );
95 m_Hover.Show( true );
96 return true;
97 }
98 return false;
99 }

◆ OnFocus() [7/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
289 {
290 OptionsMenu menu = OptionsMenu.Cast( GetGame().GetUIManager().GetMenu() );
291 if( menu )
292 {
293 menu.OnFocus( w, x, y );
294 }
295
296 if( w )
297 {
298 if (TextMapUpdateWidget(w.GetUserID()))
299 {
300 return true;
301 }
302
303 if( w.IsInherited( SliderWidget ) )
304 {
305 ColorRed( w );
306 return true;
307 }
308
309 if( IsFocusable( w ) )
310 {
311 ColorRed( w );
312 return true;
313 }
314 }
315 else
316 {
317 m_DetailsRoot.Show( false );
318 }
319 return ( w != null );
320 }
bool TextMapUpdateWidget(int key)
Definition OptionsMenuControls.c:337
Widget m_DetailsRoot
Definition ControlMappingKeybinds.c:4

Перекрестные ссылки ColorRed(), GetGame(), IsFocusable(), m_DetailsRoot, TextMapUpdateWidget(), x и y.

◆ OnFocus() [8/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
526 {
527 if (m_Menu)
528 {
529 m_Menu.OnFocus(w, x, y);
530 }
531
532 if (w)
533 {
534 if (TextMapUpdateWidget(w.GetUserID()))
535 {
536 return true;
537 }
538
539 if (w.IsInherited(SliderWidget))
540 {
541 return true;
542 }
543 }
544 m_DetailsRoot.Show(false);
545 return (w != null);
546 }

Перекрестные ссылки m_DetailsRoot, m_Menu, TextMapUpdateWidget(), x и y.

◆ OnFocus() [9/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprivate
178 {
179 OptionsMenu menu = OptionsMenu.Cast(GetGame().GetUIManager().GetMenu());
180 if (menu)
181 {
182 menu.OnFocus(w, x, y);
183 }
184 if (w)
185 {
186 if (TextMapUpdateWidget(w.GetUserID()))
187 {
188 return true;
189 }
190
191 if (w.IsInherited(SliderWidget))
192 {
193 return true;
194 }
195 }
196 m_DetailsRoot.Show(false);
197 return (w != null);
198 }

Перекрестные ссылки GetGame(), m_DetailsRoot, TextMapUpdateWidget(), x и y.

◆ OnFocus() [10/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
588 {
589 OptionsMenu menu = OptionsMenu.Cast( GetGame().GetUIManager().GetMenu() );
590 if ( menu )
591 menu.OnFocus( w, x, y );
592 if ( w )
593 {
594 if (TextMapUpdateWidget(w.GetUserID()))
595 {
596 return true;
597 }
598
599 if ( w.IsInherited( SliderWidget ) )
600 {
601 return true;
602 }
603 }
604 m_DetailsRoot.Show( false );
605 return ( w != null );
606 }

Перекрестные ссылки GetGame(), m_DetailsRoot, TextMapUpdateWidget(), x и y.

◆ OnFocus() [11/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
106 {
107 if (IsFocusable(w))
108 {
110 if (m_ParentClass)
111 {
112 m_ParentClass.OnFocus(m_Root.GetParent(), -1, m_SelectorType);
113 }
114 return true;
115 }
116 return false;
117 }
ScriptedWidgetEventHandler m_ParentClass
Definition OptionSelectorBase.c:9
int m_SelectorType
Definition OptionSelectorBase.c:3
void ColorHighlightConsole(Widget w)
Definition OptionSelectorBase.c:230

Перекрестные ссылки OptionSelectorBase::IsFocusable(), m_Root и OnFocus().

◆ OnFocus() [12/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
320 {
321 m_Tab.OnDetailsFocus(w);
322 return false;
323 }

◆ OnFocus() [13/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
218 {
219 if (!m_Selected)
220 {
221 if (IsFocusable(w))
222 Darken(w, x, y);
223
224 #ifdef PLATFORM_CONSOLE
225 if (w == m_Root)
226 {
227 Select();
228 ServerListFocus(true);
229 m_Tab.SetServerDetails(m_ServerData, m_IsOnline);
230 }
231 #endif
232
233 return true;
234 }
235 return false;
236 }
void ServerListFocus(bool focus)
Definition ServerBrowserEntry.c:212
void Darken(Widget w, int x, int y)
Definition ServerBrowserEntry.c:765

Перекрестные ссылки Darken(), IsFocusable(), m_Root, Select(), ServerListFocus(), x и y.

◆ OnFocus() [14/14]

override bool OnFocus ( Widget w,
int x,
int y )
inlineprotected
458 {
459 m_Tab.OnFilterFocus(w);
460
461 return false;
462 }

Перекрестные ссылки ServerBrowserTab::OnFilterFocus().

◆ OnFocusLost() [1/8]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprivate
31 {
32 //Print("OnFocusLost");
33 return true;
34 }

◆ OnFocusLost() [2/8]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprotected
158 {
159 #ifdef PLATFORM_CONSOLE
160 if( w == m_PlayerButton )
161 {
162 Deselect();
163 }
164 #endif
165 return false;
166 }
void Deselect()
Definition PlayerListEntryScriptedWidget.c:215

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

◆ OnFocusLost() [3/8]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprotected
163 {
164 if( IsFocusable( w ) )
165 {
166 ColorWhite( w, null, x, y );
167 return true;
168 }
169 return false;
170 }
void ColorWhite(Widget w, Widget enterW, int x, int y)
Definition MainMenuNewsfeed.c:212

Перекрестные ссылки ColorWhite(), IsFocusable(), x и y.

◆ OnFocusLost() [4/8]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprotected
90 {
91 if (w == m_MoreButton)
92 {
93 m_MoreHighlight.Show(false);
94 return true;
95 }
96 return false;
97 }

◆ OnFocusLost() [5/8]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprotected
102 {
103 if( w == m_ModButton )
104 {
105 if( m_HasLogoOver )
106 m_Icon.SetImage( 0 );
107 m_Hover.Show( false );
108 return true;
109 }
110 return false;
111 }

◆ OnFocusLost() [6/8]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprotected
323 {
324 if( IsFocusable( w ) )
325 {
326 ColorWhite( w, null );
327 return true;
328 }
329 return false;
330 }

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

◆ OnFocusLost() [7/8]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprotected
120 {
122 if (m_ParentClass)
123 {
125 }
126 return true;
127 }
bool OnFocusLost(Widget w, int x, int y)

Перекрестные ссылки OptionSelectorBase::ColorNormalConsole(), OnFocusLost(), x и y.

◆ OnFocusLost() [8/8]

override bool OnFocusLost ( Widget w,
int x,
int y )
inlineprotected
239 {
240 #ifdef PLATFORM_CONSOLE
241 if (w == m_Root)
242 {
243 Deselect();
244 ServerListFocus(false);
245 }
246 #endif
247
248 if (IsFocusable(w))
249 {
250 Lighten(w, null, x, y);
251 }
252
253 return true;
254 return false;
255 }

Перекрестные ссылки Deselect(), IsFocusable(), Lighten(), m_Root, ServerListFocus(), x и y.

◆ OnHide()

void OnHide ( )
inlineprotected
198 {
199 m_RootWidget.Show( false );
200 }

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

◆ OnHWAAChanged()

void OnHWAAChanged ( int value)
inlineprotected
538 {
539 m_HWAAOption.SetIndex( value );
540 if ( value == 0 )
541 {
542 m_ATOCSelector.Disable();
543 }
544 else
545 {
546 m_ATOCSelector.Enable();
547 // with HWAA enabled, reapply last AToC option as it depends on HWAA
548 int atoc = m_ATOCSelector.GetValue();
549 if (atoc)
550 {
551 m_ATOCSelector.SetValue(atoc);
552 }
553 }
555 m_Menu.OnChanged();
556 }

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

◆ OnInputDeviceChanged() [1/3]

void OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected
105 {
107 }
void UpdatePCIconsVisibility()
Contains logic for icon set switching (Gamepad/M&K)
Definition ItemActionsWidget.c:119

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

◆ OnInputDeviceChanged() [2/3]

void OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected
208 {
210 }
void UpdateIconVisibility()
Definition MainMenuPromo.c:200

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

◆ OnInputDeviceChanged() [3/3]

void OnInputDeviceChanged ( EInputDeviceType pInputDeviceType)
inlineprotected
27 {
28 switch (pInputDeviceType)
29 {
30 case EInputDeviceType.CONTROLLER:
32 m_TabControlsRoot.FindAnyWidget("ConsoleControls").Show(true);
33 break;
34
35 default:
36 if (GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer())
37 {
38 m_TabControlsRoot.FindAnyWidget("ConsoleControls").Show(false);
39 }
40 break;
41 }
42 }
EInputDeviceType
Definition input.c:3

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

◆ OnInputPresetChanged() [1/2]

void OnInputPresetChanged ( )
inlineprotected
98 {
99 #ifdef PLATFORM_CONSOLE
101 #endif
102 }
void UpdateControllerInputIcons()
Loads icons from the latest keybinds.
Definition ItemActionsWidget.c:110

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

◆ OnInputPresetChanged() [2/2]

void OnInputPresetChanged ( )
inlineprotected
20 {
21 #ifdef PLATFORM_CONSOLE
23 #endif
24 }

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

◆ OnItemClick()

void OnItemClick ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate
10{}

◆ OnItemDoubleClick()

void OnItemDoubleClick ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate
13{}

◆ OnItemDrag()

void OnItemDrag ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate
6{}

◆ OnItemDraggingOver()

void OnItemDraggingOver ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate
7{}

◆ OnItemDrop()

void OnItemDrop ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate
8{}

◆ OnItemDropReceived()

void OnItemDropReceived ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate
9{}

◆ OnItemEnter()

void OnItemEnter ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate
4{}

◆ OnItemLeave()

void OnItemLeave ( InventoryGrid grid,
Widget w )
inlineprivate
5{}

◆ OnItemLeftClick()

void OnItemLeftClick ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate
11{}

◆ OnItemRightClick()

void OnItemRightClick ( InventoryGrid grid,
Widget w,
int row,
int col )
inlineprivate
12{}

◆ OnItemSelected()

override bool OnItemSelected ( Widget w,
int x,
int y,
int row,
int column,
int oldRow,
int oldColumn )
inlineprivate
61 {
62 //Print("OnItemSelected");
63 return true;
64 }

◆ OnLoadServersAsync()

void OnLoadServersAsync ( ref GetServersResult result_list,
EBiosError error,
string response )
inlineprotected
74 {
75
76 }

◆ OnMapFilterChanged()

void OnMapFilterChanged ( )
inlineprotected
121 {
122 m_Tab.OnFilterChanged();
123 }

Перекрестные ссылки ServerBrowserTab::OnFilterChanged().

◆ OnModalResult()

override bool OnModalResult ( Widget w,
int x,
int y,
int code,
int result )
inlineprivate
67 {
68 //Print("OnModalResult");
69 return true;
70 }

◆ OnMouseButtonDown() [1/7]

override bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected
112 {
113 if (button == MouseState.RIGHT || button == MouseState.LEFT)
114 {
115 int col = GetCol( w );
116
117 if ( !IsValidPos( col ) )
118 return false;
119
120 if (m_IsDebugOutput)
121 {
122 PrintString (m_Root.GetName() + "::OnMouseButtonDown(" + col.ToString() + ")");
123 }
124
125 if (m_Controller)
126 {
127 if (button == MouseState.RIGHT )
128 {
129 m_Controller.OnItemRightClick(this, w, 0, col);
130 }
131
132 if (button == MouseState.LEFT )
133 {
134 m_IsMouseLeftDown = true;
135 }
136 }
137 return true;
138 }
139 else
140 {
141 return false;
142 }
143 }
bool m_IsMouseLeftDown
Definition InventoryGrid.c:56

Перекрестные ссылки GetCol(), IsValidPos(), m_Root и PrintString().

◆ OnMouseButtonDown() [2/7]

override bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprivate
154 {
155 super.OnMouseButtonDown(w, x, y, button);
156
157 if (button == MouseState.LEFT && w.GetUserID() > -1 && w.GetUserID() < m_commands.Count())
158 {
159 CallQueueContext ctx = m_commands.Get(w.GetUserID());
160
161 int actionId = Param3<EntityAI, int, int>.Cast(ctx.m_params).param2;
162 if (actionId == EActions.DELETE)
163 Hide();
164
165 UIScriptedMenu menu = GetGame().GetUIManager().GetMenu();
166 if (menu)
167 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(menu.Refresh);
168
169 ctx.Call();
170
171 return true;
172 }
173
174 return false;
175 }
void Hide()
Definition ContextMenu.c:126
Definition DayZGame.c:64

Перекрестные ссылки CALL_CATEGORY_GUI, GetGame(), Hide(), x и y.

◆ OnMouseButtonDown() [3/7]

override bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprivate
30 {
31 return m_Owner.OnMouseButtonDown( w, x, y, button );
32 }

Перекрестные ссылки m_Owner, x и y.

◆ OnMouseButtonDown() [4/7]

override bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected
150 {
151 if( w == m_FollowerButton && button == MouseState.LEFT )
152 {
153 if( m_Menu )
154 {
155 m_Menu.SelectActor( CTActor.Cast( this ) );
156 }
157 return true;
158 }
159 return false;
160 }
Widget m_FollowerButton
Definition CTObjectFollower.c:4

Перекрестные ссылки CTObjectFollower::CTActor() и m_Menu.

◆ OnMouseButtonDown() [5/7]

override bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprivate
49 {
50 //Print("OnMouseButtonDown");
51 return true;
52 }

◆ OnMouseButtonDown() [6/7]

override bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected
129 {
130 if ( (w == m_Button || w == m_Text || w == m_Holder) && button == MouseState.LEFT )
131 {
133 m_Scroller.Show( m_IsExpanded );
136
137 m_Root.Update();
138 m_Parent.Update();
139 m_ContentContainer.Update();
140
141 return true;
142 }
143 return false;
144 }

Перекрестные ссылки m_IsExpanded, m_Parent и m_Root.

◆ OnMouseButtonDown() [7/7]

override bool OnMouseButtonDown ( Widget w,
int x,
int y,
int button )
inlineprotected
299 {
300 if( !ButtonWidget.Cast( w ) )
301 {
302 m_KBDropdown.Close();
303 }
304 return false;
305 }

◆ OnMouseButtonUp() [1/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
147 {
148 if ( button == MouseState.LEFT )
149 {
151 {
152 m_Controller.OnItemLeftClick(this, w, 0, m_col);
153 m_IsMouseLeftDown = false;
154 }
155 }
156
157 if (button == MouseState.RIGHT || button == MouseState.LEFT)
158 {
159 int col = GetCol( w );
160
161 if ( !IsValidPos( col ) )
162 return false;
163
164 if (m_IsDebugOutput)
165 {
166 PrintString (m_Root.GetName() + "::OnMouseButtonUp(" + col.ToString() + ")");
167 }
168
169 return true;
170 }
171 else
172 {
173 return false;
174 }
175 }

Перекрестные ссылки GetCol(), IsValidPos(), m_Root и PrintString().

◆ OnMouseButtonUp() [2/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprivate
34 {
35 return m_Owner.OnMouseButtonUp( w, x, y, button );
36 }

Перекрестные ссылки m_Owner, x и y.

◆ OnMouseButtonUp() [3/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
163 {
164 if( w == m_FollowerButton && button == MouseState.LEFT )
165 {
166 if( m_Menu )
167 {
168 m_Menu.SelectActor( null );
169 }
170 return true;
171 }
172 return false;
173 }

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

◆ OnMouseButtonUp() [4/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
181 {
182 if( button == MouseState.LEFT && GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer() )
183 {
184 if( w == m_MicrophoneIcon && !m_GlobalMute )
185 {
186 ToggleMute();
187 return true;
188 }
189 }
190 return false;
191 }
void ToggleMute()
Definition PlayerListEntryScriptedWidget.c:87
ImageWidget m_MicrophoneIcon
Definition PlayerListEntryScriptedWidget.c:11

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

◆ OnMouseButtonUp() [5/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
247 {
248 if( w == m_PrimaryClear )
249 {
250 m_IsEdited = true;
252 m_PrimaryBindButton.SetText( "" );
253 m_Group.ClearKeybind( m_ElementIndex );
254 }
255 if( w == m_AlternativeClear )
256 {
257 m_IsAlternateEdited = true;
259 m_AlternativeBindButton.SetText( "" );
260 m_Group.ClearAlternativeKeybind( m_ElementIndex );
261 }
262 return false;
263 }

◆ OnMouseButtonUp() [6/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
245 {
246 if( w == m_PrimaryClear )
247 {
248 m_IsEdited = true;
250 m_PrimaryBindButton.SetText( "" );
251 m_Container.ClearKeybind( m_ElementIndex );
252 }
253 if( w == m_AlternativeClear )
254 {
255 m_IsAlternateEdited = true;
257 m_AlternativeBindButton.SetText( "" );
258 m_Container.ClearAlternativeKeybind( m_ElementIndex );
259 }
260 return false;
261 }

◆ OnMouseButtonUp() [7/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
187 {
188 if ( w == m_CloseButton )
189 {
190 Close();
191 return true;
192 }
193 return false;
194 }
void Close()
Definition DropdownPrefab.c:94

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

◆ OnMouseButtonUp() [8/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
180 {
181 if (w == m_IconCollapse)
182 {
183 m_ParentMenu.Select(m_Data, !m_IsOpen);
184 return true;
185 }
186 else if (w == m_ActionWebsite)
187 {
188 GetGame().OpenURL(m_Data.GetAction());
189 }
190 else if (w == m_ActionPurchase)
191 {
192 m_Data.GoToStore();
193 }
194
195 return false;
196 }

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

◆ OnMouseButtonUp() [9/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
47 {
48 if (w == m_MoreButton)
49 {
50 if (m_DetailMenu.IsOpen())
51 m_DetailMenu.Close();
52 else
53 m_DetailMenu.Open();
54 return true;
55 }
56 return false;
57 }

◆ OnMouseButtonUp() [10/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
274 {
275 if( button == MouseState.LEFT )
276 {
277 #ifndef PLATFORM_CONSOLE
278 if( w == m_Keybindings )
279 {
281 return true;
282 }
283 #endif
284 }
285 return false;
286 }
GridSpacerWidget m_Keybindings
Definition OptionsMenuControls.c:16
void EnterKeybindingMenu()
Definition OptionsMenuControls.c:230

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

◆ OnMouseButtonUp() [11/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
157 {
158 if (button == MouseState.LEFT)
159 {
160 switch (w)
161 {
162 case m_Favorite:
163 {
165 return true;
166 }
167 case m_Root:
168 {
169 OnSelect();
170 return true;
171 }
172 }
173 }
174 return false;
175 }
void OnSelect()
Definition ServerBrowserEntry.c:177
bool ToggleFavorite()
Definition ServerBrowserEntry.c:615

Перекрестные ссылки m_Favorite, m_Root, OnSelect() и ToggleFavorite().

◆ OnMouseButtonUp() [12/12]

override bool OnMouseButtonUp ( Widget w,
int x,
int y,
int button )
inlineprotected
266 {
267 if ( button == MouseState.LEFT )
268 {
269 int index = m_TabControls.GetKeyByValue( w );
270 if ( m_SelectedIndex != index )
271 {
273 if ( CanSwitchTab() )
274 {
276
277 return true;
278 }
279 }
280 }
281
282 return false;
283 }

◆ OnMouseEnter() [1/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
273 {
274 if (w == m_RootPath || w == m_UiLeftButton || w == m_UiRightButton)
275 {
277 return true;
278 }
279 return false;
280 }

Перекрестные ссылки m_RootPath, m_UiLeftButton, m_UiRightButton и StopSlideShow().

◆ OnMouseEnter() [2/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
86 {
87 int col = GetCol( w );
88
89 if ( !IsValidPos( col ) )
90 return false;
91
93 {
94 PrintString (m_Root.GetName() + "::OnMouseEnter(" + col.ToString() + ")");
95 }
96
98
99 return true;
100 }
override void OnItemEnter(InventoryGrid grid, Widget w, int row, int col)
Definition InventoryQuickbar.c:81

Перекрестные ссылки GetCol(), IsValidPos(), m_Root, InventoryGridController::OnItemEnter() и PrintString().

◆ OnMouseEnter() [3/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprivate
5 {
6 if( ButtonWidget.Cast(w))
7 {
8 GetGame().GetMission().AddActiveInputExcludes({"menu"});
9 }
10 return true;
11
12 }

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

◆ OnMouseEnter() [4/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
110 {
111 if( !m_Selected )
112 {
113 #ifdef PLATFORM_CONSOLE
114 if( w == m_PlayerButton )
115 {
116 Select();
118 }
119 #endif
120 return true;
121 }
122 return false;
123 }

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

◆ OnMouseEnter() [5/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
266 {
268 {
269 m_PrimaryBindButton.SetColor( ARGBF( 1, 1, 0, 0 ) );
270 m_PrimaryClear.Show( true );
271 m_PrimaryClear.Update();
272 m_AlternativeClear.Show( false );
273 return true;
274 }
276 {
277 m_AlternativeBindButton.SetColor( ARGBF( 1, 1, 0, 0 ) );
278 m_PrimaryClear.Show( false );
279 m_AlternativeClear.Show( true );
280 m_AlternativeClear.Update();
281 return true;
282 }
283 else
284 {
285 m_PrimaryBindButton.SetColor( ARGBF( 0, 0, 0, 0 ) );
286 m_AlternativeBindButton.SetColor( ARGBF( 1, 0, 0, 0 ) );
287 m_PrimaryClear.Show( false );
288 m_AlternativeClear.Show( false );
289 }
290 return false;
291 }

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

◆ OnMouseEnter() [6/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
264 {
266 {
267 m_PrimaryBindButton.SetColor( ARGBF( 1, 1, 0, 0 ) );
268 m_PrimaryClear.Show( true );
269 m_PrimaryClear.Update();
270 m_AlternativeClear.Show( false );
271 return true;
272 }
274 {
275 m_AlternativeBindButton.SetColor( ARGBF( 1, 1, 0, 0 ) );
276 m_PrimaryClear.Show( false );
277 m_AlternativeClear.Show( true );
278 m_AlternativeClear.Update();
279 return true;
280 }
281 else
282 {
283 m_PrimaryBindButton.SetColor( ARGBF( 0, 0, 0, 0 ) );
284 m_AlternativeBindButton.SetColor( ARGBF( 1, 0, 0, 0 ) );
285 m_PrimaryClear.Show( false );
286 m_AlternativeClear.Show( false );
287 }
288 return false;
289 }

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

◆ OnMouseEnter() [7/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
133 {
134 if( IsFocusable( w ) )
135 {
136 ColorRed( w, x, y );
137 return true;
138 }
139 return false;
140 }

Перекрестные ссылки ColorRed(), IsFocusable(), x и y.

◆ OnMouseEnter() [8/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
199 {
200 if (w == m_ActionWebsite)
201 m_ActionWebsite.SetBold(true);
202
203 if (w == m_ActionPurchase)
204 m_ActionPurchase.SetBold(true);
205
206 if (w == m_Root)
207 {
208 if (m_Data.GetTooltip() != "")
209 m_ParentMenu.PrepareTooltip(m_Data);
210
211 return true;
212 }
213
214 return false;
215 }

Перекрестные ссылки m_Data и m_Root.

◆ OnMouseEnter() [9/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
60 {
61 if (w == m_MoreButton)
62 {
63 m_MoreHighlight.Show(true);
64 return true;
65 }
66 return false;
67 }

◆ OnMouseEnter() [10/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
66 {
67 if( w == m_ModButton )
68 {
69 if( m_HasLogoOver )
70 m_Icon.SetImage( 1 );
71 m_Hover.Show( true );
72 return true;
73 }
74 return false;
75 }

◆ OnMouseEnter() [11/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
251 {
252 if ( w && w.IsInherited( ScrollWidget ) )
253 {
254 return false;
255 }
256
257 m_Menu.ColorHighlight( w );
258
259 return true;
260 }

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

◆ OnMouseEnter() [12/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
498 {
499 if (w && w.IsInherited(ScrollWidget))
500 {
501 return false;
502 }
503
504 if (w && w.IsInherited(SliderWidget))
505 {
506 return false;
507 }
508
509 m_Menu.ColorHighlight(w);
510
511 return true;
512 }

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

◆ OnMouseEnter() [13/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprivate
155 {
156 if ( w && w.IsInherited(ScrollWidget))
157 {
158 return false;
159 }
160
161 m_Menu.ColorHighlight(w);
162
163 return true;
164 }

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

◆ OnMouseEnter() [14/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
386 {
387 if ( w && w.IsInherited( ScrollWidget ) )
388 {
389 return false;
390 }
391
392 m_Menu.ColorHighlight( w );
393
394 return true;
395 }

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

◆ OnMouseEnter() [15/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
36 {
37 if (!IsFocusable(w))
38 return true;
39
40 if (m_ParentClass)
41 {
43 #ifndef PLATFORM_CONSOLE
44 m_ParentClass.OnMouseEnter(m_Root.GetParent().GetParent(), x, y);
45 #endif
46 }
47
48 UIScriptedMenu menu = GetGame().GetUIManager().GetMenu();
49
50 if (menu && menu.IsInherited(CharacterCreationMenu))
51 {
52 menu.OnFocus(m_Root.GetParent(), -1, m_SelectorType);
53 menu.OnMouseEnter(m_Root.GetParent().GetParent(), x, y);
54 }
55
56 #ifndef PLATFORM_CONSOLE
58 #else
60 if (m_ParentClass)
61 {
63 }
64 #endif
65
66 return true;
67 }
void ColorHighlight(Widget w)
Definition OptionSelectorBase.c:164
bool OnMouseEnter(Widget w, int x, int y)

Перекрестные ссылки OptionSelectorBase::ColorHighlight(), GetGame(), OptionSelectorBase::IsFocusable(), m_Root, OnFocus(), OnMouseEnter(), x и y.

◆ OnMouseEnter() [16/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
326 {
327 return m_Tab.OnMouseEnter(w, x, y);
328 }

Перекрестные ссылки ServerBrowserTab::OnMouseEnter(), x и y.

◆ OnMouseEnter() [17/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
186 {
187 if (IsFocusable(w))
188 {
189 Preview(w, x, y);
190 return true;
191 }
192
193 return false;
194 }
void Preview(Widget w, int x, int y)
Definition ServerBrowserEntry.c:740

Перекрестные ссылки IsFocusable(), Preview(), x и y.

◆ OnMouseEnter() [18/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
465 {
466 return m_Tab.OnMouseEnter(w, x, y);
467 }

Перекрестные ссылки ServerBrowserTab::OnMouseEnter(), x и y.

◆ OnMouseEnter() [19/19]

override bool OnMouseEnter ( Widget w,
int x,
int y )
inlineprotected
229 {
230 int index = m_TabControls.GetKeyByValue( w );
231 if ( m_SelectedIndex == index )
232 {
233 return false;
234 }
235
237 if ( tab_control )
238 {
239 Widget tab_title = TextWidget.Cast(tab_control.FindAnyWidget( tab_control.GetName() + "_Title" ));
240 tab_title.SetColor( ARGB(255, 255, 0, 0) );
241 tab_control.SetColor( ARGB(255, 0, 0 ,0) );
242 }
243
244 return false;
245 }

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

◆ OnMouseLeave() [1/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
282 {
283 if (w == m_RootPath || w == m_UiLeftButton || w == m_UiRightButton)
284 {
286 return true;
287 }
288 return false;
289 }
void RestartSlideShow()
Definition UiHintPanel.c:243

Перекрестные ссылки m_RootPath, m_UiLeftButton, m_UiRightButton и RestartSlideShow().

◆ OnMouseLeave() [2/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
104 {
106
107 return true;
108 }
override void OnItemLeave(InventoryGrid grid, Widget w)
Definition InventoryQuickbar.c:90

Перекрестные ссылки InventoryGridController::OnItemLeave().

◆ OnMouseLeave() [3/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprivate
141 {
142 super.OnMouseLeave(w, enterW, x, y);
143
145 {
146 Hide();
147 return true;
148 }
149 return false;
150 }

Перекрестные ссылки Hide(), x и y.

◆ OnMouseLeave() [4/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprivate
15 {
16 if( ButtonWidget.Cast(w))
17 {
18 GetGame().GetMission().RemoveActiveInputExcludes({"menu"},true);
19 }
20
21 return true;
22 }

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

◆ OnMouseLeave() [5/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
126 {
127 #ifdef PLATFORM_CONSOLE
128 if( w == m_PlayerButton )
129 {
130 Deselect();
131 return true;
132 }
133 #endif
134 return false;
135 }

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

◆ OnMouseLeave() [6/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
294 {
296 {
298 {
299 m_PrimaryClear.Show( false );
300 m_PrimaryBindButton.SetColor( ARGBF( 1, 0, 0, 0 ) );
301 }
302 }
304 {
306 {
307 m_AlternativeClear.Show( false );
308 m_AlternativeBindButton.SetColor( ARGBF( 1, 0, 0, 0 ) );
309 }
310 }
311 return false;
312 }

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

◆ OnMouseLeave() [7/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
292 {
294 {
296 {
297 m_PrimaryClear.Show( false );
298 m_PrimaryBindButton.SetColor( ARGBF( 1, 0, 0, 0 ) );
299 }
300 }
302 {
304 {
305 m_AlternativeClear.Show( false );
306 m_AlternativeBindButton.SetColor( ARGBF( 1, 0, 0, 0 ) );
307 }
308 }
309 return false;
310 }

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

◆ OnMouseLeave() [8/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
143 {
144 if( IsFocusable( w ) )
145 {
146 ColorWhite( w, enterW, x, y );
147 return true;
148 }
149 return false;
150 }

Перекрестные ссылки ColorWhite(), IsFocusable(), x и y.

◆ OnMouseLeave() [9/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
218 {
219 if (w == m_ActionWebsite)
220 m_ActionWebsite.SetBold(false);
221
222 if (w == m_ActionPurchase)
223 m_ActionPurchase.SetBold( false );
224
225 if (enterW != m_Root)
226 {
227 m_ParentMenu.HideTooltip();
228 return true;
229 }
230
231 return false;
232 }

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

◆ OnMouseLeave() [10/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
70 {
71 if (enterW != m_MoreButton)
72 {
73 m_MoreHighlight.Show(false);
74 return true;
75 }
76 return false;
77 }

◆ OnMouseLeave() [11/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
78 {
79 if( enterW != m_ModButton )
80 {
81 if( m_HasLogoOver )
82 m_Icon.SetImage( 0 );
83 m_Hover.Show( false );
84 return true;
85 }
86 return false;
87 }

◆ OnMouseLeave() [12/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
263 {
264 if ( w && w.IsInherited( ScrollWidget ) )
265 {
266 return false;
267 }
268
269 m_Menu.ColorNormal( w );
270 return true;
271 }

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

◆ OnMouseLeave() [13/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
515 {
516 if (w && w.IsInherited(ScrollWidget))
517 {
518 return false;
519 }
520
521 m_Menu.ColorNormal(w);
522 return true;
523 }

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

◆ OnMouseLeave() [14/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprivate
167 {
168 if ( w && w.IsInherited(ScrollWidget))
169 {
170 return false;
171 }
172
173 m_Menu.ColorNormal(w);
174 return true;
175 }

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

◆ OnMouseLeave() [15/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
398 {
399 if ( w && w.IsInherited( ScrollWidget ) )
400 {
401 return false;
402 }
403
404 m_Menu.ColorNormal( w );
405 return true;
406 }

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

◆ OnMouseLeave() [16/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
70 {
71 #ifdef PLATFORM_CONSOLE
73 return true;
74 #endif
75
76 if (m_ParentClass)
77 {
79 #ifndef PLATFORM_CONSOLE
80 m_ParentClass.OnMouseLeave(m_Root.GetParent().GetParent(), enterW, x, y);
81 #endif
82 }
83
84 UIScriptedMenu menu = GetGame().GetUIManager().GetMenu();
85
86 if (menu && menu.IsInherited(CharacterCreationMenu))
87 {
88 menu.OnFocus(null, x, y);
89 menu.OnMouseLeave(m_Root.GetParent().GetParent(), enterW, x, y);
90 }
91
92 #ifndef PLATFORM_CONSOLE
94 #else
96 if (m_ParentClass)
97 {
99 }
100 #endif
101
102 return true;
103 }
bool OnMouseLeave(Widget w, Widget enterW, int x, int y)

Перекрестные ссылки OptionSelectorBase::ColorNormal(), OptionSelectorBase::ColorNormalConsole(), GetGame(), OptionSelectorBase::IsFocusable(), m_Root, OnFocus(), OnFocusLost(), OnMouseLeave(), x и y.

◆ OnMouseLeave() [17/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
331 {
332 return m_Tab.OnMouseLeave(w, enterW, x, y);
333 }

Перекрестные ссылки ServerBrowserTab::OnMouseLeave(), x и y.

◆ OnMouseLeave() [18/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
197 {
199 {
200 Lighten(w, enterW, x, y);
201 return true;
202 }
203
204 return false;
205 }

Перекрестные ссылки IsFocusable(), Lighten(), x и y.

◆ OnMouseLeave() [19/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
470 {
471 return m_Tab.OnMouseLeave(w, enterW, x, y);
472 }

Перекрестные ссылки ServerBrowserTab::OnMouseLeave(), x и y.

◆ OnMouseLeave() [20/20]

override bool OnMouseLeave ( Widget w,
Widget enterW,
int x,
int y )
inlineprotected
248 {
249 int index = m_TabControls.GetKeyByValue( w );
250 if ( m_SelectedIndex == index )
251 {
252 return false;
253 }
254
256 if ( tab_control )
257 {
258 Widget tab_title = TextWidget.Cast(tab_control.FindAnyWidget( tab_control.GetName() + "_Title" ));
259 tab_title.SetColor( ARGB(255, 255, 255, 255) );
260 tab_control.SetColor( ARGB(0, 0, 0 ,0) );
261 }
262 return false;
263 }

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

◆ OnObjectDetailChanged()

void OnObjectDetailChanged ( int value)
inlineprotected
475 {
476 m_ObjectDetailOption.SetIndex( value );
478 m_Menu.OnChanged();
479 }

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

◆ OnObjectVisibilityChanged()

void OnObjectVisibilityChanged ( int value)
inlineprotected
510 {
513 m_Menu.OnChanged();
514 }

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

◆ OnOptionChanged()

◆ OnOverallQualityChanged()

void OnOverallQualityChanged ( int value)
inlineprotected
430 {
431 m_OverallQualityOption.SetIndex( value );
432 m_OverallQualityOption.Test(); //here's the bastard!
433 m_Options.Test();
434 //SetOptions(m_Options);
435
437
438 //InitSelectors();
439 m_OverallQualityOption.SetIndex( value );
441 m_Menu.OnChanged();
442 }
proto native void Test()
Tests every option, see OptionsAccess::Test.
void ReloadOptions()
Definition OptionsMenuControls.c:622
void RefreshCustom()
Definition OptionsMenuVideo.c:350

Перекрестные ссылки m_Menu, RefreshCustom(), ReloadOptions() и GameOptions::Test().

◆ OnPanelVisibilityChanged()

void OnPanelVisibilityChanged ( )
inlineprotected
85 {
87 return;
88
89 /*if (IsInfoPanelVisible())
90 StartVideo();
91 else
92 PauseVideo();*/
93 }

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

Используется в ShowInfoPanel().

◆ OnPartyChatChangedEvent()

void OnPartyChatChangedEvent ( )
inlineprivate
239 {
240 auto game = GetGame();
241 if (!game.IsInPartyChat())
242 {
243 game.EnableMicCapture(true);
244 }
245
247 }
void UpdateWasMicCapturing()
Definition OptionsMenuSounds.c:250

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

◆ OnPlaybackStart()

void OnPlaybackStart ( )
inlineprotected
186 {
187 m_PlayButton.Show(false);
188 m_PauseButton.Show(true);
189
190 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(UpdateCurrentTime, 0, true);
191 }

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

◆ OnPlaybackStop()

void OnPlaybackStop ( )
inlineprotected
194 {
195 m_PlayButton.Show(true);
196 m_PauseButton.Show(false);
197
199
200 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(UpdateCurrentTime);
201 }

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

◆ OnPPAAChanged()

void OnPPAAChanged ( int value)
inlineprotected
531 {
532 m_PPAAOption.SetIndex( value );
534 m_Menu.OnChanged();
535 }

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

◆ OnPPQualityChanged()

void OnPPQualityChanged ( int value)
inlineprotected
573 {
574 m_PPQualityOption.SetIndex( value );
576 m_Menu.OnChanged();
577 }

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

◆ OnResolutionChanged()

void OnResolutionChanged ( int value)
inlineprotected
451 {
452 m_ResolutionOption.SetIndex( value );
453 m_Menu.OnChanged();
454 }

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

◆ OnSelect() [1/2]

void OnSelect ( )
inlineprotected
178 {
179 Darken(m_Root, 0, 0);
180 Select();
182 m_Tab.SetServerDetails(m_ServerData, m_IsOnline);
183 }

Перекрестные ссылки Darken(), m_Root, Select() и SetFocus().

Используется в OnMouseButtonUp().

◆ OnSelect() [2/2]

override bool OnSelect ( Widget w,
int x,
int y )
inlineprivate
56 {
57 //Print("OnSelect");
58 return true;
59 }

◆ OnSelectAction()

void OnSelectAction ( ItemBase item,
int actionId )
inlineprotected
26 {
27 #ifdef DIAG_DEVELOPER
29 m_player.GetActionManager().OnInstantAction(ActionDebug,new Param2<ItemBase,int>(item,actionId));
30 #endif
31 }
DayZPlayer m_player
Definition RandomGeneratorSyncManager.c:16
Definition PlayerBaseClient.c:2

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

◆ OnSelectActionEx()

void OnSelectActionEx ( EntityAI item,
int actionId )
inlineprotected
34 {
35 #ifdef DIAG_DEVELOPER
37 m_player.GetActionManager().OnInstantAction(ActionDebug,new Param2<EntityAI,int>(item,actionId));
38 #endif
39 }

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

◆ OnSelectConsolePreset()

void OnSelectConsolePreset ( int index)
inlineprotected
72 {
73 string profile_text;
74 GetGame().GetInput().GetProfileName( index, profile_text );
75 GetGame().GetInput().SetProfile( index );
77 }
void ReloadProfiles()
Definition KeybindingsGroup.c:79

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

◆ OnSelectKBPreset()

void OnSelectKBPreset ( int index)
inlineprotected
62 {
63 string profile_text;
64 GetGame().GetInput().GetProfileName( index, profile_text );
65 m_KBDropdown.SetText( profile_text );
66 GetGame().GetInput().SetProfile( index );
68 m_KBDropdown.Close();
69 }

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

◆ OnShadowDetailChanged()

void OnShadowDetailChanged ( int value)
inlineprotected
496 {
497 m_ShadowDetailOption.SetIndex( value );
499 m_Menu.OnChanged();
500 }

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

◆ OnShow()

void OnShow ( )
inlineprotected
191 {
192 m_RootWidget.Show( true );
193 if ( m_ParentWidget )
194 m_ParentWidget.Show( true );
195 }

Перекрестные ссылки m_ParentWidget и m_RootWidget.

◆ OnSortChanged()

void OnSortChanged ( int value)
inlineprotected
376 {
377 switch(value)
378 {
379 case 0:
380 {
381 m_Tab.SetSort(ESortType.HOST, ESortOrder.ASCENDING);
382 break;
383 }
384 case 1:
385 {
386 m_Tab.SetSort(ESortType.HOST, ESortOrder.DESCENDING);
387 break;
388 }
389 case 2:
390 {
391 m_Tab.SetSort(ESortType.POPULATION, ESortOrder.DESCENDING);
392 break;
393 }
394 case 3:
395 {
396 m_Tab.SetSort(ESortType.POPULATION, ESortOrder.ASCENDING);
397 break;
398 }
399 }
400 }
ESortOrder
Definition BiosLobbyService.c:20
ESortType
Definition BiosLobbyService.c:7

Перекрестные ссылки ServerBrowserTab::SetSort().

◆ OnSSRQualityChanged()

void OnSSRQualityChanged ( int value)
inlineprotected
580 {
581 m_SSRQualityOption.SetIndex( value );
583 m_Menu.OnChanged();
584 }

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

◆ OnTerrainDetailChanged()

void OnTerrainDetailChanged ( int value)
inlineprotected
482 {
483 m_TerrainDetailOption.SetIndex( value );
485 m_Menu.OnChanged();
486 }

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

◆ OnTerrainSurfaceDetailChanged()

void OnTerrainSurfaceDetailChanged ( int value)
inlineprotected
524 {
527 m_Menu.OnChanged();
528 }

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

◆ OnTextureDetailChanged()

void OnTextureDetailChanged ( int value)
inlineprotected
489 {
490 m_TextureDetailOption.SetIndex( value );
492 m_Menu.OnChanged();
493 }

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

◆ OnTextureFilteringChanged()

void OnTextureFilteringChanged ( int value)
inlineprotected
517 {
520 m_Menu.OnChanged();
521 }

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

◆ OnUpdate() [1/3]

override bool OnUpdate ( Widget w)
inlineprotected
80 {
81 return false;
82 }

◆ OnUpdate() [2/3]

override bool OnUpdate ( Widget w)
inlineprotected
35 {
36 if (w == m_BannerText)
37 {
38 float w0,h0,x0,y0;
39 m_BannerText.GetScreenSize(w0,h0);
40 float bannerBodyWidth = w0 + 20;
41
42 m_BannerBody.SetScreenSize(bannerBodyWidth,h0);
43 m_BannerBody.GetScreenPos(x0,y0);
44
45 m_BannerWedge.GetScreenSize(w0,h0);
46 m_BannerWedge.SetScreenPos(Math.Ceil(x0 - w0),y0);
47 }
48
49 return super.OnUpdate(w);
50 }
static proto float Ceil(float f)
Returns ceil of value.

Перекрестные ссылки Math::Ceil().

◆ OnUpdate() [3/3]

override bool OnUpdate ( Widget w)
inlineprotected
32 {
33 if ( m_Root == w )
34 {
35 Update();
36 return true;
37 }
38
39 return false;
40 }

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

◆ OnVisibilityChanged()

void OnVisibilityChanged ( int value)
inlineprotected
503 {
504 m_VisibilityOption.SetIndex( value );
506 m_Menu.OnChanged();
507 }

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

◆ OnVonStateEvent()

void OnVonStateEvent ( )
inlineprivate
226 {
227 // changing VON mode may disable mic capture,
228 // but mic should capture the entire time this menu is open (unless user in party chat)
229 if (!GetGame().IsInPartyChat())
230 {
231 // force enable mic capture
232 GetGame().EnableMicCapture(true);
233 }
234
236 }

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

◆ OnVSyncChanged()

void OnVSyncChanged ( float value)
inlineprotected
463 {
464 m_VSyncOption.SetIndex( value );
465 m_Menu.OnChanged();
466 }

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

◆ OnWidgetScriptInit() [1/7]

void OnWidgetScriptInit ( Widget w)
inlineprotected
15 {
16 m_Root = w;
17
18 m_Child = m_Root.FindAnyWidget( m_ChildName );
19 if ( m_Child )
20 {
22 }
23 }
reference string m_ChildName
Definition SizeToChild.c:3
bool ResizeParentToChild()
Definition SizeToChild.c:25
Widget m_Child
Definition SizeToChild.c:10

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

◆ OnWidgetScriptInit() [2/7]

void OnWidgetScriptInit ( Widget w)
inlineprotected
67 {
68 m_Root = w;
69 m_Root.SetHandler(this);
70 }

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

◆ OnWidgetScriptInit() [3/7]

void OnWidgetScriptInit ( Widget w)
inlineprotected
44 {
45 m_Root = w;
46 m_Root.SetHandler(this);
47 m_Root.Show(false);
48
49 m_RadialWidget = m_Root.FindAnyWidget("PBRadial1");
50 m_LoaderImage = ImageWidget.Cast( m_Root.FindAnyWidget("cap_init_loader") );
52 m_RadialWidget.GetScript(m_Radial);
53 m_Root.Update();
54 }

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

◆ OnWidgetScriptInit() [4/7]

void OnWidgetScriptInit ( Widget w)
inlineprotected

UA -> widget icon

85 {
86 m_Root = w;
87 m_Root.SetHandler(this);
88 m_Root.Show(false);
89
90 m_ItemLeft = w.FindAnyWidget("ia_item_left");
91
95 }
Widget m_ItemLeft
Definition ItemActionsWidget.c:27

Перекрестные ссылки m_Root, UpdateControllerInputIcons() и UpdatePCIconsVisibility().

◆ OnWidgetScriptInit() [5/7]

void OnWidgetScriptInit ( Widget w)
inlineprotected
96 {
97 m_TabsCount = 0;
100
101 m_Root = w;
102 m_InitTimer = new Timer();
103 m_TabControlsRoot = m_Root.FindAnyWidget("TabControls");
104
105 Init();
106 }
Definition DayZPlayerImplement.c:63

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

◆ OnWidgetScriptInit() [6/7]

void OnWidgetScriptInit ( Widget w)
inlineprotected
21 {
22 m_Root = w;
23 m_Root.SetHandler(this);
24 }

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

◆ OnWidgetScriptInit() [7/7]

void OnWidgetScriptInit ( Widget w)
inlineprotected
27 {
28 m_Root = w;
29 m_Root.SetHandler(this);
30 m_Root.Update();
31 }

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

◆ Open()

void Open ( )
inlineprotected
39 {
40 if ( !m_Root.IsVisible() )
41 m_Scroll.VScrollToPos( 0 );
42 m_Root.Show( true );
43 GetGame().GetMission().GetOnModMenuVisibilityChanged().Invoke(false);
44 }

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

◆ OpenDiscord()

void OpenDiscord ( )
inlineprotected
70 {
71 GetGame().OpenURL( "https://discord.gg/bXkyMNm" );
72 }

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

Используется в OnClick().

◆ OpenDLC()

void OpenDLC ( )
inlineprotected
65 {
66 GetGame().OpenURL( "https://store.steampowered.com/app/830660/Survivor_GameZ/" );
67 }

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

Используется в OnClick().

◆ OpenFeedback()

void OpenFeedback ( )
inlineprotected
75 {
76 GetGame().OpenURL( "https://feedback.bistudio.com/tag/dayz" );
77 }

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

Используется в OnClick().

◆ OpenForums()

void OpenForums ( )
inlineprotected
80 {
81 GetGame().OpenURL( "https://forums.dayz.com" );
82 }

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

Используется в OnClick().

◆ OpenTwitter()

void OpenTwitter ( )
inlineprotected
85 {
86 GetGame().OpenURL( "https://twitter.com/DayZ" );
87 }

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

Используется в OnClick().

◆ OpenYoutube()

void OpenYoutube ( )
inlineprotected
90 {
91 GetGame().OpenURL( "https://www.youtube.com/user/DayZDevTeam" );
92 }

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

Используется в OnClick().

◆ OptionsMenuControls()

void OptionsMenuControls ( Widget parent,
Widget details_root,
GameOptions options,
OptionsMenu menu )
inlineprotected
76 {
77 array<string> opt = { "#options_controls_disabled", "#options_controls_enabled" };
78
79 m_Root = GetGame().GetWorkspace().CreateWidgets( GetLayoutName(), parent );
81 m_Menu = menu;
82
84 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget("settings_details_body");
85 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget("settings_details_body_connectivity");
86 m_DetailsLabel = TextWidget.Cast( m_DetailsRoot.FindAnyWidget( "details_label" ) );
87 m_DetailsText = RichTextWidget.Cast( m_DetailsRoot.FindAnyWidget( "details_content" ) );
88 m_Keybindings = GridSpacerWidget.Cast( m_Root.FindAnyWidget( "keyboard_settings_content" ) );
89 if( m_Keybindings )
90 m_Keybindings.SetUserID( 777 );
91
93
94 // mouse (PC & consoles)
95 Widget mouse_InvertSettingOption = m_Root.FindAnyWidget( "mouse_invert_setting_option" );
96 Widget mouse_VSensitivitySettingOption = m_Root.FindAnyWidget( "mouse_vsensitivity_setting_option" );
97 Widget mouse_HSensitivitySettingOption = m_Root.FindAnyWidget( "mouse_hsensitivity_setting_option" );
98 Widget mouse_AimMod_VSensitivitySettingOption = m_Root.FindAnyWidget( "mouse_aimmod_vsensitivity_setting_option" );
99 Widget mouse_AimMod_HSensitivitySettingOption = m_Root.FindAnyWidget( "mouse_aimmod_hsensitivity_setting_option" );
100
101 mouse_InvertSettingOption.SetUserID( OptionAccessType.AT_OPTIONS_MOUSE_YAXIS_INVERTED );
102 mouse_VSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_MOUSE_YAXIS );
103 mouse_HSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_MOUSE_XAXIS );
104 mouse_AimMod_VSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_MOUSE_YAXIS_AIM_MOD );
105 mouse_AimMod_HSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_MOUSE_XAXIS_AIM_MOD );
106
107 m_Mouse_InvertSelector = new OptionSelectorMultistate( mouse_InvertSettingOption, m_Mouse_InvertOption.GetIndex(), this, false, opt );
116
117 m_Mouse_InvertSelector.m_OptionChanged.Insert( UpdateMouseInvertView );
122
123 // controller (consoles only)
124 #ifdef PLATFORM_CONSOLE
125 m_MaKOptionAvailable = g_Game.GetGameState() != DayZGameState.IN_GAME || GetGame().GetWorld().IsMouseAndKeyboardEnabledOnServer();
126 m_ConsoleControllerSensitivityWidget = m_Root.FindAnyWidget( "controller_settings_root" );
127 m_ConsoleMouseSensitivityWidget = m_Root.FindAnyWidget( "mouse_settings_root" );
128
129 Widget keyboardSettingOption = m_Root.FindAnyWidget( "keyboard_setting_option" );
130 Widget aimHelperSettingOption = m_Root.FindAnyWidget( "aimhelper_setting_option" );
131
132 Widget controllerLS_VSensitivitySettingOption = m_Root.FindAnyWidget("controller_ls_vsensitivity_setting_option");
133 Widget controllerLS_HSensitivitySettingOption = m_Root.FindAnyWidget("controller_ls_hsensitivity_setting_option");
134 Widget controllerLS_VehicleMod_HSensitivitySettingOption = m_Root.FindAnyWidget("controller_ls_vehicle_sensitivity_setting_option");
135 Widget controllerRS_InvertSettingOption = m_Root.FindAnyWidget("controller_rs_invert_setting_option");
136 Widget controllerRS_VSensitivitySettingOption = m_Root.FindAnyWidget("controller_rs_vsensitivity_setting_option");
137 Widget controllerRS_HSensitivitySettingOption = m_Root.FindAnyWidget("controller_rs_hsensitivity_setting_option");
138 Widget controllerRS_CurvatureSettingOption = m_Root.FindAnyWidget("controller_rs_curvature_setting_option");
139 Widget controllerRS_AimMod_VSensitivitySettingOption = m_Root.FindAnyWidget("controller_rs_aimmod_vsensitivity_setting_option");
140 Widget controllerRS_AimMod_HSensitivitySettingOption = m_Root.FindAnyWidget("controller_rs_aimmod_hsensitivity_setting_option");
141 Widget controllerRS_AimMod_CurvatureSettingOption = m_Root.FindAnyWidget("controller_rs_aimmod_curvature_setting_option");
142 Widget controllerLS_DeadZoneOption = m_Root.FindAnyWidget("controller_ls_deadzone_setting_option");
143 Widget controllerRS_DeadZoneOption = m_Root.FindAnyWidget("controller_rs_deadzone_setting_option");
144
145 keyboardSettingOption.SetUserID( OptionAccessType.AT_OPTIONS_MOUSE_AND_KEYBOARD );
146 aimHelperSettingOption.SetUserID( OptionAccessType.AT_OPTIONS_AIM_HELPER );
147
148 controllerLS_VSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_LS_YAXIS );
149 controllerLS_HSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_LS_XAXIS );
150 controllerLS_VehicleMod_HSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_LS_XAXIS_VEHICLE_MOD );
151 controllerRS_InvertSettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_INVERTED );
152 controllerRS_VSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS );
153 controllerRS_HSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_XAXIS );
154 controllerRS_CurvatureSettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_CURVATURE );
155 controllerRS_AimMod_VSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_AIM_MOD );
156 controllerRS_AimMod_HSensitivitySettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_XAXIS_AIM_MOD );
157 controllerRS_AimMod_CurvatureSettingOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_CURVATURE_AIM_MOD );
158 controllerLS_DeadZoneOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_LS_DEADZONE );
159 controllerRS_DeadZoneOption.SetUserID( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_DEADZONE );
160
161 m_KeyboardSelector = new OptionSelectorMultistate( keyboardSettingOption, m_KeyboardOption.GetIndex(), this, !m_MaKOptionAvailable, opt );
162 m_AimHelperSelector = new OptionSelectorMultistate( aimHelperSettingOption, m_AimHelperOption.GetIndex(), this, false, opt );
163
170 m_ControllerRS_InvertSelector = new OptionSelectorMultistate( controllerRS_InvertSettingOption, m_ControllerRS_InvertOption.GetIndex(), this, false, opt );
187
188 m_KeyboardSelector.m_OptionChanged.Insert( UpdateKeyboard );
189 m_AimHelperSelector.m_OptionChanged.Insert( UpdateAimHelper );
190
203
205
206 bool MaKState = m_KeyboardSelector.IsEnabled() && GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
207 GetGame().GetCallQueue(CALL_CATEGORY_GUI).Call(m_Menu.ToggleDependentOptions,EDependentOptions.MOUSEANDKEYBOARD_QUICKBAR,MaKState);
208 #endif
209
210 FillTextMap();
211
212 float x, y, y2;
213 m_Root.FindAnyWidget( "controls_settings_scroll" ).GetScreenSize( x, y );
214 m_Root.FindAnyWidget( "controls_settings_root" ).GetScreenSize( x, y2 );
215 int f = ( y2 > y );
216 m_Root.FindAnyWidget( "controls_settings_scroll" ).SetAlpha( f );
217
218 m_Root.SetHandler( this );
219 }
EDependentOptions
Definition DependentOptions.c:2
ref NumericOptionsAccess m_ControllerRS_AimMod_HSensitivityOption
Definition OptionsMenuControls.c:52
ref OptionSelectorSlider m_ControllerLS_DeadZoneSelector
Definition OptionsMenuControls.c:68
ref OptionSelectorSlider m_Mouse_AimMod_VSensitivitySelector
Definition OptionsMenuControls.c:40
Widget m_DetailsBodyConnectivity
Definition OptionsMenuControls.c:8
ref OptionSelectorSlider m_ControllerRS_AimMod_CurvatureSelector
Definition OptionsMenuControls.c:67
ref OptionSelectorMultistate m_Mouse_InvertSelector
Definition OptionsMenuControls.c:37
ref OptionSelectorSlider m_ControllerRS_CurvatureSelector
Definition OptionsMenuControls.c:64
Widget m_DetailsBodyDefault
Definition OptionsMenuControls.c:7
static const float SLIDER_STEP
Definition OptionsMenuControls.c:73
ref NumericOptionsAccess m_ControllerLS_VehicleMod_HSensitivityOption
Definition OptionsMenuControls.c:46
TextWidget m_DetailsLabel
Definition OptionsMenuControls.c:14
void UpdateMouseAimModVSensitivity(float value)
Definition OptionsMenuControls.c:610
ref NumericOptionsAccess m_ControllerRS_CurvatureOption
Definition OptionsMenuControls.c:50
ref OptionSelectorSlider m_ControllerRS_HSensitivitySelector
Definition OptionsMenuControls.c:63
ref NumericOptionsAccess m_Mouse_AimMod_VSensitivityOption
Definition OptionsMenuControls.c:33
ref OptionSelectorSlider m_ControllerRS_VSensitivitySelector
Definition OptionsMenuControls.c:62
ref SwitchOptionsAccess m_ControllerRS_InvertOption
Definition OptionsMenuControls.c:47
ref OptionSelectorSlider m_ControllerLS_VSensitivitySelector
Definition OptionsMenuControls.c:58
ref OptionSelectorSlider m_ControllerLS_VehicleMod_HSensitivitySelector
Definition OptionsMenuControls.c:60
ref NumericOptionsAccess m_Mouse_VSensitivityOption
Definition OptionsMenuControls.c:31
ref NumericOptionsAccess m_ControllerLS_VSensitivityOption
Definition OptionsMenuControls.c:44
ref SwitchOptionsAccess m_Mouse_InvertOption
Definition OptionsMenuControls.c:30
void UpdateMouseInvertView(int index)
Definition OptionsMenuControls.c:589
ref NumericOptionsAccess m_ControllerRS_AimMod_VSensitivityOption
Definition OptionsMenuControls.c:51
ref NumericOptionsAccess m_Mouse_AimMod_HSensitivityOption
Definition OptionsMenuControls.c:34
ref NumericOptionsAccess m_ControllerRS_HSensitivityOption
Definition OptionsMenuControls.c:49
ref SwitchOptionsAccess m_AimHelperOption
Definition OptionsMenuControls.c:23
ref OptionSelectorSlider m_ControllerLS_HSensitivitySelector
Definition OptionsMenuControls.c:59
ref NumericOptionsAccess m_ControllerRS_DeadZoneOption
Definition OptionsMenuControls.c:55
void UpdateMouseAimModHSensitivity(float value)
Definition OptionsMenuControls.c:616
ref OptionSelectorSlider m_Mouse_AimMod_HSensitivitySelector
Definition OptionsMenuControls.c:41
void FillTextMap()
Definition OptionsMenuControls.c:668
RichTextWidget m_DetailsText
Definition OptionsMenuControls.c:15
ref OptionSelectorMultistate m_ControllerRS_InvertSelector
Definition OptionsMenuControls.c:61
ref OptionSelectorSlider m_Mouse_VSensitivitySelector
Definition OptionsMenuControls.c:38
ref NumericOptionsAccess m_ControllerLS_DeadZoneOption
Definition OptionsMenuControls.c:54
void UpdateMouseVSensitivity(float value)
Definition OptionsMenuControls.c:598
ref OptionSelectorSlider m_Mouse_HSensitivitySelector
Definition OptionsMenuControls.c:39
ref NumericOptionsAccess m_Mouse_HSensitivityOption
Definition OptionsMenuControls.c:32
void UpdateMouseHSensitivity(float value)
Definition OptionsMenuControls.c:604
ref OptionSelectorSlider m_ControllerRS_AimMod_HSensitivitySelector
Definition OptionsMenuControls.c:66
ref OptionSelectorSlider m_ControllerRS_AimMod_VSensitivitySelector
Definition OptionsMenuControls.c:65
ref OptionSelectorSlider m_ControllerRS_DeadZoneSelector
Definition OptionsMenuControls.c:69
ref NumericOptionsAccess m_ControllerLS_HSensitivityOption
Definition OptionsMenuControls.c:45
ref NumericOptionsAccess m_ControllerRS_VSensitivityOption
Definition OptionsMenuControls.c:48
void SetOptions(GameOptions options)
Definition OptionsMenuControls.c:627
ref NumericOptionsAccess m_ControllerRS_AimMod_CurvatureOption
Definition OptionsMenuControls.c:53

Перекрестные ссылки CALL_CATEGORY_GUI, FillTextMap(), g_Game, GetGame(), GetLayoutName(), m_DetailsRoot, m_Menu, m_Root, SetOptions(), x и y.

◆ OptionsMenuGame()

void OptionsMenuGame ( Widget parent,
Widget details_root,
GameOptions options,
OptionsMenu menu )
inlineprotected
45 {
46 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
47
49 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget("settings_details_body");
50 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget("settings_details_body_connectivity");
51 m_DetailsLabel = TextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_label"));
52 m_DetailsText = RichTextWidget.Cast(m_DetailsRoot.FindAnyWidget("details_content"));
53
55 m_Menu = menu;
56
60
61 m_Root.FindAnyWidget("fov_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_FIELD_OF_VIEW);
62 m_Root.FindAnyWidget("hud_setting_option").SetUserID(OptionIDsScript.OPTION_HUD);
63 m_Root.FindAnyWidget("hud_vehicle_setting_option").SetUserID(OptionIDsScript.OPTION_HUD_VEHICLE);
64 m_Root.FindAnyWidget("hud_brightness_setting_option").SetUserID(OptionIDsScript.OPTION_HUD_BRIGHTNESS);
65 m_Root.FindAnyWidget("crosshair_setting_option").SetUserID(OptionIDsScript.OPTION_CROSSHAIR);
66 m_Root.FindAnyWidget("game_setting_option").SetUserID(OptionIDsScript.OPTION_GAME_MESSAGES);
67 m_Root.FindAnyWidget("admin_setting_option").SetUserID(OptionIDsScript.OPTION_ADMIN_MESSAGES);
68 m_Root.FindAnyWidget("player_setting_option").SetUserID(OptionIDsScript.OPTION_PLAYER_MESSAGES);
69 m_Root.FindAnyWidget("language_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_LANGUAGE);
70 m_Root.FindAnyWidget("bleeding_indication_setting_option").SetUserID(OptionIDsScript.OPTION_BLEEDINGINDICATION);
71 m_Root.FindAnyWidget("connectivity_setting_option").SetUserID(OptionIDsScript.OPTION_CONNECTIVITY_INFO);
72 m_Root.FindAnyWidget("quickbar_setting_option").SetUserID(OptionIDsScript.OPTION_QUICKBAR);
73
74 #ifdef PLATFORM_CONSOLE
75 m_QuickbarButton = ButtonWidget.Cast(m_Root.FindAnyWidget("quickbar_button"));
76 m_Root.FindAnyWidget("brightness_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER);
77 #else
78 m_Root.FindAnyWidget("serverinfo_setting_option").SetUserID(OptionIDsScript.OPTION_SERVER_INFO);
79 m_Root.FindAnyWidget("pause_setting_option").SetUserID(OptionAccessType.AT_OPTIONS_PAUSE);
80 #endif
81
83
84 array<string> opt = { "#options_controls_disabled", "#options_controls_enabled" };
85 array<string> opt2 = { "#options_controls_enabled", "#options_controls_disabled" };
87 for (int i = 0; i < m_LanguageOption.GetItemsCount(); ++i)
88 {
89 string text;
90 m_LanguageOption.GetItemText(i, text);
91 opt3.Insert(text);
92 }
93
94 array<string> opt4 = { "#options_pc_nopause_0", "#options_pc_nopause_1", "#options_pc_nopause_2" }; // Pause options menu strings
95
96 m_LanguageSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("language_setting_option"), m_LanguageOption.GetIndex(), this, false, opt3);
97 m_FOVSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("fov_setting_option"), m_FOVOption.ReadValue(), this, false, m_FOVOption.GetMin(), m_FOVOption.GetMax());
98 m_ShowHUDSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("hud_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.HUD), this, false, opt);
99 m_HUDBrightnessSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("hud_brightness_setting_option"), g_Game.GetProfileOptionFloat(EDayZProfilesOptions.HUD_BRIGHTNESS), this, false, HUD_BRIGHTNESS_MIN, HUD_BRIGHTNESS_MAX);
100 m_ShowCrosshairSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("crosshair_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.CROSSHAIR), this, false, opt);
101 m_ShowGameSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("game_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.GAME_MESSAGES), this, false, opt2);
102 m_ShowAdminSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("admin_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.ADMIN_MESSAGES), this, false, opt2);
103 m_ShowPlayerSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("player_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.PLAYER_MESSAGES), this, false, opt2);
104 m_BleedingIndication = new OptionSelectorMultistate(m_Root.FindAnyWidget("bleeding_indication_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION), this, false, opt);
105 m_ConnectivityInfo = new OptionSelectorMultistate(m_Root.FindAnyWidget("connectivity_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO), this, false, opt);
106 m_ShowQuickbarSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("quickbar_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.QUICKBAR), this, false, opt);
107 m_ShowHUDVehicleSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("hud_vehicle_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.HUD_VEHICLE), this, false, opt);
108
109 m_LanguageSelector.m_OptionChanged.Insert(UpdateLanguageOption);
110 m_FOVSelector.m_OptionChanged.Insert(UpdateFOVOption);
111 m_ShowHUDSelector.m_OptionChanged.Insert(UpdateHUDOption);
113 m_ShowCrosshairSelector.m_OptionChanged.Insert(UpdateCrosshairOption);
114 m_ShowGameSelector.m_OptionChanged.Insert(UpdateGameOption);
115 m_ShowAdminSelector.m_OptionChanged.Insert(UpdateAdminOption);
116 m_ShowPlayerSelector.m_OptionChanged.Insert(UpdatePlayerOption);
117 m_BleedingIndication.m_OptionChanged.Insert(UpdateBleedingIndication);
118 m_ConnectivityInfo.m_OptionChanged.Insert(UpdateConnectivityInfo);
119 m_ShowQuickbarSelector.m_OptionChanged.Insert(UpdateQuickbarOption);
120 m_ShowHUDVehicleSelector.m_OptionChanged.Insert(UpdateHUDVehicleOption);
121
122 #ifdef PLATFORM_CONSOLE
124 m_BrightnessSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("brightness_setting_option"), m_BrightnessOption.ReadValue(), this, false, m_BrightnessOption.GetMin(), m_BrightnessOption.GetMax());
125 m_BrightnessSelector.m_OptionChanged.Insert(UpdateBrightnessOption);
126 #else
127 m_ShowServerInfoSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("serverinfo_setting_option"), g_Game.GetProfileOptionBool(EDayZProfilesOptions.SERVERINFO_DISPLAY), this, false, opt);
128 m_PauseSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("pause_setting_option"), m_PauseOption.GetIndex(), this, false, opt4);
129
130 m_ShowServerInfoSelector.m_OptionChanged.Insert(UpdateServerInfoOption);
131 m_PauseSelector.m_OptionChanged.Insert(UpdatePauseOption);
132 #endif
133
134 float x, y, y2;
135 m_Root.FindAnyWidget("game_settings_scroll").GetScreenSize(x, y);
136 m_Root.FindAnyWidget("game_settings_root").GetScreenSize(x, y2);
137 int f = (y2 > y);
138 m_Root.FindAnyWidget("game_settings_scroll").SetAlpha(f);
139
140 m_Root.SetHandler(this);
141 m_DetailsRoot.Show(false);
142
144 }
proto native OptionsAccess GetOptionByType(int accessType)
Get option by AccessType.
void UpdateHUDOption(int new_index)
Definition OptionsMenuGame.c:428
void UpdateCrosshairOption(int new_index)
Definition OptionsMenuGame.c:443
ref ListOptionsAccess m_PauseOption
Definition OptionsMenuGame.c:18
void UpdatePauseOption(int new_index)
Definition OptionsMenuGame.c:409
void UpdateLanguageOption(int new_index)
Definition OptionsMenuGame.c:401
void UpdatePlayerOption(int new_index)
Definition OptionsMenuGame.c:468
void UpdateHUDVehicleOption(int new_index)
Definition OptionsMenuGame.c:453
ref OptionSelectorSlider m_FOVSelector
Definition OptionsMenuGame.c:25
ref OptionSelectorMultistate m_PauseSelector
Definition OptionsMenuGame.c:37
const float HUD_BRIGHTNESS_MIN
Definition OptionsMenuGame.c:3
void UpdateConnectivityInfo(int newIndex)
Definition OptionsMenuGame.c:438
void UpdateQuickbarOption(int new_index)
Definition OptionsMenuGame.c:448
void UpdateHUDBrightnessOption(float newValue)
Definition OptionsMenuGame.c:422
void UpdateAdminOption(int new_index)
Definition OptionsMenuGame.c:463
void UpdateFOVOption(float new_value)
Definition OptionsMenuGame.c:415
void UpdateServerInfoOption(int new_index)
Definition OptionsMenuGame.c:473
void UpdateBleedingIndication(int new_index)
Definition OptionsMenuGame.c:433
const float HUD_BRIGHTNESS_MAX
Definition OptionsMenuGame.c:4
void UpdateGameOption(int new_index)
Definition OptionsMenuGame.c:458
void InitDependentOptionsVisibility()
Definition OptionsMenuControls.c:664

Перекрестные ссылки FillTextMap(), g_Game, GetGame(), GetLayoutName(), GameOptions::GetOptionByType(), InitDependentOptionsVisibility(), m_DetailsRoot, m_Menu, m_Root, x и y.

◆ OptionsMenuSounds()

void OptionsMenuSounds ( Widget parent,
Widget details_root,
GameOptions options,
OptionsMenu menu )
inlineprivate
38 {
39 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
41 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget("settings_details_body");
42 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget("settings_details_body_connectivity");
43 m_DetailsLabel = TextWidget.Cast( m_DetailsRoot.FindAnyWidget("details_label"));
44 m_DetailsText = RichTextWidget.Cast( m_DetailsRoot.FindAnyWidget("details_content"));
46 m_Menu = menu;
47
54
55 m_MissionGameplay = MissionGameplay.Cast(GetGame().GetMission());
58 m_AudioLevelTimer.Run(0.1, this, "UpdateAudioLevel", null, true);
59
60 m_Root.FindAnyWidget( "master_setting_option" ).SetUserID(OptionAccessType.AT_OPTIONS_MASTER_VOLUME);
61 m_Root.FindAnyWidget( "effects_setting_option" ).SetUserID(OptionAccessType.AT_OPTIONS_EFFECTS_SLIDER);
62 m_Root.FindAnyWidget( "music_setting_option" ).SetUserID(OptionAccessType.AT_OPTIONS_MUSIC_SLIDER);
63 m_Root.FindAnyWidget( "voip_output_setting_option" ).SetUserID(OptionAccessType.AT_OPTIONS_VON_SLIDER);
64 m_Root.FindAnyWidget( "voip_threshold_setting_option" ).SetUserID(OptionAccessType.AT_OPTIONS_VON_THRESHOLD_SLIDER);
65 m_Root.FindAnyWidget( "voip_selection_setting_option" ).SetUserID(OptionAccessType.AT_OPTIONS_VON_INPUT_MODE);
66 m_Root.FindAnyWidget( "ambient_music_mode_option" ).SetUserID(OptionIDsScript.OPTION_AMBIENT_MUSIC_MODE);
67
69
71 "#STR_Controls_PushToTalk",
72 "#STR_USRACT_UAVOICEOVERNETTOGGLE",
73 };
75 "#STR_Ambient_Music_Enabled",
76 "#STR_Ambient_Music_Menu_Only",
77 };
78
79 m_MasterSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("master_setting_option" ), m_MasterOption.ReadValue(), this, false, m_MasterOption.GetMin(), m_MasterOption.GetMax());
80 m_EffectsSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("effects_setting_option" ), m_EffectsOption.ReadValue(), this, false, m_EffectsOption.GetMin(), m_EffectsOption.GetMax());
81 m_VOIPSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("voip_output_setting_option" ), m_VOIPOption.ReadValue(), this, false, m_VOIPOption.GetMin(), m_VOIPOption.GetMax());
82 m_VOIPThresholdSelector = new OptionSelectorLevelMarker(m_Root.FindAnyWidget("voip_threshold_setting_option" ), m_VOIPThresholdOption.ReadValue(), this, false, m_VOIPThresholdOption.GetMin(), m_VOIPThresholdOption.GetMax());
83 m_MusicSelector = new OptionSelectorSlider(m_Root.FindAnyWidget("music_setting_option" ), m_MusicOption.ReadValue(), this, false, m_MusicOption.GetMin(), m_MusicOption.GetMax());
84 m_InputModeSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("voip_selection_setting_option" ), m_InputModeOption.GetIndex(), this, false, inputModeValues);
85 m_AmbientMusicSelector = new OptionSelectorMultistate(m_Root.FindAnyWidget("ambient_music_mode_option" ), g_Game.GetProfileOptionInt(EDayZProfilesOptions.AMBIENT_MUSIC_MODE), this, false, ambientMusicModeValues);
86
87 m_MasterSelector.m_OptionChanged.Insert(UpdateMaster);
88 m_EffectsSelector.m_OptionChanged.Insert(UpdateEffects);
89 m_VOIPSelector.m_OptionChanged.Insert(UpdateVOIP);
90 m_VOIPThresholdSelector.m_OptionChanged.Insert(UpdateVOIPThreshold);
91 m_MusicSelector.m_OptionChanged.Insert(UpdateMusic);
93 m_InputModeSelector.m_OptionChanged.Insert(UpdateInputMode);
94
96 {
97 // event to monitor when options get reverted directly from C++
98 m_VOIPThresholdOption.GetEvents().Event_OnRevert.Insert(m_VonManager.OnVOIPThresholdChanged);
102 }
103
104 float x, y, y2;
105 m_Root.FindAnyWidget("sound_settings_scroll").GetScreenSize(x, y);
106 m_Root.FindAnyWidget("sound_settings_root").GetScreenSize(x, y2);
107 int f = (y2 > y);
108 m_Root.FindAnyWidget("sound_settings_scroll").SetAlpha(f);
109
110 m_Root.SetHandler(this);
111
112 CGame game = GetGame();
113 m_WasMicCapturing = game.IsMicCapturing();
114
115 // do not enable mic capture if user in party chat
116 if (!game.IsInPartyChat())
117 {
118 game.EnableMicCapture(true);
119 }
120 }
void UpdateMusic()
Definition AnniversaryMusicSource.c:55
Definition DayZGame.c:885
ref OptionSelectorSlider m_VOIPSelector
Definition OptionsMenuSounds.c:21
ref NumericOptionsAccess m_MusicOption
Definition OptionsMenuSounds.c:16
ref OptionSelectorSlider m_MusicSelector
Definition OptionsMenuSounds.c:23
ref OptionSelectorSlider m_EffectsSelector
Definition OptionsMenuSounds.c:20
ref OptionSelectorLevelMarker m_VOIPThresholdSelector
Definition OptionsMenuSounds.c:22
ref NumericOptionsAccess m_VOIPThresholdOption
Definition OptionsMenuSounds.c:15
void UpdateAmbientSoundModeOption(int value)
Definition OptionsMenuSounds.c:397
ref NumericOptionsAccess m_MasterOption
Definition OptionsMenuSounds.c:12
void UpdateInputMode(int newIndex)
Definition OptionsMenuSounds.c:402
void UpdateMaster(float value)
Definition OptionsMenuSounds.c:367
ref ListOptionsAccess m_InputModeOption
Definition OptionsMenuSounds.c:17
void UpdateVOIPThreshold(float value)
Definition OptionsMenuSounds.c:385
void UpdateEffects(float value)
Definition OptionsMenuSounds.c:373
ref NumericOptionsAccess m_VOIPOption
Definition OptionsMenuSounds.c:14
ref NumericOptionsAccess m_EffectsOption
Definition OptionsMenuSounds.c:13
ref OptionSelectorMultistate m_InputModeSelector
Definition OptionsMenuSounds.c:24
void UpdateVOIP(float value)
Definition OptionsMenuSounds.c:379
void OnVOIPThresholdChanged()
Manager class which handles Voice-over-network functionality while player is connected to a server.
Definition VONManager.c:285
static VONManagerBase GetInstance()
Main way to access VONManager functionality from script.
Definition VONManager.c:292

Перекрестные ссылки FillTextMap(), g_Game, GetGame(), VONManager::GetInstance(), GetLayoutName(), GameOptions::GetOptionByType(), m_DetailsRoot, m_Menu, VONManagerBase::m_OnPartyChatChangedEvent, VONManagerBase::m_OnVonStateEvent, m_Root, VONManagerBase::OnVOIPThresholdChanged(), UpdateMusic(), x и y.

◆ OptionsMenuVideo()

void OptionsMenuVideo ( Widget parent,
Widget details_root,
GameOptions options,
OptionsMenu menu )
inlineprotected
86 {
87 m_Root = GetGame().GetWorkspace().CreateWidgets( GetLayoutName(), parent );
88
90 m_DetailsBodyDefault = m_DetailsRoot.FindAnyWidget("settings_details_body");
91 m_DetailsBodyConnectivity = m_DetailsRoot.FindAnyWidget("settings_details_body_connectivity");
92 m_DetailsLabel = TextWidget.Cast( m_DetailsRoot.FindAnyWidget( "details_label" ) );
93 m_DetailsText = RichTextWidget.Cast( m_DetailsRoot.FindAnyWidget( "details_content" ) );
94
96 m_Menu = menu;
97
98 #ifdef PLATFORM_CONSOLE
99 #ifdef PLATFORM_PS4
100 m_Root.FindAnyWidget( "vsync_setting_option" ).SetUserID( OptionAccessType.AT_OPTIONS_FLIPMODE );
101 #endif
102 #else
103 m_Root.FindAnyWidget( "overall_quality_setting_option" ).SetUserID( OptionAccessType.AT_QUALITY_PREFERENCE );
104 m_Root.FindAnyWidget( "display_mode_setting_option" ).SetUserID( OptionAccessType.AT_OPTIONS_DISPLAY_MODE );
105 m_Root.FindAnyWidget( "resolution_setting_option" ).SetUserID( OptionAccessType.AT_OPTIONS_RESOLUTION );
106 m_Root.FindAnyWidget( "brightness_setting_option" ).SetUserID( OptionAccessType.AT_OPTIONS_BRIGHT_SLIDER );
107 m_Root.FindAnyWidget( "vsync_setting_option" ).SetUserID( OptionAccessType.AT_VSYNC_VALUE );
108 //m_Root.FindAnyWidget( "color_depth_setting_option" ).SetUserID( OptionAccessType.AT_HDR_DETAIL );
109
110 //Scene
111 m_Root.FindAnyWidget( "object_detail_setting_option" ).SetUserID( OptionAccessType.AT_OBJECTS_DETAIL );
112 m_Root.FindAnyWidget( "terrain_detail_setting_option" ).SetUserID( OptionAccessType.AT_OPTIONS_TERRAIN );
113 m_Root.FindAnyWidget( "texture_detail_setting_option" ).SetUserID( OptionAccessType.AT_TEXTURE_DETAIL );
114 m_Root.FindAnyWidget( "shadow_detail_setting_option" ).SetUserID( OptionAccessType.AT_SHADOW_DETAIL );
115 m_Root.FindAnyWidget( "visibility_setting_option" ).SetUserID( OptionAccessType.AT_OPTIONS_VISIBILITY_COMBO );
116 m_Root.FindAnyWidget( "object_visibility_setting_option" ).SetUserID( OptionAccessType.AT_OPTIONS_OBJECT_VISIBILITY_COMBO );
117
118 //Rendering
119 m_Root.FindAnyWidget( "texture_filtering_setting_option" ).SetUserID( OptionAccessType.AT_ANISO_DETAIL );
120 m_Root.FindAnyWidget( "terrain_surface_detail_setting_option" ).SetUserID( OptionAccessType.AT_OPTIONS_TERRAIN_SHADER );
121 m_Root.FindAnyWidget( "ppaa_setting_option" ).SetUserID( OptionAccessType.AT_OPTIONS_FXAA_VALUE );
122 m_Root.FindAnyWidget( "hwaa_setting_option" ).SetUserID( OptionAccessType.AT_FSAA_DETAIL );
123 m_Root.FindAnyWidget( "atoc_setting_option" ).SetUserID( OptionAccessType.AT_ATOC_DETAIL );
124 m_Root.FindAnyWidget( "ao_setting_option" ).SetUserID( OptionAccessType.AT_AMBIENT_OCCLUSION );
125 m_Root.FindAnyWidget( "pp_setting_option" ).SetUserID( OptionAccessType.AT_POSTPROCESS_EFFECTS );
126 m_Root.FindAnyWidget( "ssr_setting_option" ).SetUserID( OptionAccessType.AT_WATER_DETAIL );
127 #endif
128
129 FillTextMap();
132 GetGame().BeginOptionsVideo();
133
134 float x, y, y2;
135 m_Root.FindAnyWidget( "video_settings_scroll" ).GetScreenSize( x, y );
136 m_Root.FindAnyWidget( "video_settings_root" ).GetScreenSize( x, y2 );
137 int f = ( y2 > y );
138 m_Root.FindAnyWidget( "video_settings_scroll" ).SetAlpha( f );
139
140 m_Root.SetHandler( this );
141 }
void InitSelectors()
Definition OptionsMenuVideo.c:148

Перекрестные ссылки FillTextMap(), GetGame(), GetLayoutName(), InitSelectors(), m_DetailsRoot, m_Menu, m_Root, RefreshCustom(), SetOptions(), x и y.

◆ PauseVideo() [1/2]

void PauseVideo ( )
inlineprotected
127 {
128 m_VideoWidget.Pause();
129 }

Используется в OnClick().

◆ PauseVideo() [2/2]

void PauseVideo ( )
inlineprotected
258 {
259 m_VideoWidget.Pause();
260 }

◆ PerformSwitchTab()

void PerformSwitchTab ( int index)
inlineprotected
211 {
214
217
220
221 if ( m_FirstInit )
222 {
223 AlignTabbers();
224 m_FirstInit = false;
225 }
226 }
void SelectTabPanel(int index)
Definition TabberUI.c:341
ref ScriptInvoker m_OnTabSwitch
Definition TabberUI.c:15

◆ PingIsSet()

bool PingIsSet ( )
inlineprotected
245 {
246 return (m_Options["m_PingFilter"] != m_PingFilter.GetOptions()[0]);
247 }

◆ Play()

void Play ( )
inlineprotected
44 {
45 PlayerBase player = m_Menu.GetActor( GetEventActor() );
46 if( player )
47 {
48 if( m_EventWalkWidget.IsChecked() )
49 {
50 player.GetInputController().OverrideMovementAngle( true, 1 );
51 player.GetInputController().OverrideMovementSpeed( true, 1 );
52 }
53 else
54 {
55 if( player.GetCommand_Action() )
56 {
57 //player.GetCommand_Action().Cancel();
58 }
59 m_Callback = player.StartCommand_Action( GetEventType(), EmoteCB, DayZPlayerConstants.STANCEMASK_ALL );
60 m_Callback.EnableCancelCondition(true);
61 }
62 }
63 }
Definition EmoteManager.c:2
HumanCommandActionCallback m_Callback
Definition CTEvent.c:17
int GetEventType()
Definition CTEvent.c:108
int GetEventActor()
Definition CTEvent.c:113
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602

Перекрестные ссылки GetEventActor(), GetEventType(), m_Callback и m_Menu.

◆ PlayerListEntryScriptedWidget()

void PlayerListEntryScriptedWidget ( Widget parent,
string name,
string uid,
bool show_permissions,
PlayerListScriptedWidget tab )
inlineprotected
19 {
20 m_Name = name;
21 m_UID = uid;
22 m_Tab = tab;
23
24 m_Root = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/xbox/ingamemenu_xbox/player_info_entry.layout", parent );
25 m_PlayerName = TextWidget.Cast( m_Root.FindAnyWidget( "Name" ) );
26 m_PlayerAvatar = ImageWidget.Cast( m_Root.FindAnyWidget( "Avatar" ) );
27 m_MicrophoneIcon = ImageWidget.Cast( m_Root.FindAnyWidget( "Microphone" ) );
28 m_MuteIcon = ImageWidget.Cast( m_Root.FindAnyWidget( "Muted" ) );
29 m_PlayerButton = ButtonWidget.Cast( m_Root.FindAnyWidget( "Button" ) );
30
32
33 m_PlayerName.SetText( name );
34 m_Root.SetHandler( this );
35 }
ImageWidget m_PlayerAvatar
Definition PlayerListEntryScriptedWidget.c:10
TextWidget m_PlayerName
Definition PlayerListEntryScriptedWidget.c:9

Перекрестные ссылки GetGame(), IsLocalPlayer(), m_Name, m_Root и name.

Используется в AddPlayer().

◆ PlayerListScriptedWidget()

void PlayerListScriptedWidget ( Widget parent,
string header_text = "" )
inlineprotected
12 {
13 m_Root = GetGame().GetWorkspace().CreateWidgets( "gui/layouts/xbox/ingamemenu_xbox/players_info_panel.layout", parent );
14 m_ScrollContainer = ScrollWidget.Cast( m_Root.FindAnyWidget( "ScrollFrame" ) );
15 m_Content = m_Root.FindAnyWidget( "Content" );
16
18
19 m_ScrollContainer.VScrollToPos01( 0 );
20 }

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

◆ PlayVideo()

void PlayVideo ( )
inlineprotected
253 {
254 m_VideoWidget.Play();
255 }

Используется в OnClick().

◆ PopulateLayout()

void PopulateLayout ( )
inlineprotected
115 {
116 if (m_RootFrame)
117 {
120 SetHintImage();
122 }
123 }
void SetHintHeadline()
Definition UiHintPanel.c:127
void SetHintDescription()
Definition UiHintPanel.c:131
void SetHintPaging()
Definition UiHintPanel.c:158
void SetHintImage()
Definition UiHintPanel.c:140

Перекрестные ссылки m_RootFrame, SetHintDescription(), SetHintHeadline(), SetHintImage() и SetHintPaging().

Используется в Init(), ShowNextPage(), ShowPreviousPage() и ShowRandomPage().

◆ PrepareOwnedSlotsTooltip()

void PrepareOwnedSlotsTooltip ( Widget w,
string name,
string desc,
int x = 0,
int y = 0 )
inlineprotected
229 {
230 ItemManager.GetInstance().SetTooltipWidget(w);
231 ItemManager.GetInstance().PrepareSlotsTooltip(name,desc,x,y);
232 m_TooltipOwner = true;
233 }

Перекрестные ссылки ItemManager::GetInstance(), name, x и y.

◆ PrepareOwnedTooltip()

void PrepareOwnedTooltip ( EntityAI item,
int x = 0,
int y = 0 )
inlineprotected
223 {
224 ItemManager.GetInstance().PrepareTooltip(item,x,y);
225 m_TooltipOwner = true;
226 }

Перекрестные ссылки ItemManager::GetInstance(), x и y.

◆ PrepareTooltip()

void PrepareTooltip ( ModInfo mod_ref)
inlineprotected
141 {
142 if ( m_Tooltip )
143 {
145 if ( !m_TooltipTimer )
147
148 m_TooltipTimer.Run( 1, this, "ShowTooltip" );
149 }
150 }

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

◆ Preview()

void Preview ( Widget w,
int x,
int y )
inlineprivate
741 {
742 if (m_Selected)
743 return;
744
745 switch (w)
746 {
747 case m_Root:
748 case m_Favorite:
749 {
750 m_Root.SetColor(ARGB(255, 0, 0, 0));
751 m_Root.SetAlpha(1);
752 UpdateColors();
753
754 m_ServerName.SetColor(ARGB(255, 255, 0, 0));
755 if (!IsOnline())
756 {
757 m_ServerName.SetAlpha(0.5);
758 }
759 break;
760 }
761 }
762 }
TextWidget m_ServerName
Definition ServerBrowserEntry.c:7

Перекрестные ссылки ARGB(), IsOnline(), m_Favorite, m_Root, m_Root и UpdateColors().

Используется в OnMouseEnter().

◆ PreviouslyIsSet()

bool PreviouslyIsSet ( )
inlineprotected
255 {
256 return (m_Options["m_PreviouslyPlayedFilter"] != m_PreviouslyPlayedFilter.GetOptions()[0]);
257 }

◆ PreviousTab()

void PreviousTab ( )
inlineprotected
417 {
418 int next_index = m_SelectedIndex - 1;
419
420 if ( next_index < 0 )
421 {
422 next_index = m_TabControls.Count() - 1;
423 }
424
425 while ( next_index > 0 && !m_TabControls[next_index].IsVisible() )
426 {
427 next_index--;
428 }
429
431 {
433 if ( CanSwitchTab() )
434 {
436 }
437 }
438
439 if ( m_FirstInit )
440 {
441 AlignTabbers();
442 m_FirstInit = false;
443 }
444 }
bool IsVisible()
Definition ContextMenu.c:134

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

◆ ProcessIntoIPAddress()

bool ProcessIntoIPAddress ( out string potential_ip)
inlineprotected

Removes all characters from the given string whirh are NOT a number, '.' or ':'. Returns true if any change was done to the input text.

261 {
262 bool was_text_changed = false;
263 int length = potential_ip.Length();
264
265 // Filter out incompatible characters
266 for (int i = length - 1 ; i >= 0; --i)
267 {
268 string character = potential_ip.Get(i);
269
270 if (character.ToInt() == 0 && character != "0" && character != "." && character != ":")
271 {
272 potential_ip = potential_ip.SubstringInverted(potential_ip, i, i + 1);
273 was_text_changed = true;
274 }
275 }
276
278
280 }

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

Используется в OnChange().

◆ ProjectedCrosshair()

void ProjectedCrosshair ( )
inlineprotected
12 {
13 m_Player = NULL;
14 m_Weapon = NULL;
15 m_Visible = false;
16 m_Debug = false;
17
18 GetGame().GetUpdateQueue(CALL_CATEGORY_GUI).Insert(this.Update);
19 }
bool m_Debug
Definition ProjectedCrosshair.c:6

Перекрестные ссылки CALL_CATEGORY_GUI, GetGame(), m_Player, m_Visible, m_Weapon и Update().

◆ RandomizePageIndex()

void RandomizePageIndex ( )
inlineprotected
172 {
173 #ifdef DIAG_DEVELOPER
175 {
176 if (m_ForcedIndex != -1)
177 {
179 return;
180 }
181 }
182 #endif
183
184 Math.Randomize(m_Game.GetTime());
185 Math.RandomFloat01();//throw-away value, without calling this, the next random number is always the same, calling Math.Randomize(-1) makes no difference
189
190 }
Definition EnDebug.c:233
int m_PageIndex
Definition UiHintPanel.c:26
int m_PreviousRandomIndex
Definition UiHintPanel.c:30
static proto bool IsInitialized()
Checks if DiagMenu is initialized.
static proto int Randomize(int seed)
Sets the seed for the random number generator.
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition EnMath.c:54
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:126

Перекрестные ссылки Math::Clamp(), DiagMenu::IsInitialized(), m_ContentList, m_Game, m_PageIndex, m_PageIndex, m_PreviousRandomIndex, Math::RandomFloat01(), Math::RandomIntInclusive() и Math::Randomize().

Используется в Init() и ShowRandomPage().

◆ Refresh()

void Refresh ( )
inlineprotected
203 {
204 m_RootWidget.Update();
205 }

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

◆ RefreshContent()

void RefreshContent ( )
inlineprotected
39 {
40 Widget child = m_ContentContainer.GetChildren();
41 while( child )
42 {
43 if( m_Content.Find( child ) > -1 )
44 {
45 m_Content.Insert( child );
46 }
47 }
48
49 m_ContentContainer.Update();
50 m_Root.Update();
51
52 float x, y;
53 m_ContentContainer.GetScreenSize( x, y );
54 if( y > m_Scroller.GetContentHeight() )
55 {
56 m_Scroller.SetAlpha( 1 );
57 }
58 else
59 {
60 m_Scroller.SetAlpha( 0 );
61 }
62 }

Перекрестные ссылки m_Root, x и y.

Используется в DropdownPrefab().

◆ RefreshCustom()

void RefreshCustom ( )
inlineprotected
351 {
352 #ifdef PLATFORM_CONSOLE
353 #ifdef PLATFORM_PS4
354 m_FlipModeSelector.SetValue( m_FlipModeOption.GetIndex(), false );
355 #endif
356 #else
357 //Scene
358 m_ObjectDetailSelector.SetValue( m_ObjectDetailOption.GetIndex(), false );
359 m_TerrainDetailSelector.SetValue( m_TerrainDetailOption.GetIndex(), false );
360 m_TextureDetailSelector.SetValue( m_TextureDetailOption.GetIndex(), false );
361 m_ShadowDetailSelector.SetValue( m_ShadowDetailOption.GetIndex(), false );
362 m_VisibilitySelector.SetValue( m_VisibilityOption.GetIndex(), false );
363 m_ObjectVisibilitySelector.SetValue( m_ObjectVisibilityOption.GetIndex(), false );
364
365 //Rendering
366 m_TextureFilteringSelector.SetValue( m_TextureFilteringOption.GetIndex(), false );
368 m_PPAASelector.SetValue( m_PPAAOption.GetIndex(), false );
369 m_HWAASelector.SetValue( m_HWAAOption.GetIndex(), false );
370 if ( m_HWAAOption.GetIndex() == 0 )
371 {
372 m_ATOCSelector.Disable();
373 }
374 else
375 {
376 m_ATOCSelector.Enable();
377 }
378 m_ATOCSelector.SetValue( m_ATOCOption.GetIndex(), false );
379 m_AOSelector.SetValue( m_AOOption.GetIndex(), false );
380 m_PPQualitySelector.SetValue( m_PPQualityOption.GetIndex(), false );
381 m_SSRQualitySelector.SetValue( m_SSRQualityOption.GetIndex(), false );
382 #endif
383 }

Используется в OnOverallQualityChanged(), OptionsMenuVideo(), Revert() и SetToDefaults().

◆ RefreshDLCIcon()

void RefreshDLCIcon ( )
inlineprivate
459 {
460 if (m_ServerData.m_IsDLC)
461 {
462 bool own = GetGame().VerifyWorldOwnership(GetMapToRun());
463 m_ServerModIcon.Show(true);
464 m_ServerModIcon.FindWidget("Owned").Show(own);
465 m_ServerModIcon.FindWidget("Unowned").Show(!own);
466 }
467 else
468 {
469 m_ServerModIcon.FindWidget("Owned").Show(false);
470 m_ServerModIcon.FindWidget("Unowned").Show(false);
471 }
472 }
ImageWidget m_ServerModIcon
Definition ServerBrowserEntry.c:13
string GetMapToRun()
Definition ServerBrowserEntry.c:545

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

Используется в FillInfo().

◆ RefreshItemVariables()

void RefreshItemVariables ( InventoryItem item,
vector data,
bool show_quantity,
bool show_temperature )
inlineprivate
585 {
586 int index = Math.Round(data[0]);
589
590 if ( bck )
591 {
592 item_w = bck.FindAnyWidget("GridItem");
593 if ( item_w )
594 {
596 Widget quantity_panel = bck.FindAnyWidget("QuantityPanel");
597 TextWidget item_quantity = TextWidget.Cast( bck.FindAnyWidget("Quantity") );
598 ProgressBarWidget quantity_progress = ProgressBarWidget.Cast( bck.FindAnyWidget("QuantityBar") );
599 Widget quantity_stack = bck.FindAnyWidget("QuantityStackPanel");
601 {
602 quantity_panel.Show( false );
603 }
604 else
605 {
606 quantity_panel.Show( true );
608 {
610 quantity_stack.Show( true );
611 quantity_progress.Show( false );
612 }
613 else if ( has_quantity == QUANTITY_PROGRESS )
614 {
615 float progress_max = quantity_progress.GetMax();
619 if ( count > 0 )
620 {
621 max = count;
622 }
623 if ( max > 0 )
624 {
625
626 float value = Math.Round( ( quantity / max ) * 100 );
627 quantity_progress.SetCurrent( value );
628 }
629 quantity_stack.Show( false );
630 quantity_progress.Show( true );
631 }
632 }
633
634 if ( show_temperature )
635 {
636 if ( item && item.IsInherited( InventoryItem ) )
637 {
638 int color = m_Controller.GetItemColor( this, item); // !!!!!
639 if ( color )
640 {
641 item_w.SetColor( color );
642 }
643 }
644 }
645 }
646 }
647 }
override int GetItemQuantityMax(InventoryItem item)
Definition InventoryQuickbar.c:271
override string GetItemQuantityText(InventoryItem item)
Definition InventoryQuickbar.c:261
override float GetItemQuantity(InventoryItem item)
Definition InventoryQuickbar.c:266
override int HasItemQuantity(InventoryItem item)
Definition InventoryQuickbar.c:256
override int GetItemCount(InventoryItem item)
Definition InventoryQuickbar.c:277
const int QUANTITY_COUNT
Definition constants.c:494
const int QUANTITY_HIDDEN
Definition constants.c:493

Перекрестные ссылки GetItemBackground(), InventoryGridController::GetItemCount(), InventoryGridController::GetItemQuantity(), InventoryGridController::GetItemQuantityMax(), InventoryGridController::GetItemQuantityText(), InventoryGridController::HasItemQuantity(), QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS и Math::Round().

Используется в AddItem(), RefreshQuickbarItemVariables(), ResetItem(), SetItem(), UpdateItems(), UpdateQuantityItems() и UpdateTemperatureItems().

◆ RefreshQuickbarItemVariables()

void RefreshQuickbarItemVariables ( InventoryItem item,
vector data )
inlineprivate
568 {
569 int index = Math.Round(data[0]);
571 if ( bck )
572 {
573 Widget item_w = bck.FindAnyWidget("GridItem");
574 if ( item_w )
575 {
576 int color = m_Controller.GetQuickbarItemColor( this, item ); // !!!!!
577 item_w.SetColor( color );
578 }
579 }
580 RefreshItemVariables( item, data, true, false );
581 }
override int GetQuickbarItemColor(InventoryGrid grid, InventoryItem item)
Definition InventoryQuickbar.c:235

Перекрестные ссылки GetItemBackground(), InventoryGridController::GetQuickbarItemColor(), RefreshItemVariables() и Math::Round().

Используется в UpdateQuickbarItems().

◆ RefreshTab()

void RefreshTab ( bool performInitAlignment = false)
inlineprotected
452 {
454 DeselectAll();
456 }
void DeselectAll()
Definition TabberUI.c:377

◆ Reload() [1/7]

void Reload ( )
inlineprotected
123 {
124 UAInput input = GetUApi().GetInputByID( m_ElementIndex );
125 m_IsEdited = false;
126 m_IsAlternateEdited = false;
129
130 if( input.IsLimited() )
131 {
132 if( input.IsPressLimit() )
133 {
134 m_ElementModifier.SetText( "#keybind_press" );
135 }
136 if( input.IsReleaseLimit() )
137 {
138 m_ElementModifier.SetText( "#keybind_release" );
139 }
140 if( input.IsHoldLimit() )
141 {
142 m_ElementModifier.SetText( "#keybind_hold" );
143 }
144 if( input.IsHoldBeginLimit() )
145 {
146 m_ElementModifier.SetText( "#keybind_holdbegin" );
147 }
148 if( input.IsClickLimit() )
149 {
150 m_ElementModifier.SetText( "#keybind_click" );
151 }
152 if( input.IsDoubleClickLimit() )
153 {
154 m_ElementModifier.SetText( "#keybind_doubletap" );
155 }
156 }
157 else
158 {
159 m_ElementModifier.SetText( "" );
160 }
161
162 string option_text;
163 string name;
164
165 GetGame().GetInput().GetActionDesc( m_ElementIndex, option_text );
166 m_ElementName.SetText( option_text );
167
168 // column #1 :: keyboard + mouse
170
171 // column #2 :: controller
173 }
bool SetElementTitle(UAInput pInput, int iDeviceFlags, out string output)
assemble all active bindings at widget element
Definition ControlMappingKeybinds.c:74

Перекрестные ссылки GetGame(), GetUApi(), name и SetElementTitle().

Используется в CancelEnteringAlternateKeybind(), CancelEnteringKeybind(), KeybindingElement() и KeybindingElementNew().

◆ Reload() [2/7]

void Reload ( )
inlineprotected
121 {
122 UAInput input = GetUApi().GetInputByID( m_ElementIndex );
123 m_IsEdited = false;
124 m_IsAlternateEdited = false;
127
128 if( input.IsLimited() )
129 {
130 if( input.IsPressLimit() )
131 {
132 m_ElementModifier.SetText( "#keybind_press" );
133 }
134 if( input.IsReleaseLimit() )
135 {
136 m_ElementModifier.SetText( "#keybind_release" );
137 }
138 if( input.IsHoldLimit() )
139 {
140 m_ElementModifier.SetText( "#keybind_hold" );
141 }
142 if( input.IsHoldBeginLimit() )
143 {
144 m_ElementModifier.SetText( "#keybind_holdbegin" );
145 }
146 if( input.IsClickLimit() )
147 {
148 m_ElementModifier.SetText( "#keybind_click" );
149 }
150 if( input.IsDoubleClickLimit() )
151 {
152 m_ElementModifier.SetText( "#keybind_doubletap" );
153 }
154 }
155 else
156 {
157 m_ElementModifier.SetText( "" );
158 }
159
160 string option_text;
161 string name;
162
163 GetGame().GetInput().GetActionDesc( m_ElementIndex, option_text );
164 m_ElementName.SetText( option_text );
165
166 // column #1 :: keyboard + mouse
168
169 // column #2 :: controller
171 }

Перекрестные ссылки GetGame(), GetUApi(), name и SetElementTitle().

◆ Reload() [3/7]

void Reload ( array< int > custom_binds,
bool is_alternate )
inlineprotected
176 {
177 string output;
178 if( custom_binds.Count() > 1 )
179 {
180 if( custom_binds.Get( 0 ) != 0 )
181 output = GetUApi().GetButtonName( custom_binds.Get( 0 ) );
182 for( int i = 1; i < custom_binds.Count(); i++ )
183 {
184 if( custom_binds.Get( i ) != 0 )
185 output += " + " + GetUApi().GetButtonName( custom_binds.Get( i ) );
186 }
187 }
188 else if( custom_binds.Count() > 0 )
189 {
190 if( custom_binds.Get( 0 ) != 0 )
191 output = GetUApi().GetButtonName( custom_binds.Get( 0 ) );
192 }
193
194 if( is_alternate )
195 {
197 m_IsAlternateEdited = true;
199 }
200 else
201 {
203 m_IsEdited = true;
204 m_PrimaryBindButton.SetText( output );
205 }
206 }

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

◆ Reload() [4/7]

void Reload ( array< int > custom_binds,
bool is_alternate )
inlineprotected
174 {
175 string output;
176 if( custom_binds.Count() > 1 )
177 {
178 if( custom_binds.Get( 0 ) != 0 )
179 output = GetUApi().GetButtonName( custom_binds.Get( 0 ) );
180 for( int i = 1; i < custom_binds.Count(); i++ )
181 {
182 if( custom_binds.Get( i ) != 0 )
183 output += " + " + GetUApi().GetButtonName( custom_binds.Get( i ) );
184 }
185 }
186 else if( custom_binds.Count() > 0 )
187 {
188 if( custom_binds.Get( 0 ) != 0 )
189 output = GetUApi().GetButtonName( custom_binds.Get( 0 ) );
190 }
191
192 if( is_alternate )
193 {
195 m_IsAlternateEdited = true;
197 }
198 else
199 {
201 m_IsEdited = true;
202 m_PrimaryBindButton.SetText( output );
203 }
204 }

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

◆ Reload() [5/7]

void Reload ( BiosFriendInfoArray player_list)
inlineprotected
79 {
80 if ( player_list && m_Entries )
81 {
83 {
85 int j = 0;
86 while ( !player_found && j < player_list.Count() )
87 {
88 if ( player_list[j].m_Uid == UID )
90 j++;
91 }
92
93 if ( !player_found )
94 {
96 }
97 }
98
99 for ( int i = 0; i < player_list.Count(); i++ )
100 {
103 m_Entries.Find( player2.m_Uid, player_widget );
104 if ( !player_widget )
105 {
106 AddPlayer( player2.m_DisplayName, player2.m_Uid, false );
107 }
108 }
109 }
110 }
BiosFriendInfo represents friend information.
Definition BiosSocialService.c:5
void RemovePlayer(string UID)
Definition PlayerListScriptedWidget.c:184
void AddPlayer(string name, string UID, bool show_permissions)
Definition PlayerListScriptedWidget.c:175

Перекрестные ссылки AddPlayer(), m_Entries, m_Entries, RemovePlayer() и UID.

◆ Reload() [6/7]

void Reload ( BiosPrivacyUidResultArray player_list)
inlineprotected
113 {
115 {
117 m_Entries.Find( result.m_Uid, player_widget );
118 if ( player_widget )
119 {
120 player_widget.LoadPermissions( result.m_Results );
121 }
122 }
123 }
BiosPrivacyUidResult represents the per user result of the GetPermissionsAsync request.
Definition BiosPrivacyService.c:44

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

◆ Reload() [7/7]

void Reload ( SyncPlayerList player_list)
inlineprotected
35 {
36 if ( player_list && player_list.m_PlayerList && m_Entries )
37 {
39 {
41 foreach ( SyncPlayer player : player_list.m_PlayerList )
42 {
43 if ( player && player.m_UID == UID )
44 {
46 break;
47 }
48 }
49 if ( !player_found )
50 {
52 }
53 }
54
55 for ( int i = 0; i < player_list.m_PlayerList.Count(); i++ )
56 {
57 SyncPlayer player2 = player_list.m_PlayerList.Get( i );
59 m_Entries.Find( player2.m_UID, player_widget );
60 if ( !player_widget )
61 {
62 AddPlayer( player2.m_PlayerName, player2.m_UID, true );
63 }
64 }
65 }
66 }
Definition SyncPlayer.c:2

Перекрестные ссылки AddPlayer(), m_Entries, m_Entries, RemovePlayer() и UID.

◆ ReloadAction()

void ReloadAction ( int index)
inlineprotected
111 {
112 if( m_KeyWidgets.Contains( index ) )
113 {
114 m_KeyWidgets.Get( index ).Reload();
115 }
116 }

◆ ReloadLocal()

void ReloadLocal ( map< string, bool > player_list)
inlineprotected
126 {
127 if ( player_list )
128 {
129 for ( int i = 0; i < player_list.Count(); i++ )
130 {
131 string uid = player_list.GetKey( i );
134 m_Entries.Find( uid, player_widget );
135 if ( player_widget )
136 {
137 player_widget.SetMute( muted );
138 }
139 }
140 }
141 }
static bool IsPlayerMuted(string id)
Definition OnlineServices.c:357

Перекрестные ссылки OnlineServices::IsPlayerMuted() и m_Entries.

◆ ReloadOptions() [1/4]

void ReloadOptions ( )
inlineprotected
623 {
624 m_Menu.ReloadOptions();
625 }

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

Используется в OnOverallQualityChanged().

◆ ReloadOptions() [2/4]

void ReloadOptions ( )
inlineprotected
366 {
367 m_Menu.ReloadOptions();
368 }

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

◆ ReloadOptions() [3/4]

void ReloadOptions ( )
inlineprivate
341 {
342 m_Menu.ReloadOptions();
343 }

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

◆ ReloadOptions() [4/4]

void ReloadOptions ( )
inlineprotected
252 {
253 m_Menu.ReloadOptions();
254 }

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

◆ ReloadProfiles()

void ReloadProfiles ( )
inlineprotected
80 {
82 {
83 element.Reload();
84 }
85 }

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

Используется в OnSelectConsolePreset() и OnSelectKBPreset().

◆ Remove()

void Remove ( int index)
inlineprivate
214 {
215 if (index < m_commands.Count())
216 {
217 m_commands.RemoveOrdered(index);
218 ButtonWidget menu_button = ButtonWidget.Cast( m_context_menu_root_widget.FindAnyWidget( String( "Button" + ( index + 1 ).ToString() ) ) );
219 menu_button.Show( false );
220 menu_button.SetText( "" );
221 m_count--;
222 }
223 }
string String(string s)
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello "...
Definition EnScript.c:339

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

◆ RemoveElement()

void RemoveElement ( int index)
inlineprotected
84 {
85 if( 0 < index && index < m_Content.Count() )
86 {
87 delete m_Content.Get( index );
88 m_ContentContainer.Update();
89 m_Root.Update();
90 m_Parent.Update();
91 }
92 }

Перекрестные ссылки m_Parent и m_Root.

◆ RemoveItem()

void RemoveItem ( InventoryItem item)
inlineprotected
751 {
752 Widget bck;
754 if ( item && m_Items.Contains( item ) )
755 {
756 vector data = m_Items.Get(item);
757 int index = Math.Round(data[0]);
758 int width = Math.Round(data[1]);
759 int height = Math.Round(data[2]);
761 if( bck )
762 {
763 itemW = bck.FindAnyWidget("GridCell");
764 if( itemW )
765 delete itemW;
766 bck.FindAnyWidget("LabelTR").Show( false );
767 bck.FindAnyWidget("LabelCC").Show( true );
768 }
769
770 m_Items.Remove( item );
771 m_ItemWidgets.Remove( index );
772 }
773 }

Перекрестные ссылки GetItemBackground() и Math::Round().

Используется в UpdateItems() и UpdateQuickbarItems().

◆ RemovePlayer()

void RemovePlayer ( string UID)
inlineprotected
185 {
186 if ( m_Entries )
187 {
189
190 if ( m_Entries.Get( UID ) == m_SelectedEntry )
191 {
192 for ( int i = 0; i < m_Entries.Count() - 1; i++ )
193 {
194 if ( m_Entries.GetElement( i ) == m_Entries.Get( UID ) )
195 {
196 next_entry = m_Entries.GetElement( i + 1 );
197 }
198 }
199 }
200
201 m_Entries.Remove( UID );
204 m_Content.Update();
205 }
206 }
void SelectPlayer(PlayerListEntryScriptedWidget entry)
Definition PlayerListScriptedWidget.c:247

Перекрестные ссылки m_Entries, SelectPlayer() и UID.

Используется в Reload() и Reload().

◆ RemoveTab()

void RemoveTab ( int index)
inlineprotected
185 {
186
187 }

◆ RepeatVideo()

void RepeatVideo ( )
inlineprotected
277 {
278 m_VideoWidget.SetLooping(true);
279 m_RepeatButton.Show(false);
280 m_OnceButton.Show(true);
281 }

Используется в OnClick().

◆ Reset()

void Reset ( )
inlineprotected
244 {
245 ResetEx();
246 }
void ResetEx(bool forced=false)
Definition KeybindingsGroup.c:248

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

◆ ResetEx()

void ResetEx ( bool forced = false)
inlineprotected
249 {
251 {
252 if( element.IsChanged() || element.IsAlternateChanged() || forced )
253 {
254 element.Reload();
255 }
256 }
257 }

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

Используется в Reset().

◆ ResetFilters()

void ResetFilters ( )
inlineprotected
215 {
216 m_SearchByName.SetText("");
217 m_RegionFilter.Reset();
218 m_DLCFilter.Reset();
219 m_PingFilter.Reset();
220 m_FavoritedFilter.Reset();
223 m_FullServerFilter.Reset();
224 m_ThirdPersonFilter.Reset();
225 m_PasswordFilter.Reset();
226 m_WhitelistFilter.Reset();
227 m_MapFilter.Reset();
228
229 #ifdef PLATFORM_CONSOLE
230 m_SortingFilter.Reset();
231 m_KeyboardFilter.Reset();
232 #endif
233
234 #ifdef PLATFORM_WINDOWS
235 #ifndef PLATFORM_CONSOLE
236 m_SearchByIP.SetText("");
238 m_VersionMatchFilter.Reset();
239 #endif
240 #endif
241 SaveFilters();
242 }
void SaveFilters()
Definition ServerBrowserFilterContainer.c:176

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

◆ ResetItem()

void ResetItem ( InventoryItem item)
inlineprotected
729 {
730 if (m_Items.Contains(item))
731 {
732 vector data = m_Items.Get(item);
733 int index = Math.Round(data[0]);
734 int width = Math.Round(data[1]);
735 int height = Math.Round(data[2]);
737 Widget item_w = bck.FindAnyWidget("GridItem");
739 RefreshItemVariables( item, data, true, true );
740 }
741 }

Перекрестные ссылки GetItemBackground(), RefreshItemVariables(), ResetItemWidget() и Math::Round().

◆ ResetItemWidget()

void ResetItemWidget ( Widget item_w,
int width,
int height )
inlineprotected
720 {
721 if( item_w )
722 {
723 item_w.SetColor(ITEM_COLOR_NORMAL);
724 }
725 }
static int ITEM_COLOR_NORMAL
Definition InventoryGrid.c:43

Используется в AddItem(), ResetItem() и SetItem().

◆ ResizeParentToChild() [1/2]

bool ResizeParentToChild ( )
inlineprotected
26 {
27 return ResizeParentToChild( m_IgnoredBool, -1, true );
28 }
static bool m_IgnoredBool
Definition SizeToChild.c:12

◆ ResizeParentToChild() [2/2]

bool ResizeParentToChild ( out bool changed_size,
int limit = -1,
bool immedUpdate = true )
inlineprotected
31 {
32 float x, y, o_x, o_y, new_x, new_y;
33 if ( m_Child )
34 {
35 m_Child.Update();
36 m_Child.GetScreenSize( x, y );
37 m_Root.GetScreenSize( new_x, new_y );
38 m_Root.GetSize( o_x, o_y );
39
40 bool changed = false;
41 bool hit_limit = false;
42
43 if ( m_ResizeHorizontal && ( x > new_x + 0.01 || x < new_x - 0.01 ) )
44 {
46 changed = true;
47 }
48 else
49 new_x = o_x;
50
51 if ( m_ResizeVertical && ( y > new_y + 0.01 || y < new_y - 0.01 ) )
52 {
54 changed = true;
55 }
56 else
57 new_y = o_y;
58
59 if ( limit > 0 && new_y > limit )
60 {
61 new_y = limit;
62 hit_limit = true;
63 }
64
65 if ( changed )
66 {
67 m_Root.SetSize( new_x, new_y, immedUpdate );
68 }
69
71 return hit_limit;
72 }
73 else
74 {
75 m_Child = m_Root.FindAnyWidget( m_ChildName );
76 if ( !m_Child )
77 {
78 Print( "Error in size to child, " + m_Root.GetName() + " has no child named " + m_ChildName );
79 }
80 }
81
82 return false;
83 }
reference float m_VerticalOffset
Definition SizeToChild.c:5
reference float m_HorizontalOffset
Definition SizeToChild.c:4
reference bool m_ResizeVertical
Definition SizeToChild.c:7
reference bool m_ResizeHorizontal
Definition SizeToChild.c:6

Перекрестные ссылки m_ResizeHorizontal, m_ResizeVertical, m_Root, Print(), x и y.

◆ RestartSlideShow()

void RestartSlideShow ( )
inlineprotected
244 {
247 }

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

Используется в OnMouseLeave().

◆ Revert() [1/4]

void Revert ( )
inlineprotected
395 {
397 m_Mouse_InvertSelector.SetValue( m_Mouse_InvertOption.GetIndex(), true );
399 m_Mouse_VSensitivitySelector.SetValue( m_Mouse_VSensitivityOption.ReadValue(), true );
401 m_Mouse_HSensitivitySelector.SetValue( m_Mouse_HSensitivityOption.ReadValue(), true );
406
407
408 #ifdef PLATFORM_CONSOLE
410 m_KeyboardSelector.SetValue( m_KeyboardOption.GetIndex(), true );
412 m_AimHelperSelector.SetValue( m_AimHelperOption.GetIndex(), true );
413
438 #endif
439 }

Используется в SetOptions().

◆ Revert() [2/4]

void Revert ( )
inlineprotected
265 {
267 m_ShowHUDSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.HUD), false);
268
270
272 m_ShowCrosshairSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.CROSSHAIR), false);
273
275 m_ShowHUDVehicleSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.HUD_VEHICLE), false);
276
277 if (m_FOVOption)
278 {
279 m_FOVSelector.SetValue(m_FOVOption.ReadValue(), false);
280 g_Game.SetUserFOV(m_FOVOption.ReadValue());
281 }
283 m_LanguageSelector.SetValue(m_LanguageOption.GetIndex(), false);
285 m_ShowGameSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.GAME_MESSAGES), false);
287 m_ShowAdminSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.ADMIN_MESSAGES), false);
289 m_ShowPlayerSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.PLAYER_MESSAGES), false);
291 m_BleedingIndication.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.BLEEDINGINDICATION), false);
293 m_ConnectivityInfo.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.CONNECTIVITY_INFO), false);
294
295 #ifdef PLATFORM_CONSOLE
297 m_BrightnessSelector.SetValue(m_BrightnessOption.ReadValue(), false);
298 #else
300 m_ShowQuickbarSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.QUICKBAR), false);
302 m_ShowServerInfoSelector.SetValue(g_Game.GetProfileOptionBool(EDayZProfilesOptions.SERVERINFO_DISPLAY), false);
303 if (m_PauseOption)
304 {
305 m_PauseSelector.SetValue(m_PauseOption.GetIndex(), false);
306 }
307 #endif
308 }

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

◆ Revert() [3/4]

void Revert ( )
inlineprivate
278 {
279 if (m_MasterOption)
280 {
281 m_MasterSelector.SetValue(m_MasterOption.ReadValue(), true);
282 }
283 if (m_EffectsOption)
284 {
285 m_EffectsSelector.SetValue(m_EffectsOption.ReadValue(),true);
286 }
287 if (m_VOIPOption)
288 {
289 m_VOIPSelector.SetValue(m_VOIPOption.ReadValue(), true);
290 }
292 {
293 m_VOIPThresholdSelector.SetValue(m_VOIPThresholdOption.ReadValue(), true);
294 }
295 if (m_MusicOption)
296 {
297 m_MusicSelector.SetValue(m_MusicOption.ReadValue(), true);
298 }
300 {
301 m_InputModeSelector.SetValue(m_InputModeOption.GetIndex(), false);
302 }
303
305 m_AmbientMusicSelector.SetValue(g_Game.GetProfileOptionInt(EDayZProfilesOptions.AMBIENT_MUSIC_MODE), false);
306 }

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

◆ Revert() [4/4]

void Revert ( )
inlineprotected
267 {
268 #ifndef PLATFORM_CONSOLE
269 m_DisplayModeSelector.SetValue( m_DisplayModeOption.GetIndex(), false );
270 m_ResolutionSelector.SetValue( m_ResolutionOption.GetIndex(), false );
271 m_BrightnessSelector.SetValue( m_BrightnessOption.ReadValue(), false );
272 m_VSyncSelector.SetValue( m_VSyncOption.GetIndex(), false );
273 //m_ColorDepthSelector.SetValue( m_ColorDepthOption.GetIndex(), false );
274 m_OverallQualitySelector.SetValue( m_OverallQualityOption.GetIndex(), false );
275 #endif
276
278 #ifndef PLATFORM_CONSOLE
279 m_OverallQualitySelector.SetValue( m_OverallQualityOption.GetIndex(), false );
280 #endif
281 }

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

◆ RevertHUDBrightness()

void RevertHUDBrightness ( )
inlineprivate
620 {
622 {
623 m_HUDBrightnessSelector.SetValue(g_Game.GetProfileOptionFloat(EDayZProfilesOptions.HUD_BRIGHTNESS), false);
624 g_Game.SetHudBrightness(m_HUDBrightnessSelector.GetValue());
625 }
626 }

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

Используется в Revert() и ~OptionsMenuGame().

◆ SaveFilters()

void SaveFilters ( )
inlineprotected
177 {
178 m_Options.Clear();
179
180 m_Options.Insert("m_SearchByName", m_SearchByName.GetText());
181 m_Options.Insert("m_DLCFilter", m_DLCFilter.GetStringValue());
182 m_Options.Insert("m_RegionFilter", m_RegionFilter.GetStringValue());
183 m_Options.Insert("m_PingFilter", m_PingFilter.GetStringValue());
184 m_Options.Insert("m_FriendsPlayingFilter", m_FriendsPlayingFilter.GetStringValue());
185 m_Options.Insert("m_PreviouslyPlayedFilter", m_PreviouslyPlayedFilter.GetStringValue());
186 m_Options.Insert("m_FullServerFilter", m_FullServerFilter.GetStringValue());
187 m_Options.Insert("m_ThirdPersonFilter", m_ThirdPersonFilter.GetStringValue());
188 m_Options.Insert("m_PasswordFilter", m_PasswordFilter.GetStringValue());
189 m_Options.Insert("m_WhitelistFilter", m_WhitelistFilter.GetStringValue());
190 m_Options.Insert("m_MapFilter", m_MapFilter.GetStringValue());
191
192 #ifdef PLATFORM_CONSOLE
193 m_Options.Insert("m_SortingFilter", m_SortingFilter.GetStringValue());
194 m_Options.Insert("m_KeyboardFilter", m_KeyboardFilter.GetStringValue());
195 #else
196 m_Options.Insert("m_FavoritedFilter", m_FavoritedFilter.GetStringValue());
197 #endif
198
199 #ifdef PLATFORM_WINDOWS
200 #ifndef PLATFORM_CONSOLE
201 m_Options.Insert("m_SearchByIP", m_SearchByIP.GetText());
202 m_Options.Insert("m_CharacterAliveFilter", m_CharacterAliveFilter.GetStringValue());
203 m_Options.Insert("m_VersionMatchFilter", m_VersionMatchFilter.GetStringValue());
204 #endif
205 #endif
206
207 string data, errorMessage;
210
211 GetGame().SetProfileString("SB_Filter_" + m_Tab.GetTabType(), data);
212 }

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

Используется в ResetFilters().

◆ ScrollToEntry()

void ScrollToEntry ( PlayerListEntryScriptedWidget entry)
inlineprotected
258 {
259 if ( entry )
260 {
261 float x, y;
262 float x_s, y_s;
263 float x_l, y_l;
264
265 Widget root = entry.GetButtonWidget().GetParent();
266 Widget first_child = root.GetParent().GetChildren();
268 while ( last_child )
269 {
270 if ( last_child.GetSibling() )
271 last_child = last_child.GetSibling();
272 else
273 break;
274 }
275
276 root.GetParent().Update();
277 root.Update();
278
279 m_ScrollContainer.GetScreenPos( x, y );
280 m_ScrollContainer.GetScreenSize( x_s, y_s );
281
282 float bottom_pos = y + y_s;
283
284 root.GetScreenPos( x_l, y_l );
285 root.GetScreenSize( x_s, y_s );
286
287 if ( root == first_child )
288 {
289 m_ScrollContainer.VScrollToPos01( 0 );
290 }
291 else if ( root == last_child )
292 {
293 m_ScrollContainer.VScrollToPos01( 1 );
294 }
295 else if ( y_l + y_s >= bottom_pos )
296 {
297 m_ScrollContainer.VScrollToPos( m_ScrollContainer.GetVScrollPos() + y_s );
298 }
299 else if ( y_l <= y )
300 {
301 m_ScrollContainer.VScrollToPos( m_ScrollContainer.GetVScrollPos() - y_s );
302 }
303 }
304 }

Перекрестные ссылки x и y.

Используется в SelectPlayer().

◆ ScrollToMod()

void ScrollToMod ( ModInfo mod_ref)
inlineprotected
86 {
87 /*
88 if( mod_ref )
89 {
90 float scroll_pos_x, scroll_pos_y;
91 float scroll_size_x, scroll_size_y;
92 float mod_pos_x, mod_pos_y;
93 float mod_size_x, mod_size_y;
94
95 Widget mod_widget = m_Data.Get( mod_ref ).GetWidget();
96 if( mod_widget )
97 {
98 m_Content.Update();
99 m_Scroll.Update();
100 m_Scroll.GetScreenPos( scroll_pos_x, scroll_pos_y );
101 m_Scroll.GetScreenSize( scroll_size_x, scroll_size_y );
102 mod_widget.GetScreenPos( mod_pos_x, mod_pos_y );
103 mod_widget.GetScreenSize( mod_size_x, mod_size_y );
104 if( mod_pos_y + mod_size_y >= scroll_pos_y + scroll_size_y )
105 {
106 m_Scroll.VScrollToPos( mod_pos_y + mod_size_y - scroll_pos_y );
107 }
108 else if( mod_pos_y <= scroll_pos_y )
109 {
110 m_Scroll.VScrollToPos( mod_pos_y - scroll_pos_y );
111 }
112 m_Scroll.VScrollToPos( mod_pos_y - scroll_pos_y );
113 }
114 }
115 */
116 }

Используется в Highlight() и Select().

◆ Select() [1/7]

void Select ( )
inlineprotected
124 {
125 m_Root.FindAnyWidget( "spacer" ).SetAlpha( 1 );
126 m_IndexWidget.SetColor( ARGBF( 1, 1, 0, 0 ) );
127 m_EventTypeWidget.SetColor( ARGBF( 1, 1, 0, 0 ) );
128 m_EventTypeWidget.SetColor( ARGBF( 1, 1, 0, 0 ) );
129 }

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

Используется в OnFocus(), OnMouseEnter(), OnSelect() и UpdateEntry().

◆ Select() [2/7]

void Select ( )
inlineprotected
121 {
122 m_Root.FindAnyWidget( "spacer" ).SetAlpha( 1 );
123 m_IndexWidget.SetColor( ARGBF( 1, 1, 0, 0 ) );
124 m_InterpTimeWidget.SetColor( ARGBF( 1, 1, 0, 0 ) );
125 m_TotalTimeWidget.SetColor( ARGBF( 1, 1, 0, 0 ) );
126 }

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

◆ Select() [3/7]

void Select ( )
inlineprotected
70 {
71 m_Root.SetColor( ARGBF( m_Root.GetAlpha(), 0.3, 0, 0 ) );
72
73 m_Detail.Show(true);
74 m_IconBig.Show( true );
75 m_IconSmall.Show( false );
76 m_IconCollapse.SetImage( 1 );
77 m_Detail.Update();
78 m_Root.Update();
79 m_IsOpen = true;
80 }

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

◆ Select() [4/7]

void Select ( bool notify = true)
inlineprotected
204 {
205 if( !m_Selected )
206 {
207 if( notify )
208 {
209 m_Tab.SelectPlayer( this );
210 }
211 m_Selected = true;
212 }
213 }

◆ Select() [5/7]

void Select ( bool notify = true)
inlineprivate
670 {
671 if (!m_Selected)
672 {
673 if (notify)
674 {
675 m_Tab.SelectServer(this);
676 }
677
678 m_ServerData.m_IsSelected = true;
679 m_Selected = true;
680 }
681 }

◆ Select() [6/7]

void Select ( ModInfo mod)
inlineprotected
41 {
42 m_DetailMenu.Open();
43 m_DetailMenu.Highlight(mod);
44 }

◆ Select() [7/7]

void Select ( ModInfo mod_ref,
bool show )
inlineprotected
119 {
120 if ( mod_ref )
121 {
122 if ( show )
123 {
125 m_Data.Get( mod_ref ).Select();
126 }
127 else
128 {
129 m_Data.Get( mod_ref ).Deselect();
130 if ( m_Highlighted == mod_ref )
131 {
133 }
134 }
135 }
136
138 }

Перекрестные ссылки string::Get(), m_Data и ScrollToMod().

◆ SelectPlayer()

void SelectPlayer ( PlayerListEntryScriptedWidget entry)
inlineprotected
248 {
249 if ( m_SelectedEntry )
250 m_SelectedEntry.Deselect();
251 m_SelectedEntry = entry;
252 if ( GetGame().GetUIManager().GetMenu() )
253 GetGame().GetUIManager().GetMenu().Refresh();
254 ScrollToEntry( entry );
255 }
void ScrollToEntry(PlayerListEntryScriptedWidget entry)
Definition PlayerListScriptedWidget.c:257

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

Используется в RemovePlayer().

◆ SelectTabControl()

void SelectTabControl ( int index)
inlineprotected
314 {
316 if ( tab_control )
317 {
318 /*
319 Widget tab_bg = tab_control.FindAnyWidget( tab_control.GetName() + "_Background" );
320 if( tab_bg )
321 {
322 tab_bg.Show( true );
323 }
324 */
325
326 Widget tab_title = TextWidget.Cast(tab_control.FindAnyWidget( tab_control.GetName() + "_Title" ));
327
328 int color_title = ARGB(255, 255, 0, 0);
329 int color_backg = ARGB(255, 0, 0 ,0);
330
331 #ifdef PLATFORM_CONSOLE
332 color_title = ARGB(255, 255, 255, 255);
333 color_backg = ARGB(255, 200, 0 ,0);
334 #endif
335
336 tab_title.SetColor( color_title );
337 tab_control.SetColor( color_backg );
338 }
339 }

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

◆ SelectTabPanel()

void SelectTabPanel ( int index)
inlineprotected
342 {
343 Widget tab = m_Tabs.Get( index );
344 if ( tab )
345 {
346 tab.Show( true );
347 }
348 }

◆ ServerBrowserDetailsContainer()

void ServerBrowserDetailsContainer ( Widget root,
ServerBrowserTab parent )
inlineprotected
39 {
40 m_Root = root;
41 m_Tab = parent;
42
43 m_ServerNameText = TextWidget.Cast(root.FindAnyWidget("details_servername_label"));
44 m_ServerTypeResult = TextWidget.Cast(root.FindAnyWidget("details_servertype_result_label"));
45 m_ServerModeResult = TextWidget.Cast(root.FindAnyWidget("details_mode_result_label"));
46 m_LastCharacterResult = TextWidget.Cast(root.FindAnyWidget("details_character_result_label"));
47 m_ServerIP = TextWidget.Cast(root.FindAnyWidget("details_ip_result_label"));
48
49 #ifdef PLATFORM_WINDOWS
50 #ifndef PLATFORM_CONSOLE
51 m_FriendsContainer = GridSpacerWidget.Cast(root.FindAnyWidget("details_friends_container"));
52 m_FriendsResult = TextWidget.Cast(root.FindAnyWidget("details_friends_result_label"));
53 #endif
54 #endif
55
56 m_TimeAccelerationResult = TextWidget.Cast(root.FindAnyWidget("details_time_result_label"));
57 m_TimeIcon = ImageWidget.Cast(root.FindAnyWidget("detail_time_img"));
58
59 m_BattleyeResult = TextWidget.Cast(root.FindAnyWidget("details_battleye_result_label"));
60
61 m_VersionContainer = WrapSpacerWidget.Cast(root.FindAnyWidget("details_version_container"));
62 m_VersionResult = TextWidget.Cast(root.FindAnyWidget("details_version_result_label"));
63
64 m_ServerDecContainer = GridSpacerWidget.Cast(root.FindAnyWidget("details_description_container"));
65 m_ServerDesc = MultilineTextWidget.Cast(root.FindAnyWidget("details_description_label"));
66
67 m_DetailsContainerRight = WrapSpacerWidget.Cast(root.FindAnyWidget("details_container_right"));
68 m_MapImage = ImageWidget.Cast(root.FindAnyWidget("map_image"));
69
70 m_TimeIcon.LoadImageFile(0, "set:dayz_gui image:icon_sun");
71 m_TimeIcon.LoadImageFile(1, "set:dayz_gui image:icon_sun_accel");
72 m_TimeIcon.LoadImageFile(2, "set:dayz_gui image:icon_moon");
73 m_TimeIcon.LoadImageFile(3, "set:dayz_gui image:icon_moon_accel");
74
75 m_BtnShowFilters = ButtonWidget.Cast(parent.GetDetailsRoot().FindAnyWidget("show_filters_button"));
76 m_RefreshList = ButtonWidget.Cast(parent.GetFilterRoot().FindAnyWidget("refresh_list_button"));
77 }
MultilineTextWidget m_ServerDesc
Definition ServerBrowserDetailsContainer.c:28
GridSpacerWidget m_ServerDecContainer
Definition ServerBrowserDetailsContainer.c:27
ImageWidget m_MapImage
Definition ServerBrowserDetailsContainer.c:31
TextWidget m_LastCharacterResult
Definition ServerBrowserDetailsContainer.c:9
TextWidget m_VersionResult
Definition ServerBrowserDetailsContainer.c:25
WrapSpacerWidget m_VersionContainer
Definition ServerBrowserDetailsContainer.c:24
TextWidget m_BattleyeResult
Definition ServerBrowserDetailsContainer.c:22
WrapSpacerWidget m_DetailsContainerRight
Definition ServerBrowserDetailsContainer.c:30

Перекрестные ссылки m_BtnShowFilters, m_RefreshList и m_Root.

◆ ServerBrowserEntry()

void ServerBrowserEntry ( Widget parent,
int index,
ServerBrowserTab tab )
inlineprotected
41 {
42 #ifdef PLATFORM_CONSOLE
43 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/xbox/server_browser_list_entry.layout", parent);
44 #else
45 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/server_browser/pc/server_browser_list_entry_pages.layout", parent);
46 #endif
47
48 m_Root.Enable(true);
49 m_Favorite = m_Root.FindAnyWidget("favorite_button");
50 m_ServerName = TextWidget.Cast(m_Root.FindAnyWidget("server_name"));
51 m_ServerPopulation = TextWidget.Cast( m_Root.FindAnyWidget("server_population"));
52 m_ServerSlots = TextWidget.Cast(m_Root.FindAnyWidget("server_slots"));
53 m_ServerPing = TextWidget.Cast(m_Root.FindAnyWidget("server_ping"));
54 m_ServerTime = ImageWidget.Cast(m_Root.FindAnyWidget("server_time"));
55 m_ServerLock = ImageWidget.Cast(m_Root.FindAnyWidget("lock_icon"));
56 m_ServerModIcon = ImageWidget.Cast(m_Root.FindAnyWidget("modded_icon"));
57 m_ServerMaKIcon = ImageWidget.Cast(m_Root.FindAnyWidget("mandk_icon"));
58
59 m_ServerShard = TextWidget.Cast(m_Root.FindAnyWidget("shard_text"));
60 m_ServerCharacterAlive = TextWidget.Cast(m_Root.FindAnyWidget("character_alive_text"));
61 m_ServerFriends = TextWidget.Cast(m_Root.FindAnyWidget("steam_friends_text"));
62 m_ServerMode = TextWidget.Cast(m_Root.FindAnyWidget("mode_text"));
63 m_ServerBattleye = TextWidget.Cast(m_Root.FindAnyWidget("battlleye_text"));
64 m_ServerIP = TextWidget.Cast(m_Root.FindAnyWidget("ip_text"));
65 m_ServerAcceleration = TextWidget.Cast(m_Root.FindAnyWidget("server_acceleration_text"));
66 m_ServerMap = TextWidget.Cast(m_Root.FindAnyWidget("server_map"));
67 m_ServerMods = TextWidget.Cast(m_Root.FindAnyWidget("mods_text"));
68 m_ServerModsExpand = ButtonWidget.Cast(m_Root.FindAnyWidget("mods_expand"));
69
70 m_DetailedInfo = m_Root.FindAnyWidget("detailed_info");
71
72 m_Root.FindAnyWidget("basic_info").Show(true);
73 m_Root.FindAnyWidget("favorite_image").Update();
74 m_Root.FindAnyWidget("unfavorite_image").Update();
75
76 m_Index = index;
77 m_Tab = tab;
78 m_IsOnline = true;
79
80 m_ServerTime.LoadImageFile(0, "set:dayz_gui image:icon_sun");
81 m_ServerTime.LoadImageFile(1, "set:dayz_gui image:icon_sun_accel");
82 m_ServerTime.LoadImageFile(2, "set:dayz_gui image:icon_moon");
83 m_ServerTime.LoadImageFile(3, "set:dayz_gui image:icon_moon_accel");
84
85 m_Root.SetHandler(this);
86 }
TextWidget m_ServerAcceleration
Definition ServerBrowserEntry.c:23
ImageWidget m_ServerLock
Definition ServerBrowserEntry.c:12
ImageWidget m_ServerMaKIcon
Definition ServerBrowserEntry.c:14
TextWidget m_ServerMode
Definition ServerBrowserEntry.c:20
TextWidget m_ServerSlots
Definition ServerBrowserEntry.c:9
TextWidget m_ServerCharacterAlive
Definition ServerBrowserEntry.c:18
TextWidget m_ServerBattleye
Definition ServerBrowserEntry.c:21
TextWidget m_ServerMods
Definition ServerBrowserEntry.c:25
TextWidget m_ServerMap
Definition ServerBrowserEntry.c:24
TextWidget m_ServerShard
Definition ServerBrowserEntry.c:17
ImageWidget m_ServerTime
Definition ServerBrowserEntry.c:11
TextWidget m_ServerFriends
Definition ServerBrowserEntry.c:19
TextWidget m_ServerPing
Definition ServerBrowserEntry.c:10
TextWidget m_ServerPopulation
Definition ServerBrowserEntry.c:8

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

◆ ServerBrowserFilterContainer()

void ServerBrowserFilterContainer ( Widget root,
ServerBrowserTab parent )
inlineprotected
30 {
31 string player_name;
32 GetGame().GetPlayerName(player_name);
33 m_Tab = parent;
34
35 array<string> character_name_options ={"#server_browser_disabled", player_name};
36 array<string> region_options = {"#server_browser_all", "#server_browser_americas", "#server_browser_europe", "#server_browser_asia"};
37 array<string> sort_options = {"#server_browser_column_host A-Z", "#server_browser_column_host Z-A", "#players_title >", "#players_title <"};
38 array<string> ping_options = {"#server_browser_disabled", "<30", "<50", "<100", "<200", "<300", "<500"};
39 array<string> two_options = {"#server_browser_disabled", "#server_browser_show"};
41
42 m_SearchByName = EditBoxWidget.Cast(root.FindAnyWidget("search_name_setting_option"));
43 m_RefreshList = ButtonWidget.Cast(root.GetParent().FindAnyWidget("refresh_list_button"));
44
45 m_RegionFilter = new OptionSelectorMultistate(root.FindAnyWidget("region_setting_option"), 0, this, false, region_options);
46 m_PingFilter = new OptionSelectorMultistate(root.FindAnyWidget("ping_setting_option"), 0, this, false, ping_options);
47 #ifdef PLATFORM_CONSOLE
48 m_FavoritedFilter = new OptionSelectorMultistate(root.FindAnyWidget("favorites_setting_option"), 0, this, false, two_options);
49 #else
50 m_FavoritedFilter = new OptionSelector(root.FindAnyWidget("favorites_setting_option"), 0, this, false);
51 #endif
52
53 m_MapFilter = new OptionSelectorMultistate(root.FindAnyWidget("map_setting_option"), 0, this, false, map_options);
54
55 m_DLCFilter = new OptionSelector(root.FindAnyWidget("dlc_setting_option"), 0, this, false);
56 m_FriendsPlayingFilter = new OptionSelector(root.FindAnyWidget("friends_setting_option"), 0, this, false);
57 m_PreviouslyPlayedFilter = new OptionSelector(root.FindAnyWidget("prev_played_setting_option"), 0, this, false);
58 m_FullServerFilter = new OptionSelector(root.FindAnyWidget("full_server_setting_option"), 0, this, false);
59 m_ThirdPersonFilter = new OptionSelector(root.FindAnyWidget("tps_setting_option"), 0, this, false);
60 m_PasswordFilter = new OptionSelector(root.FindAnyWidget("password_setting_option"), 0, this, false);
61 m_WhitelistFilter = new OptionSelector(root.FindAnyWidget("whitelist_setting_option"), 0, this, false);
62
63 m_DLCFilter.m_OptionChanged.Insert(OnFilterChanged);
64 m_RegionFilter.m_OptionChanged.Insert(OnFilterChanged);
65 m_PingFilter.m_OptionChanged.Insert(OnFilterChanged);
66 m_FavoritedFilter.m_OptionChanged.Insert(OnFilterChanged);
67 m_MapFilter.m_OptionChanged.Insert(OnMapFilterChanged);
68 m_FriendsPlayingFilter.m_OptionChanged.Insert(OnFilterChanged);
69 m_PreviouslyPlayedFilter.m_OptionChanged.Insert(OnFilterChanged);
70 m_FullServerFilter.m_OptionChanged.Insert(OnFilterChanged);
71 m_ThirdPersonFilter.m_OptionChanged.Insert(OnFilterChanged);
72 m_PasswordFilter.m_OptionChanged.Insert(OnFilterChanged);
73 m_WhitelistFilter.m_OptionChanged.Insert(OnFilterChanged);
74
75 #ifdef PLATFORM_CONSOLE
76 m_SortingFilter = new OptionSelectorMultistate(root.FindAnyWidget("sort_setting_option"), 0, this, false, sort_options);
77 m_KeyboardFilter = new OptionSelector(root.FindAnyWidget("keyboard_setting_option"), 0, this, false);
78
79 m_SortingFilter.m_OptionChanged.Insert(OnSortChanged);
80 m_SortingFilter.m_OptionChanged.Insert(OnFilterChanged);
81 m_KeyboardFilter.m_OptionChanged.Insert(OnFilterChanged);
82
83 m_PingFilter.Disable();
84 m_FriendsPlayingFilter.Disable();
85 #endif
86
87 #ifdef PLATFORM_WINDOWS
88 #ifndef PLATFORM_CONSOLE
89 m_SearchByIP = EditBoxWidget.Cast(root.FindAnyWidget("search_ip_setting_option"));
90
91 m_SearchByName.SetHandler(this);
92 m_SearchByIP.SetHandler(this);
93
94 m_CharacterAliveFilter = new OptionSelectorMultistate(root.FindAnyWidget("restrict_char_setting_option"), 0, this, false, character_name_options);
95 m_VersionMatchFilter = new OptionSelector(root.FindAnyWidget("ver_match_setting_option"), 0, this, false);
96
97 m_CharacterAliveFilter.m_OptionChanged.Insert(OnFilterChanged);
98 m_VersionMatchFilter.m_OptionChanged.Insert(OnFilterChanged);
99 #endif
100 #endif
101 LoadFilters();
102 }
Definition OptionSelectorMultistate.c:2
array< string > LoadMapFilterOptions()
Definition ServerBrowserFilterContainer.c:104
void LoadFilters()
Definition ServerBrowserFilterContainer.c:125
void OnSortChanged(int value)
Definition ServerBrowserFilterContainer.c:375
void OnMapFilterChanged()
Definition ServerBrowserFilterContainer.c:120

Перекрестные ссылки GetGame(), LoadFilters(), LoadMapFilterOptions(), m_RefreshList и OnFilterChanged().

◆ ServerListFocus()

void ServerListFocus ( bool focus)
inlineprotected
213 {
214 m_Tab.ServerListFocus(focus, m_IsFavorited);
215 }
bool m_IsFavorited
Definition ServerBrowserEntry.c:31

Используется в OnFocus() и OnFocusLost().

◆ SetAcceleration()

void SetAcceleration ( float mult)
inlineprivate
558 {
559 if (mult > 1)
560 {
561 m_ServerAcceleration.Show(true);
562 m_ServerAcceleration.SetText(mult.ToString() + "x");
563 }
564 else
565 {
566 m_ServerAcceleration.Show(false);
567 }
568 }

Используется в FillInfo().

◆ SetActionWidget()

void SetActionWidget ( ActionBase action,
string descText,
string actionWidget,
string descWidget )
inlineprotected
620 {
621 Widget widget = m_Root.FindAnyWidget(actionWidget);
622
623 if (action && (!action.HasTarget() || (m_Player && m_Player.GetCommand_Vehicle())))
624 {
626 Class.CastTo(actionName, widget.FindAnyWidget(descWidget));
627
628
629 if (action.GetInput().GetInputType() == ActionInputType.AIT_CONTINUOUS)
630 {
631 descText = descText + " " + "#action_target_cursor_hold";
632 actionName.SetText(descText);
633 }
634 else
635 {
636 actionName.SetText(descText);
637 }
638
639 widget.Show(true);
640 }
641 else
642 {
643 widget.Show(false);
644 }
645 }

Перекрестные ссылки Class::CastTo(), m_Player и m_Root.

Используется в BuildCursor().

◆ SetActive()

void SetActive ( bool active)
inlineprotected
154 {
156 }

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

◆ SetBannerColor()

void SetBannerColor ( int argb)
inlineprotected
24 {
25 m_BannerBody.SetColor(argb);
26 m_BannerWedge.SetColor(argb);
27 }

◆ SetBannerText()

void SetBannerText ( string text)
inlineprotected
30 {
31 m_BannerText.SetText(text);
32 }

◆ SetBattleye()

void SetBattleye ( bool battleye)
inlineprivate
507 {
508 if (battleye)
509 {
510 m_ServerBattleye.SetText("#server_browser_entry_enabled");
511 m_ServerBattleye.SetColor(ARGBF(1, 0, 1, 0));
512 }
513 else
514 {
515 m_ServerBattleye.SetText("#server_browser_entry_disabled");
516 m_ServerBattleye.SetColor(ARGBF(1, 1, 0, 0));
517 }
518 }

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

Используется в FillInfo().

◆ SetBattleyeState()

void SetBattleyeState ( int enabled = -1)
inlineprotected
263 {
264 string result = "#STR_server_browser_no_server_selected";
265 int color = ARGB(255, 255, 255, 255);
266
267 switch (enabled)
268 {
269 case 0:
270 {
271 result = "#server_browser_entry_disabled";
272 color = ARGB(255, 255, 0, 0);
273 break:
274 }
275 case 1:
276 {
277 result = "#server_browser_entry_enabled";
278 color = ARGB(255, 0, 255, 0);
279 break:
280 }
281 }
282
283 m_BattleyeResult.SetText(result);
284 m_BattleyeResult.SetColor(color);
285 }

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

◆ SetButtonStates()

void SetButtonStates ( int index)
inlineprivate
77 {
79 for (int i = 0; i < m_widget_array.Count(); i++)
80 {
81 button = ButtonWidget.Cast( m_widget_array.Get(i) );
82 if (button)
83 {
84 button.SetState( i == index );
85 }
86 }
87 }

◆ SetCanSwitch()

void SetCanSwitch ( bool value)
inlineprotected
206 {
208 }

◆ SetCharacterAlive()

void SetCharacterAlive ( string char_alive)
inlineprivate
475 {
476 if (char_alive == "")
477 m_ServerCharacterAlive.SetText("#STR_server_browser_char_not_alive");
478 else
480 }

Используется в FillInfo().

◆ SetContinuousInteractXboxIcon()

void SetContinuousInteractXboxIcon ( string imageset_name,
string image_name )
inlineprotected
66{};

◆ SetContinuousXboxIcon()

void SetContinuousXboxIcon ( string imageset_name,
string image_name )
inlineprotected
68{};

◆ SetController()

void SetController ( InventoryGridController controller)
inlineprivate
373 {
375 }

◆ SetControllerIcon()

void SetControllerIcon ( string pWidgetName,
string pInputName )
inlineprotected

73 {
74 RichTextWidget w = RichTextWidget.Cast(m_Root.FindAnyWidget(pWidgetName + "_btn_icon_xbox"));
76 }
Definition InputUtils.c:2
static string GetRichtextButtonIconFromInputAction(notnull UAInput pInput, string pLocalizedDescription, int pInputDeviceType=EUAINPUT_DEVICE_CONTROLLER, float pScale=ICON_SCALE_NORMAL, bool pVertical=false)
Definition InputUtils.c:167

Перекрестные ссылки InputUtils::GetRichtextButtonIconFromInputAction() и m_Root.

Используется в UpdateControllerInputIcons().

◆ SetDetails()

void SetDetails ( GetServersResultRow serverInfo,
bool online = false )
inlineprotected

Server time acceleration text version is hidden for now

Server anticheat text is hidden for now

Server version text is hidden for now

Map image container and handling is hidden/disabled for now

80 {
81 if (!online)
82 {
84 return;
85 }
86
87 if (serverInfo)
88 {
89 SetName(serverInfo.m_Name);
90 #ifdef PLATFORM_WINDOWS
91 #ifndef PLATFORM_CONSOLE
92 SetType(serverInfo.m_ShardId);
93 SetMode(serverInfo.m_Disable3rdPerson);
94 #endif
95 #endif
96 #ifdef PLATFORM_CONSOLE
97 SetMode(serverInfo.m_ModeId);
98 SetConsoleType(serverInfo.m_Official);
99 #endif
100 SetServerIP(serverInfo.GetIpPort());
101
103 /*
104 SetTimeAcceleration(serverInfo.m_EnvironmentTimeMul, serverInfo.m_EnvironmentNightTimeMul);
105 */
106
107 SetTimeIcon(serverInfo.m_TimeOfDay, serverInfo.m_EnvironmentTimeMul);
108 #ifdef PLATFORM_WINDOWS
109 #ifndef PLATFORM_CONSOLE
110 SetCharacter(serverInfo.m_CharactersAlive);
111 SetFriends(serverInfo.m_SteamFriends);
112 #endif
113 #endif
114
116 /*
117 SetBattleyeState(serverInfo.m_AntiCheat);
118 */
119
121 /*
122 SetVersion(serverInfo.m_GameVersion);
123 */
124
125 SetServerDesc(serverInfo.m_Description);
126 }
127
129 m_DetailsContainerRight.Show(false);
130 //SetServerMap();
131 }
void SetServerDesc(string desc)
Definition ServerBrowserDetailsContainer.c:292
void SetTimeIcon(string time, float multiplier)
Definition ServerBrowserDetailsContainer.c:223
void SetServerIP(string ip)
Definition ServerBrowserDetailsContainer.c:190
void ClearDetails()
Definition ServerBrowserDetailsContainer.c:133
void SetType(string shardId)
Definition ServerBrowserDetailsContainer.c:150

Перекрестные ссылки ClearDetails(), SetFriends(), SetMode(), SetName(), SetServerDesc(), SetServerIP(), SetTimeIcon() и SetType().

◆ SetDOF()

void SetDOF ( float dof)
inlineprotected
78 {
79 m_DOFWidget.SetText( dof.ToString() );
80 }

Используется в CTKeyframe().

◆ SetElementModifier()

bool SetElementModifier ( UAInput pInput,
out string output )
inlineprotected

Determine the active limiter of the bindings (currently unreliable, multiple limiters can be active on key combos!)

127 {
128 if (pInput.IsLimited())
129 {
130 if (pInput.IsPressLimit())
131 {
132 output = "#keybind_press";
133 }
134 if (pInput.IsReleaseLimit())
135 {
136 output = "#keybind_release";
137 }
138 if (pInput.IsHoldLimit())
139 {
140 output = "#keybind_hold";
141 }
142 if (pInput.IsHoldBeginLimit())
143 {
144 output = "#keybind_holdbegin";
145 }
146 if (pInput.IsClickLimit())
147 {
148 output = "#keybind_click";
149 }
150 if (pInput.IsDoubleClickLimit())
151 {
152 output = "#keybind_doubletap";
153 }
154
155 return true;
156 }
157 else
158 {
159 return false;
160 }
161 }

Используется в TutorialKeybinds().

◆ SetElementTitle() [1/3]

void SetElementTitle ( ButtonWidget btnWidget,
UAInput pInput,
int iDeviceFlags )
inlineprotected
67 {
68 string output;
69 int a, i, countbind = 0;
70
71 for( a = 0; a < pInput.AlternativeCount(); a++ )
72 {
73 pInput.SelectAlternative(a);
74 if( pInput.IsCombo() )
75 {
76 if( pInput.BindingCount() > 0 )
77 {
78 if( pInput.Binding(0) != 0 && pInput.CheckBindDevice(0,iDeviceFlags) )
79 {
80 if( countbind > 0 )
81 output += ", ";
82
83 output += GetUApi().GetButtonName( pInput.Binding(0) );
84 countbind++;
85
86 for( i = 1; i < pInput.BindingCount(); i++ )
87 {
88 if( pInput.Binding(i) != 0 )
89 {
90 output += " + " + GetUApi().GetButtonName( pInput.Binding(i) );
91 countbind++;
92 }
93 }
94
95 }
96 }
97 }
98 else
99 {
100 if( pInput.BindingCount() > 0 )
101 {
102 if( pInput.Binding(0) != 0 && pInput.CheckBindDevice(0,iDeviceFlags) )
103 {
104 if( countbind > 0 )
105 output += ", ";
106
107 output += GetUApi().GetButtonName( pInput.Binding(0) );
108 countbind++;
109 }
110 }
111 }
112
113 }
114
115 // nothing may be available - we do not want "null" or "0" in string
116 if( countbind > 0 )
117 btnWidget.SetText(output);
118 else
119 btnWidget.SetText("");
120 }

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

◆ SetElementTitle() [2/3]

void SetElementTitle ( ButtonWidget btnWidget,
UAInput pInput,
int iDeviceFlags )
inlineprotected
66 {
67 string output;
68 int a, i, countbind = 0;
69
70 for( a = 0; a < pInput.AlternativeCount(); a++ )
71 {
72 pInput.SelectAlternative(a);
73 if( pInput.IsCombo() )
74 {
75 if( pInput.BindingCount() > 0 )
76 {
77 if( pInput.Binding(0) != 0 && pInput.CheckBindDevice(0,iDeviceFlags) )
78 {
79 if( countbind > 0 )
80 output += ", ";
81
82 output += GetUApi().GetButtonName( pInput.Binding(0) );
83 countbind++;
84
85 for( i = 1; i < pInput.BindingCount(); i++ )
86 {
87 if( pInput.Binding(i) != 0 )
88 {
89 output += " + " + GetUApi().GetButtonName( pInput.Binding(i) );
90 countbind++;
91 }
92 }
93
94 }
95 }
96 }
97 else
98 {
99 if( pInput.BindingCount() > 0 )
100 {
101 if( pInput.Binding(0) != 0 && pInput.CheckBindDevice(0,iDeviceFlags) )
102 {
103 if( countbind > 0 )
104 output += ", ";
105
106 output += GetUApi().GetButtonName( pInput.Binding(0) );
107 countbind++;
108 }
109 }
110 }
111 }
112
113 // nothing may be available - we do not want "null" or "0" in string
114 if( countbind > 0 )
115 btnWidget.SetText(output);
116 else
117 btnWidget.SetText("");
118 }

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

◆ SetElementTitle() [3/3]

bool SetElementTitle ( UAInput pInput,
int iDeviceFlags,
out string output )
inlineprotected

assemble all active bindings at widget element

75 {
76 int a, i, countbind = 0;
77
78 for (a = 0; a < pInput.AlternativeCount(); a++)
79 {
80 pInput.SelectAlternative(a);
81 if (pInput.IsCombo())
82 {
83 if (pInput.BindingCount() > 0)
84 {
85 if (pInput.Binding(0) != 0 && pInput.CheckBindDevice(0,iDeviceFlags))
86 {
87 if (countbind > 0)
88 output += ", ";
89
90 output += GetUApi().GetButtonName(pInput.Binding(0));
91 countbind++;
92
93 for (i = 1; i < pInput.BindingCount(); i++)
94 {
95 if (pInput.Binding(i) != 0)
96 {
97 output += " + " + GetUApi().GetButtonName(pInput.Binding(i));
98 countbind++;
99 }
100 }
101
102 }
103 }
104 }
105 else
106 {
107 if (pInput.BindingCount() > 0)
108 {
109 if (pInput.Binding(0) != 0 && pInput.CheckBindDevice(0,iDeviceFlags))
110 {
111 if (countbind > 0)
112 output += ", ";
113
114 output += GetUApi().GetButtonName(pInput.Binding(0));
115 countbind++;
116 }
117 }
118 }
119
120 }
121
122 return (countbind > 0);
123 }

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

Используется в Reload() и TutorialKeybinds().

◆ SetEventTime()

void SetEventTime ( float time)
inlineprotected
92 {
94 m_EventTimeWidget.SetText( time.ToString() );
95 }

◆ SetEventType()

void SetEventType ( int type)
inlineprotected
98 {
99 m_EventTypeWidget.SetText( type.ToString() );
100 }

◆ SetExpand()

bool SetExpand ( bool expand)
inlineprivate
645 {
647 m_Root.FindAnyWidget("collapse_image").Show(m_IsExpanded);
648 m_Root.FindAnyWidget("expand_image").Show(!m_IsExpanded);
650
651 if (m_ServerData)
652 {
653 m_ServerData.m_IsExpanded = m_IsExpanded;
654 }
655
656 if (expand && m_FirstExpand)
657 {
658 if (m_ServerData.m_Modded)
659 {
661 }
662
663 m_FirstExpand = false;
664 }
665
666 return m_IsExpanded;
667 }
static void GetServerModList(string server_id)
Definition OnlineServices.c:684

Перекрестные ссылки OnlineServices::GetServerModList(), m_IsExpanded и m_Root.

Используется в FillInfo() и ToggleExpand().

◆ SetFavorite()

void SetFavorite ( bool favorite)
inlineprivate
551 {
553 m_Root.FindAnyWidget("favorite_image").Show(favorite);
554 m_Root.FindAnyWidget("unfavorite_image").Show(!favorite);
555 }

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

Используется в FillInfo().

◆ SetFirstActive()

void SetFirstActive ( )
protected

◆ SetFOV()

void SetFOV ( float fov)
inlineprotected
68 {
69 m_FOVWidget.SetText( fov.ToString() );
70 }

Используется в CTKeyframe().

◆ SetFriends()

void SetFriends ( string friends_text)
inlineprivate
483 {
485 }

Используется в FillInfo() и SetDetails().

◆ SetGridSize()

void SetGridSize ( int size)
inlineprotected
245 {
247 for( int i = 0; i < m_BackgroundWidgets.Count(); i++ )
248 {
249 if( i < size )
250 {
251 m_BackgroundWidgets.Get( i ).Show( true );
252 }
253 else
254 {
255 m_BackgroundWidgets.Get( i ).Show( false );
256 }
257 }
258 }

◆ SetHintDescription()

void SetHintDescription ( )
inlineprotected
132 {
133 #ifdef DEVELOPER
134 //Print("showing contents for page "+m_PageIndex);
135 #endif
136 m_UiDescLabel.SetText(m_ContentList.Get(m_PageIndex).GetDescriptionText());
137 m_UiDescLabel.Update();
138 m_SpacerFrame.Update();
139 }

Перекрестные ссылки m_ContentList, m_PageIndex, m_SpacerFrame и m_UiDescLabel.

Используется в PopulateLayout().

◆ SetHintHeadline()

void SetHintHeadline ( )
inlineprotected
128 {
129 m_UiHeadlineLabel.SetText(m_ContentList.Get(m_PageIndex).GetHeadlineText());
130 }

Перекрестные ссылки m_ContentList, m_PageIndex и m_UiHeadlineLabel.

Используется в PopulateLayout().

◆ SetHintImage()

void SetHintImage ( )
inlineprotected
141 {
142 string image_path = m_ContentList.Get(m_PageIndex).GetImagePath();
143
144 // If there is an image
145 if (image_path)
146 {
147 // Show the widget
148 m_UiHintImage.Show(true);
149 // Set the image path
150 m_UiHintImage.LoadImageFile(0, image_path);
151 }
152 else
153 {
154 // Hide the widget
155 m_UiHintImage.Show(false);
156 }
157 }

Перекрестные ссылки m_ContentList, m_PageIndex и m_UiHintImage.

Используется в PopulateLayout().

◆ SetHintPaging()

void SetHintPaging ( )
inlineprotected
159 {
161 m_UiPageingLabel.SetText(string.Format("%1 / %2", m_PageIndex + 1, m_ContentList.Count()));
162 }

Перекрестные ссылки m_ContentList, m_PageIndex и m_UiPageingLabel.

Используется в PopulateLayout().

◆ SetImmedUpdate()

void SetImmedUpdate ( )
inlineprotected
21 {
22 m_ImmedUpdate = false;
23 }

◆ SetInteractActionIcon()

void SetInteractActionIcon ( string actionWidget,
string actionIconFrameWidget,
string actionIconWidget,
string actionIconTextWidget )
inlineprotected

select first alternative (which is the primary bind)

683 {
684 string keyName = string.Empty;
688
689 widget = m_Root.FindAnyWidget(actionWidget);
693
694 m_UseActionWrapper.InputP().SelectAlternative(0);
695 for (int c = 0; c < m_UseActionWrapper.InputP().BindKeyCount(); c++)
696 {
697 int _hc = m_UseActionWrapper.InputP().GetBindKey(0);
698 keyName = GetUApi().GetButtonName(_hc);
699 }
700
701 // uses text in floating widget
702 iconWidget.Show(false);
703 textWidget.SetText(keyName);
704 textWidget.Show(true);
705 }
proto native UAInput InputP()

Перекрестные ссылки Class::CastTo(), GetUApi(), UAIDWrapper::InputP() и m_Root.

Используется в BuildCursor().

◆ SetInteractXboxIcon()

void SetInteractXboxIcon ( string imageset_name,
string image_name )
inlineprotected

DEPRECATED.

65{};

◆ SetInterpTime()

void SetInterpTime ( float time)
inlineprotected
114 {
118 }
proto string ToString()

Перекрестные ссылки ToString() и float::ToString().

Используется в CTKeyframe().

◆ SetIP()

void SetIP ( string ip)
inlineprivate
521 {
522 m_ServerIP.SetText(ip);
523 }

Используется в FillInfo().

◆ SetIsOnline()

void SetIsOnline ( bool isOnline)
inlineprivate
611 {
613 }

◆ SetItem()

void SetItem ( InventoryItem item,
vector data,
vector rotation )
inlineprivate
682 {
683 m_Items.Set(item, data);
684
685 int index = Math.Round(data[0]);
686 int width = Math.Round(data[1]);
687 int height = Math.Round(data[2]);
688
690 Widget item_w_bck = bck.FindAnyWidget("GridItemBck");
691
692 if(item_w_bck)
693 {
694 bck.FindAnyWidget("LabelTR").Show( true );
695 bck.FindAnyWidget("LabelCC").Show( false );
696
697 Widget item_w = item_w_bck.FindAnyWidget("GridItem");
699
700 if ( item )
701 {
702 ItemPreviewWidget item_preview = ItemPreviewWidget.Cast( item_w.FindAnyWidget("Preview") );
703 item_preview.SetItem(item);
704 item_preview.Show( true );
705 item_preview.SetModelOrientation( rotation );
706 item_preview.SetView( item_preview.GetItem().GetViewIndex() );
707
708 RefreshItemVariables( item, data, true, true );
709 }
710 else
711 {
712 item_preview = ItemPreviewWidget.Cast( item_w.FindAnyWidget("Preview") );
713 item_preview.Show( false );
714 }
715 }
716 }

Перекрестные ссылки GetItemBackground(), RefreshItemVariables(), ResetItemWidget() и Math::Round().

◆ SetItemColor()

void SetItemColor ( InventoryItem item,
int color )
inlineprivate
361 {
362 if (m_Items.Contains(item))
363 {
364 vector data = m_Items.Get(item);
365 int index = Math.Round(data[0]);
366
368 if (w)
369 w.SetColor(color);
370 }
371 }
EntityAI GetItem()
Definition RadialQuickbarMenu.c:37

Перекрестные ссылки GetItem() и Math::Round().

◆ SetItemDesc()

void SetItemDesc ( EntityAI entity,
string descText,
string itemWidget,
string descWidget )
inlineprotected
344 {
346
347 widget = m_Root.FindAnyWidget(itemWidget);
348
349 if (entity && m_Player && !m_Player.GetItemAccessor().IsItemInHandsHidden())
350 {
351 descText.ToUpper();
353 Class.CastTo(itemName, widget.FindAnyWidget(descWidget));
354 itemName.SetText(descText);
355 widget.Show(true);
356 }
357 else
358 widget.Show(false);
359 }

Перекрестные ссылки Class::CastTo(), m_Player и m_Root.

Используется в BuildCursor().

◆ SetItemHealth()

void SetItemHealth ( int health,
string itemWidget,
string healthWidget,
bool enabled )
inlineprotected
362 {
364
365 widget = m_Root.FindAnyWidget(itemWidget);
366
367 if (enabled)
368 {
370 Class.CastTo(healthMark, widget.FindAnyWidget(healthWidget));
371
373 {
375 healthMark.SetAlpha(0.5);
376 healthMark.GetParent().Show(true);
377 }
378 else
379 {
380 switch (health)
381 {
382 case -1 :
383 healthMark.GetParent().Show(false);
384 break;
387 healthMark.SetAlpha(0.5);
388 healthMark.GetParent().Show(true);
389 break;
391 healthMark.SetColor(Colors.COLOR_WORN);
392 healthMark.SetAlpha(0.5);
393 healthMark.GetParent().Show(true);
394 break;
397 healthMark.SetAlpha(0.5);
398 healthMark.GetParent().Show(true);
399 break;
402 healthMark.SetAlpha(0.5);
403 healthMark.GetParent().Show(true);
404 break;
407 healthMark.SetAlpha(0.5);
408 healthMark.GetParent().Show(true);
409 break;
410 default :
411 healthMark.SetColor(0x00FFFFFF);
412 healthMark.SetAlpha(0.5);
413 healthMark.GetParent().Show(true);
414 break;
415 }
416 }
417
418 widget.Show(true);
419 }
420 else
421 widget.Show(false);
422 }
Definition Colors.c:4
const int COLOR_BADLY_DAMAGED
Definition Colors.c:21
const int COLOR_PRISTINE
Definition Colors.c:24
const int COLOR_WORN
Definition Colors.c:23
const int COLOR_DAMAGED
Definition Colors.c:22
const int COLOR_RUINED
Definition Colors.c:20
const int COLOR_FROZEN
Definition Colors.c:42
Definition constants.c:638
const int STATE_RUINED
Definition constants.c:807
const int STATE_BADLY_DAMAGED
Definition constants.c:808
const int STATE_DAMAGED
Definition constants.c:809
const int STATE_PRISTINE
Definition constants.c:811
const int STATE_WORN
Definition constants.c:810

Перекрестные ссылки Class::CastTo(), Colors::COLOR_BADLY_DAMAGED, Colors::COLOR_DAMAGED, Colors::COLOR_FROZEN, Colors::COLOR_PRISTINE, Colors::COLOR_RUINED, Colors::COLOR_WORN, m_Root, GameConstants::STATE_BADLY_DAMAGED, GameConstants::STATE_DAMAGED, GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED и GameConstants::STATE_WORN.

Используется в BuildCursor().

◆ SetItemQuantity()

void SetItemQuantity ( int type,
float current,
int min,
int max,
string itemWidget,
string quantityPBWidget,
string quantityTextWidget,
bool enabled )
inlineprotected
425 {
427
428 widget = m_Root.FindAnyWidget(itemWidget);
429
430 if (enabled)
431 {
436
437 //check for volume vs. count and display progressbar or "bubble" with exact count/max text
438 switch (type)
439 {
440 case QUANTITY_HIDDEN :
441 progressBar.Show(false);
442 textWidget.Show(false);
443 textWidget.GetParent().Show(false);
444 break;
445 case QUANTITY_COUNT :
446 if (max > 1 || current > 1)
447 {
448 string qty_text = string.Format("%1/%2", Math.Round(current).ToString(), max.ToString());
449 progressBar.Show(false);
450 textWidget.SetText(qty_text);
451 textWidget.Show(true);
452 textWidget.GetParent().Show(true);
453 break;
454 }
455 else
456 {
457 progressBar.Show(false);
458 textWidget.Show(false);
459 textWidget.GetParent().Show(false);
460 break;
461 }
462 case QUANTITY_PROGRESS :
463 textWidget.Show(false);
464 progressBar.SetCurrent(current);
465 progressBar.Show(true);
466 textWidget.GetParent().Show(true);
467 break;
468 }
469 widget.Show(true);
470 }
471 else
472 widget.Show(false);
473 }

Перекрестные ссылки Class::CastTo(), m_Root, QUANTITY_COUNT, QUANTITY_HIDDEN, QUANTITY_PROGRESS и Math::Round().

Используется в BuildCursor().

◆ SetLastActive()

void SetLastActive ( )
protected

◆ SetLayoutName()

void SetLayoutName ( )
protected

◆ SetMapName()

void SetMapName ( string mapName)
private

◆ SetModded()

void SetModded ( bool is_modded)
inlineprivate
571 {
573 }

Используется в FillInfo().

◆ SetMode() [1/2]

void SetMode ( int mode)
inlineprotected
171 {
172 string result = "#STR_server_browser_no_server_selected";
173 switch (mode)
174 {
175 case 0:
176 {
177 result = "#STR_server_browser_details_third_person";
178 break;
179 }
180 case 1:
181 {
182 result = "#STR_server_browser_details_first_person";
183 break;
184 }
185 }
186
187 m_ServerModeResult.SetText(result);
188 }

Используется в FillInfo() и SetDetails().

◆ SetMode() [2/2]

void SetMode ( int mode)
inlineprivate
488 {
489 string text;
490 switch (mode)
491 {
492 case 0:
493 {
494 text = "#server_browser_entry_person_both";
495 break;
496 }
497 case 1:
498 {
499 text = "#server_browser_entry_person_first";
500 break;
501 }
502 }
503 m_ServerMode.SetText(text);
504 }

◆ SetMods()

void SetMods ( array< string > mods)
inlineprivate
588 {
589 m_Mods = mods;
590
591 if (mods && mods.Count() > 0)
592 {
593 string mods_text = mods[0];
594 for (int i = 1; i < mods.Count(); i++)
595 mods_text += ", " + mods[i];
596
597 m_ServerMods.SetText(mods_text);
598 }
599
600 #ifdef PLATFORM_WINDOWS
601 m_ServerModsExpand.Show((mods && mods.Count() > 0));
602 #endif
603 }

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

◆ SetMouseAndKeyboard()

void SetMouseAndKeyboard ( bool is_mkenabled)
inlineprivate
606 {
608 }

Используется в FillInfo().

◆ SetMultipleContinuousInteractAction()

void SetMultipleContinuousInteractAction ( string multiActionsWidget)
inlineprotected

shows arrows near the interact action if there are more than one available

658 {
660
661 widget = m_Root.FindAnyWidget(multiActionsWidget);
663 }

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

Используется в BuildCursor().

◆ SetMultipleContinuousItemAction()

void SetMultipleContinuousItemAction ( string multiActionsWidget)
inlineprotected

shows arrows near the interact action if there are more than one available

675 {
677
678 widget = m_Root.FindAnyWidget(multiActionsWidget);
680 }

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

Используется в BuildCursor().

◆ SetMultipleInteractAction()

void SetMultipleInteractAction ( string multiActionsWidget)
inlineprotected

shows arrows near the interact action if there are more than one available

649 {
651
652 widget = m_Root.FindAnyWidget(multiActionsWidget);
654 }

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

Используется в BuildCursor().

◆ SetMultipleItemAction()

void SetMultipleItemAction ( string multiActionsWidget)
inlineprotected
666 {
668
669 widget = m_Root.FindAnyWidget(multiActionsWidget);
670 widget.Show(m_ItemActionsNum > 1);
671 }

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

Используется в BuildCursor().

◆ SetMute() [1/2]

void SetMute ( bool mute)
inlineprotected
82 {
83 m_Mute = mute;
84 m_MuteIcon.Show( mute );
85 }

◆ SetMute() [2/2]

void SetMute ( string UID,
bool mute )
inlineprotected
227 {
228 if ( m_Entries && m_Entries.Get( UID ) )
229 {
230 m_Entries.Get( UID ).SetMute( mute );
231 }
232 }

Перекрестные ссылки m_Entries и UID.

◆ SetName() [1/2]

void SetName ( string name)
inlineprotected
145 {
146 m_ServerNameText.SetText(name);
147 m_ServerNameText.Update();
148 }

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

Используется в FillInfo() и SetDetails().

◆ SetName() [2/2]

void SetName ( string name)
inlineprotected
330 {
331 m_ServerName.SetText(name);
332 }

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

◆ SetOptions() [1/4]

void SetOptions ( GameOptions options)
inlineprotected
628 {
630
631 // mouse (PC & consoles)
632 m_Mouse_InvertOption = SwitchOptionsAccess.Cast( m_Options.GetOptionByType( OptionAccessType.AT_OPTIONS_MOUSE_YAXIS_INVERTED ) );
637
638 // controller (consoles only)
639 #ifdef PLATFORM_CONSOLE
640 m_KeyboardOption = SwitchOptionsAccess.Cast( m_Options.GetOptionByType( OptionAccessType.AT_OPTIONS_MOUSE_AND_KEYBOARD ) );
642
646 m_ControllerRS_InvertOption = SwitchOptionsAccess.Cast( m_Options.GetOptionByType( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_YAXIS_INVERTED ) );
652 m_ControllerRS_AimMod_CurvatureOption = NumericOptionsAccess.Cast( m_Options.GetOptionByType( OptionAccessType.AT_OPTIONS_CONTROLLER_RS_CURVATURE_AIM_MOD ) );
655 #endif
656
657 Revert();
658 }
void Revert()
Definition OptionsMenuControls.c:394

Перекрестные ссылки GameOptions::GetOptionByType() и Revert().

Используется в OptionsMenuControls() и OptionsMenuVideo().

◆ SetOptions() [2/4]

void SetOptions ( GameOptions options)
inlineprotected
371 {
373
376
377 if (m_FOVSelector)
378 m_FOVSelector.SetValue(m_FOVOption.ReadValue(), false);
379
381 m_LanguageSelector.SetValue(m_LanguageOption.GetIndex(), false);
382
383 #ifdef PLATFORM_CONSOLE
386 m_BrightnessSelector.SetValue(m_BrightnessOption.ReadValue(), false);
387 #endif
388 }

Перекрестные ссылки GameOptions::GetOptionByType().

◆ SetOptions() [3/4]

void SetOptions ( GameOptions options)
inlineprivate

Перекрестные ссылки GameOptions::GetOptionByType() и Revert().

◆ SetOptions() [4/4]

void SetOptions ( GameOptions options)
inlineprotected
303 {
305
306 #ifdef PLATFORM_CONSOLE
307 #ifdef PLATFORM_PS4
309 #endif
310 #else
311 //Overall
313
314 //Screen
319 //m_ColorDepthOption = ListOptionsAccess.Cast( m_Options.GetOptionByType( OptionAccessType.AT_HDR_DETAIL ) );
320
321 //Scene
326 m_VisibilityOption = ListOptionsAccess.Cast( m_Options.GetOptionByType( OptionAccessType.AT_OPTIONS_VISIBILITY_COMBO ) );
327 m_ObjectVisibilityOption = ListOptionsAccess.Cast( m_Options.GetOptionByType( OptionAccessType.AT_OPTIONS_OBJECT_VISIBILITY_COMBO ) );
328
329 //Rendering
332
339 #endif
340 }

Перекрестные ссылки GameOptions::GetOptionByType().

◆ SetOrientation()

void SetOrientation ( vector orient)
inlineprotected
93 {
95 }

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

◆ SetParentWidget()

void SetParentWidget ( )
inlineprotected
143 {
144 if ( m_Parent )
145 m_ParentWidget = m_Parent.GetMainWidget();
146 }

Перекрестные ссылки m_Parent и m_ParentWidget.

◆ SetPasswordLocked()

void SetPasswordLocked ( bool locked)
inlineprotected
335 {
336 m_ServerLock.Show(locked);
337 }

Используется в FillInfo().

◆ SetPin()

void SetPin ( int pin)
inlineprotected
58 {
59 m_PinWidget.SetText( pin.ToString() );
60 }

Используется в CTKeyframe().

◆ SetPing()

void SetPing ( int ping)
inlineprivate
381 {
382 int color;
383 string displayValue;
384
385 if (ping < 50)
386 color = ARGBF(1, 0, 1, 0);
387 else if(ping < 100)
388 color = ARGBF(1, 0.8, 0.8, 0);
389 else if( ping < 200 )
390 color = ARGBF(1, 1, 0.5, 0);
391 else
392 color = ARGBF(1, 1, 0, 0);
393
394 if (IsOnline())
395 {
396 displayValue = ping.ToString();
397 }
398
399 else
400 {
401 displayValue = "-";
402 }
403
404 m_ServerPing.SetColor(color);
405 m_ServerPing.SetText(displayValue);
406 }

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

Используется в FillInfo().

◆ SetPlatformSpecifics()

void SetPlatformSpecifics ( )
inlineprotected
170 {
171 TextWidget desc = TextWidget.Cast(m_StoreButton.FindAnyWidget("dlc_openStore_label"));
172 #ifdef PLATFORM_PS4
173 m_GamepadStoreImage = m_Root.FindAnyWidget("image_button_ps");
174 desc.SetText("#dlc_open_store_PS");
175 #endif
176 #ifdef PLATFORM_XBOX
177 m_GamepadStoreImage = m_Root.FindAnyWidget("image_button_xbox");
178 desc.SetText("#dlc_open_store_Xbox");
179 #endif
180 #ifdef PLATFORM_PC
181 m_GamepadStoreImage = m_Root.FindAnyWidget("image_button_xbox");
182 desc.SetText("#dlc_open_store");
183 #endif
184 }
Widget m_GamepadStoreImage
Definition MainMenuPromo.c:13

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

Используется в Init().

◆ SetPopulation()

void SetPopulation ( int population,
int slots )
private

◆ SetPopulationEx()

void SetPopulationEx ( GetServersResultRow serverInfo)
inlineprivate
340 {
341 string popText = "";
342 int population = serverInfo.m_CurrentNumberPlayers;
343 int maxPlayers = serverInfo.m_MaxPlayers;
344 int playersInQueue = serverInfo.m_PlayersInQueue;
345
346 if (IsOnline())
347 {
348 // sometimes servers report a queue size even though server isn't full,
349 // in which case we ignore queue size
351 {
352 popText = population.ToString() + "+" + playersInQueue.ToString() + "/" + maxPlayers.ToString();
353 }
354 else
355 {
356 popText = population.ToString() + "/" + maxPlayers.ToString();
357 }
358 }
359
360 else
361 {
362 popText = "-";
363 }
364
366 }

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

Используется в Darken(), FillInfo() и Lighten().

◆ SetPosition() [1/2]

void SetPosition ( vector pos)
inlineprotected
88 {
89 m_Position = pos;
90 }

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

◆ SetPosition() [2/2]

void SetPosition ( vector position)
inlineprotected
47 {
50 {
51 m_FollowedObject.SetPosition( position );
52 m_Position = m_FollowedObject.GetPosition();
53 }
54 UpdatePos();
55 }
void UpdatePos()
Function updating the position of the tracker widget.
Definition CTObjectFollower.c:90

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

◆ SetProgress()

void SetProgress ( float progress)
inlineprivate
141 {
142 if(m_Radial)
143 m_Radial.SetProgress(progress);
144 }

Используется в Update().

◆ SetRadioFrequency()

void SetRadioFrequency ( string freq,
string itemWidget,
string upWidget,
string downWidget,
bool enabled )
inlineprotected
599 {
601
602 widget = m_Root.FindAnyWidget(itemWidget);
603
604 if (enabled)
605 {
608 Class.CastTo(txtUpWidget, widget.FindAnyWidget(upWidget));
609 Class.CastTo(txtDownWidget, widget.FindAnyWidget(downWidget));
610
611 txtUpWidget.SetText(freq);
612 txtDownWidget.SetText("MHz");
613 widget.Show(true);
614 }
615 else
616 widget.Show(false);
617 }

Перекрестные ссылки Class::CastTo() и m_Root.

Используется в BuildCursor().

◆ SetRotation()

void SetRotation ( vector dir)
inlineprotected
58 {
59 m_Orientation = dir;
61 if( player )
62 {
63 player.SetOrientation( m_Orientation );
64 }
65 UpdatePos();
66 }

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

◆ SetServerDesc()

void SetServerDesc ( string desc)
inlineprotected
293 {
294 m_ServerDesc.SetText(desc);
295 m_ServerDesc.Update();
296 }

Используется в SetDetails().

◆ SetServerIP()

void SetServerIP ( string ip)
inlineprotected
191 {
192 m_ServerIP.SetText(ip);
193 }

Используется в SetDetails().

◆ SetServerMap()

void SetServerMap ( GetServersResultRow serverInfo)
inlineprotected
299 {
301 m_MapImage.LoadImageFile(0, mapImagePath);
302 m_DetailsContainerRight.Show(true);
303 }
static string GetServerMapImagePath(string mapName)
Definition BiosLobbyService.c:101

Перекрестные ссылки ServerBrowserHelperFunctions::GetServerMapImagePath().

◆ SetServerMapName()

void SetServerMapName ( )
inlineprivate
576 {
577 string displayValue = "-";
578
579 if (IsOnline())
580 {
582 }
583
584 m_ServerMap.SetText(displayValue);
585 }
static string GetMapDisplayName(string mapName)
Definition BiosLobbyService.c:66

Перекрестные ссылки ServerBrowserHelperFunctions::GetMapDisplayName() и IsOnline().

Используется в FillInfo().

◆ SetShard()

void SetShard ( int shard)
inlineprivate
440 {
441 string text;
442 switch (shard)
443 {
444 case 0:
445 {
446 text = "#server_browser_entry_private";
447 break;
448 }
449 case 1:
450 {
451 text = "#server_browser_entry_official";
452 break;
453 }
454 }
455 m_ServerShard.SetText(text);
456 }

Используется в FillInfo().

◆ SetSingleXboxIcon()

void SetSingleXboxIcon ( string imageset_name,
string image_name )
inlineprotected
67{};

◆ SetSize()

void SetSize ( float x,
float y )
inlineprivate
108 {
110 }

Перекрестные ссылки x и y.

◆ SetSlots()

void SetSlots ( int slots)
inlineprivate
369 {
370 if (IsOnline())
371 {
372 m_ServerSlots.SetText(slots.ToString());
373 }
374 else
375 {
376 m_ServerSlots.SetText("-");
377 }
378 }

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

Используется в FillInfo().

◆ SetTarget()

void SetTarget ( Object obj)
inlineprotected
27 {
28 m_TargetObject = obj;
29 }

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

◆ SetText()

void SetText ( string text)
inlineprotected
109 {
110 m_Text.SetText( text );
111 }

Используется в DropdownPrefab().

◆ SetTime()

void SetTime ( string time,
float multiplier )
inlineprivate
409 {
410 if (time != "")
411 {
413
414 time.Split(":", arr);
415
416 if (arr.Count() == 2)
417 {
418 int hour = arr.Get(0).ToInt();
419 int minute = arr.Get(1).ToInt();
420
421 if (hour >= 19 || hour <= 5) //Night
422 {
423 if (multiplier > 1)
424 m_ServerTime.SetImage(3);
425 else
426 m_ServerTime.SetImage(2);
427 }
428 else //Day
429 {
430 if (multiplier > 1)
431 m_ServerTime.SetImage(1);
432 else
433 m_ServerTime.SetImage(0);
434 }
435 }
436 }
437 }

◆ SetTimeAcceleration()

void SetTimeAcceleration ( float timeMul,
float nightTimeMul )
inlineprotected
219 {
220 m_TimeAccelerationResult.SetText(timeMul.ToString() + "/" + nightTimeMul.ToString());
221 }

◆ SetTimeBefore()

void SetTimeBefore ( float time)
inlineprotected
108 {
111 }

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

◆ SetTimeIcon()

void SetTimeIcon ( string time,
float multiplier )
inlineprotected
224 {
225 if (time != "")
226 {
228 time.Split(":", arr);
229
230 if (arr.Count() == 2)
231 {
232 int hour = arr.Get(0).ToInt();
233 int minute = arr.Get(1).ToInt();
234
235 if (hour >= 19 || hour <= 5) //Night
236 {
237 if (multiplier > 1)
238 m_TimeIcon.SetImage(3);
239 else
240 m_TimeIcon.SetImage(2);
241 }
242 else //Day
243 {
244 if (multiplier > 1)
245 m_TimeIcon.SetImage(1);
246 else
247 m_TimeIcon.SetImage(0);
248 }
249
250 m_TimeIcon.Show(true);
251 m_TimeAccelerationResult.Show(false);
252 }
253 }
254 else
255 {
256 m_TimeIcon.Show(false);
257 m_TimeAccelerationResult.Show(true);
258 m_TimeAccelerationResult.SetText("-");
259 }
260 }

Используется в SetDetails().

◆ SetToDefaults() [1/4]

void SetToDefaults ( )
inlineprotected
442 {
444 m_Mouse_InvertSelector.SetValue( m_Mouse_InvertOption.GetDefaultIndex(), true );
446 m_Mouse_VSensitivitySelector.SetValue( m_Mouse_VSensitivityOption.GetDefault(), true );
448 m_Mouse_HSensitivitySelector.SetValue( m_Mouse_HSensitivityOption.GetDefault(), true );
453
454 #ifdef PLATFORM_CONSOLE
456 m_KeyboardSelector.SetValue( m_KeyboardOption.GetDefaultIndex(), true );
458 m_AimHelperSelector.SetValue( m_AimHelperOption.GetDefaultIndex(), true );
459
467 m_ControllerRS_InvertSelector.SetValue( m_ControllerRS_InvertOption.GetDefaultIndex(), true );
484
485 Focus();
486 #endif
487
488 }

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

◆ SetToDefaults() [2/4]

void SetToDefaults ( )
inlineprotected
311 {
312 g_Game.ResetProfileOptions();
313
315 m_ShowHUDSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.HUD), false);
316
318 {
319 m_HUDBrightnessSelector.SetValue(g_Game.GetProfileOptionDefaultFloat(EDayZProfilesOptions.HUD_BRIGHTNESS), false);
320 g_Game.SetHudBrightness(m_HUDBrightnessSelector.GetValue());
321 }
322
324 m_ShowCrosshairSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.CROSSHAIR), false);
325
327 m_ShowHUDVehicleSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.HUD_VEHICLE), false);
328
329 if (m_FOVOption)
330 {
331 m_FOVOption.WriteValue(m_FOVOption.GetDefault());
332 m_FOVSelector.SetValue(m_FOVOption.ReadValue(), false);
333 g_Game.SetUserFOV(m_FOVOption.GetDefault());
334 }
336 m_ShowGameSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.GAME_MESSAGES), false);
338 m_ShowAdminSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.ADMIN_MESSAGES), false);
340 m_ShowPlayerSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.PLAYER_MESSAGES), false);
342 m_BleedingIndication.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.BLEEDINGINDICATION), false);
344 m_ConnectivityInfo.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.CONNECTIVITY_INFO), false);
345
346 #ifdef PLATFORM_CONSOLE
348 {
349 m_BrightnessOption.WriteValue(m_BrightnessOption.GetDefault());
350 m_BrightnessSelector.SetValue(m_BrightnessOption.GetDefault(), false);
351 }
352 #else
354 m_ShowQuickbarSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.QUICKBAR), false);
356 m_ShowServerInfoSelector.SetValue(g_Game.GetProfileOptionDefaultBool(EDayZProfilesOptions.SERVERINFO_DISPLAY), false);
357 if (m_PauseOption)
358 {
359 m_PauseOption.SetIndex(m_PauseOption.GetDefaultIndex());
360 m_PauseSelector.SetValue(m_PauseOption.GetIndex(), false);
361 }
362 #endif
363 }

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

◆ SetToDefaults() [3/4]

void SetToDefaults ( )
inlineprivate
309 {
310 if (m_MasterOption)
311 {
312 m_MasterSelector.SetValue(m_MasterOption.GetDefault(), true);
313 }
314 if (m_EffectsOption)
315 {
316 m_EffectsSelector.SetValue(m_EffectsOption.GetDefault(), true);
317 }
318 if (m_VOIPOption)
319 {
320 m_VOIPSelector.SetValue(m_VOIPOption.GetDefault(), true);
321 }
323 {
324 m_VOIPThresholdSelector.SetValue(m_VOIPThresholdOption.GetDefault(), true);
325 }
326 if (m_MusicOption)
327 {
328 m_MusicSelector.SetValue(m_MusicOption.GetDefault(), true);
329 }
331 {
332 m_InputModeOption.SetIndex(m_InputModeOption.GetDefaultIndex());
333 m_InputModeSelector.SetValue( m_InputModeOption.GetIndex(), false );
334 }
335
337 m_AmbientMusicSelector.SetValue(g_Game.GetProfileOptionDefaultInt(EDayZProfilesOptions.AMBIENT_MUSIC_MODE), false);
338 }

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

◆ SetToDefaults() [4/4]

void SetToDefaults ( )
inlineprotected
284 {
285 #ifdef PLATFORM_CONSOLE
286 #ifdef PLATFORM_PS4
287 m_FlipModeSelector.SetValue( m_FlipModeOption.GetDefaultIndex(), false );
288 #endif
289 #else
290 m_DisplayModeSelector.SetValue( m_DisplayModeOption.GetDefaultIndex(), false );
291 m_ResolutionSelector.SetValue( m_ResolutionOption.GetDefaultIndex(), false );
292 m_BrightnessSelector.SetValue( m_BrightnessOption.GetDefault(), false );
293 m_VSyncSelector.SetValue( m_VSyncOption.GetDefaultIndex(), false );
294 int idx = m_OverallQualityOption.GetDefaultIndex();
295 m_OverallQualitySelector.SetValue( m_OverallQualityOption.GetDefaultIndex(), true );
296 #endif
297
299 //DefaultValuesToCustom();
300 }

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

◆ SetType()

void SetType ( string shardId)
inlineprotected
151 {
152 string result = "#server_browser_tab_community";
153 if (shardId.Length() == 3 && shardId.ToInt() < 200)
154 result = "#server_browser_entry_official";
155
156 m_ServerTypeResult.SetText(result);
157 }

Используется в SetDetails().

◆ SetValue()

void SetValue ( )
inlineprivate
56 {
57 int state;
59
61 {
64 }
65 }
void SetButtonStates(int index)
Definition ProfileOptionsUI.c:76

Перекрестные ссылки Class::CastTo().

◆ SetVersion()

void SetVersion ( string version)
inlineprotected
288 {
289 m_VersionResult.SetText(version);
290 }

◆ SetWeaponModeAndZeroing()

void SetWeaponModeAndZeroing ( string itemWidget,
string upWidget,
string downWidget,
bool enabled )
inlineprotected
566 {
568
569 widget = m_Root.FindAnyWidget(itemWidget);
570
571 if (enabled && m_Player)
572 {
575
576 Class.CastTo(txtModeWidget, widget.FindAnyWidget(upWidget));
578
579 Weapon w = Weapon.Cast(m_Player.GetHumanInventory().GetEntityInHands());
580 string zeroing = string.Empty;
581 if (w)
582 zeroing = string.Format("%1 m", w.GetCurrentZeroing(w.GetCurrentMuzzle()));
583
584 txtModeWidget.SetText(m_Player.GetWeaponManager().GetCurrentModeName());
585 txtZeroingWidget.SetText(zeroing);
586 widget.Show(true);
587 }
588 else
589 widget.Show(false);
590 }
script counterpart to engine's class Weapon
Definition InventoryItem.c:49

Перекрестные ссылки Class::CastTo(), WeaponManager::GetCurrentModeName(), DayZPlayer::GetWeaponManager(), m_Player и m_Root.

Используется в BuildCursor().

◆ SetWeaponQuantity()

void SetWeaponQuantity ( int chamber,
int mag,
string itemWidget,
string quantityPBWidget,
string quantityTextWidget,
bool enabled )
inlineprotected
476 {
478
479 widget = m_Root.FindAnyWidget(itemWidget);
480
481 if (enabled)
482 {
483 string wpn_qty = "";
484
489
492 int mag_quantity = -1;
493
495 {
496 if (Magnum_Base.Cast(wpn))
497 {
498 mag_quantity = 0;
499 for (int j = 0; j < wpn.GetMuzzleCount(); j++)
500 {
501 if (wpn.IsChamberFull(j)&& !wpn.IsChamberFiredOut(j))
502 mag_quantity++;
503 }
504 wpn_qty = mag_quantity.ToString();
505 }
506 else
507 {
508 for (int i = 0; i < wpn.GetMuzzleCount(); i++)
509 {
510 if (i > 0 && (wpn.GetMuzzleCount() < 3 || i%2 == 0))
511 {
512 wpn_qty = wpn_qty + " ";
513 }
514 if (wpn.IsChamberEmpty(i))
515 {
516 wpn_qty = wpn_qty + "0";
517 }
518 else if (wpn.IsChamberFiredOut(i))
519 {
520 wpn_qty = wpn_qty + "F";
521 }
522 else
523 {
524 wpn_qty = wpn_qty + "1";
525 }
526
527 maga = wpn.GetMagazine(i);
528 if (maga)
529 {
530 mag_quantity = maga.GetAmmoCount();
531 }
532 else if (wpn.GetInternalMagazineMaxCartridgeCount(i) > 0)
533 {
534 mag_quantity = wpn.GetInternalMagazineCartridgeCount(i);
535 }
536
537 }
538
539 if (wpn.IsJammed())
540 {
541 if (mag_quantity != -1)
542 wpn_qty = string.Format("X (+%1)", mag_quantity);
543 else
544 wpn_qty = "X";
545 }
546 else
547 {
548 if (mag_quantity != -1)
549 {
550 wpn_qty = wpn_qty + " (" + mag_quantity.ToString() + ")";
551 }
552 }
553 }
554 }
555
556 progressBar.Show(false);
557 textWidget.SetText(wpn_qty);
558 textWidget.Show(true);
559 textWidget.GetParent().Show(true);
560 }
561 else
562 widget.Show(false);
563 }
Definition Magnum.c:363
shorthand
Definition BoltActionRifle_Base.c:6

Перекрестные ссылки Class::CastTo() и m_Root.

Используется в BuildCursor().

◆ SetXboxIcon()

void SetXboxIcon ( string name,
string imageset_name,
string image_name )
inlineprotected
69{};

◆ Show() [1/4]

void Show ( )
inlineprotected
118 {
119 m_FollowerRoot.Show( true );
120 }

◆ Show() [2/4]

void Show ( bool show)
inlineprotected
99 {
100 m_Root.Show(show);
101 }

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

◆ Show() [3/4]

void Show ( bool show)
inlineprotected
37 {
38 m_Root.Show(show);
39 }

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

◆ Show() [4/4]

void Show ( int x,
int y )
inlineprivate
42 {
43 if ( m_count == 0) return;
44 int screen_w, screen_h;
45 float w, h;
46 float sx, sy;
47 int offset_x;// = -20;
48 int offset_y;// = -10;
49
51
52 // align buttons
53 float button_height_percent = 0.02; // button height is 4% of screen height
55
56 for ( int i = 0; i < m_count; i++)
57 {
58 ButtonWidget menu_button = ButtonWidget.Cast( m_context_menu_root_widget.FindAnyWidget( String( "Button" + (i+1).ToString() ) ) );
59 if (menu_button)
60 {
61 menu_button.SetSize(0.90, button_height);
62 menu_button.Show(true);
63 }
64 }
65
66
69 if ( spacer )
70 {
71 spacer.Update();
72 }
73
77
78 // set position
79 m_context_menu_root_widget.GetScreenSize(w,h);
80 screen_w -= 10;
81 screen_h -= 10;
82
83 int right_edge = x + w - offset_x;
84 if (right_edge > screen_w)
85 {
86 x = screen_w - w - offset_x;
87 }
88 else
89 {
90 x = x + offset_x;
91 }
92
93 int bottom_edge = y + h - offset_y;
95 {
96 y = y - h - offset_y;
97 }
98 else
99 {
100 y = y + offset_y;
101 }
102
105 }
Definition AutoHeightSpacer.c:3

Перекрестные ссылки GetScreenSize(), m_count, String(), ToString(), x и y.

◆ ShowActionMenu()

void ShowActionMenu ( InventoryItem item)
inlineprotected
42 {
47 ContextMenu cmenu = ContextMenu.Cast(GetGame().GetUIManager().GetMenu().GetContextMenu());
48
49 cmenu.Hide();
50 cmenu.Clear();
51
52 if (m_am_entity1 == null)
53 return;
54
57 itemBase.GetDebugActions(customActions);
58
59 if (ItemBase.GetDebugActionsMask() & DebugActionType.PLAYER_AGENTS)
60 {
61 m_player.GetDebugActions(customActions);
62 }
63
64 int actionsCount = customActions.Count();
65 for (int i = 0; i < customActions.Count(); i++)
66 {
68 if (actionInfo)
69 {
70 int actionId = actionInfo.param2;
71 int textColor = actionInfo.param4;
72 string actionText = actionInfo.param3;
73
74 if (actionId == EActions.SEPARATOR)
75 cmenu.AddEx(actionText, textColor, this, "", null);
76 else
77 cmenu.AddEx(actionText, textColor, this, "OnSelectActionEx", new Param3<EntityAI, int, int>(itemBase, actionId, textColor));
78 }
79 }
80
83 actionMenuPosX -= 5;
84 actionMenuPosY -= 5;
86 }
override ContextMenu GetContextMenu()
Definition InventoryMenu.c:80
DebugActionType
Definition PluginDiagMenu.c:7
EntityAI m_am_entity1
Definition LayoutHolder.c:13
EntityAI m_am_entity2
Definition LayoutHolder.c:13
proto void GetMousePos(out int x, out int y)

Перекрестные ссылки GetContextMenu(), GetGame(), GetMousePos(), GetPlayer() и m_player.

◆ ShowBackdrop()

void ShowBackdrop ( bool show)
inlineprivate
114 {
115 if (show == true)
116 {
117 m_context_menu_root_widget.FindAnyWidget("BackdropImageWidget").Show(true);
118 }
119 else
120 {
121 m_context_menu_root_widget.FindAnyWidget("BackdropImageWidget").Show(false);
122 }
123 }

◆ ShowInfoPanel()

void ShowInfoPanel ( bool show)
inlineprotected
74 {
75 m_Root.Show(show);
77 }
void OnPanelVisibilityChanged()
Definition MainMenuPromo.c:84

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

◆ ShowNewsfeed()

void ShowNewsfeed ( )
inlineprotected
43 {
44 //m_Root.Show( true );
45 m_MainText1.SetText( "#layout_mainmenu_newsfeed_sgz_title_1" );
46 m_MainText1.Update();
47 m_MainText2.SetText( "#layout_mainmenu_newsfeed_sgz_title_2" );
48 m_MainText2.Update();
49 m_MainText3.SetText( "#layout_mainmenu_newsfeed_sgz_title_3" );
50 m_MainText3.Update();
51 m_SecText1.SetText( "#layout_mainmenu_newsfeed_sgz_text_1" );
52 m_SecText1.Update();
53 m_SecText2.SetText( "#layout_mainmenu_newsfeed_sgz_text_2" );
54 m_SecText2.Update();
55 m_SecText3.SetText( "#layout_mainmenu_newsfeed_sgz_text_3" );
56 m_SecText3.Update();
57 }

Используется в MainMenuNewsfeed().

◆ ShowNextPage()

void ShowNextPage ( )
inlineprotected
193 {
194 // Update the page index
195 if ( m_PageIndex < m_ContentList.Count() - 1 )
196 {
197 m_PageIndex++;
198 }
199 else
200 {
201 m_PageIndex = 0;
202 }
203
204 //Update the hint page
206 }

Перекрестные ссылки m_ContentList, m_PageIndex и PopulateLayout().

Используется в OnClick() и SlideshowThread().

◆ ShowPreviousPage()

void ShowPreviousPage ( )
inlineprotected
209 {
210 // Update the page index
211 if ( m_PageIndex == 0 )
212 {
213 m_PageIndex = m_ContentList.Count() - 1;
214 }
215 else
216 {
217 m_PageIndex--;
218
219 }
220 //Update the hint page
222 }

Перекрестные ссылки m_ContentList, m_PageIndex и PopulateLayout().

Используется в OnClick().

◆ ShowRandomPage()

void ShowRandomPage ( )
inlineprotected
165 {
168 }

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

◆ ShowStats()

void ShowStats ( )
inlineprivate
45 {
46 m_Root.Show(true);
48 }
void UpdateStats()
Definition MainMenuStats.c:55

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

◆ ShowTooltip() [1/2]

void ShowTooltip ( )
inlineprotected
153 {
154 if ( m_Tooltip )
155 m_Tooltip.ShowTooltip( m_TooltipMod );
156 }

◆ ShowTooltip() [2/2]

void ShowTooltip ( ModInfo mod_ref)
inlineprotected
18 {
19 m_Root.Show(true);
20 m_Text.SetText(mod_ref.GetTooltip());
21
22 int x, y;
24 m_Root.SetPos(x, y);
25
26 m_Text.Update();
27 m_Root.Update();
28 }

Перекрестные ссылки GetMousePos(), m_Root, x и y.

◆ ShowXboxHidePCIcons()

void ShowXboxHidePCIcons ( string widget,
bool show_xbox_icon )
inlineprotected
79 {
80 m_Root.FindAnyWidget(widget + "_btn_icon_xbox").Show(show_xbox_icon);
81 m_Root.FindAnyWidget(widget + "_btn_icon").Show(!show_xbox_icon);
82 }

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

Используется в UpdatePCIconsVisibility().

◆ SlideshowThread()

void SlideshowThread ( )
inlineprotected
234 {
235 ShowNextPage();
236 }

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

◆ StartEnteringAlternateKeybind() [1/3]

void StartEnteringAlternateKeybind ( )
inlineprotected
220 {
221 m_Group.StartEnteringAlternateKeybind( m_ElementIndex );
222 m_AlternativeBindButton.SetText( "#layout_keybinding_new_keybind" );
223 }

◆ StartEnteringAlternateKeybind() [2/3]

void StartEnteringAlternateKeybind ( )
inlineprotected
218 {
219 m_Container.StartEnteringAlternateKeybind( m_ElementIndex );
220 m_AlternativeBindButton.SetText( "#layout_keybinding_new_keybind" );
221 }

◆ StartEnteringAlternateKeybind() [3/3]

void StartEnteringAlternateKeybind ( int key_index)
inlineprotected
150 {
153 m_Menu.StartEnteringAlternateKeybind( key_index );
154 }

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

◆ StartEnteringKeybind() [1/3]

void StartEnteringKeybind ( )
inlineprotected
209 {
210 m_Group.StartEnteringKeybind( m_ElementIndex );
211 m_PrimaryBindButton.SetText( "#layout_keybinding_new_keybind" );
212 }

◆ StartEnteringKeybind() [2/3]

void StartEnteringKeybind ( )
inlineprotected
207 {
208 m_Container.StartEnteringKeybind( m_ElementIndex );
209 m_PrimaryBindButton.SetText( "#layout_keybinding_new_keybind" );
210 }

◆ StartEnteringKeybind() [3/3]

void StartEnteringKeybind ( int key_index)
inlineprotected
134 {
137 m_Menu.StartEnteringKeybind( key_index );
138 }

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

◆ StartSlideshow()

void StartSlideshow ( )
inlineprotected
229 {
231 }
int m_SlideShowDelay
Definition UiHintPanel.c:12
void SlideshowThread()
Definition UiHintPanel.c:233

Перекрестные ссылки CALL_CATEGORY_GUI, m_Game, m_SlideShowDelay и SlideshowThread().

Используется в Init() и RestartSlideShow().

◆ StartVideo()

void StartVideo ( )
inlineprotected
116 {
117 if (LoadVideoFile())
118 m_VideoWidget.Play();
119 }
bool LoadVideoFile()
returns 'true' when video is loaded
Definition MainMenuPromo.c:103

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

◆ Stop()

void Stop ( )
inlineprotected
66 {
67 if( m_Callback )
68 {
69 m_Callback.Cancel();
71 }
72 PlayerBase player = m_Menu.GetActor( GetEventActor() );
73 if( player )
74 {
75 player.GetInputController().OverrideMovementSpeed( true, 0 );
76 }
77 }

Перекрестные ссылки GetEventActor(), m_Callback и m_Menu.

◆ StopSlideShow()

void StopSlideShow ( )
inlineprotected
239 {
240 m_Game.GetCallQueue(CALL_CATEGORY_GUI).Remove(SlideshowThread);
241 }

Перекрестные ссылки CALL_CATEGORY_GUI, m_Game и SlideshowThread().

Используется в OnMouseEnter(), RestartSlideShow() и ~UiHintPanel().

◆ StopVideo() [1/2]

void StopVideo ( )
inlineprotected
122 {
123 m_VideoWidget.Stop();
124 }

Используется в OnClick().

◆ StopVideo() [2/2]

void StopVideo ( )
inlineprotected
263 {
264 m_VideoWidget.Stop();
265 m_PlayButton.Show(true);
266 m_PauseButton.Show(false);
267 }

◆ TextMapUpdateWidget() [1/4]

bool TextMapUpdateWidget ( int key)
inlineprotected
338 {
339 bool connectivityInfoShown = key == OptionIDsScript.OPTION_CONNECTIVITY_INFO;
341 Param tmp = m_TextMap.Get(key);
342
345
346 if (Class.CastTo(p,tmp))
347 {
348 m_DetailsRoot.Show(true);
349 m_DetailsText.Show(true);
350 m_DetailsLabel.SetText(p.param1);
351 m_DetailsText.SetText(p.param2);
352
353 m_DetailsText.Update();
354 m_DetailsLabel.Update();
355 m_DetailsRoot.Update();
356 m_DetailsBodyConnectivity.Update(); //...
357 return true;
358 }
359 return false;
360 }
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12

Перекрестные ссылки Class::CastTo() и m_DetailsRoot.

Используется в OnFocus() и UpdateLanguageOption().

◆ TextMapUpdateWidget() [2/4]

bool TextMapUpdateWidget ( int key)
inlineprotected
559 {
560 bool connectivityInfoShown = key == OptionIDsScript.OPTION_CONNECTIVITY_INFO;
562 Param tmp = m_TextMap.Get(key);
563
566
567 if (Class.CastTo(p,tmp))
568 {
569 m_DetailsRoot.Show(true);
570 m_DetailsText.Show(true);
571 m_DetailsLabel.SetText(p.param1);
572 m_DetailsText.SetText(p.param2);
573
574 m_DetailsText.Update();
575 m_DetailsLabel.Update();
576 m_DetailsRoot.Update();
577 m_DetailsBodyConnectivity.Update(); //...
578 return true;
579 }
580 return false;
581 }

Перекрестные ссылки Class::CastTo() и m_DetailsRoot.

◆ TextMapUpdateWidget() [3/4]

bool TextMapUpdateWidget ( int key)
inlineprivate
201 {
202 bool connectivityInfoShown = key == OptionIDsScript.OPTION_CONNECTIVITY_INFO;
204 Param tmp = m_TextMap.Get(key);
205
208
209 if (Class.CastTo(p,tmp))
210 {
211 m_DetailsRoot.Show(true);
212 m_DetailsText.Show(true);
213 m_DetailsLabel.SetText(p.param1);
214 m_DetailsText.SetText(p.param2);
215
216 m_DetailsText.Update();
217 m_DetailsLabel.Update();
218 m_DetailsRoot.Update();
219 m_DetailsBodyConnectivity.Update(); //...
220 return true;
221 }
222 return false;
223 }

Перекрестные ссылки Class::CastTo() и m_DetailsRoot.

◆ TextMapUpdateWidget() [4/4]

bool TextMapUpdateWidget ( int key)
inlineprotected
609 {
610 bool connectivityInfoShown = key == OptionIDsScript.OPTION_CONNECTIVITY_INFO;
612 Param tmp = m_TextMap.Get(key);
613
616
617 if (Class.CastTo(p,tmp))
618 {
619 m_DetailsRoot.Show(true);
620 m_DetailsText.Show(true);
621 m_DetailsLabel.SetText(p.param1);
622 m_DetailsText.SetText(p.param2);
623
624 m_DetailsText.Update();
625 m_DetailsLabel.Update();
626 m_DetailsRoot.Update();
627 m_DetailsBodyConnectivity.Update(); //...
628 return true;
629 }
630 return false;
631 }

Перекрестные ссылки Class::CastTo() и m_DetailsRoot.

◆ ToggleDependentOptions() [1/4]

void ToggleDependentOptions ( int mode,
bool state )
inlineprotected
661 {
662 }

◆ ToggleDependentOptions() [2/4]

void ToggleDependentOptions ( int mode,
bool state )
inlineprotected
391 {
392 }

◆ ToggleDependentOptions() [3/4]

void ToggleDependentOptions ( int mode,
bool state )
inlineprivate
360 {
361 }

◆ ToggleDependentOptions() [4/4]

void ToggleDependentOptions ( int mode,
bool state )
inlineprotected
343 {
344 }

◆ ToggleExpand()

bool ToggleExpand ( )
inlineprivate
640 {
641 return SetExpand(!m_IsExpanded);
642 }

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

◆ ToggleFavorite()

bool ToggleFavorite ( )
inlineprivate
616 {
618 string ip = m_ServerData.GetIP();
619#ifdef PLATFORM_WINDOWS
620 //Save Data PC
621 m_Tab.GetRootMenu().AddFavorite(ip, m_ServerData.m_SteamQueryPort, m_IsFavorited);
622
623 #ifdef PLATFORM_CONSOLE
625 #else
627 #endif
628#else
629 //Save Data Console
630 m_IsFavorited = m_Tab.GetRootMenu().SetFavoriteConsoles(ip, m_ServerData.m_HostPort, m_IsFavorited);
631#endif
632
633 m_Root.FindAnyWidget("unfavorite_image").Show(!m_IsFavorited);
634 m_Root.FindAnyWidget("favorite_image").Show(m_IsFavorited);
635
636 return m_IsFavorited;
637 }
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)
Definition OnlineServices.c:119

Перекрестные ссылки m_IsFavorited, m_Root и OnlineServices::SetServerFavorited().

Используется в OnMouseButtonUp().

◆ ToggleMute() [1/2]

void ToggleMute ( )
inlineprotected
88 {
89 if( !IsLocalPlayer() && !GetGame().GetWorld().IsDisabledReceivingVoN() )
90 {
91 m_Mute = !m_Mute;
93 {
95 m_MuteIcon.Show( m_Mute );
96 }
97 else
98 {
99 m_MuteIcon.Show( true );
100 }
101 }
102 else
103 {
104 m_MicrophoneIcon.Show( false );
105 m_MuteIcon.Show( false );
106 }
107 }
static bool MutePlayer(string id, bool mute)
Definition OnlineServices.c:366
Definition gameplay.c:121
proto static native bool CanStoreInputUserData()

Перекрестные ссылки ScriptInputUserData::CanStoreInputUserData(), GetGame(), IsLocalPlayer(), m_Mute и OnlineServices::MutePlayer().

Используется в OnMouseButtonUp().

◆ ToggleMute() [2/2]

void ToggleMute ( string UID)
inlineprotected
235 {
236 if ( m_Entries && m_Entries.Get( UID ) )
237 {
238 m_Entries.Get( UID ).ToggleMute();
239 }
240 }

Перекрестные ссылки m_Entries и UID.

◆ ToggleVideoSelection()

void ToggleVideoSelection ( )
inlineprotected
214 {
215 if (!m_LoadVideo.IsVisible())
216 {
218 }
219 else
220 {
221 Widget child = m_LoadVideo.GetChildren();
222
223 while (child)
224 {
225 Widget c = child;
226 child = child.GetSibling();
227 c.Unlink();
228 }
229 }
230
231 m_LoadVideo.Show(!m_LoadVideo.IsVisible());
232 }
void InitVideoLoading()
Definition VideoPlayer.c:74

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

Используется в OnClick().

◆ TutorialKeybinds()

void TutorialKeybinds ( Widget parent,
TutorialsMenu menu )
inlineprotected
9 {
10 m_Root = GetGame().GetWorkspace().CreateWidgets(GetLayoutName(), parent);
11
12 m_Menu = menu;
13
14 int actionCount;
15 int actionMax = 80;
16
17 int column_index = 0;
18 int item_index;
19 string output = "";
20 string option_text = "";
22 GetUApi().GetActiveInputs(actions);
23
24 actionCount = actions.Count();
25 for (int i = 0; i < actionCount; i++)
26 {
27 UAInput input = GetUApi().GetInputByID(actions.Get(i));
28 if (input)
29 {
31 {
32 output = "";
33 option_text = "";
34 GetGame().GetInput().GetActionDesc(actions.Get(i), option_text);
36 {
38 Widget w = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/tutorials/xbox/keybindings_panels/keybinding_panel.layout", m_Root.FindAnyWidget("container" + column_index));
39 Widget spacer = w.FindWidget("Spacer");
40 TextWidget name = TextWidget.Cast(w.FindWidget("KeybindName"));
41 TextWidget mod = TextWidget.Cast(spacer.FindWidget("KeybindModifier"));
42 TextWidget value = TextWidget.Cast(spacer.FindWidget("KeybindButton"));
43
44 string modifier_text = "";
45 name.SetText(option_text);
46 value.SetText(output);
47
49 {
50 mod.SetText(modifier_text);
51 }
52
53 name.Update();
54 mod.Update();
55 value.Update();
56 spacer.Update();
57
58 item_index++;
59 }
60 }
61 else
62 {
63 option_text = "";
64 GetGame().GetInput().GetActionDesc(actions[i], option_text);
65 ErrorEx("input action " + option_text + " index out of bounds!",ErrorExSeverity.INFO);
66 }
67 }
68 }
69
70 m_Root.SetHandler(this);
71 }
bool SetElementModifier(UAInput pInput, out string output)
Determine the active limiter of the bindings (currently unreliable, multiple limiters can be active o...
Definition ControlMappingKeybinds.c:126
static proto float Floor(float f)
Returns floor of value.

Перекрестные ссылки ErrorEx, Math::Floor(), GetGame(), GetLayoutName(), GetUApi(), m_Menu, m_Root, name, SetElementModifier() и SetElementTitle().

◆ UiHintPanel()

void UiHintPanel ( Widget parent_widget)
inlineprotected
36 {
37 DayZGame game = DayZGame.Cast(GetGame());
39 Init(game);
40 }

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

◆ UnloadVideo()

void UnloadVideo ( )
inlineprotected
132 {
133 m_VideoWidget.Stop();
134 m_VideoWidget.Unload();
135 }

◆ Unselect() [1/2]

void Unselect ( )
inlineprotected
132 {
133 m_Root.FindAnyWidget( "spacer" ).SetAlpha( 0.625 );
134 m_IndexWidget.SetColor( ARGBF( 1, 1, 1, 1 ) );
135 m_EventTypeWidget.SetColor( ARGBF( 1, 1, 1, 1 ) );
136 m_EventTypeWidget.SetColor( ARGBF( 1, 1, 1, 1 ) );
137 }

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

◆ Unselect() [2/2]

void Unselect ( )
inlineprotected
129 {
130 m_Root.FindAnyWidget( "spacer" ).SetAlpha( 0.625 );
131 m_IndexWidget.SetColor( ARGBF( 1, 1, 1, 1 ) );
132 m_InterpTimeWidget.SetColor( ARGBF( 1, 1, 1, 1 ) );
133 m_TotalTimeWidget.SetColor( ARGBF( 1, 1, 1, 1 ) );
134 }

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

◆ Update() [1/6]

void Update ( )
inlineprotected

don't show continuous action progressif it's disabled in profile OR soft-disabled by the '~' keyhold

57 {
59 Mission mission = GetGame().GetMission();
60 IngameHud hud;
61 if (mission && Class.CastTo(hud,mission.GetHud()) && (hud.IsHideHudPlayer() || !hud.GetHudState()))
62 {
63 m_Root.Show(false);
64 return;
65 }
66
67 if(m_Player && !m_Player.IsAlive()) // handle respawn
68 {
69 m_Player = null;
70 m_AM = null;
71 }
72 if(!m_Player) GetPlayer();
74
75 GetActions();
76
77 if(m_Action && m_Action.HasProgress() && m_ActionState != UA_NONE && GetGame().GetUIManager().GetMenu() == null)
78 {
80 {
81 m_Speed += 0.02;
82 m_LoaderImage.SetRotation(0, 0, m_Speed * Math.RAD2DEG);
83 m_LoaderImage.Show(true);
84 }
85 else
86 {
87 m_Speed = 0.0;
88 m_LoaderImage.SetRotation(0, 0, 0);
89 m_LoaderImage.Show(false);
90 }
91
93 {
94 m_InitProgress = 100;
95 m_LoaderImage.SetRotation(0, 0, 0);
96 SetProgress(Math.AbsFloat(m_AM.GetActionComponentProgress() * 100));
97 }
98 m_Root.Show(true);
99 }
100 else
101 {
102 m_Speed = 0.0;
103 m_Root.Show(false);
104 m_LoaderImage.Show(false);
105 SetProgress(0.0);
106 m_LoaderImage.SetRotation(0, 0, 0);
107 }
108 }
bool HasProgress()
For UI: hiding of progress bar.
Definition ActionBase.c:250
void GetActionManager()
Definition ContinuousActionProgress.c:116
void GetActions()
Definition ContinuousActionProgress.c:126
void SetProgress(float progress)
Definition ContinuousActionProgress.c:140
static proto float AbsFloat(float f)
Returns absolute value.
static const float RAD2DEG
Definition EnMath.c:16
const int UA_INITIALIZE
Definition constants.c:451
const int UA_NONE
Definition constants.c:439
const int UA_AM_PENDING
Definition constants.c:453
const int UA_PROCESSING
Definition constants.c:441

Перекрестные ссылки Math::AbsFloat(), Class::CastTo(), GetActionManager(), GetActions(), GetGame(), Mission::GetHud(), GetPlayer(), m_Action, m_AM, m_Player, m_Root, mission, Math::RAD2DEG, SetProgress(), UA_AM_PENDING, UA_INITIALIZE, UA_NONE и UA_PROCESSING.

Используется в MainMenuButtonEffect::MainMenuButtonEffect(), OnUpdate() и MainMenuButtonEffect::~MainMenuButtonEffect().

◆ Update() [2/6]

void Update ( )
inlineprotected

don't show when disabled in profile

183 {
185 if (!g_Game.GetProfileOption(EDayZProfilesOptions.HUD) || !m_Hud.IsHudVisible())
186 {
187 m_Root.Show(false);
188 return;
189 }
190
191 if (m_Player && !m_Player.IsAlive()) // handle respawn
192 {
193 m_Player = null;
194 m_AM = null;
195 }
196
197 if (!m_Player)
198 GetPlayer();
199
200 if (!m_AM)
202
203 GetActions();
205
206 if ((m_EntityInHands || !m_Hidden) && GetGame().GetUIManager().GetMenu() == null)
207 {
209 BuildCursor();
211 m_Root.Show(true);
212 }
213 else
214 m_Root.Show(false);
215
216 m_MaxWidthChild = 200;
217 }
float m_MaxWidthChild
widget width
Definition ItemActionsWidget.c:30
void BuildCursor()
Definition ItemActionsWidget.c:132
void CheckForActionWidgetOverrides()
Definition ItemActionsWidget.c:721
void CheckRefresherFlagVisibility()
Definition ItemActionsWidget.c:707
void GetEntityInHands()
Definition ItemActionsWidget.c:260

Перекрестные ссылки BuildCursor(), CheckForActionWidgetOverrides(), CheckRefresherFlagVisibility(), g_Game, GetActionManager(), GetActions(), GetEntityInHands(), GetGame(), GetPlayer(), Hud::IsHudVisible(), m_AM, m_Hud, m_Player и m_Root.

◆ Update() [3/6]

void Update ( )
inlineprotected
43 {
44 float x, y;
45
46 if(m_Visible)
47 {
49 {
51 }
52
53 m_Root.Show(true);
54 }
55 else
56 {
57 m_Root.Show(false);
58 }
59 }
void GetOnScreenPosition(out float x, out float y)
Definition ObjectFollower.c:61

Перекрестные ссылки GetOnScreenPosition(), m_Root, m_TargetObject, m_Visible, x и y.

◆ Update() [4/6]

void Update ( )
inlineprotected

Update.

35 {
36#ifdef DIAG_DEVELOPER
37 m_Debug = DiagMenu.GetBool( DiagMenuIDs.WEAPON_DEBUG );
38#endif
39 if (!m_Debug) return;
40 if (!m_Player) GetPlayer();
41
42 if ( m_Player && m_Player.IsPlayerSelected() && m_Player.IsRaised() && !m_Player.IsInIronsights() && !GetGame().IsInventoryOpen() )
43 {
44 float sx, sy;
45
47 vector screenSpace = GetGame().GetScreenPos(m_Position);
48
49 m_Root.GetSize(sx, sy);
50 screenSpace[0] = screenSpace[0] - sx/2;
51 screenSpace[1] = screenSpace[1] - sy/2;
52
53 m_Root.SetPos(screenSpace[0], screenSpace[1]);
54 m_Root.Show(m_Visible);
55 }
56 else
57 {
58 m_Root.Show(false);
60 }
61 }
DiagMenuIDs
Definition EDiagMenuIDs.c:2
void GetCrosshairPosition()
Definition ProjectedCrosshair.c:69
static const vector Zero
Definition EnConvert.c:110
static proto bool GetBool(int id, bool reverse=false)
Get value as bool from the given script id.

Перекрестные ссылки DiagMenu::GetBool(), GetCrosshairPosition(), GetGame(), GetPlayer(), DayZPlayer::IsInIronsights(), DayZPlayer::IsPlayerSelected(), DayZPlayer::IsRaised(), m_Player, m_Position, m_Root, m_Visible и vector::Zero.

◆ Update() [5/6]

void Update ( float timeslice)
inlineprotected
37 {
38 UpdatePos();
39 }

◆ Update() [6/6]

void Update ( float timeslice)
inlineprotected
260 {
262 {
264 if( ua_api.DeterminePressedButton() != 0 )
265 {
266 string name;
267 string text;
269
270 // remove previous backlit
271 GetDayZGame().GetBacklit().KeybindingClear();
272
273 for( int i = 0; i < ua_api.DeterminedCount(); ++i )
274 {
275 int kb_id = ua_api.GetDetermined( i );
276 new_keybinds.Insert( kb_id );
277
278 // light up specific key
279 GetDayZGame().GetBacklit().KeybindingShow(kb_id);
280 }
281
282 if( m_CurrentSettingKeyIndex != -1 )
283 {
284 m_Menu.ConfirmKeybindEntry( new_keybinds );
285 m_KeyWidgets.Get( m_CurrentSettingKeyIndex ).Reload( new_keybinds, false );
287 }
288 else if( m_CurrentSettingAlternateKeyIndex != -1 )
289 {
290 m_Menu.ConfirmAlternateKeybindEntry( new_keybinds );
293 }
294 }
295 }
296 }
DayZGame GetDayZGame()
Definition DayZGame.c:3817

Перекрестные ссылки GetDayZGame(), GetUApi(), m_Menu и name.

◆ UpdateAdminOption()

void UpdateAdminOption ( int new_index)
inlineprotected
464 {
465 m_Menu.OnChanged();
466 }

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

◆ UpdateAllPromotionInfo()

void UpdateAllPromotionInfo ( )
inlineprotected
188 {
192 }
void UpdateDlcData()
Definition MainMenuPromo.c:194

Перекрестные ссылки UpdateDlcData(), UpdateIconVisibility() и UpdateOwnedStatus().

Используется в Init() и OnPanelVisibilityChanged().

◆ UpdateAmbientSoundModeOption()

void UpdateAmbientSoundModeOption ( int value)
inlineprivate
398 {
399 m_Menu.OnChanged();
400 }

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

◆ UpdateAudioLevel()

void UpdateAudioLevel ( )
inlineprivate
409 {
410 m_VOIPThresholdSelector.SetSlider2Value(GetGame().GetSoundScene().GetAudioLevel());
411 }
proto native float GetAudioLevel()

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

◆ UpdateBleedingIndication()

void UpdateBleedingIndication ( int new_index)
inlineprotected
434 {
435 m_Menu.OnChanged();
436 }

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

◆ UpdateColors()

void UpdateColors ( )
inlineprivate
695 {
696 float alpha = 1;
697 int maxPlayers = m_ServerData.m_MaxPlayers;
698 int whiteColor = ARGBF(1, 1, 1, 1);
700 int populationOutline = 1;
701
702 if (IsOnline())
703 {
704 if (maxPlayers > 0)
705 {
706 int population = m_ServerData.m_CurrentNumberPlayers;
708
709 if (pop_percentage >= 1)
710 {
711 populationColor = ARGBF(1, 1, 0, 0);
712 }
713 else if (pop_percentage >= 0.8)
714 {
715 populationColor = ARGBF(1, 1, 0.5, 0);
716 }
717 }
718 }
719 else
720 {
721 alpha = 0.5;
723
724 m_ServerPing.SetColor(whiteColor);
725 }
726
727 m_ServerTime.Show(IsOnline());
728 m_ServerName.SetColor(whiteColor);
729 m_ServerName.SetAlpha(alpha);
730 m_ServerPopulation.SetBold(IsOnline());
733 m_ServerPopulation.SetAlpha(alpha);
734 m_ServerSlots.SetAlpha(alpha);
735 m_ServerPing.SetAlpha(alpha);
736 m_Root.SetAlpha(alpha);
737 }

Перекрестные ссылки ARGBF(), IsOnline() и m_Root.

Используется в Darken(), Lighten() и Preview().

◆ UpdateConnectivityInfo()

void UpdateConnectivityInfo ( int newIndex)
inlineprotected
439 {
440 m_Menu.OnChanged();
441 }

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

◆ UpdateControllerInputIcons()

void UpdateControllerInputIcons ( )
inlineprivate

Loads icons from the latest keybinds.

111 {
112 SetControllerIcon("ia_interact", "UAAction");
113 SetControllerIcon("ia_continuous_interact", "UAAction");
114 SetControllerIcon("ia_single", "UADefaultAction");
115 SetControllerIcon("ia_continuous", "UADefaultAction");
116 }
void SetControllerIcon(string pWidgetName, string pInputName)
Definition ItemActionsWidget.c:72

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

Используется в OnInputPresetChanged() и OnWidgetScriptInit().

◆ UpdateControlsElements()

void UpdateControlsElements ( )
inlineprotected
459 {
460 Widget xbControls = m_Root.FindAnyWidget("ConsoleControls");
461 if (xbControls)
462 {
463 xbControls.Show(m_TabsCount > 1);
464
465 RichTextWidget toolbar_lb = RichTextWidget.Cast(xbControls.FindAnyWidget("TabLeftControl"));
466 RichTextWidget toolbar_rb = RichTextWidget.Cast(xbControls.FindAnyWidget("TabRightControl"));
467 if (toolbar_lb)
468 {
470 }
471
472 if (toolbar_rb)
473 {
475 }
476 }
477 }
static const float ICON_SCALE_TOOLBAR
Definition InputUtils.c:15

Перекрестные ссылки InputUtils::GetRichtextButtonIconFromInputAction(), InputUtils::ICON_SCALE_TOOLBAR и m_Root.

Используется в ConsoleToolbarWidgetHandlerBase::OnInputDeviceChanged() и ConsoleToolbarWidgetHandlerBase::OnWidgetScriptInit().

◆ UpdateCrosshairOption()

void UpdateCrosshairOption ( int new_index)
inlineprotected
444 {
445 m_Menu.OnChanged();
446 }

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

◆ UpdateCurrentTime()

void UpdateCurrentTime ( )
inlineprivate
105 {
106 int time = m_VideoWidget.GetTime();
108
109 m_Progress.SetCurrent(time);
110 }
void UpdateTime(TextWidget widget, int time)
Definition VideoPlayer.c:125

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

Используется в OnPlaybackStop().

◆ UpdateDlcData()

void UpdateDlcData ( )
inlineprotected
195 {
196 m_TitleTextDlc.SetText(m_DlcInfo.HeaderText);
197 m_DescriptionTextDlc.SetText(m_DlcInfo.DescriptionText);
198 }

Используется в UpdateAllPromotionInfo().

◆ UpdateEffects()

void UpdateEffects ( float value)
inlineprivate
374 {
375 m_EffectsOption.WriteValue(value);
376 m_Menu.OnChanged();
377 }

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

◆ UpdateEntry()

void UpdateEntry ( )
inlineprotected
315 {
316 if (m_ServerData.m_IsSelected)
317 {
318 Darken(m_Root, 0, 0);
319 Select();
321 }
322 else
323 {
324 Lighten(m_Root, null, 0, 0);
325 Deselect();
326 }
327 }

Перекрестные ссылки Darken(), Deselect(), Lighten(), m_Root, Select() и SetFocus().

◆ UpdateFOVOption()

void UpdateFOVOption ( float new_value)
inlineprotected
416 {
417 m_FOVOption.WriteValue(new_value);
418 g_Game.SetUserFOV(new_value);
419 m_Menu.OnChanged();
420 }

Перекрестные ссылки g_Game и m_Menu.

◆ UpdateGameOption()

void UpdateGameOption ( int new_index)
inlineprotected
459 {
460 m_Menu.OnChanged();
461 }

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

◆ UpdateHUDBrightnessOption()

void UpdateHUDBrightnessOption ( float newValue)
inlineprotected
423 {
424 g_Game.SetHudBrightness(newValue);
425 m_Menu.OnChanged();
426 }

Перекрестные ссылки g_Game и m_Menu.

◆ UpdateHUDOption()

void UpdateHUDOption ( int new_index)
inlineprotected
429 {
430 m_Menu.OnChanged();
431 }

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

◆ UpdateHUDVehicleOption()

void UpdateHUDVehicleOption ( int new_index)
inlineprotected
454 {
455 m_Menu.OnChanged();
456 }

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

◆ UpdateIconVisibility()

void UpdateIconVisibility ( )
inlineprotected
201 {
202 #ifdef PLATFORM_CONSOLE
203 m_GamepadStoreImage.Show(!GetGame().GetInput().IsEnabledMouseAndKeyboard() || GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER);
204 #endif
205 }

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

Используется в OnInputDeviceChanged() и UpdateAllPromotionInfo().

◆ UpdateInputMode()

void UpdateInputMode ( int newIndex)
inlineprivate
403 {
404 m_InputModeOption.SetIndex(newIndex);
405 m_Menu.OnChanged();
406 }

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

◆ UpdateInterval()

void UpdateInterval ( )
protected

◆ UpdateItems()

void UpdateItems ( TItemsMap items,
bool show_quantity,
bool show_temperature )
inlineprivate
469 {
470 int i;
471 int c;
472 int index;
473 int width;
474 int height;
475 int row;
476 int col;
478 vector data;
479 Widget bck;
481
482 // remove not actual items
483 c = m_Items.Count();
484 for (i = 0; i < c; i++)
485 {
486 item = m_Items.GetKey(i);
487
488 bool remove_item = false;
489
490 if (items.Contains(item) == false)
491 {
492 remove_item = true;
493 }
494 else
495 {
496 // check items position actual
497 if ((m_Items.Get(item) - items.Get(item)).LengthSq() > 0.01)
498 {
499 // item has different position or size
500 remove_item = true;
501 }
502 }
503
504 if (remove_item)
505 {
507 c--;
508 i--;
509 }
510 }
511
512 // add new items
513 for (i = 0; i < items.Count(); i++)
514 {
515 item = items.GetKey(i);
516 data = items.Get(item);
517
518 if (m_Items.Contains(item) == false)
519 {
520 AddItem(item, data, Vector(0,0,0) );
521 }
522 }
523
524 // add new items
525 for (i = 0; i < items.Count(); i++)
526 {
527 item = items.GetKey(i);
528 data = items.Get(item);
529 // refresh quantity
531 }
532 }
void RemoveItem(InventoryItem item)
Definition InventoryGrid.c:750
void AddItem(InventoryItem item, vector data, vector rotation)
Definition InventoryGrid.c:650

Перекрестные ссылки AddItem(), RefreshItemVariables(), RemoveItem() и Vector().

◆ UpdateLanguageOption()

void UpdateLanguageOption ( int new_index)
inlineprotected
402 {
403 m_LanguageOption.SetIndex(new_index);
404 m_Menu.OnChanged();
405
406 TextMapUpdateWidget(OptionAccessType.AT_OPTIONS_LANGUAGE);
407 }

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

◆ UpdateMaster()

void UpdateMaster ( float value)
inlineprivate
368 {
369 m_MasterOption.WriteValue(value);
370 m_Menu.OnChanged();
371 }

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

◆ UpdateMouseAimModHSensitivity()

void UpdateMouseAimModHSensitivity ( float value)
inlineprotected
617 {
619 m_Menu.OnChanged();
620 }

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

◆ UpdateMouseAimModVSensitivity()

void UpdateMouseAimModVSensitivity ( float value)
inlineprotected
611 {
613 m_Menu.OnChanged();
614 }

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

◆ UpdateMouseHSensitivity()

void UpdateMouseHSensitivity ( float value)
inlineprotected
605 {
606 m_Mouse_HSensitivityOption.WriteValue( value );
607 m_Menu.OnChanged();
608 }

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

◆ UpdateMouseInvertView()

void UpdateMouseInvertView ( int index)
inlineprotected
590 {
591 if ( m_Mouse_InvertOption.GetIndex() != index )
592 {
593 m_Mouse_InvertOption.Switch();
594 m_Menu.OnChanged();
595 }
596 }

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

◆ UpdateMouseVSensitivity()

void UpdateMouseVSensitivity ( float value)
inlineprotected
599 {
600 m_Mouse_VSensitivityOption.WriteValue( value );
601 m_Menu.OnChanged();
602 }

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

◆ UpdateMusic()

void UpdateMusic ( float value)
inlineprivate
392 {
393 m_MusicOption.WriteValue(value);
394 m_Menu.OnChanged();
395 }

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

◆ UpdateOwnedStatus()

void UpdateOwnedStatus ( )
inlineprotected
148 {
149 if (m_ThisModInfo)
150 {
151 if (m_ThisModInfo.GetIsOwned())
152 {
154 m_BannerHandler.SetBannerText(TEXT_OWNED);
155 }
156 else
157 {
158 m_BannerHandler.SetBannerColor(Colors.COLOR_DAYZ_RED);
159 m_BannerHandler.SetBannerText(TEXT_UNOWNED);
160 }
161 }
162 }
const int COLOR_DAYZ_RED
Definition Colors.c:51
const int COLOR_FROSTLINE_MOUNTAIN_BLUE
Definition Colors.c:65
const string TEXT_OWNED
Definition MainMenuPromo.c:4
const string TEXT_UNOWNED
Definition MainMenuPromo.c:5

Перекрестные ссылки Colors::COLOR_DAYZ_RED и Colors::COLOR_FROSTLINE_MOUNTAIN_BLUE.

Используется в OnDLCChange() и UpdateAllPromotionInfo().

◆ UpdatePauseOption()

void UpdatePauseOption ( int new_index)
inlineprotected
410 {
411 m_PauseOption.SetIndex(new_index);
412 m_Menu.OnChanged();
413 }

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

◆ UpdatePCIconsVisibility()

void UpdatePCIconsVisibility ( )
inlineprivate

Contains logic for icon set switching (Gamepad/M&K)

120 {
121 bool showConsoleIcons = false;
122 #ifdef PLATFORM_CONSOLE
123 showConsoleIcons = GetGame().GetInput().GetCurrentInputDevice() == EInputDeviceType.CONTROLLER || !GetGame().GetInput().IsEnabledMouseAndKeyboardEvenOnServer();
124 #endif
125
127 ShowXboxHidePCIcons("ia_continuous_interact", showConsoleIcons);
129 ShowXboxHidePCIcons("ia_continuous", showConsoleIcons);
130 }
void ShowXboxHidePCIcons(string widget, bool show_xbox_icon)
Definition ItemActionsWidget.c:78

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

Используется в OnInputDeviceChanged() и OnWidgetScriptInit().

◆ UpdatePlayerOption()

void UpdatePlayerOption ( int new_index)
inlineprotected
469 {
470 m_Menu.OnChanged();
471 }

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

◆ UpdatePos()

void UpdatePos ( )
inlineprotected

Function updating the position of the tracker widget.

Currently tracks using GetScreenPos() on the position of the player.

91 {
93
94 relativePos = GetGame().GetScreenPosRelative( GetPosition() );
95
96 if( relativePos[0] >= 1 || relativePos[0] == 0 || relativePos[1] >= 1 || relativePos[1] == 0 )
97 {
98 m_FollowerRoot.Show( false );
99 return;
100 }
101 else if( relativePos[2] < 0 )
102 {
103 m_FollowerRoot.Show( false );
104 return;
105 }
106 else
107 {
108 m_FollowerRoot.Show( true );
109 }
110
111 float x, y;
112 m_FollowerRoot.GetSize( x, y );
113
114 m_FollowerRoot.SetPos( relativePos[0], relativePos[1] );
115 }
vector GetPosition()
Definition CTKeyframe.c:97

Перекрестные ссылки GetGame(), GetPosition, x и y.

◆ UpdateQuantityItems()

void UpdateQuantityItems ( )
inlineprivate
536 {
537 int i;
538 int index;
540 vector data;
541 for (i = 0; i < m_Items.Count(); i++)
542 {
543 item = m_Items.GetKey(i);
544 data = m_Items.Get(item);
545 index = Math.Round(data[0]);
546 RefreshItemVariables( item, data, true, false );
547 }
548 }

Перекрестные ссылки RefreshItemVariables() и Math::Round().

◆ UpdateQuickbarItems()

void UpdateQuickbarItems ( TItemsMap items)
inlineprivate
397 {
398 int i;
399 int c;
400 int index;
401 int width;
402 int height;
403 int row;
404 int col;
406 vector data;
407 Widget bck;
409
410 // remove not actual items
411 c = m_Items.Count();
412 for (i = 0; i < c; i++)
413 {
414 item = m_Items.GetKey(i);
415 if( item != NULL )
416 {
417 bool remove_item = false;
418
419 if (items.Contains(item) == false)
420 {
421 remove_item = true;
422 }
423 else
424 {
425 // check items position actual
426 if ((m_Items.Get(item) - items.Get(item)).LengthSq() > 0.01)
427 {
428 // item has different position or size
429 remove_item = true;
430 }
431 }
432
433 if (remove_item)
434 {
436 c--;
437 i--;
438 }
439 }
440 }
441
442 // add new items
443 for (i = 0; i < items.Count(); i++)
444 {
445 item = items.GetKey(i);
446 data = items.Get(item);
447
448 if (m_Items.Contains(item) == false)
449 {
450 AddItem(item, data, Vector(0,0,0) );
451 }
452 }
453
454 // cache if entity in hands can be added to inventory
456
457 // refresh quickbar
458 for (i = 0; i < items.Count(); i++)
459 {
460 item = items.GetKey(i);
461 data = items.Get(item);
463 }
464 }
override bool CanAddItemInHandToInventory()
Definition InventoryQuickbar.c:283
void RefreshQuickbarItemVariables(InventoryItem item, vector data)
Definition InventoryGrid.c:567

Перекрестные ссылки AddItem(), InventoryGridController::CanAddItemInHandToInventory(), RefreshQuickbarItemVariables(), RemoveItem() и Vector().

◆ UpdateQuickbarOption()

void UpdateQuickbarOption ( int new_index)
inlineprotected
449 {
450 m_Menu.OnChanged();
451 }

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

◆ UpdateSelectionIcons()

void UpdateSelectionIcons ( )
inlineprotected
220 {}

◆ UpdateServerInfoOption()

void UpdateServerInfoOption ( int new_index)
inlineprotected
474 {
475 m_Menu.OnChanged();
476 }

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

◆ UpdateStats()

void UpdateStats ( )
inlineprivate
56 {
59
60 if (missionMainMenu && missionMainMenu.GetIntroScenePC())
61 {
62 #ifdef PLATFORM_WINDOWS
63 player = missionMainMenu.GetIntroScenePC().GetIntroCharacter().GetCharacterObj();
64 #endif
65 #ifdef PLATFORM_CONSOLE
66 player = missionMainMenu.GetIntroScenePC().GetIntroCharacter().GetCharacterObj();
67 #endif
68
69 if (player)
70 {
72 m_TimeSurvivedValue.SetText(m_TimeSurvivedFull.FormatedNonZero());
73
78 }
79 }
80 }
Definition AnalyticsManagerServer.c:2
const string STAT_INFECTED_KILLED
Definition AnalyticsManagerServer.c:6
const string STAT_DISTANCE
Definition AnalyticsManagerServer.c:3
const string STAT_PLAYERS_KILLED
Definition AnalyticsManagerServer.c:5
const string STAT_PLAYTIME
Definition AnalyticsManagerServer.c:4
const string STAT_LONGEST_SURVIVOR_HIT
Definition AnalyticsManagerServer.c:7
string GetDistanceString(float total_distance, bool meters_only=false)
Definition MainMenuStats.c:82

Перекрестные ссылки GetDistanceString(), GetGame(), GetValueString(), AnalyticsManagerServer::STAT_DISTANCE, AnalyticsManagerServer::STAT_INFECTED_KILLED, AnalyticsManagerServer::STAT_LONGEST_SURVIVOR_HIT, AnalyticsManagerServer::STAT_PLAYERS_KILLED и AnalyticsManagerServer::STAT_PLAYTIME.

Используется в ShowStats().

◆ UpdateTemperatureItems()

void UpdateTemperatureItems ( )
inlineprivate
552 {
553 int i;
554 int index;
556 vector data;
557 for (i = 0; i < m_Items.Count(); i++)
558 {
559 item = m_Items.GetKey(i);
560 data = m_Items.Get(item);
561 index = Math.Round(data[0]);
562 RefreshItemVariables( item, data, false, true );
563 }
564 }

Перекрестные ссылки RefreshItemVariables() и Math::Round().

◆ UpdateTime()

void UpdateTime ( TextWidget widget,
int time )
inlineprivate
126 {
128 TimeConversions.ConvertSecondsToFullTime(time / 1000, timeData);
129 widget.SetText(timeData.FormatedAsTimestamp());
130 }

Используется в UpdateCurrentTime() и UpdateTotalTime().

◆ UpdateTotalTime()

void UpdateTotalTime ( )
inlineprivate
114 {
115 int time = m_VideoWidget.GetTotalTime();
116
117 if (time != 0)
118 {
120 m_Progress.SetMinMax(0, time);
121 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Remove(UpdateTotalTime);
122 }
123 }

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

◆ UpdateVOIP()

void UpdateVOIP ( float value)
inlineprivate
380 {
381 m_VOIPOption.WriteValue(value);
382 m_Menu.OnChanged();
383 }

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

◆ UpdateVOIPThreshold()

void UpdateVOIPThreshold ( float value)
inlineprivate
386 {
387 m_VOIPThresholdOption.WriteValue(value);
388 m_Menu.OnChanged();
389 }

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

◆ UpdateWasMicCapturing()

void UpdateWasMicCapturing ( )
inlineprivate
251 {
252 // if user is in party chat, then mic should not capture
253 if (GetGame().IsInPartyChat())
254 {
255 m_WasMicCapturing = false;
256 }
257
258 // otherwise, mic should capture ONLY if Voice Activation is enabled
259 else
260 {
261 m_WasMicCapturing = m_MissionGameplay.IsVoNActive();
262 }
263 }

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

Используется в OnPartyChatChangedEvent() и OnVonStateEvent().

◆ VideoPlayer()

void VideoPlayer ( Widget parent)
inlineprotected
25 {
26 m_Root = GetGame().GetWorkspace().CreateWidgets("gui/layouts/new_ui/video_player.layout", parent);
27 m_Root.SetHandler(this);
28 m_Root.SetSort(333);
29 Init();
30 }

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

◆ WeaponModeTextTemp()

string WeaponModeTextTemp ( )
inlineprotected
594 {
595 return "unused";
596 }

Поля

◆ HUD_BRIGHTNESS_MAX

const float HUD_BRIGHTNESS_MAX = 0.0
private

◆ HUD_BRIGHTNESS_MIN

const float HUD_BRIGHTNESS_MIN = -1.0
private

◆ ITEM_COLOR_DRAG

int ITEM_COLOR_DRAG = 0x0AFFFFFF
staticprivate

◆ ITEM_COLOR_NORMAL

int ITEM_COLOR_NORMAL = 0x0AFFFFFF
staticprivate

◆ ITEM_COLOR_QUICKBAR_H_BAD

int ITEM_COLOR_QUICKBAR_H_BAD = 0x2A980d0d
staticprivate

◆ ITEM_COLOR_QUICKBAR_H_GOOD

int ITEM_COLOR_QUICKBAR_H_GOOD = 0x2A6e980d
staticprivate

◆ ITEM_COLOR_QUICKBAR_I_BAD

int ITEM_COLOR_QUICKBAR_I_BAD = 0x2A986e0d
staticprivate

◆ ITEM_COLOR_QUICKBAR_NORMAL

int ITEM_COLOR_QUICKBAR_NORMAL = 0x0AFFFFFF
staticprivate

◆ ITEMS_COUNT

const int ITEMS_COUNT = 27
private

◆ m_AcceleratedTimeFilter

ref OptionSelector m_AcceleratedTimeFilter
protected

◆ m_Action

ActionBase m_Action
protected

◆ m_ActionPurchase

RichTextWidget m_ActionPurchase
protected

◆ m_ActionState

int m_ActionState
protected

◆ m_ActionWebsite

RichTextWidget m_ActionWebsite
protected

◆ m_ActorIndex

int m_ActorIndex
protected

◆ m_AimHelperOption

ref SwitchOptionsAccess m_AimHelperOption
protected

◆ m_AimHelperSelector

ref OptionSelectorMultistate m_AimHelperSelector
protected

◆ m_AlternativeBindButton

ButtonWidget m_AlternativeBindButton
protected

◆ m_AlternativeClear

Widget m_AlternativeClear
protected

◆ m_AM [1/2]

ActionManagerBase m_AM
protected

◆ m_AM [2/2]

ActionManagerClient m_AM
protected

◆ m_am_entity1

EntityAI m_am_entity1
protected

◆ m_am_entity2

EntityAI m_am_entity2
protected

◆ m_AmbientMusicSelector

ref OptionSelectorMultistate m_AmbientMusicSelector
protected

◆ m_AOOption

ref ListOptionsAccess m_AOOption
protected

◆ m_AOSelector

ref OptionSelectorMultistate m_AOSelector
protected

◆ m_ATOCOption

ref ListOptionsAccess m_ATOCOption
protected

◆ m_ATOCSelector

ref OptionSelectorMultistate m_ATOCSelector
protected

◆ m_AttemptOptionChange

ref ScriptInvoker m_AttemptOptionChange = new ScriptInvoker
protected

◆ m_AudioLevelTimer

ref Timer m_AudioLevelTimer
protected

◆ m_Author

MultilineTextWidget m_Author
protected

◆ m_Background

Widget m_Background
protected

◆ m_BackgroundWidgets

ref map<int, Widget> m_BackgroundWidgets
protected

◆ m_BannerBody

Widget m_BannerBody
protected

◆ m_BannerFrame

Widget m_BannerFrame
protected

◆ m_BannerHandler

ref BannerHandlerBase m_BannerHandler
protected

◆ m_BannerText

TextWidget m_BannerText
protected

◆ m_BannerWedge

Widget m_BannerWedge
protected

◆ m_BattleyeFilter

ref OptionSelector m_BattleyeFilter
protected

◆ m_BattleyeResult

TextWidget m_BattleyeResult
protected

◆ m_BleedingIndication

ref OptionSelectorMultistate m_BleedingIndication
protected

◆ m_BrightnessOption

ref NumericOptionsAccess m_BrightnessOption
protected

◆ m_BrightnessSelector

ref OptionSelectorSlider m_BrightnessSelector
protected

◆ m_BtnShowFilters

ButtonWidget m_BtnShowFilters
protected

◆ m_Buffering

ImageWidget m_Buffering
protected

◆ m_builtIn

bool m_builtIn = false
private

◆ m_Button

Widget m_Button
protected

◆ m_Callback

HumanCommandActionCallback m_Callback
protected

◆ m_CanAddItemInHandToInventory

bool m_CanAddItemInHandToInventory
protected

Используется в CanAddItemInHandToInventory().

◆ m_CanSwitch

bool m_CanSwitch
protected

◆ m_CharacterAliveFilter

ref OptionSelectorMultistate m_CharacterAliveFilter
protected

◆ m_Child

Widget m_Child
protected

◆ m_ChildName

reference string m_ChildName
private

◆ m_CloseButton

Widget m_CloseButton
protected

◆ m_col

int m_col
private

◆ m_ColorBackgroundOriginal

int m_ColorBackgroundOriginal
protected

◆ m_commands

ref array<ref CallQueueContext> m_commands
private

◆ m_ConnectivityInfo

ref OptionSelectorMultistate m_ConnectivityInfo
protected

◆ m_Container

KeybindingsContainer m_Container
protected

◆ m_Content [1/2]

Widget m_Content
protected

◆ m_Content [2/2]

ref array<Widget> m_Content = new array<Widget>
protected

◆ m_ContentContainer

Widget m_ContentContainer
protected

◆ m_ContentList

ref array<ref HintPage> m_ContentList
protected

◆ m_context_menu_panel_widget

Widget m_context_menu_panel_widget
private

◆ m_context_menu_root_widget

Widget m_context_menu_root_widget
protected

Используется в ~ContextMenu().

◆ m_ContextMenuInstance

ref ContextMenu m_ContextMenuInstance
staticprotected

◆ m_Continuous

ActionBase m_Continuous
protected

◆ m_ContinuousInteract

ActionBase m_ContinuousInteract
protected

◆ m_ContinuousInteractActionsNum

int m_ContinuousInteractActionsNum
protected

◆ m_ContinuousItemActionsNum

int m_ContinuousItemActionsNum
protected

◆ m_Controller

InventoryGridController m_Controller
protected

Используется в GetController().

◆ m_ControllerLS_DeadZoneOption

ref NumericOptionsAccess m_ControllerLS_DeadZoneOption
protected

◆ m_ControllerLS_DeadZoneSelector

ref OptionSelectorSlider m_ControllerLS_DeadZoneSelector
protected

◆ m_ControllerLS_HSensitivityOption

ref NumericOptionsAccess m_ControllerLS_HSensitivityOption
protected

◆ m_ControllerLS_HSensitivitySelector

ref OptionSelectorSlider m_ControllerLS_HSensitivitySelector
protected

◆ m_ControllerLS_VehicleMod_HSensitivityOption

ref NumericOptionsAccess m_ControllerLS_VehicleMod_HSensitivityOption
protected

◆ m_ControllerLS_VehicleMod_HSensitivitySelector

ref OptionSelectorSlider m_ControllerLS_VehicleMod_HSensitivitySelector
protected

◆ m_ControllerLS_VSensitivityOption

ref NumericOptionsAccess m_ControllerLS_VSensitivityOption
protected

◆ m_ControllerLS_VSensitivitySelector

ref OptionSelectorSlider m_ControllerLS_VSensitivitySelector
protected

◆ m_ControllerRS_AimMod_CurvatureOption

ref NumericOptionsAccess m_ControllerRS_AimMod_CurvatureOption
protected

◆ m_ControllerRS_AimMod_CurvatureSelector

ref OptionSelectorSlider m_ControllerRS_AimMod_CurvatureSelector
protected

◆ m_ControllerRS_AimMod_HSensitivityOption

ref NumericOptionsAccess m_ControllerRS_AimMod_HSensitivityOption
protected

◆ m_ControllerRS_AimMod_HSensitivitySelector

ref OptionSelectorSlider m_ControllerRS_AimMod_HSensitivitySelector
protected

◆ m_ControllerRS_AimMod_VSensitivityOption

ref NumericOptionsAccess m_ControllerRS_AimMod_VSensitivityOption
protected

◆ m_ControllerRS_AimMod_VSensitivitySelector

ref OptionSelectorSlider m_ControllerRS_AimMod_VSensitivitySelector
protected

◆ m_ControllerRS_CurvatureOption

ref NumericOptionsAccess m_ControllerRS_CurvatureOption
protected

◆ m_ControllerRS_CurvatureSelector

ref OptionSelectorSlider m_ControllerRS_CurvatureSelector
protected

◆ m_ControllerRS_DeadZoneOption

ref NumericOptionsAccess m_ControllerRS_DeadZoneOption
protected

◆ m_ControllerRS_DeadZoneSelector

ref OptionSelectorSlider m_ControllerRS_DeadZoneSelector
protected

◆ m_ControllerRS_HSensitivityOption

ref NumericOptionsAccess m_ControllerRS_HSensitivityOption
protected

◆ m_ControllerRS_HSensitivitySelector

ref OptionSelectorSlider m_ControllerRS_HSensitivitySelector
protected

◆ m_ControllerRS_InvertOption

ref SwitchOptionsAccess m_ControllerRS_InvertOption
protected

◆ m_ControllerRS_InvertSelector

ref OptionSelectorMultistate m_ControllerRS_InvertSelector
protected

◆ m_ControllerRS_VSensitivityOption

ref NumericOptionsAccess m_ControllerRS_VSensitivityOption
protected

◆ m_ControllerRS_VSensitivitySelector

ref OptionSelectorSlider m_ControllerRS_VSensitivitySelector
protected

◆ m_count

int m_count
private

Используется в Show().

◆ m_CurrentSettingAlternateKeyIndex

int m_CurrentSettingAlternateKeyIndex = -1
protected

◆ m_CurrentSettingKeyIndex

int m_CurrentSettingKeyIndex = -1
protected

◆ m_CurrentTime

TextWidget m_CurrentTime
protected

◆ m_CustomAlternateBind

ref array< int > m_CustomAlternateBind
protected

Используется в GetChangedAlternateBinds().

◆ m_CustomBind

ref array< int > m_CustomBind
protected

Используется в GetChangedBinds().

◆ m_Data [1/3]

ModInfo m_Data
protected

◆ m_Data [2/3]

ModInfo m_Data
protected

◆ m_Data [3/3]

ref map<ModInfo, ref ModsMenuSimpleEntry> m_Data
protected

◆ m_DataPath

const string m_DataPath = "scripts/data/hints.json"
protected

◆ m_DayZForum

Widget m_DayZForum
protected

◆ m_Debug

bool m_Debug
protected

◆ m_Description

RichTextWidget m_Description
protected

◆ m_DescriptionTextDlc

MultilineTextWidget m_DescriptionTextDlc
protected

◆ m_Detail

Widget m_Detail
protected

◆ m_DetailedInfo

Widget m_DetailedInfo
protected

◆ m_DetailMenu

ModsMenuDetailed m_DetailMenu
protected

◆ m_DetailsBodyConnectivity

Widget m_DetailsBodyConnectivity
protected

◆ m_DetailsBodyDefault

Widget m_DetailsBodyDefault
protected

◆ m_DetailsContainerRight

WrapSpacerWidget m_DetailsContainerRight
protected

◆ m_DetailsLabel

TextWidget m_DetailsLabel
protected

◆ m_DetailsRoot

Widget m_DetailsRoot
protected

◆ m_DetailsText

RichTextWidget m_DetailsText
protected

◆ m_Discord

Widget m_Discord
protected

◆ m_DisplayModeOption

ref ListOptionsAccess m_DisplayModeOption
protected

◆ m_DisplayModeSelector

ref OptionSelectorMultistate m_DisplayModeSelector
protected

◆ m_DistanceTraveled

Widget m_DistanceTraveled
protected

◆ m_DistanceTraveledValue

TextWidget m_DistanceTraveledValue
protected

◆ m_DLCFilter

ref OptionSelector m_DLCFilter
protected

◆ m_DlcInfo

ref JsonDataDLCInfo m_DlcInfo
protected

◆ m_DlcPromotionImage

ImageWidget m_DlcPromotionImage
protected

◆ m_DLDLC

Widget m_DLDLC
protected

◆ m_DOFWidget

EditBoxWidget m_DOFWidget
protected

◆ m_EffectsOption

ref NumericOptionsAccess m_EffectsOption
protected

◆ m_EffectsSelector

ref OptionSelectorSlider m_EffectsSelector
protected

◆ m_ElementIndex

int m_ElementIndex
protected

◆ m_ElementModifier

TextWidget m_ElementModifier
protected

◆ m_ElementName

TextWidget m_ElementName
protected

◆ m_Enabled

bool m_Enabled
protected

◆ m_EntityInHands

EntityAI m_EntityInHands
protected

◆ m_Entries

Используется в FindEntryByWidget(), FindPlayerByWidget(), Reload() и Reload().

◆ m_EntryTimer

ref Timer m_EntryTimer = new Timer( CALL_CATEGORY_GUI )
protected

◆ m_EventActorWidget

EditBoxWidget m_EventActorWidget
protected

◆ m_EventTime

float m_EventTime
protected

Используется в GetEventTime().

◆ m_EventTimeWidget

EditBoxWidget m_EventTimeWidget
protected

◆ m_EventType

int m_EventType
protected

◆ m_EventTypeWidget

EditBoxWidget m_EventTypeWidget
protected

◆ m_EventWalkWidget

CheckBoxWidget m_EventWalkWidget
protected

◆ m_Faded

bool m_Faded
protected

◆ m_FadeTimer

ref WidgetFadeTimer m_FadeTimer
protected

◆ m_Favorite

Widget m_Favorite
protected

Используется в Darken(), OnMouseButtonUp() и Preview().

◆ m_FavoritedFilter

ref OptionSelector m_FavoritedFilter
protected

◆ m_Feedback

Widget m_Feedback
protected

◆ m_FirstExpand

bool m_FirstExpand = true
protected

◆ m_FirstInit

bool m_FirstInit = true
protected

◆ m_FollowedObject

EntityAI m_FollowedObject
protected

◆ m_FollowerButton

Widget m_FollowerButton
protected

◆ m_FollowerRoot

Widget m_FollowerRoot
protected

◆ m_FOVOption

ref NumericOptionsAccess m_FOVOption
protected

◆ m_FOVSelector

ref OptionSelectorSlider m_FOVSelector
protected

◆ m_FOVWidget

EditBoxWidget m_FOVWidget
protected

◆ m_FriendsPlayingFilter

ref OptionSelector m_FriendsPlayingFilter
protected

◆ m_FullServerFilter

ref OptionSelector m_FullServerFilter
protected

◆ m_Game

DayZGame m_Game
protected

◆ m_GamepadStoreImage

Widget m_GamepadStoreImage
protected

◆ m_GlobalMute

bool m_GlobalMute
protected

Используется в IsGloballyMuted().

◆ m_GridSize

int m_GridSize
protected

Используется в GetGridSize().

◆ m_Group

KeybindingsGroup m_Group
protected

◆ m_HasLogoOver

bool m_HasLogoOver
protected

◆ m_HealthEnabled

bool m_HealthEnabled
protected

◆ m_Hidden

bool m_Hidden
protected

◆ m_Highlighted

ModInfo m_Highlighted
protected

Используется в GetHighlighted().

◆ m_Holder

Widget m_Holder
protected

◆ m_HorizontalOffset

reference float m_HorizontalOffset
private

◆ m_Hover

Widget m_Hover
protected

◆ m_Hud

IngameHud m_Hud
protected

◆ m_HUDBrightnessSelector

ref OptionSelectorSlider m_HUDBrightnessSelector
protected

◆ m_HudDebug

HudDebug m_HudDebug
private

Используется в GetHudDebug().

◆ m_HWAAOption

ref ListOptionsAccess m_HWAAOption
protected

◆ m_HWAASelector

ref OptionSelectorMultistate m_HWAASelector
protected

◆ m_Icon

ImageWidget m_Icon
protected

◆ m_IconBig

ImageWidget m_IconBig
protected

◆ m_IconCollapse

ImageWidget m_IconCollapse
protected

◆ m_IconSmall

ImageWidget m_IconSmall
protected

◆ m_IgnoredBool

bool m_IgnoredBool
staticprotected

◆ m_ImageCollapse

ImageWidget m_ImageCollapse
protected

◆ m_ImageExpand

ImageWidget m_ImageExpand
protected

◆ m_ImmedUpdate

bool m_ImmedUpdate
protected

◆ m_Index

int m_Index
protected

◆ m_IndexWidget

TextWidget m_IndexWidget
protected

◆ m_InfectedKilled

Widget m_InfectedKilled
protected

◆ m_InfectedKilledValue

TextWidget m_InfectedKilledValue
protected

◆ m_Initialized

bool m_Initialized
protected

◆ m_InitProgress

float m_InitProgress
protected

◆ m_InitTimer

ref Timer m_InitTimer
protected

◆ m_InputModeOption

ref ListOptionsAccess m_InputModeOption
protected

◆ m_InputModeSelector

ref OptionSelectorMultistate m_InputModeSelector
protected

◆ m_Interact

ActionBase m_Interact
protected

◆ m_InteractActionsNum

int m_InteractActionsNum
protected

◆ m_InterpTime

float m_InterpTime
protected

Используется в GetInterpTime().

◆ m_InterpTimeWidget

EditBoxWidget m_InterpTimeWidget
protected

◆ m_IsActive

bool m_IsActive
protected

◆ m_IsAlternateEdited

bool m_IsAlternateEdited
protected

Используется в IsAlternateChanged().

◆ m_IsDebugOutput

reference bool m_IsDebugOutput
private

◆ m_IsEdited

bool m_IsEdited
protected

Используется в IsChanged().

◆ m_IsExpanded

bool m_IsExpanded
protected

Используется в Close(), OnMouseButtonDown() и SetExpand().

◆ m_IsFavorited

bool m_IsFavorited
protected

Используется в ToggleFavorite().

◆ m_IsMouseLeftDown

bool m_IsMouseLeftDown
protected

◆ m_IsOnline

bool m_IsOnline
protected

Используется в IsOnline().

◆ m_IsOpen

bool m_IsOpen
protected

◆ m_ItemActionsNum

int m_ItemActionsNum
protected

◆ m_ItemFrozen

bool m_ItemFrozen
protected

◆ m_ItemLeft

Widget m_ItemLeft
protected

◆ m_Items

ref TItemsMap m_Items
protected

Используется в GetItems().

◆ m_ItemWidgets

ref map<int, Widget> m_ItemWidgets
protected

◆ m_KBDropdown

ref DropdownPrefab m_KBDropdown
protected

◆ m_Keybindings

GridSpacerWidget m_Keybindings
protected

◆ m_KeyboardFilter

ref OptionSelector m_KeyboardFilter
protected

◆ m_KeyboardOption

ref SwitchOptionsAccess m_KeyboardOption
protected

◆ m_KeyboardSelector

ref OptionSelectorMultistate m_KeyboardSelector
protected

◆ m_KeyWidgets

ref map<int, ref KeybindingElement> m_KeyWidgets
protected

Используется в Apply(), IsChanged(), ReloadProfiles() и ResetEx().

◆ m_LanguageOption

ref ListOptionsAccess m_LanguageOption
protected

◆ m_LanguageSelector

ref OptionSelectorMultistate m_LanguageSelector
protected

◆ m_LastCharacterResult

TextWidget m_LastCharacterResult
protected

◆ m_LayoutName

string m_LayoutName
protected

◆ m_LoadButton

ButtonWidget m_LoadButton
protected

◆ m_LoaderImage

ImageWidget m_LoaderImage
protected

◆ m_LoadVideo

GridSpacerWidget m_LoadVideo
protected

◆ m_LongRangeShot

Widget m_LongRangeShot
protected

◆ m_LongRangeShotValue

TextWidget m_LongRangeShotValue
protected

◆ m_MainText1

TextWidget m_MainText1
protected

◆ m_MainText2

TextWidget m_MainText2
protected

◆ m_MainText3

TextWidget m_MainText3
protected

◆ m_MainWidget

Widget m_MainWidget
protected

◆ m_MapFilter

ref OptionSelectorMultistate m_MapFilter
protected

◆ m_MapImage

ImageWidget m_MapImage
protected

◆ m_MasterOption

ref NumericOptionsAccess m_MasterOption
protected

◆ m_MasterSelector

ref OptionSelectorSlider m_MasterSelector
protected

◆ m_max_item_width

int m_max_item_width
private

◆ m_MaxFade

float m_MaxFade
protected

◆ m_MaxWidthChild

float m_MaxWidthChild
protected

widget width

◆ m_Menu [1/5]

OptionsMenu m_Menu
protected

◆ m_Menu [2/5]

TutorialsMenu m_Menu
protected

◆ m_Menu [3/5]

KeybindingsMenu m_Menu
protected

◆ m_Menu [4/5]

UIScriptedMenu m_Menu
protected

◆ m_Menu [5/5]

OptionsMenu m_Menu
protected

◆ m_MicrophoneIcon

ImageWidget m_MicrophoneIcon
protected

◆ m_MinFade

float m_MinFade
protected

◆ m_MissionGameplay

MissionGameplay m_MissionGameplay
protected

◆ m_ModButton

ButtonWidget m_ModButton
protected

Используется в ~ModsMenuSimpleEntry().

◆ m_Mods

ref array<string> m_Mods
protected

◆ m_MoreButton

Widget m_MoreButton
protected

◆ m_MoreHighlight

Widget m_MoreHighlight
protected

◆ m_Mouse_AimMod_HSensitivityOption

ref NumericOptionsAccess m_Mouse_AimMod_HSensitivityOption
protected

◆ m_Mouse_AimMod_HSensitivitySelector

ref OptionSelectorSlider m_Mouse_AimMod_HSensitivitySelector
protected

◆ m_Mouse_AimMod_VSensitivityOption

ref NumericOptionsAccess m_Mouse_AimMod_VSensitivityOption
protected

◆ m_Mouse_AimMod_VSensitivitySelector

ref OptionSelectorSlider m_Mouse_AimMod_VSensitivitySelector
protected

◆ m_Mouse_HSensitivityOption

ref NumericOptionsAccess m_Mouse_HSensitivityOption
protected

◆ m_Mouse_HSensitivitySelector

ref OptionSelectorSlider m_Mouse_HSensitivitySelector
protected

◆ m_Mouse_InvertOption

ref SwitchOptionsAccess m_Mouse_InvertOption
protected

◆ m_Mouse_InvertSelector

ref OptionSelectorMultistate m_Mouse_InvertSelector
protected

◆ m_Mouse_VSensitivityOption

ref NumericOptionsAccess m_Mouse_VSensitivityOption
protected

◆ m_Mouse_VSensitivitySelector

ref OptionSelectorSlider m_Mouse_VSensitivitySelector
protected

◆ m_MusicOption

ref NumericOptionsAccess m_MusicOption
protected

◆ m_MusicSelector

ref OptionSelectorSlider m_MusicSelector
protected

◆ m_Mute

bool m_Mute
protected

Используется в IsMuted() и ToggleMute().

◆ m_MuteIcon

ImageWidget m_MuteIcon
protected

◆ m_Name [1/2]

string m_Name
protected

◆ m_Name [2/2]

TextWidget m_Name
protected

◆ m_ObjectDetailOption

ref ListOptionsAccess m_ObjectDetailOption
protected

◆ m_ObjectDetailSelector

ref OptionSelectorMultistate m_ObjectDetailSelector
protected

◆ m_ObjectVisibilityOption

ref ListOptionsAccess m_ObjectVisibilityOption
protected

◆ m_ObjectVisibilitySelector

ref OptionSelectorMultistate m_ObjectVisibilitySelector
protected

◆ m_on_drag_item

Widget m_on_drag_item
private

◆ m_OnAttemptTabSwitch

ref ScriptInvoker m_OnAttemptTabSwitch = new ScriptInvoker()
protected

◆ m_OnceButton

ButtonWidget m_OnceButton
protected

◆ m_OnSelectItem

ref ScriptInvoker m_OnSelectItem = new ScriptInvoker()
protected

◆ m_OnTabSwitch

ref ScriptInvoker m_OnTabSwitch = new ScriptInvoker()
protected

◆ m_OptionChanged

ref ScriptInvoker m_OptionChanged = new ScriptInvoker
protected

◆ m_OptionFocused

ref ScriptInvoker m_OptionFocused = new ScriptInvoker
protected

◆ m_Options [1/2]

GameOptions m_Options
protected

◆ m_Options [2/2]

ref map<string, string> m_Options = new map<string, string>
private

◆ m_OptionUnfocused

ref ScriptInvoker m_OptionUnfocused = new ScriptInvoker
protected

◆ m_Orientation

vector m_Orientation
protected

Используется в GetOrientation().

◆ m_OverallQualityOption

ref ListOptionsAccess m_OverallQualityOption
protected

◆ m_OverallQualitySelector

ref OptionSelectorMultistate m_OverallQualitySelector
protected

◆ m_Owner

PluginItemDiagnostic m_Owner
private

◆ m_PageIndex

int m_PageIndex = int.MIN
protected

Используется в RandomizePageIndex().

◆ m_Parent [1/2]

Widget m_Parent
protected

◆ m_Parent [2/2]

Widget m_Parent
protected

◆ m_ParentClass

ScriptedWidgetEventHandler m_ParentClass
protected

◆ m_ParentMenu [1/2]

ModsMenuDetailed m_ParentMenu
protected

◆ m_ParentMenu [2/2]

ModsMenuSimple m_ParentMenu
protected

◆ m_ParentWidget

Widget m_ParentWidget
protected

◆ m_PasswordFilter

ref OptionSelector m_PasswordFilter
protected

◆ m_PauseButton

ButtonWidget m_PauseButton
protected

◆ m_PauseOption

ref ListOptionsAccess m_PauseOption
protected

◆ m_PauseSelector

ref OptionSelectorMultistate m_PauseSelector
protected

◆ m_PingFilter

ref OptionSelectorMultistate m_PingFilter
protected

◆ m_PinWidget

EditBoxWidget m_PinWidget
protected

◆ m_PivotYOffset

reference int m_PivotYOffset
private

Используется в GetOnScreenPosition().

◆ m_PlayButton

ButtonWidget m_PlayButton
protected

◆ m_Player

PlayerBase m_Player
protected

◆ m_PlayerAvatar

ImageWidget m_PlayerAvatar
protected

◆ m_PlayerButton

ButtonWidget m_PlayerButton
protected

Используется в GetButtonWidget().

◆ m_PlayerName

TextWidget m_PlayerName
protected

◆ m_PlayersKilled

Widget m_PlayersKilled
protected

◆ m_PlayersKilledValue

TextWidget m_PlayersKilledValue
protected

◆ m_Position

vector m_Position
protected

Используется в GetPosition().

◆ m_PPAAOption

ref ListOptionsAccess m_PPAAOption
protected

◆ m_PPAASelector

ref OptionSelectorMultistate m_PPAASelector
protected

◆ m_pPluginInfectedDebug

PluginDayZInfectedDebug m_pPluginInfectedDebug
private

◆ m_PPQualityOption

ref ListOptionsAccess m_PPQualityOption
protected

◆ m_PPQualitySelector

ref OptionSelectorMultistate m_PPQualitySelector
protected

◆ m_PreviouslyPlayedFilter

ref OptionSelector m_PreviouslyPlayedFilter
protected

◆ m_PreviousRandomIndex

int m_PreviousRandomIndex = int.MIN
protected

◆ m_PrimaryBindButton

ButtonWidget m_PrimaryBindButton
protected

◆ m_PrimaryClear

Widget m_PrimaryClear
protected

◆ m_profileOption

int m_profileOption
private

◆ m_Progress

SliderWidget m_Progress
protected

◆ m_PublicFilter

ref OptionSelector m_PublicFilter
protected

◆ m_QuantityEnabled

bool m_QuantityEnabled
protected

◆ m_QuickbarButton

ButtonWidget m_QuickbarButton
protected

◆ m_Radial

ref RadialProgressBar m_Radial
protected

◆ m_RadialWidget

Widget m_RadialWidget
protected

◆ m_RefreshList

ButtonWidget m_RefreshList
protected

◆ m_RegionFilter

ref OptionSelectorMultistate m_RegionFilter
protected

◆ m_RepeatButton

ButtonWidget m_RepeatButton
protected

◆ m_ResizeHorizontal

reference bool m_ResizeHorizontal
private

◆ m_ResizeVertical

reference bool m_ResizeVertical
private

◆ m_ResolutionMultiplier

float m_ResolutionMultiplier
protected

◆ m_ResolutionOption

ref ListOptionsAccess m_ResolutionOption
protected

◆ m_ResolutionSelector

ref OptionSelectorMultistate m_ResolutionSelector
protected

◆ m_Root

◆ m_RootFrame

Widget m_RootFrame
protected

◆ m_RootHeight

float m_RootHeight
protected

◆ m_RootPath

string m_RootPath = "Gui/layouts/new_ui/hints/in_game_hints.layout"
protected

◆ m_RootWidget

Widget m_RootWidget
protected

◆ m_RootWidth

float m_RootWidth
protected

◆ m_Scroll

ScrollWidget m_Scroll
protected

◆ m_ScrollContainer

ScrollWidget m_ScrollContainer
protected

◆ m_Scroller

ScrollWidget m_Scroller
protected

◆ m_SearchByIP

EditBoxWidget m_SearchByIP
protected

◆ m_SearchByName

EditBoxWidget m_SearchByName
protected

◆ m_SecText1

TextWidget m_SecText1
protected

◆ m_SecText2

TextWidget m_SecText2
protected

◆ m_SecText3

TextWidget m_SecText3
protected

◆ m_Selected

bool m_Selected
protected

◆ m_SelectedEntry

PlayerListEntryScriptedWidget m_SelectedEntry
protected

Используется в GetSelectedPlayer().

◆ m_SelectedIndex

int m_SelectedIndex
protected

◆ m_SelectorType

int m_SelectorType = 0
protected

◆ m_ServerAcceleration

TextWidget m_ServerAcceleration
protected

◆ m_ServerBattleye

TextWidget m_ServerBattleye
protected

◆ m_ServerCharacterAlive

TextWidget m_ServerCharacterAlive
protected

◆ m_ServerData

ref GetServersResultRow m_ServerData
protected

Используется в GetServerData().

◆ m_ServerDecContainer

GridSpacerWidget m_ServerDecContainer
protected

◆ m_ServerDesc

MultilineTextWidget m_ServerDesc
protected

◆ m_ServerFriends

TextWidget m_ServerFriends
protected

◆ m_ServerIP

TextWidget m_ServerIP
protected

◆ m_ServerLock

ImageWidget m_ServerLock
protected

◆ m_ServerMaKIcon

ImageWidget m_ServerMaKIcon
protected

◆ m_ServerMap

TextWidget m_ServerMap
protected

◆ m_ServerMode

TextWidget m_ServerMode
protected

◆ m_ServerModeResult

TextWidget m_ServerModeResult
protected

◆ m_ServerModIcon

ImageWidget m_ServerModIcon
protected

◆ m_ServerMods

TextWidget m_ServerMods
protected

◆ m_ServerModsExpand

ButtonWidget m_ServerModsExpand
protected

Используется в OnClick().

◆ m_ServerName

TextWidget m_ServerName
protected

◆ m_ServerNameText

TextWidget m_ServerNameText
protected

◆ m_ServerPing

TextWidget m_ServerPing
protected

◆ m_ServerPopulation

TextWidget m_ServerPopulation
protected

◆ m_ServerShard

TextWidget m_ServerShard
protected

◆ m_ServerSlots

TextWidget m_ServerSlots
protected

◆ m_ServerTime

ImageWidget m_ServerTime
protected

◆ m_ServerTypeResult

TextWidget m_ServerTypeResult
protected

◆ m_SettingsRoot

Widget m_SettingsRoot
protected

◆ m_ShadowDetailOption

ref ListOptionsAccess m_ShadowDetailOption
protected

◆ m_ShadowDetailSelector

ref OptionSelectorMultistate m_ShadowDetailSelector
protected

◆ m_ShowAdminSelector

ref OptionSelectorMultistate m_ShowAdminSelector
protected

◆ m_ShowCrosshairSelector

ref OptionSelectorMultistate m_ShowCrosshairSelector
protected

◆ m_ShowGameSelector

ref OptionSelectorMultistate m_ShowGameSelector
protected

◆ m_ShowHUDSelector

ref OptionSelectorMultistate m_ShowHUDSelector
protected

◆ m_ShowHUDVehicleSelector

ref OptionSelectorMultistate m_ShowHUDVehicleSelector
protected

◆ m_ShowPlayerSelector

ref OptionSelectorMultistate m_ShowPlayerSelector
protected

◆ m_ShowQuickbarSelector

ref OptionSelectorMultistate m_ShowQuickbarSelector
protected

◆ m_ShowServerInfoSelector

ref OptionSelectorMultistate m_ShowServerInfoSelector
protected

◆ m_Single

ActionBase m_Single
protected

◆ m_SlideShowDelay

int m_SlideShowDelay = 25000
protected

◆ m_SortingFilter

ref OptionSelectorMultistate m_SortingFilter
protected

◆ m_SpacerFrame

Widget m_SpacerFrame
protected

◆ m_Speed

float m_Speed
protected

◆ m_SSRQualityOption

ref ListOptionsAccess m_SSRQualityOption
protected

◆ m_SSRQualitySelector

ref OptionSelectorMultistate m_SSRQualitySelector
protected

◆ m_StopButton

ButtonWidget m_StopButton
protected

◆ m_StoreButton

Widget m_StoreButton
protected

◆ m_Tab [1/2]

ServerBrowserTab m_Tab
protected

◆ m_Tab [2/2]

ServerBrowserTab m_Tab
protected

◆ m_TabControls

ref map<int, Widget> m_TabControls
protected

◆ m_TabControlsRoot

Widget m_TabControlsRoot
protected

◆ m_Tabs

ref map<int, Widget> m_Tabs
protected

◆ m_TabsCount

int m_TabsCount
protected

◆ m_TargetObject

Object m_TargetObject
protected

◆ m_TerrainDetailOption

ref ListOptionsAccess m_TerrainDetailOption
protected

◆ m_TerrainDetailSelector

ref OptionSelectorMultistate m_TerrainDetailSelector
protected

◆ m_TerrainSurfaceDetailOption

ref ListOptionsAccess m_TerrainSurfaceDetailOption
protected

◆ m_TerrainSurfaceDetailSelector

ref OptionSelectorMultistate m_TerrainSurfaceDetailSelector
protected

◆ m_Text [1/2]

TextWidget m_Text
protected

◆ m_Text [2/2]

RichTextWidget m_Text
protected

◆ m_TextMap

ref map< int, ref Param2< string, string > > m_TextMap
protected

◆ m_TextureDetailOption

ref ListOptionsAccess m_TextureDetailOption
protected

◆ m_TextureDetailSelector

ref OptionSelectorMultistate m_TextureDetailSelector
protected

◆ m_TextureFilteringOption

ref ListOptionsAccess m_TextureFilteringOption
protected

◆ m_TextureFilteringSelector

ref OptionSelectorMultistate m_TextureFilteringSelector
protected

◆ m_ThirdPersonFilter

ref OptionSelector m_ThirdPersonFilter
protected

◆ m_ThisModInfo

ref ModInfo m_ThisModInfo
protected

Используется в GetModInfo().

◆ m_TimeAccelerationResult

TextWidget m_TimeAccelerationResult
protected

◆ m_TimeIcon

ImageWidget m_TimeIcon
protected

◆ m_TimeSurvived

Widget m_TimeSurvived
protected

◆ m_TimeSurvivedFull

ref FullTimeData m_TimeSurvivedFull
private

◆ m_TimeSurvivedValue

TextWidget m_TimeSurvivedValue
protected

◆ m_TitleTextDlc

TextWidget m_TitleTextDlc
protected

◆ m_Tooltip

ModsMenuTooltip m_Tooltip
protected

◆ m_TooltipMod

ModInfo m_TooltipMod
protected

◆ m_TooltipOwner

bool m_TooltipOwner
protected

◆ m_TooltipTimer

ref Timer m_TooltipTimer
protected

◆ m_TotalEntries

int m_TotalEntries
protected

◆ m_TotalTime

TextWidget m_TotalTime
protected

◆ m_TotalTimeBefore

float m_TotalTimeBefore
protected

◆ m_TotalTimeWidget

TextWidget m_TotalTimeWidget
protected

◆ m_Twitter

Widget m_Twitter
protected

◆ m_UID

string m_UID
protected

Используется в GetUID() и IsLocalPlayer().

◆ m_UiDescLabel

RichTextWidget m_UiDescLabel
protected

◆ m_UiHeadlineLabel

TextWidget m_UiHeadlineLabel
protected

◆ m_UiHintImage

ImageWidget m_UiHintImage
protected

◆ m_UiLeftButton

ButtonWidget m_UiLeftButton
protected

Используется в OnClick().

◆ m_UiPageingLabel

TextWidget m_UiPageingLabel
protected

◆ m_UiRightButton

ButtonWidget m_UiRightButton
protected

Используется в OnClick().

◆ m_UseActionWrapper

UAIDWrapper m_UseActionWrapper
protected

◆ m_Version

TextWidget m_Version
protected

◆ m_VersionContainer

WrapSpacerWidget m_VersionContainer
protected

◆ m_VersionMatchFilter

ref OptionSelector m_VersionMatchFilter
protected

◆ m_VersionResult

TextWidget m_VersionResult
protected

◆ m_VerticalOffset

reference float m_VerticalOffset
private

◆ m_VideoWidget

VideoWidget m_VideoWidget
protected

◆ m_VisibilityOption

ref ListOptionsAccess m_VisibilityOption
protected

◆ m_VisibilitySelector

ref OptionSelectorMultistate m_VisibilitySelector
protected

◆ m_Visible

bool m_Visible
protected

◆ m_VOIPOption

ref NumericOptionsAccess m_VOIPOption
protected

◆ m_VOIPSelector

ref OptionSelectorSlider m_VOIPSelector
protected

◆ m_VOIPThresholdOption

ref NumericOptionsAccess m_VOIPThresholdOption
protected

◆ m_VOIPThresholdSelector

ref OptionSelectorLevelMarker m_VOIPThresholdSelector
protected

◆ m_VonManager

VONManagerBase m_VonManager
protected

◆ m_VSyncOption

ref ListOptionsAccess m_VSyncOption
protected

◆ m_VSyncSelector

ref OptionSelectorMultistate m_VSyncSelector
protected

◆ m_WasMicCapturing

bool m_WasMicCapturing
private

◆ m_Weapon

Weapon_Base m_Weapon
protected

◆ m_WhitelistFilter

ref OptionSelector m_WhitelistFilter
protected

◆ m_widget

Widget m_widget
private

◆ m_widget_array

ref array<Widget> m_widget_array
private

◆ m_Youtube

Widget m_Youtube
protected

◆ MOD_DISPLAY_COUNT_MAX

const int MOD_DISPLAY_COUNT_MAX = 3
protected

◆ RadialBarWidgetName

reference string RadialBarWidgetName
private

◆ SLIDER_STEP

const float SLIDER_STEP = 0.025
staticprotected

◆ TEXT_OWNED

const string TEXT_OWNED = "#layout_dlc_owned"
protected

◆ TEXT_UNOWNED

const string TEXT_UNOWNED = "#layout_dlc_unowned"
protected

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