#include <menu_background.h>
|
| enum | {
POS_START = 0
, POS_DEMOS
, POS_NEWS
, POS_SETTINGS_LANGUAGE
,
POS_SETTINGS_GENERAL
, POS_SETTINGS_PLAYER
, POS_SETTINGS_TEE
, POS_SETTINGS_APPEARANCE
,
POS_SETTINGS_CONTROLS
, POS_SETTINGS_GRAPHICS
, POS_SETTINGS_SOUND
, POS_SETTINGS_DDNET
,
POS_SETTINGS_ASSETS
, POS_SETTINGS_RESERVED0
, POS_SETTINGS_RESERVED1
, POS_BROWSER_INTERNET
,
POS_BROWSER_LAN
, POS_BROWSER_FAVORITES
, POS_BROWSER_CUSTOM0
, POS_BROWSER_CUSTOM1
,
POS_BROWSER_CUSTOM2
, POS_BROWSER_CUSTOM3
, POS_BROWSER_CUSTOM4
, POS_RESERVED0
,
POS_RESERVED1
, POS_RESERVED2
, NUM_POS
, POS_BROWSER_CUSTOM_NUM = (POS_BROWSER_CUSTOM4 - POS_BROWSER_CUSTOM0) + 1
,
POS_SETTINGS_RESERVED_NUM = (POS_SETTINGS_RESERVED1 - POS_SETTINGS_RESERVED0) + 1
, POS_RESERVED_NUM = (POS_RESERVED2 - POS_RESERVED0) + 1
} |
| |
| enum | { PREDEFINED_THEMES_COUNT = 3
} |
| |
|
| | CMenuBackground () |
| |
| int | Sizeof () const override |
| |
| void | OnInterfacesInit (CGameClient *pClient) override |
| |
| void | OnInit () override |
| |
| void | OnMapLoad () override |
| |
| void | OnRender () override |
| |
| void | LoadMenuBackground (bool HasDayHint=true, bool HasNightHint=true) |
| |
| bool | Render () |
| |
| bool | IsLoading () const |
| |
| class CCamera * | GetCurCamera () override |
| |
| void | ChangePosition (int PositionNumber) |
| |
| std::vector< CTheme > & | GetThemes () |
| |
| | CBackground (ERenderType MapType=ERenderType::RENDERTYPE_BACKGROUND_FORCE, bool OnlineOnly=true) |
| |
| virtual | ~CBackground () |
| |
| void | LoadBackground () |
| |
| const char * | MapName () const |
| |
| void | EnvelopeEval (int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels) override |
| |
| | CMapLayers (ERenderType Type, bool OnlineOnly=true) |
| |
| void | Unload () |
| |
| virtual | ~CComponent ()=default |
| |
| virtual void | OnStateChange (int NewState, int OldState) |
| |
| virtual void | OnConsoleInit () |
| |
| virtual void | OnShutdown () |
| |
| virtual void | OnReset () |
| |
| virtual void | OnWindowResize () |
| |
| virtual void | OnUpdate () |
| |
| virtual void | OnNewSnapshot () |
| |
| virtual void | OnRelease () |
| |
| virtual void | OnMessage (int Msg, void *pRawMsg) |
| |
| virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
| |
| virtual bool | OnInput (const IInput::CEvent &Event) |
| |
| virtual bool | OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates) |
| |
| virtual | ~CComponentInterfaces ()=default |
| |
| virtual | ~IEnvelopeEval ()=default |
| |
◆ anonymous enum
| Enumerator |
|---|
| POS_START | |
| POS_DEMOS | |
| POS_NEWS | |
| POS_SETTINGS_LANGUAGE | |
| POS_SETTINGS_GENERAL | |
| POS_SETTINGS_PLAYER | |
| POS_SETTINGS_TEE | |
| POS_SETTINGS_APPEARANCE | |
| POS_SETTINGS_CONTROLS | |
| POS_SETTINGS_GRAPHICS | |
| POS_SETTINGS_SOUND | |
| POS_SETTINGS_DDNET | |
| POS_SETTINGS_ASSETS | |
| POS_SETTINGS_RESERVED0 | |
| POS_SETTINGS_RESERVED1 | |
| POS_BROWSER_INTERNET | |
| POS_BROWSER_LAN | |
| POS_BROWSER_FAVORITES | |
| POS_BROWSER_CUSTOM0 | |
| POS_BROWSER_CUSTOM1 | |
| POS_BROWSER_CUSTOM2 | |
| POS_BROWSER_CUSTOM3 | |
| POS_BROWSER_CUSTOM4 | |
| POS_RESERVED0 | |
| POS_RESERVED1 | |
| POS_RESERVED2 | |
| NUM_POS | |
| POS_BROWSER_CUSTOM_NUM | |
| POS_SETTINGS_RESERVED_NUM | |
| POS_RESERVED_NUM | |
◆ anonymous enum
| Enumerator |
|---|
| PREDEFINED_THEMES_COUNT | |
◆ CMenuBackground()
| CMenuBackground::CMenuBackground |
( |
| ) |
|
◆ ChangePosition()
| void CMenuBackground::ChangePosition |
( |
int |
PositionNumber | ) |
|
◆ CreateBGMap()
◆ GetCurCamera()
| CCamera * CMenuBackground::GetCurCamera |
( |
| ) |
|
|
overridevirtual |
◆ GetThemes()
| std::vector< CTheme > & CMenuBackground::GetThemes |
( |
| ) |
|
◆ IsLoading()
| bool CMenuBackground::IsLoading |
( |
| ) |
const |
|
inline |
◆ LoadMenuBackground()
◆ LoadThemeIcon()
| void CMenuBackground::LoadThemeIcon |
( |
CTheme & |
Theme | ) |
|
|
private |
◆ OnInit()
| void CMenuBackground::OnInit |
( |
| ) |
|
|
overridevirtual |
Called to let the components run initialization code.
Reimplemented from CBackground.
◆ OnInterfacesInit()
◆ OnMapLoad()
| void CMenuBackground::OnMapLoad |
( |
| ) |
|
|
overridevirtual |
◆ OnRender()
| void CMenuBackground::OnRender |
( |
| ) |
|
|
overridevirtual |
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CBackground.
◆ Render()
| bool CMenuBackground::Render |
( |
| ) |
|
◆ ResetPositions()
| void CMenuBackground::ResetPositions |
( |
| ) |
|
|
private |
◆ Sizeof()
| int CMenuBackground::Sizeof |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Reimplemented from CBackground.
◆ ThemeScan()
◆ m_AnimationStartPos
| vec2 CMenuBackground::m_AnimationStartPos |
|
private |
◆ m_aPositions
| std::array<vec2, NUM_POS> CMenuBackground::m_aPositions |
|
private |
◆ m_Camera
◆ m_ChangedPosition
| bool CMenuBackground::m_ChangedPosition |
|
private |
◆ m_CurrentDirection
| vec2 CMenuBackground::m_CurrentDirection = vec2(1.0f, 0.0f) |
|
private |
◆ m_CurrentPosition
| int CMenuBackground::m_CurrentPosition |
|
private |
◆ m_IsInit
| bool CMenuBackground::m_IsInit |
|
private |
◆ m_Loading
| bool CMenuBackground::m_Loading |
|
private |
◆ m_MoveTime
| float CMenuBackground::m_MoveTime |
|
private |
◆ m_RotationCenter
| vec2 CMenuBackground::m_RotationCenter |
|
private |
◆ m_ThemeScanStartTime
| std::chrono::nanoseconds CMenuBackground::m_ThemeScanStartTime {0} |
|
private |
◆ m_vThemes
| std::vector<CTheme> CMenuBackground::m_vThemes |
|
private |
The documentation for this class was generated from the following files: