652 {
653 if (message)
654 {
658
661
662 int offsetX = 0;
663 int offsetY = 10;
664
665 int screenW, screenH;
667
668 int mouseX, mouseY;
670
671 float relativeX = mouseX / screenW;
672 float relativeY = mouseY / screenH;
673
674 int width, height;
676 if (relativeX > 0.8)
677 offsetX = -width - offsetX;
678 if (relativeY > 0.8)
679 offsetY = -height - offsetY;
680
683
684 }
685 }
ImageWidget m_HintWidgetBackground
RichTextWidget m_HintWidget
proto native WorkspaceWidget GetWorkspace()
proto native CGame GetGame()
proto void GetScreenSize(out int x, out int y)
proto void GetMousePos(out int x, out int y)