mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
add button to use sound when rendering video
This commit is contained in:
parent
71c53580ea
commit
b175a6fd42
|
@ -42,7 +42,7 @@ CVideo::CVideo(CGraphics_Threaded* pGraphics, IStorage* pStorage, IConsole *pCon
|
||||||
|
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
m_HasAudio = false;
|
m_HasAudio = g_Config.m_ClVideoSndEnable;
|
||||||
|
|
||||||
m_SndBufferSize = g_Config.m_SndBufferSize;
|
m_SndBufferSize = g_Config.m_SndBufferSize;
|
||||||
|
|
||||||
|
|
|
@ -1639,6 +1639,10 @@ int CMenus::Render()
|
||||||
Part.VSplitLeft(Button.h, &Button, &Part);
|
Part.VSplitLeft(Button.h, &Button, &Part);
|
||||||
if(DoButton_CheckBox(&g_Config.m_ClVideoShowChat, Localize("Show chat"), g_Config.m_ClVideoShowChat, &Button))
|
if(DoButton_CheckBox(&g_Config.m_ClVideoShowChat, Localize("Show chat"), g_Config.m_ClVideoShowChat, &Button))
|
||||||
g_Config.m_ClVideoShowChat ^= 1;
|
g_Config.m_ClVideoShowChat ^= 1;
|
||||||
|
Part.VSplitLeft(150.0f, 0, &Part);
|
||||||
|
Part.VSplitLeft(Button.h, &Button, &Part);
|
||||||
|
if(DoButton_CheckBox(&g_Config.m_ClVideoSndEnable, Localize("Use sounds"), g_Config.m_ClVideoSndEnable, &Button))
|
||||||
|
g_Config.m_ClVideoSndEnable ^= 1;
|
||||||
/*
|
/*
|
||||||
static int s_ButtonInc = 0;
|
static int s_ButtonInc = 0;
|
||||||
if(DoButton_Menu(&s_ButtonInc, Localize("IncSpeed"), 0, &IncSpeed))
|
if(DoButton_Menu(&s_ButtonInc, Localize("IncSpeed"), 0, &IncSpeed))
|
||||||
|
|
|
@ -166,6 +166,7 @@ MACRO_CONFIG_INT(SvRescueDelay, sv_rescue_delay, 5, 0, 1000, CFGFLAG_SERVER, "Nu
|
||||||
#if defined(CONF_VIDEORECORDER)
|
#if defined(CONF_VIDEORECORDER)
|
||||||
MACRO_CONFIG_INT(ClVideoShowhud, cl_video_showhud, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show ingame HUD when rendering video")
|
MACRO_CONFIG_INT(ClVideoShowhud, cl_video_showhud, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show ingame HUD when rendering video")
|
||||||
MACRO_CONFIG_INT(ClVideoShowChat, cl_video_showchat, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show chat when rendering video")
|
MACRO_CONFIG_INT(ClVideoShowChat, cl_video_showchat, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show chat when rendering video")
|
||||||
|
MACRO_CONFIG_INT(ClVideoSndEnable, cl_video_sound_enable, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Use sound when rendering video")
|
||||||
MACRO_CONFIG_INT(ClVideoShowHookCollOther, cl_video_showhookcollother, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show other players' hook collision lines when rendering video")
|
MACRO_CONFIG_INT(ClVideoShowHookCollOther, cl_video_showhookcollother, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show other players' hook collision lines when rendering video")
|
||||||
MACRO_CONFIG_INT(ClVideoShowDirection, cl_video_showdirection, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show other players' key presses when rendering video")
|
MACRO_CONFIG_INT(ClVideoShowDirection, cl_video_showdirection, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show other players' key presses when rendering video")
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue