ns/releases/valve/source/mod/AvHPieMenuHandler.h
puzl f44f16d59a made a copy
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@168 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-06-08 18:52:38 +00:00

46 lines
No EOL
1.5 KiB
C++

#ifndef AVHPIEMENUHANDLER_H
#define AVHPIEMENUHANDLER_H
#include <VGUI_InputSignal.h>
using namespace vgui;
class PieNode;
class AvHPieMenuHandler : public InputSignal
{
public:
static void ClosePieMenu(void);
static void OpenPieMenu(void);
static bool GetIsPieMenuOpen(void);
static PieMenu* GetActivePieMenu(void);
//static void MouseClosePieMenu(void);
//static void MouseOpenPieMenu(void);
static void NodeCancelled(void);
static void NodeChosen(const string& inNodeName, int inMessageID);
static void NodeActivated(const string& inNodeName);
static string GetPieMenuControl();
static void SetPieMenuControl(const string& inPieMenuName);
virtual void cursorMoved(int x,int y,Panel* panel);
virtual void cursorEntered(Panel* panel);
virtual void cursorExited(Panel* panel);
virtual void mousePressed(MouseCode code,Panel* panel);
virtual void mouseDoublePressed(MouseCode code,Panel* panel);
virtual void mouseReleased(MouseCode code,Panel* panel);
virtual void mouseWheeled(int delta,Panel* panel);
virtual void keyPressed(KeyCode code,Panel* panel);
virtual void keyTyped(KeyCode code,Panel* panel);
virtual void keyReleased(KeyCode code,Panel* panel);
virtual void keyFocusTicked(Panel* panel);
private:
static void InternalClosePieMenu(void);
static PieNode* sLastNodeHighlighted;
static string sPieMenuName;
static float sTimeLastNodeHighlighted;
static float sTimeMenuOpened;
static bool sPieMenuOpen;
};
#endif