Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MapWeatherUI Class Reference
Inheritance diagram for SCR_MapWeatherUI:
SCR_MapUIBaseComponent

Protected Member Functions

void ToggleVisibility (SCR_ButtonBaseComponent button=null)
void SetVsibilityState (bool state)
void UpdateLayoutPosition ()
 Changes the Y position of the layout to be next to the weather button.
override void Update (float timeSlice)
void UpdateWindData ()
 Updates the information about current wind conditions.
void OnWeatherChanged (notnull TimeAndWeatherManagerEntity manager, int currentStateId, int nextStateId, bool transitioning)
void OnWindOverrideDataChanged (notnull TimeAndWeatherManagerEntity manager, bool currentState, float currentSpeed, float currentDirection)
void UpdateWeatherData ()
 Updates the information about current and upcoming weather.
void OnMapOpen (MapConfiguration config)
void OnMapClose (MapConfiguration config)
override void Init ()
bool CreateLayout ()

Protected Attributes

string m_sMapWeatherFrame
const ResourceName ICON = "{857DD01860810AE9}UI/Textures/Editor/Attributes/Categories/Attribute_Category_Weather.edds"
const ResourceName LAYOUT = "{E360A5329459869F}UI/layouts/Menus/DeployMenu/MapWeatherData.layout"
const string LABEL_DIRECTION = "#AR-MapInfo_WeatherData_WindDirection"
const string LABEL_SPEED = "#AR-MapInfo_WeatherData_WindSpeed"
const string WIDGET_NAME_ICON = "StateIcon"
const string WIDGET_NAME_TITLE = "StateTitle"
const string WIDGET_NAME_TIME = "Time"
const string FORMAT_HOUR = "%1:00"
bool m_bVisible
bool m_bLastAutomaticWindState
float m_fLastWindSpeed
float m_fLastWindDirection
Widget m_wMapWeatherFrame
Widget m_wWeatherDataRoot
Widget m_wWindOverrideInfo
Widget m_wWeatherOverrideInfo
Widget m_wCurrentWeatherHolder
Widget m_wUpcomingWeatherHolder
TextWidget m_wCurrentWindSpeed
TextWidget m_wCurrentWindDirection
ChimeraWorld m_World
WorldTimestamp m_NextWindUpdateCooldown
SCR_MapToolEntry m_ToolMenuEntry
TimeAndWeatherManagerEntity m_WeatherManager

Detailed Description

Definition at line 1 of file SCR_MapWeatherUI.c.

Member Function Documentation

◆ CreateLayout()

bool SCR_MapWeatherUI::CreateLayout ( )
inlineprotected

Definition at line 269 of file SCR_MapWeatherUI.c.

◆ Init()

override void SCR_MapWeatherUI::Init ( )
inlineprotected

Definition at line 249 of file SCR_MapWeatherUI.c.

◆ OnMapClose()

void SCR_MapWeatherUI::OnMapClose ( MapConfiguration config)
inlineprotected

Definition at line 236 of file SCR_MapWeatherUI.c.

◆ OnMapOpen()

void SCR_MapWeatherUI::OnMapOpen ( MapConfiguration config)
inlineprotected

Definition at line 199 of file SCR_MapWeatherUI.c.

◆ OnWeatherChanged()

void SCR_MapWeatherUI::OnWeatherChanged ( notnull TimeAndWeatherManagerEntity manager,
int currentStateId,
int nextStateId,
bool transitioning )
inlineprotected

Definition at line 130 of file SCR_MapWeatherUI.c.

◆ OnWindOverrideDataChanged()

void SCR_MapWeatherUI::OnWindOverrideDataChanged ( notnull TimeAndWeatherManagerEntity manager,
bool currentState,
float currentSpeed,
float currentDirection )
inlineprotected

Definition at line 139 of file SCR_MapWeatherUI.c.

◆ SetVsibilityState()

void SCR_MapWeatherUI::SetVsibilityState ( bool state)
inlineprotected

Definition at line 51 of file SCR_MapWeatherUI.c.

◆ ToggleVisibility()

void SCR_MapWeatherUI::ToggleVisibility ( SCR_ButtonBaseComponent button = null)
inlineprotected

Definition at line 45 of file SCR_MapWeatherUI.c.

◆ Update()

override void SCR_MapWeatherUI::Update ( float timeSlice)
inlineprotected

Definition at line 88 of file SCR_MapWeatherUI.c.

◆ UpdateLayoutPosition()

void SCR_MapWeatherUI::UpdateLayoutPosition ( )
inlineprotected

Changes the Y position of the layout to be next to the weather button.

Definition at line 67 of file SCR_MapWeatherUI.c.

◆ UpdateWeatherData()

void SCR_MapWeatherUI::UpdateWeatherData ( )
inlineprotected

Updates the information about current and upcoming weather.

Definition at line 146 of file SCR_MapWeatherUI.c.

◆ UpdateWindData()

void SCR_MapWeatherUI::UpdateWindData ( )
inlineprotected

Updates the information about current wind conditions.

Definition at line 115 of file SCR_MapWeatherUI.c.

Member Data Documentation

◆ FORMAT_HOUR

const string SCR_MapWeatherUI::FORMAT_HOUR = "%1:00"
protected

Definition at line 25 of file SCR_MapWeatherUI.c.

◆ ICON

const ResourceName SCR_MapWeatherUI::ICON = "{857DD01860810AE9}UI/Textures/Editor/Attributes/Categories/Attribute_Category_Weather.edds"
protected

Definition at line 18 of file SCR_MapWeatherUI.c.

◆ LABEL_DIRECTION

const string SCR_MapWeatherUI::LABEL_DIRECTION = "#AR-MapInfo_WeatherData_WindDirection"
protected

Definition at line 20 of file SCR_MapWeatherUI.c.

◆ LABEL_SPEED

const string SCR_MapWeatherUI::LABEL_SPEED = "#AR-MapInfo_WeatherData_WindSpeed"
protected

Definition at line 21 of file SCR_MapWeatherUI.c.

◆ LAYOUT

const ResourceName SCR_MapWeatherUI::LAYOUT = "{E360A5329459869F}UI/layouts/Menus/DeployMenu/MapWeatherData.layout"
protected

Definition at line 19 of file SCR_MapWeatherUI.c.

◆ m_bLastAutomaticWindState

bool SCR_MapWeatherUI::m_bLastAutomaticWindState
protected

Definition at line 28 of file SCR_MapWeatherUI.c.

◆ m_bVisible

bool SCR_MapWeatherUI::m_bVisible
protected

Definition at line 27 of file SCR_MapWeatherUI.c.

◆ m_fLastWindDirection

float SCR_MapWeatherUI::m_fLastWindDirection
protected

Definition at line 30 of file SCR_MapWeatherUI.c.

◆ m_fLastWindSpeed

float SCR_MapWeatherUI::m_fLastWindSpeed
protected

Definition at line 29 of file SCR_MapWeatherUI.c.

◆ m_NextWindUpdateCooldown

WorldTimestamp SCR_MapWeatherUI::m_NextWindUpdateCooldown
protected

Definition at line 40 of file SCR_MapWeatherUI.c.

◆ m_sMapWeatherFrame

string SCR_MapWeatherUI::m_sMapWeatherFrame
protected

Definition at line 16 of file SCR_MapWeatherUI.c.

◆ m_ToolMenuEntry

SCR_MapToolEntry SCR_MapWeatherUI::m_ToolMenuEntry
protected

Definition at line 41 of file SCR_MapWeatherUI.c.

◆ m_wCurrentWeatherHolder

Widget SCR_MapWeatherUI::m_wCurrentWeatherHolder
protected

Definition at line 35 of file SCR_MapWeatherUI.c.

◆ m_wCurrentWindDirection

TextWidget SCR_MapWeatherUI::m_wCurrentWindDirection
protected

Definition at line 38 of file SCR_MapWeatherUI.c.

◆ m_wCurrentWindSpeed

TextWidget SCR_MapWeatherUI::m_wCurrentWindSpeed
protected

Definition at line 37 of file SCR_MapWeatherUI.c.

◆ m_WeatherManager

TimeAndWeatherManagerEntity SCR_MapWeatherUI::m_WeatherManager
protected

Definition at line 42 of file SCR_MapWeatherUI.c.

◆ m_wMapWeatherFrame

Widget SCR_MapWeatherUI::m_wMapWeatherFrame
protected

Definition at line 31 of file SCR_MapWeatherUI.c.

◆ m_World

ChimeraWorld SCR_MapWeatherUI::m_World
protected

Definition at line 39 of file SCR_MapWeatherUI.c.

◆ m_wUpcomingWeatherHolder

Widget SCR_MapWeatherUI::m_wUpcomingWeatherHolder
protected

Definition at line 36 of file SCR_MapWeatherUI.c.

◆ m_wWeatherDataRoot

Widget SCR_MapWeatherUI::m_wWeatherDataRoot
protected

Definition at line 32 of file SCR_MapWeatherUI.c.

◆ m_wWeatherOverrideInfo

Widget SCR_MapWeatherUI::m_wWeatherOverrideInfo
protected

Definition at line 34 of file SCR_MapWeatherUI.c.

◆ m_wWindOverrideInfo

Widget SCR_MapWeatherUI::m_wWindOverrideInfo
protected

Definition at line 33 of file SCR_MapWeatherUI.c.

◆ WIDGET_NAME_ICON

const string SCR_MapWeatherUI::WIDGET_NAME_ICON = "StateIcon"
protected

Definition at line 22 of file SCR_MapWeatherUI.c.

◆ WIDGET_NAME_TIME

const string SCR_MapWeatherUI::WIDGET_NAME_TIME = "Time"
protected

Definition at line 24 of file SCR_MapWeatherUI.c.

◆ WIDGET_NAME_TITLE

const string SCR_MapWeatherUI::WIDGET_NAME_TITLE = "StateTitle"
protected

Definition at line 23 of file SCR_MapWeatherUI.c.


The documentation for this class was generated from the following file: