Programming/vgui soundscape maker.h: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added new SetBuffer function that is used for the text editor panel for vgui_soundscape_maker.cp)
m (Added KeyValue* functions for the sound panel for the '''vgui_soundscape_maker.cpp''' file)
Line 26: Line 26:
virtual void SetAllVisible(bool bVisible) = 0;
virtual void SetAllVisible(bool bVisible) = 0;
virtual void SetBuffer(const char* text) = 0;
virtual void SetBuffer(const char* text) = 0;
virtual KeyValues* GetPanelFile() = 0;
virtual KeyValues* GetPanelSelected() = 0;
};
};



Revision as of 23:25, 22 June 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;
	virtual void SetBuffer(const char* text) = 0;
	virtual KeyValues* GetPanelFile() = 0;
	virtual KeyValues* GetPanelSelected() = 0;
};

extern ISoundscapeMaker* g_SoundscapeMaker;

#endif //__VGUI_SOUNDSCAPE_MAKER_H