KF2-YetAnotherScoreboard/YAS/Classes/KFGUI_Tooltip.uc
GenZmeY b1635b8e28 update .editorconfig
I changed my mind a little
2023-05-02 22:15:56 +03:00

42 lines
643 B
Ucode

class KFGUI_Tooltip extends KFGUI_Base;
var() array<string> Lines;
var() Canvas.FontRenderInfo TextFontInfo;
var byte CurrentAlpha;
function InputMouseMoved()
{
DropInputFocus();
}
function MouseClick(bool bRight)
{
DropInputFocus();
}
function MouseRelease(bool bRight)
{
DropInputFocus();
}
function ShowMenu()
{
CurrentAlpha = 1;
}
final function SetText(string S)
{
ParseStringIntoArray(S, Lines, "<SEPERATOR>", false);
}
function PreDraw()
{
if (!bVisible)
return;
Owner.CurrentStyle.RenderToolTip(Self);
}
defaultproperties
{
TextFontInfo=(bClipText=true, bEnableShadow=true)
bCanFocus=false
bFocusedPostDrawItem=true
}