2022-09-03 17:26:40 +00:00
|
|
|
class KFGUI_Tooltip extends KFGUI_Base;
|
2021-06-12 20:11:37 +00:00
|
|
|
|
2021-06-13 03:17:40 +00:00
|
|
|
var() array<string> Lines;
|
2020-01-10 13:14:11 +00:00
|
|
|
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
|
|
|
}
|
2021-06-13 03:00:19 +00:00
|
|
|
function MouseClick(bool bRight)
|
2020-01-10 13:14:11 +00:00
|
|
|
{
|
2021-05-16 09:40:02 +00:00
|
|
|
DropInputFocus();
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
2021-06-13 03:00:19 +00:00
|
|
|
function MouseRelease(bool bRight)
|
2020-01-10 13:14:11 +00:00
|
|
|
{
|
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
|
|
|
}
|
|
|
|
|
2021-06-13 03:00:19 +00:00
|
|
|
final function SetText(string S)
|
2020-01-10 13:14:11 +00:00
|
|
|
{
|
2021-06-13 07:29:12 +00:00
|
|
|
ParseStringIntoArray(S, Lines, "<SEPERATOR>", false);
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function PreDraw()
|
|
|
|
{
|
2021-06-13 02:53:33 +00:00
|
|
|
if (!bVisible)
|
2021-05-16 09:40:02 +00:00
|
|
|
return;
|
|
|
|
|
|
|
|
Owner.CurrentStyle.RenderToolTip(Self);
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
2021-06-13 02:54:35 +00:00
|
|
|
TextFontInfo=(bClipText=true, bEnableShadow=true)
|
2021-05-16 09:40:02 +00:00
|
|
|
bCanFocus=false
|
|
|
|
bFocusedPostDrawItem=true
|
2020-01-10 13:14:11 +00:00
|
|
|
}
|