965 {
966 if (message)
967 {
968 m_HintWidgetRoot =
g_Game.GetWorkspace().CreateWidgets(
"gui/layouts/script_console/script_console_hint.layout");
971
974
975 int offsetX = 0;
976 int offsetY = 10;
977
978 int screenW, screenH;
980
981 int mouseX, mouseY;
983
984 float relativeX = mouseX / screenW;
985 float relativeY = mouseY / screenH;
986
987 int width, height;
989 if (relativeX > 0.8)
990 offsetX = -width - offsetX;
991 if (relativeY > 0.8)
992 offsetY = -height - offsetY;
993
996
997 }
998 }
proto void GetScreenSize(out int x, out int y)
proto void GetMousePos(out int x, out int y)