661 {
662 if (message)
663 {
664 m_HintWidgetRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/script_console/script_console_hint.layout");
667
670
671 int offsetX = 0;
672 int offsetY = 10;
673
674 int screenW, screenH;
676
677 int mouseX, mouseY;
679
680 float relativeX = mouseX / screenW;
681 float relativeY = mouseY / screenH;
682
683 int width, height;
685 if (relativeX > 0.8)
686 offsetX = -width - offsetX;
687 if (relativeY > 0.8)
688 offsetY = -height - offsetY;
689
692
693 }
694 }
ImageWidget m_HintWidgetBackground
RichTextWidget m_HintWidget
proto void GetScreenSize(out int x, out int y)
proto void GetMousePos(out int x, out int y)