Programming/vgui soundscape maker.h: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (WadDelz0949 moved page Category:Programming/vgui soundscape maker.h to Programming/vgui soundscape maker.h: i put it into the wrong site thing again)
m (Added function to ISoundscapeMaker class)
Line 24: Line 24:
virtual void Destroy() = 0;
virtual void Destroy() = 0;
virtual void SetSoundText(const char* text) = 0;
virtual void SetSoundText(const char* text) = 0;
virtual void SetAllVisible(bool bVisible) = 0;
};
};



Revision as of 02:29, 12 May 2025

This page contains the .h file needed for creating the vgui_soundscape_maker

//========= Created by Waddelz. https://www.youtube.com/@WadDeIz_Real. ============//
//
// Purpose: a vgui panel that allows you to create and test soundscapes in game
//
// $NoKeywords: $
//
//=================================================================================//
#ifndef __VGUI_SOUNDSCAPE_MAKER_H
#define __VGUI_SOUNDSCAPE_MAKER_H

#ifdef _WIN32
#pragma once
#endif

#include "vgui/VGUI.h"

//interface for soundscape maker panel
class ISoundscapeMaker
{
public:
	virtual void Create(vgui::VPANEL parent) = 0;
	virtual void Destroy() = 0;
	virtual void SetSoundText(const char* text) = 0;
	virtual void SetAllVisible(bool bVisible) = 0;
};

extern ISoundscapeMaker* g_SoundscapeMaker;

#endif //__VGUI_SOUNDSCAPE_MAKER_H