Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
900 B

#ifndef TILEGEN_PLACEDROOMTEMPLATEPANEL_H
#define TILEGEN_PLACEDROOMTEMPLATEPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include "RoomTemplatePanel.h"
class CRoom;
// draws a particlar room template (based on its image and grid/exits)
class CPlacedRoomTemplatePanel : public CRoomTemplatePanel
{
DECLARE_CLASS_SIMPLE( CPlacedRoomTemplatePanel, CRoomTemplatePanel );
public:
CPlacedRoomTemplatePanel(CRoom* pRoom, Panel *parent, const char *name);
virtual ~CPlacedRoomTemplatePanel();
virtual void PerformLayout();
virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
virtual void OnMouseReleased(vgui::MouseCode code);
virtual void OnMousePressed(vgui::MouseCode code);
virtual void MarkForDeletion();
virtual void OnDragged();
CRoom *m_pRoom;
private:
bool m_bSetAlpha, m_bStartedGrowAnimation, m_bSelectedOnThisPress, m_bDragged;
};
#endif TILEGEN_PLACEDROOMTEMPLATEPANEL_H