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