Ein Overlay ist die einfachste Lösung:
// room script file
Overlay*cursor_text;
function room_RepExec() {
Hotspot*h = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
int w;
if (h.ID > 0) {
w = GetTextWidth(h.Name, eFontFont1);
w = 2 - (4+w)*(mouse.x + w > 319);
cursor_text = Overlay.CreateTextual(mouse.x+w, mouse.y+2, 150, eFontFont1, 15, h.Name);
}
else if (cursor_text != null && cursor_text.Valid) cursor_text.Remove();
}