willzeng / WikiNets

[deprecated] see cograph
https://github.com/willzeng/cograph
GNU General Public License v3.0
30 stars 11 forks source link

Make instructions box into its own plugin #175

Open willzeng opened 10 years ago

willzeng commented 10 years ago

Right now the instructions/message box is dependent on the TopBarCreate plugin, which certainly isn't the way to do.

Should isolate this into its own plugin.

backens commented 10 years ago

What are we going to do about different plugins overwriting each other's messages? Put in some sort of priority system? E.g. if someone's creating a link, the "select target node" message should probably not be overwritten by stuff like "double click to find connections", because that's irrelevant and confusing in that moment.

willzeng commented 10 years ago

Good point. Does it make sense to just give each message an integer priority level? This way it works sort of like z-indexes.

The message is only replaced if it has a higher priority level then what is currently displayed.

Are there other suggestions about how to implement this?

vpontis commented 10 years ago

I would say that even an integer system might be too complicated. We see that problem with z-indices when people hack up a solution and want their thing in the front they set the z-index to 5000, then the next person sets the z-index to 9999. It becomes some sort of war.

I would advocate trying to do without a priority system or if we have a priority system just have it be two-tiered: with priority and without. I'm sure this does not need a complicated priority system.

Victor Pontis Massachusetts Institute of Technology 2015 vpontis@mit.edu | 858-761-5232

On Thu, Mar 20, 2014 at 3:55 PM, Will Zeng notifications@github.com wrote:

Good point. Does it make sense to just give each message an integer priority level? This way it works sort of like z-indexes.

The message is only replaced if it has a higher priority level then what is currently displayed.

Are there other suggestions about how to implement this?

Reply to this email directly or view it on GitHubhttps://github.com/willzeng/WikiNets/issues/175#issuecomment-38184689 .

willzeng commented 10 years ago

My vote is for the two level system you suggest Victor.