Merge branch '138-toggle-free-look-with-hotkey' into 'main/atys-live'
[ryzomcore.git] / nel / src / gui / view_link.cpp
blob4e9cb17ced88dc62031fc87b5304c7fa2b42b428
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2013 Laszlo KIS-ADAM (dfighter) <dfighter1985@gmail.com>
6 //
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include "stdpch.h"
21 #include "nel/gui/view_link.h"
23 #include "nel/misc/bit_mem_stream.h"
24 #include "nel/misc/i18n.h"
26 using namespace std;
27 using namespace NLMISC;
28 using namespace NL3D;
30 #ifdef DEBUG_NEW
31 #define new DEBUG_NEW
32 #endif
34 namespace NLGUI
37 // ***************************************************************************
39 CViewLink::CViewLink (const TCtorParam &param)
40 : CViewText(param)
42 HTML = NULL;
45 // ***************************************************************************
47 void CViewLink::setHTMLView(CGroupHTML *html)
49 HTML = html;
52 // ***************************************************************************
53 bool CViewLink::getMouseOverShape(string &texName, uint8 &rot, CRGBA &col)
55 if (HTML != NULL)
57 if (!LinkTitle.empty())
59 texName = LinkTitle;
60 rot= 0;
61 col = CRGBA::White;
62 return true;
66 return false;
70 // ***************************************************************************