Programming/vgui soundscape maker.h: Difference between revisions
Jump to navigation
Jump to search
WadDelz0949 (talk | contribs) m (Added KeyValue* functions for the sound panel for the '''vgui_soundscape_maker.cpp''' file) |
WadDelz0949 (talk | contribs) m (Added function for clipboard) |
||
Line 28: | Line 28: | ||
virtual KeyValues* GetPanelFile() = 0; | virtual KeyValues* GetPanelFile() = 0; | ||
virtual KeyValues* GetPanelSelected() = 0; | virtual KeyValues* GetPanelSelected() = 0; | ||
virtual void PasteFromClipboard(int type) = 0; | |||
}; | }; | ||
Latest revision as of 18:40, 25 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;
virtual void PasteFromClipboard(int type) = 0;
};
extern ISoundscapeMaker* g_SoundscapeMaker;
#endif //__VGUI_SOUNDSCAPE_MAKER_H