|
Page 1 of 1
|
[ 13 posts ] |
|
What about a mouse overlay?
| Author |
Message |
|
mrdon
Chief Warrant Officer
Joined: Sat Nov 17, 2001 3:00 am Posts: 175
|
 What about a mouse overlay?
I've been playing with ideas on how to make TradeWars more friendly and accessible without losing its vintage soul, and tonight's project was an optional mouse overlay I implemented in Weapon M. It works by detecting a mouse curser hover, and if present, highlight the data item in the terminal, providing a default action on a left click or a popup menu of all applicable options on right click. Here is what it looks like on hover when it detects a warp: Attachment:
hover.png [ 4.17 KiB | Viewed 11882 times ]
And when you right click on hover: Attachment:
popup.png [ 7.23 KiB | Viewed 11882 times ]
Notice the default action, Move, is in bold. I have to admit it is fun warping around and trading with just a mouse click. The nice thing about this feature is it is totally optional, and only activates when the mouse is in the terminal area. Where this idea gets interesting is when it is combined with automation scripts, and ultimately, with a more touch-driven device like a ipad.
|
| Tue Jan 22, 2013 2:35 am |
|
 |
|
Tweety
Boo! inc.
Joined: Fri Jan 04, 2002 3:00 am Posts: 221 Location: Canada
|
 Re: What about a mouse overlay?
I love the idea. it implements my quick move panel i thought of in a way.
You could have a option to set the default to a custom script. and do a separate loader for the right click. maybe scripts in a specific directory. or load a init file that has default and extra custom scripts set.
one problem i see, but there should be a work around, is when we get a option to copy and paste text in the terminal.
|
| Tue Jan 22, 2013 3:07 am |
|
 |
|
Cruncher
Ambassador
Joined: Fri Feb 23, 2001 3:00 am Posts: 4016 Location: USA
|
 Re: What about a mouse overlay?
Very nice! It's exciting to witness the "birth" of a new TW helper.
_________________
BOTE 1998 Champs: Team Fament HHT 2015 Champs: Cloud09 Big Game 2016 Champs: Draft team HHT 2018 Champs: Rock Stars Big Game 2019 Champs: Draft Team
Classic Style Games Here: telnet://crunchers-twgs.com:2002 Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm Blog with current server info: http://cruncherstw.blogspot.com Discord: https://discord.gg/4dja5Z8 E-mail: Cruncherstw@gmail.com FaceBook: http://www.facebook.com/CrunchersTW
|
| Tue Jan 22, 2013 8:56 am |
|
 |
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
 Re: What about a mouse overlay?
You stole my idea... Are you a Vulcan? Get out of my head 
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
| Tue Jan 22, 2013 3:57 pm |
|
 |
|
mrdon
Chief Warrant Officer
Joined: Sat Nov 17, 2001 3:00 am Posts: 175
|
 Re: What about a mouse overlay?
Micro wrote: You stole my idea... Are you a Vulcan? Get out of my head  Hmm..what else is lurking in that head then?  Well, since there seems to be some interest, I'll put more time into this. Making it configurable and extensible with custom scripts is key. I was thinking of a new extension point that has: - A trigger function to help the menu determine if the action is applicable (trade port detected, for example, or presence of a scanner or planet) - The function to perform the desired action. Having the full db at your scripts desposal will be nice.
|
| Tue Jan 22, 2013 4:05 pm |
|
 |
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
 Re: What about a mouse overlay?
mrdon wrote: Hmm..what else is lurking in that head then?  I have a lot of ideas for FirstMate, and I plan on releasing something soon even though it isn't ready. I just added tabbed sessions (like IE8+/Chrome) to it, so you can play multiple games in the same window. I still need to make the tabs draggable though. Now I'm working on a dialing directory that interfaces with MicroBlaster.net (MBN) to get server listings, and fixing a bunch of stuff I broke implementing the new tabbed frame. I'm thinking of using a web service to access the MBN database, so other helpers will be able to use it too if they want to. FirstMate for DOS in 1996 had an enhanced sector display that included port information, so that's probably what I will work on after the dialing directory.
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
| Tue Jan 22, 2013 4:51 pm |
|
 |
|
mrdon
Chief Warrant Officer
Joined: Sat Nov 17, 2001 3:00 am Posts: 175
|
 Re: What about a mouse overlay?
Micro wrote: mrdon wrote: Hmm..what else is lurking in that head then?  I have a lot of ideas for FirstMate, and I plan on releasing something soon even though it isn't ready. I just added tabbed sessions (like IE8+/Chrome) to it, so you can play multiple games in the same window. I still need to make the tabs draggable though. Now I'm working on a dialing directory that interfaces with MicroBlaster.net (MBN) to get server listings, and fixing a bunch of stuff I broke implementing the new tabbed frame. I'm thinking of using a web service to access the MBN database, so other helpers will be able to use it too if they want to. FirstMate for DOS in 1996 had an enhanced sector display that included port information, so that's probably what I will work on after the dialing directory. Man, too bad you didn't open source that earlier or we would have been working on FirstMate all these years instead of just getting started with Weapon M now.
|
| Tue Jan 22, 2013 4:56 pm |
|
 |
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
 Re: What about a mouse overlay?
I retired from TradeWars in 2001, and didn't come back until I heard about the 25th anniversary edition. At that time I was working on a windows version of FirstMate, when my boss fired me. He formatted my desktop because he was paranoid and thought might have left a trojan or backdoor behind. I lost the source code to my website, telnet crawler, and FirstMate.
Do you do c#/wpf?
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
| Tue Jan 22, 2013 5:15 pm |
|
 |
|
mrdon
Chief Warrant Officer
Joined: Sat Nov 17, 2001 3:00 am Posts: 175
|
 Re: What about a mouse overlay?
Micro wrote: I retired from TradeWars in 2001, and didn't come back until I heard about the 25th anniversary edition. At that time I was working on a windows version of FirstMate, when my boss fired me. He formatted my desktop because he was paranoid and thought might have left a trojan or backdoor behind. I lost the source code to my website, telnet crawler, and FirstMate.
Do you do c#/wpf? Yeah, know what you mean. I played a lot in the early-mid 90's, then bits and pieces every now and then, though my interest is mostly in helpers. I've accepted TW is my "forever project". Sorry to hear about the loss of source code. All the more reason to open source  As for c#, I run Linux at home, and OSX at work, so I haven't gotten much into c# other than some dabbling years ago. Java is really crap for UI but at least it runs in all operating systems. Someday I hope to push the UI into the browser, where it can reach even more platforms.
|
| Tue Jan 22, 2013 5:33 pm |
|
 |
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
 Re: What about a mouse overlay?
I went with WPF, because I wanted local hard drive access, but most of what I am doing could be ported over to Silverlight for the browser audience. Unfortunately, Microsoft has dropped all support for Silverlight. HTML5 has WebSockets, maybe that is the direction someone needs to go. You need IE10/Chrome/etc... though as IE8/9 do not support this.
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
| Tue Jan 22, 2013 6:00 pm |
|
 |
|
mrdon
Chief Warrant Officer
Joined: Sat Nov 17, 2001 3:00 am Posts: 175
|
 Re: What about a mouse overlay?
Micro wrote: I went with WPF, because I wanted local hard drive access, but most of what I am doing could be ported over to Silverlight for the browser audience. Unfortunately, Microsoft has dropped all support for Silverlight. HTML5 has WebSockets, maybe that is the direction someone needs to go. You need IE10/Chrome/etc... though as IE8/9 do not support this. Agreed, but as my day job is writing web apps, I view the lack of IE 8/9 support as a feature, not a bug Technically, Mongoose did a good job pulling out the display from network and ansi processing, so I don't think it would be too hard to send the events to the browser instead of the Swing canvas, however, first I want to play with this overlay idea a bit more.
|
| Tue Jan 22, 2013 6:07 pm |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: What about a mouse overlay?
I hacked something like this into JTA when I was first experimenting with the idea of writing a helper. I'm planning to add a similar control to JTX.
_________________ Suddenly you're Busted!
|
| Tue Jan 22, 2013 11:39 pm |
|
 |
|
mrdon
Chief Warrant Officer
Joined: Sat Nov 17, 2001 3:00 am Posts: 175
|
 Re: What about a mouse overlay?
mrdon wrote: Making it configurable and extensible with custom scripts is key. I was thinking of a new extension point that has: - A trigger function to help the menu determine if the action is applicable (trade port detected, for example, or presence of a scanner or planet) - The function to perform the desired action. Having the full db at your scripts desposal will be nice. Ok, I put in a very simple plugin system (zip of JavaScript files), so now I have a framework for building new extension points to let folks customize more than just add scripts, though that's all that exists for now. To get the ball rolling, I added a set of default scripts delivered via a new starter plugin that is bundled with Weapon M. Will look into bringing the overlay feature into master + making it extensible with plugins. To deploy a plugin, just drop the zip file in .weaponm/plugins (or where ever the weapon m home is for your os). This is what a plugin looks like (starter.zip): Code: plugin.yaml script/Keep_Alive.js script/Move.js script/Pair_Trade.js Then plugin.yaml looks like this: Code: name : Starter Scripts description: A set of starter scripts that are shipped with Weapon M Thinking of moving preferences over to a simple yaml file in the home directory...
|
| Wed Jan 23, 2013 1:47 am |
|
 |
|
|
Page 1 of 1
|
[ 13 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 80 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|