Ok, new plugin, nothing big, I stumbled upon the hidden automatic resize feature of the command window in v4.30 and decided to write a command interface, so instead of having to go through the script to activate/change it, you can just type some commands to do the work.
On another note, I've been working a little more on my new yet-to-be-released mushcode conversion plugin, I've combined it with my Paste_As_MUSH plugin, and added different methods of using it, I may post it soon, but I looked and I noticed I ended up adding 5 different menu options to the alias menu, which seems like a little too much to me, so I'm trying to figure out a way to cut that down. One option would be to make it 1-2 menu option(s), and simply pop up a listbox to pick which option you want to use, however, that'd slow it down a bit I think, then again they might not be using it constantly, and some of them are already kinda... It'd be really nice if I could just have a way to make a sub-menu, although I'm not sure how that'd work without changing the way the alias menu works.
Anyways, I'll list the current options here:
* Convert Clipboard to MUSHcode(This takes the clipboard contents, converts them to MUSHcode, pops the result up in an edit box, allowing you to alter or copy it, then either click ok to insert in the command window, or cancel to discard it if you only wanted to copy it.)
* Convert Command Selection to MUSHcode(This takes the current selected text in the command window, converts to MUSHcode, then pastes it back, also selecting the converted text.)
* Convert Inputted Text to MUSHcode(This pops up an edit box for you to enter text, then proceeds like the Clipboard option, this option might be redundant so I might take that out. I suppose it might be good to type up a mail message or bbpost though, so I'm not sure, you could always type it in the command window and use the other option.)
* Convert Output Selection to MUSHcode 16 color(This takes the selected text in the output window, converts it to mushcode including using ansi() to get the colors, and pops up the result in an edit box for editing/copying, then allows you to either insert it or discard it.)
* Convert Output Selection to MUSHcode 256 color(8bit only, unless some other game uses the same color() function to make 256 color text. This works just like the 16 color option, only uses color() instead of ansi(), which also means it doesn't get stuff like underline and flash and the like.)
I'm trying to decide what to do, or how to tweak it. I was thinking I could combine the input selection, with the 16 color option, and simply have the code detect what window has the selection(as in a recent release it was made you can only have a selection in one or the other anyways.), if something is selected in the output window, use the 16 color code, otherwise check the input window, and if there's something selected then convert it. Then leave the 256 color as a seperate option, which can be disabled with a simple edit of the file just changing the 'enabled' status of the alias, or I can release 8bit and non-8bit versions. (BTW, I would be rather curious if there's any other games MUSH or not that use the 256 color standard.) Anyway, this would narrow it down to 3-4 options. Convert clipboard, Convert Inputted Text, Convert Selection, and optionally Convert Selection 256. Does anybody have any opinions about anything I could/should add/remove/change? Then again it's kinda hard to form an opinion without trying something first, but from what I've described?
Edit: I just had a thought, I could make it so that if nothing is selected in the output or input windows, then either prompt for something or grab it from the clipboard, but I'm not sure about that idea. Because that way you'd have to make sure nothing was selected to use that third option.
Edit: I could take that even further, first check the output window, then the input window, then prompt for input with the clipboard text as the default. Effectively combining 4 out of 5 options, but it'd be rather tricky for the user, as they'd have to make sure they meet the different conditions to get the effect they want. |