Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Background Render and Mute Sounds

Skilled Illusionist
Joined
Apr 21, 2010
Messages
378
Reaction score
96
If you want to add a tick-box for the Sound function:

WndOption.cpp (SOURCE)

After:

Code:
	case WIDC_CHECK5:
		{
			if( pWndCamearaLock->GetCheck() )
				g_Option.m_bCameraLock = TRUE;
			else
				g_Option.m_bCameraLock = FALSE;			
		}
		break;

Add:

Code:
#ifdef __MuteBgSounds 
	case WIDC_CHECK9:
	{
		if (pWndMuteSoundsInBG->GetCheck())
			g_Option.muteSoundsInBG = TRUE;
		else
			g_Option.muteSoundsInBG = FALSE;
		}
	break;

	case WIDC_CHECK10:
	{
		if (pWndMuteMusicInBG->GetCheck())
			g_Option.muteMusicInBG = TRUE;
		else
			g_Option.muteMusicInBG = FALSE;
		}
	break;
#endif

After:

Code:
#if __VER >= 12 // __UPDATE_OPT
	CWndButton* pWndCamearaLock = (CWndButton*)GetDlgItem( WIDC_CHECK5 );
#endif

Add:

Code:
#ifdef __MuteBgSounds 
	CWndButton* pWndMuteSoundsInBG = (CWndButton*)GetDlgItem(WIDC_CHECK9 );
	CWndButton* pWndMuteMusicInBG = (CWndButton*)GetDlgItem(WIDC_CHECK10);
#endif

After:

Code:
	pWndButton[ 0 ] = (CWndButton*)GetDlgItem( WIDC_CHECK5 );
	if(pWndButton[ 0 ])
	pWndButton[ 0 ]->SetCheck( g_Option.m_bCameraLock );

Add:

Code:
#ifdef __MuteBgSounds 
	pWndButton[0] = (CWndButton*)GetDlgItem(WIDC_CHECK9);
	if (pWndButton[0])
		pWndButton[0]->SetCheck(g_Option.muteSoundsInBG);

	pWndButton[0] = (CWndButton*)GetDlgItem(WIDC_CHECK10);
	if (pWndButton[0])
		pWndButton[0]->SetCheck(g_Option.muteMusicInBG);
#endif

resdata.inc (RESOURCE)

In "APP_OPTEX_AV12" at the end add:

Code:
    WTYPE_BUTTON WIDC_CHECK9 "ButtCheck.bmp" 0 288 260 478 276 0x220008 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_019661
    }
    {
    // ToolTip
    IDS_RESDATA_INC_019662
    }
    WTYPE_BUTTON WIDC_CHECK10 "ButtCheck.bmp" 0 288 286 478 302 0x220008 0 0 0 0 46 112 169
    {
    // Title String
    IDS_RESDATA_INC_019663
    }
    {
    // ToolTip
    IDS_RESDATA_INC_019664
    }

resData.txt.txt (RESOURCE)

Add:

Code:
IDS_RESDATA_INC_019661	Mute sound (minimized)
IDS_RESDATA_INC_019662	
IDS_RESDATA_INC_019663	Mute music (minimized)
IDS_RESDATA_INC_019664

sQhrmY4 - Background Render and Mute Sounds - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Sep 8, 2011
Messages
67
Reaction score
252
  • Thread updated for people using Wnd_Buttons_Fix.
  • Added __MinimizeFix which will create timer for minimize.
  • Added hwOption "inactiveRender". When it is 1, it does the one frame persecond render. When its 2, no render happens just like minimize. Any other number disables it.
 
Last edited:
Newbie Spellweaver
Joined
Sep 8, 2011
Messages
67
Reaction score
252
this doesn't fix the white screen you get if another full screen application takes focus by any chance? xd

No. That fix requires rewrites to how messages are handled and Direct x resources.
 
Newbie Spellweaver
Joined
Sep 5, 2008
Messages
79
Reaction score
10
No. That fix requires rewrites to how messages are handled and Direct x resources.

With messages do you mean the windows api or a flyff internal structure?` Never worked with direct x but lets see if i can find anything xd. This has always bothered me and it seems noone has found a fix for it yet.
 
Back
Top