mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-18 15:22:47 +03:00
Update Menu.cpp
This commit is contained in:
parent
f10b905952
commit
e42867ad64
@ -2386,16 +2386,15 @@ int Menu::GetCurrentlyHighlightedItem()
|
|||||||
// Purpose: Respond to cursor entering a menuItem.
|
// Purpose: Respond to cursor entering a menuItem.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// Josh: Slightly annoying, but need to completely ensure compatiblity with the SDK + GameUI interactions.
|
// Josh: Slightly annoying, but need to completely ensure compatibility with the SDK + GameUI interactions.
|
||||||
#ifdef PLATFORM_64BITS
|
#ifdef PLATFORM_64BITS
|
||||||
void Menu::OnCursorEnteredMenuItem( vgui::Panel* VPanel )
|
void Menu::OnCursorEnteredMenuItem( vgui::Panel* VPanel )
|
||||||
{
|
|
||||||
VPANEL menuItem = (VPANEL) VPanel;
|
|
||||||
#else
|
#else
|
||||||
void Menu::OnCursorEnteredMenuItem(int VPanel)
|
void Menu::OnCursorEnteredMenuItem(int VPanel)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
VPANEL menuItem = (VPANEL)VPanel;
|
VPANEL menuItem = (VPANEL)VPanel;
|
||||||
#endif
|
|
||||||
// if we are in mouse mode
|
// if we are in mouse mode
|
||||||
if (m_iInputMode == MOUSE)
|
if (m_iInputMode == MOUSE)
|
||||||
{
|
{
|
||||||
@ -2419,13 +2418,12 @@ void Menu::OnCursorEnteredMenuItem(int VPanel)
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
#ifdef PLATFORM_64BITS
|
#ifdef PLATFORM_64BITS
|
||||||
void Menu::OnCursorExitedMenuItem( vgui::Panel* VPanel )
|
void Menu::OnCursorExitedMenuItem( vgui::Panel* VPanel )
|
||||||
{
|
|
||||||
VPANEL menuItem = (VPANEL) VPanel;
|
|
||||||
#else
|
#else
|
||||||
void Menu::OnCursorExitedMenuItem( int VPanel )
|
void Menu::OnCursorExitedMenuItem( int VPanel )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
VPANEL menuItem = (VPANEL) VPanel;
|
VPANEL menuItem = (VPANEL) VPanel;
|
||||||
#endif
|
|
||||||
// only care if we are in mouse mode
|
// only care if we are in mouse mode
|
||||||
if (m_iInputMode == MOUSE)
|
if (m_iInputMode == MOUSE)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user