DayZ 1.24
|
Classes | |
class | WorkspaceWidget |
class | Widget |
class | TextWidget |
class | UIWidget |
class | EditBoxWidget |
class | SimpleProgressBarWidget |
class | BaseListboxWidget |
class | SimpleListboxWidget |
class | SpacerWidget |
class | ScriptedWidgetEventHandler |
map: item x vector(index, width, height) More... | |
Typedefs | |
typedef TypeID | WidgetType |
typedef TypeID | EventType |
Enumerations | |
enum | WidgetFlags { SOURCEALPHA , BLEND , ADDITIVE , VISIBLE , NOWRAP , CENTER , VCENTER , HEXACTPOS , VEXACTPOS , EXACTPOS , HEXACTSIZE , VEXACTSIZE , EXACTSIZE , NOFILTER , RALIGN , STRETCH , FLIPU , FLIPV , CUSTOMUV , IGNOREPOINTER , DISABLED , NOFOCUS , CLIPCHILDREN , RENDER_ALWAYS , NOCLEAR , DRAGGABLE } |
enum | WidgetAlignment |
enum | VideoCommand { PLAY , STOP , REWIND , POSITION , REPEAT , ISPLAYING , KILL } |
Legacy, do not use. More... | |
enum | VideoState { NONE , PLAYING , PAUSED , STOPPED , FINISHED } |
enum | VideoCallback { ON_PLAY , ON_PAUSE , ON_STOP , ON_END , ON_LOAD , ON_SEEK , ON_BUFFERING_START , ON_BUFFERING_END } |
enum | ControlID { CID_NONE = 0 , CID_SELECT = 1 , CID_BACK , CID_LEFT , CID_RIGHT , CID_UP , CID_DOWN , CID_MENU , CID_DRAG , CID_TABLEFT , CID_TABRIGHT , CID_RADIALMENU , CID_COUNT } |
Variables | |
WA_LEFT = 0 | |
WA_RIGHT = 1 | |
WA_CENTER = 2 | |
WA_TOP = 0 | |
WA_BOTTOM = 1 | |
WorkspaceWidget | Widget () |
Defined in code. | |
enum VideoCommand | GetScrollbarWidth |
Definition at line 55 of file EnWidgets.c.
Definition at line 52 of file EnWidgets.c.
Enumerator | |
---|---|
CID_NONE | |
CID_SELECT | |
CID_BACK | |
CID_LEFT | |
CID_RIGHT | |
CID_UP | |
CID_DOWN | |
CID_MENU | |
CID_DRAG | |
CID_TABLEFT | |
CID_TABRIGHT | |
CID_RADIALMENU | |
CID_COUNT |
Definition at line 633 of file EnWidgets.c.
|
private |
Enumerator | |
---|---|
ON_PLAY | |
ON_PAUSE | |
ON_STOP | |
ON_END | |
ON_LOAD | |
ON_SEEK | |
ON_BUFFERING_START | |
ON_BUFFERING_END |
Definition at line 530 of file EnWidgets.c.
|
private |
|
private |
Definition at line 516 of file EnWidgets.c.
Definition at line 57 of file EnWidgets.c.
proto native void GetContentAlignmentH::AddChildAfter | ( | Widget | child, |
Widget | after, | ||
bool | immedUpdate = true ) |
|
private |
|
private |
Insert new Row, if row = -1, new Row is inserted at the end otherwise at row index.
Referenced by EEKilled(), Grenade_ChemGas::OnDamageDestroyed(), and Ammo_40mm_Explosive::OnDamageDestroyed().
|
private |
Create widgets by WidgetType.
|
private |
Create widgets from *.layout file.
Enable/Disable subtitles.
|
private |
Referenced by OptionSelectorBase::OptionSelector().
Referenced by ClosableHeader::ClosableHeader(), ClosableContainer::DropReceived(), HandsContainer::ElectricityIcon(), ContainerWithElectricManager::ElectricityIcon(), Header::Header(), Icon::Icon(), Icon::InitEx(), InitWidgets(), PluginBase::InitWidgets(), Inventory(), Header::SetItemPreview(), and SlotsContainer::SlotsContainer().
Referenced by InventoryItemSuper::EEHealthLevelChanged().
Referenced by InventoryItem::GetColorString().
|
private |
|
private |
Get item.
row | int Index of row |
column | int Index of column |
string
Value in widget on row and column Progress determines which alpha values are opaque using the mask. For progress x, pixels with alpha in mask < x will be opaque and alpha in mask > x will be transparent. For smooth transition see GetMaskTransitionWidth.
Transition width 0.1 and progress 0.2 mean that values in mask lower than progress will be opaque. Values higher than (progress + width) will be transparent and values between progress and (progress + width) will be smoothly transitioned.
|
private |
Definition at line 117 of file SyncedValue.c.
References m_Name.
Referenced by ActionEnterLadder::ActionCondition(), GetComponentIndex(), ActionTargetsCursor::GetOnScreenPosition(), IsComponentInSelection(), RegisterAttacks(), HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl(), and HumanInventory::ReplaceItemInHandsWithNewImpl().
Get parent of the Effect.
Object
The parent of the Effect Definition at line 389 of file Effect.c.
References m_ParentObject.
Referenced by BuildPartServer(), DayZPlayer::CameraHandler(), Bolt_Base::CanBeActionTarget(), CanUseToolToBuildPart(), CanUseToolToDismantlePart(), ClosableHeader::ClosableHeader(), CreateCollisionTrigger(), DestroyMaterialsServer(), DestroyPartServer(), EntityLightSource::DetachFromParent(), DismantlePartServer(), DrawDebugCollisionBox(), DropNonUsableMaterialsServer(), DayZPlayer::EOnContact(), GetAttachmentParent(), GetCollisionBoxData(), EffectParticle::GetCurrentLocalPosition(), DayZPlayer::GetDebugText(), GetMaterialType(), ParticleSource::GetParticleParent(), GetRequiredParts(), HasConflictPart(), HasMaterials(), HasMaterialWithQuantityAttached(), HasRequiredPart(), HideConstructionPart(), HideConstructionPartPhysics(), IsColliding(), IsCollidingEx(), EntityAI::IsInTransport(), DayZPlayer::IsInVehicle(), Entity::IsInventoryVisible(), HumanCommandVehicle::IsObjectIgnoredOnGettingOut(), MaterialIsRuined(), EffectParticle::ReAttach(), ReceiveMaterialsServer(), EffectParticle::SetCurrentLocalPosition(), SetLockOnAttachedMaterials(), AttachmentsGroupContainer::SetNextActive(), LayoutHolder::SetNextActive(), AttachmentsGroupContainer::SetPreviousActive(), LayoutHolder::SetPreviousActive(), ShowConstructionPart(), ShowConstructionPartPhysics(), EffectParticle::Start(), Particle::StopParticle(), TakeMaterialsServer(), PlayerContainer::TransferItem(), ZombieContainer::TransferItem(), DayZPlayer::TriggerPullPlayerOutOfVehicle(), UpdateConstructionParts(), Container::UpdateHeaderText(), and VicinityContainer::UpdateInterval().
Referenced by InventoryItemSuper::EEHealthLevelChanged().
|
private |
Get the current state of the video.
Get text proportion - ratio between button height and button text height in interval <0,1>
Get text proportion - ratio between button height and button text height in interval <0,1>
Get the current time of the video.
Referenced by Widget::Play().
|
private |
Referenced by PluginBase::IsMouseInScene().
QoL direct method to check for playing state (buffering while playing will still return true)
Referenced by Widget::Play().
Check if subtitles are disabled (enabled by default if available, so it will return false even if there are none)
Load a video file.
Referenced by Widget::LoadVideo().
Loads image. When image of this 'num' is already loaded, then is replaced by new one.
num | Number of image (0...7) |
name | Name of image file |
noCache | Do not cache the texture |
Loads texture as mask used for alpha masking.
resource | Resource name of the texture to load |
Legacy, preferably not used, left for backwards compat.
Definition at line 622 of file EnWidgets.c.
References Widget::Load(), and name.
control is one of ControlID
|
private |
Referenced by ScriptedWidgetEventHandler::OnFocusLost(), and ScriptedWidgetEventHandler::OnMouseLeave().
|
private |
|
private |
Referenced by ScriptedWidgetEventHandler::OnMouseEnter().
Referenced by ScriptedWidgetEventHandler::OnMouseLeave().
Pauses video playback.
Referenced by Widget::Play().
Starts video playback.
Referenced by Widget::Play().
|
inlineprivate |
Legacy, preferably not used, left for backwards compat.
Definition at line 587 of file EnWidgets.c.
References Widget::GetTime(), Widget::IsPlaying(), Widget::Pause(), Widget::Play(), Widget::SetLooping(), Widget::SetTime(), and Widget::Unload().
Referenced by InventoryItemSuper::EEHealthLevelChanged().
|
private |
Set a callback for a certain video event.
|
private |
|
private |
Referenced by UIScriptedMenu::BackButtonFocus(), UIScriptedMenu::CheckNewOptions(), UIScriptedMenu::CloseOnline(), UIScriptedMenu::ColorDisable(), ColorDisable(), ServerBrowserTab::ColorDisable(), UIScriptedMenu::ColorDisabled(), OptionSelectorBase::ColorHighlight(), UIScriptedMenu::ColorRed(), ScriptedWidgetEventHandler::ColorRed(), ScriptedWidgetEventHandler::ColorRed(), UIScriptedMenu::ColorWhite(), ScriptedWidgetEventHandler::Focus(), ScriptedWidgetEventHandler::FocusFirst(), GetNextEntry(), GetPrevEntry(), UIScriptedMenu::Init(), ScriptedWidgetEventHandler::OnChange(), OptionSelectorBase::OnFocus(), UIScriptedMenu::OnMouseButtonDown(), ScriptedWidgetEventHandler::OnMouseButtonUp(), ScriptedWidgetEventHandler::OnMouseEnter(), OnMouseEnter(), ServerBrowserTab::OnMouseEnter(), UIScriptedMenu::OnMouseLeave(), OptionSelectorBase::OnMouseLeave(), ServerBrowserTab::OnMouseLeave(), UIScriptedMenu::OnShow(), OnShow(), ServerBrowserTab::SetEnableFilters(), ServerBrowserTab::SetFocusServers(), ScriptedWidgetEventHandler::UpdateEntry(), and UIScriptedMenu::UpdateMenuFocus().
sets Widget typu RTTextureWidgetTypeID, to which it is possible to reference in shader as $rendertarget it is posible to use only after object selection. When selecting another object, it is necessary to set GUI widget again
|
private |
Switches to another image, if it's loaded
num | Number of image. |
|
private |
|
private |
Set whether the video should loop.
Referenced by Widget::Play().
Set global LV of widgets, value between [-15, 0], default: 0, lower value is less bright.
See GetMaskProgress for explanation.
value | Expected in range [0; 1] |
See GetMaskTransitionWidth for transition width explanation.
value | Expected in range [0; 1] |
Set global lighting of objects in widgets, value between [0, 1], default: 1, lower value is less bright.
when period > 1 then every n-th frame will be rendered. Offset is initial counter.
|
private |
Referenced by ScriptedWidgetEventHandler::CreateFollowedObject().
|
private |
Referenced by updateSlotsCount().
Referenced by ServerBrowserTab::Construct(), and ServerBrowserTab::ToggleSort().
set text exact size. Exact Text flag must be enabled. 0 equals original size.
|
private |
align | ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT |
Set global LV of the text in widgets, value between [-15, 0], default: 0, lower value is less bright.
Set text proportion - ratio between button height and button text height in interval <0,1>
Set text proportion - ratio between button height and button text height in interval <0,1>
|
private |
align | ALIGN_CENTER, ALIGN_TOP, ALIGN_BOTTOM |
Set the desired time for the video (preload decides whether it will already load the next frames too)
Referenced by Widget::Play().
When WF_CUSTOMUV is set, we can supply our own UV coords instead of computed ones.
uv | Pointer to array of at least 8 floats (4 corners * 2 floats for u/v) |
direct mouse cursor visibility control
Referenced by CGame::RefreshMouseCursorVisibility().
Stop video playback (cancels everything and sets it back at time 0)
Unload the video, freeing up all resources.
Referenced by Widget::Play().
don't show crosshair if it's disabled in profile or from server
Definition at line 118 of file PlayerSoundManager.c.
References CONTROLLER_DESELECT_TIMEOUT, CONTROLLER_TILT_TRESHOLD_SELECT, g_Game, ScriptedWidgetEventHandler::GetActionManager(), GetAngleInDegrees(), GetCurrentCrossHair(), GetGame(), GetMouseDistance(), GetMousePointerAngle(), GetObjectByDegAngle(), ScriptedWidgetEventHandler::GetPlayer(), GetZone(), HideRadialSelector(), DayZPlayer::IsPlayerSelected(), IsUsingController(), IsUsingMouse(), last_time, m_AM, m_ControllerAngle, m_ControllerTilt, m_ControllerTimout, m_Handlers, m_IsControllerTimoutEnabled, m_Player, m_player, m_RegisteredClass, m_SelectedObject, m_Stamina, m_StaminaLastValue, m_StaminaZoneOffset, m_UpdateTimer, m_WidgetInitialized, MAX_HANDLERS_COUNT, MOUSE_SAFE_ZONE_RADIUS, ProcessSound(), randomValuesArray, Refresh(), SelectCrossHair(), SetAgents(), SetAllowUpdate(), ShowCrossHair(), ShowRadialSelector(), UpdataControllerInput(), PlayerSoundManagerBase::Update(), and USAGE_COUNT.
Referenced by ScriptedWidgetEventHandler::ContinuousActionProgress(), CrossHairSelector(), GameplayEffectsData::ForceStop(), Init(), ScriptedWidgetEventHandler::ItemActionsWidget(), ScriptedWidgetEventHandler::ProjectedCrosshair(), RadialProgressBar::RadialProgressBar(), ParticleSource::SetWiggle(), PlayerSoundManagerBase::Update(), Hud::UpdateHitDirEffects(), ScriptedWidgetEventHandler::~ContinuousActionProgress(), ~CrossHairSelector(), ScriptedWidgetEventHandler::~ItemActionsWidget(), ScriptedWidgetEventHandler::~ProjectedCrosshair(), and RadialProgressBar::~RadialProgressBar().
|
private |
WA_BOTTOM = 1 |
Definition at line 4 of file EnWidgets.c.
WA_CENTER = 2 |
Definition at line 2 of file EnWidgets.c.
WA_LEFT = 0 |
Definition at line 0 of file EnWidgets.c.
WA_RIGHT = 1 |
Definition at line 1 of file EnWidgets.c.
WA_TOP = 0 |
Definition at line 3 of file EnWidgets.c.
|
private |
Defined in code.