NS/releases/3.1.3/source/mod/AvHPieMenuHandler.h
puzl 860617f419 made a copy
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@376 67975925-1194-0748-b3d5-c16f83f1a3a1
2006-01-15 21:48:23 +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