WikiNets icon indicating copy to clipboard operation
WikiNets copied to clipboard

Make instructions box into its own plugin

Open willzeng opened this issue 11 years ago • 4 comments

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.

willzeng avatar Mar 20 '14 12:03 willzeng

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.

backens avatar Mar 20 '14 15:03 backens

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?

willzeng avatar Mar 20 '14 15:03 willzeng

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 [email protected] | 858-761-5232

On Thu, Mar 20, 2014 at 3:55 PM, Will Zeng [email protected] 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 .

vpontis avatar Mar 20 '14 16:03 vpontis

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

willzeng avatar Mar 20 '14 16:03 willzeng