K00sKlust / slither.io-bot-manager

An application to create multiple instances of Slither.io-bots, and manage them.
Mozilla Public License 2.0
1 stars 0 forks source link

Future ideas list #4

Open tjorim opened 8 years ago

tjorim commented 8 years ago

Near future:

/* Table layouts by default are `auto`, which overflows
and ignores the `max-width` of the table anyway */
table { table-layout: fixed; }
table td { word-wrap: break-word; }
K00sKlust commented 8 years ago

Nices ideas :+1:

The ability to paste the code directly is pretty hard, because of the ', , and the ". Maybe a filebrowser to select the location of the bot.js is easy and fast enough for a user.

tjorim commented 8 years ago

@K00sKlust


Yeah that might be a problem, selecting a local script like file://D:/Documents/GitHub/Slither.io-bot/bot.user.js does work though.

A fileselector could be ease, would the use of <input type=‘file’> or a dialog like this be preferred?


Wrap the content of a table cell if too long - tjorim

Wouldn't it be nicer to just add a horizontal scrollbar to the table? - K00sKlust

Yes, but then it should only be the table. Or better yet: only the concerned column so we could still see about which of the bots it is.

Right now the whole window has a horizontal scrollbar and the values flow out of the table, the size of the table doesn't adjust (because it can't as the width of the container is fixed).

schermopname 115 schermopname 126

K00sKlust commented 8 years ago

I will take a look at it next week. I'm pretty busy at the moment. :) Feel free to write some code. I think the current method to inject the script is fine.

Does that dialog just return a string of the filepath? It does.

On success this method returns an array of file paths chosen by the user, otherwise it returns undefined.

That means we can just pass the first path of the list to the inject function. (insertScriptToWindow)