Author Topic: Notify Box position  (Read 1372 times)

garry23

  • Contributor
  • Hero Member
  • *****
  • Posts: 1697
Notify Box position
« on: September 02, 2018, 02:32:31 PM »
@a1ex

I appreciate this is not a priority matter, however, the next time you update Lua, could you consider adding a position feature to the notify box.

The reason being that the fixed position often clashes with other ML info and having a single fixed position means you can't do two lines.

I was thinking something like this:

Quote
notify_box(text[, timeout=1000,[xpos,[ypos]]])

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12171
  • Maintenance mode
Re: Notify Box position
« Reply #1 on: September 21, 2018, 03:57:20 PM »
If the request is about multiple notification messages, each with its own position and timeout, that's going to be a little more difficult than just adding position parameters.

Right now, you should be able to display 2 (or more) lines by inserting a newline ("\n") in your string.

garry23

  • Contributor
  • Hero Member
  • *****
  • Posts: 1697
Re: Notify Box position
« Reply #2 on: September 21, 2018, 04:26:26 PM »
@a1ex

Yes that was the thinking.

But, as you suggest, I can ‘fake’ the positional placement by using “\n”s and space characters.

Cheers

Garry