KF2-Server-Extension/ServerExt/Classes/KFGUI_Tooltip.uc

42 lines
605 B
Ucode
Raw Normal View History

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 21:54:57 +00:00
2020-11-28 20:04:55 +00:00
function MouseClick(bool bRight)
2017-10-20 02:00:49 +00:00
{
DropInputFocus();
}
2020-11-28 21:54:57 +00:00
2020-11-28 20:04:55 +00:00
function MouseRelease(bool bRight)
2017-10-20 02:00:49 +00:00
{
DropInputFocus();
}
2020-11-28 21:54:57 +00:00
2017-10-20 02:00:49 +00:00
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
}