Jump to content




Notifications


4 replies to this topic

Poll: What do you think of this idea?

Do you like this idea?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.

How would you use this?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

#1 MarcoPolo0306

  • Members
  • 71 posts
  • LocationEverywhere and nowhere.

Posted 12 June 2018 - 03:55 PM

A notifications API would be very cool to have. If an OS wanted to get a person's attention (say a program was done downloading) the blank bottom-right corner of the computer would turn a certain color (one of the colors from the color pallet)

How it would be used:

notifications.send("Hello World!", colors.lightBlue) -- sends a notification
notifications.receive(colors.lightBlue) -- receives all notifications and returns them as a table. If a color was provided, then it would return all notifications with that color
notifications.clear() -- Clears all notifacations.

The most recent notifications color will be displayed on the front of the screen.

#2 CLNinja

  • Members
  • 191 posts

Posted 12 June 2018 - 04:22 PM

If an OS wants to get a persons attention they can just rip user control away. A notification daemon isn't really useful. A menu for notifications with a hotkey or a button onscreen that might change colors or icons is the better way to go about doing it. There's very little screenspace as is, lets not take it up with another box that does nothing useful.

Edit: Not to mention, if there's something to have a notification about in your OS, i'm hoping it's a rednet or modem based chat, because otherwise you're doing something wrong.

Edited by CLNinja, 12 June 2018 - 04:23 PM.


#3 Lignum

  • Members
  • 558 posts

Posted 12 June 2018 - 04:30 PM

While I've got nothing against notifications, this is way out of scope for ComputerCraft's API collection. It's something that should be implemented by players.

#4 Jummit

  • Members
  • 306 posts
  • LocationJulfander Squad Studio

Posted 12 June 2018 - 06:43 PM

This is not very low level like all the other craftOS default apis are. CraftOS only gives you the most basic of the basic, so this api would be very overkill.

#5 osmarks

  • Members
  • 22 posts

Posted 26 July 2018 - 10:51 AM

This sounds like something which could be implemented by players.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users