42 lines
605 B
Ucode
Raw Normal View History

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