861 {
862 if (message)
863 {
864 m_HintWidgetRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/script_console/script_console_hint.layout");
867
870
871 int offsetX = 0;
872 int offsetY = 10;
873
874 int screenW, screenH;
876
877 int mouseX, mouseY;
879
880 float relativeX = mouseX / screenW;
881 float relativeY = mouseY / screenH;
882
883 int width, height;
885 if (relativeX > 0.8)
886 offsetX = -width - offsetX;
887 if (relativeY > 0.8)
888 offsetY = -height - offsetY;
889
892
893 }
894 }
ImageWidget m_HintWidgetBackground
RichTextWidget m_HintWidget
proto void GetScreenSize(out int x, out int y)
proto void GetMousePos(out int x, out int y)