2020-01-10 13:14:11 +00:00
|
|
|
Class KFGUI_Tooltip extends KFGUI_Base;
|
|
|
|
|
|
|
|
var() array<string> Lines;
|
|
|
|
var() Canvas.FontRenderInfo TextFontInfo;
|
|
|
|
var byte CurrentAlpha;
|
|
|
|
|
|
|
|
function InputMouseMoved()
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
DropInputFocus();
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
function MouseClick( bool bRight )
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
DropInputFocus();
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
function MouseRelease( bool bRight )
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
DropInputFocus();
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
function ShowMenu()
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
CurrentAlpha = 1;
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
final function SetText( string S )
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
ParseStringIntoArray(S,Lines,"<SEPERATOR>",false);
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function PreDraw()
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
if( !bVisible )
|
|
|
|
return;
|
|
|
|
|
|
|
|
Owner.CurrentStyle.RenderToolTip(Self);
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
TextFontInfo=(bClipText=true,bEnableShadow=true)
|
|
|
|
bCanFocus=false
|
|
|
|
bFocusedPostDrawItem=true
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|