[UI] Let clickable link name boxes and name editors have hand cursors instead of I-beams.
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "llviewerprecompiledheaders.h"
|
||||
|
||||
#include "llnamebox.h"
|
||||
#include "llwindow.h"
|
||||
|
||||
static LLRegisterWidget<LLNameBox> r("name_box");
|
||||
|
||||
@@ -66,6 +67,17 @@ BOOL LLNameBox::handleRightMouseDown(S32 x, S32 y, MASK mask)
|
||||
return handled;
|
||||
}
|
||||
|
||||
// virtual
|
||||
BOOL LLNameBox::handleHover(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
if (mAllowInteract)
|
||||
{
|
||||
getWindow()->setCursor(UI_CURSOR_HAND);
|
||||
return true;
|
||||
}
|
||||
return LLTextBox::handleHover(x, y, mask);
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLNameBox::initFromXML(LLXMLNodePtr node, LLView* parent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user