2017-10-20 02:00:49 +00:00
|
|
|
Class KFGUI_Tooltip extends KFGUI_Base;
|
|
|
|
|
|
|
|
var() array<string> Lines;
|
|
|
|
var() Canvas.FontRenderInfo TextFontInfo;
|
|
|
|
var byte CurrentAlpha;
|
|
|
|
|
|
|
|
function InputMouseMoved()
|
|
|
|
{
|
|
|
|
DropInputFocus();
|
|
|
|
}
|
2020-11-28 20:04:55 +00:00
|
|
|
function MouseClick(bool bRight)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
DropInputFocus();
|
|
|
|
}
|
2020-11-28 20:04:55 +00:00
|
|
|
function MouseRelease(bool bRight)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
DropInputFocus();
|
|
|
|
}
|
|
|
|
function ShowMenu()
|
|
|
|
{
|
|
|
|
CurrentAlpha = 1;
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
final function SetText(string S)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
ParseStringIntoArray(S,Lines,"|",false);
|
|
|
|
}
|
|
|
|
|
|
|
|
function PreDraw()
|
|
|
|
{
|
|
|
|
Owner.CurrentStyle.RenderToolTip(Self);
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
TextFontInfo=(bClipText=true,bEnableShadow=true)
|
|
|
|
bCanFocus=false
|
|
|
|
bFocusedPostDrawItem=true
|
|
|
|
}
|