[ABANDONED] extension of goto function

If you have an idea for a new feature, please discuss it in the main MapTool forum first, then post a summary of the discussion here. Use the first Sticky as a template.

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

[ABANDONED] extension of goto function

Post by wolph42 »

see last post, this request is not interesting anymore.

I was wondering, is it possible and feasible to extend the goto function with an optional parameter: 'units'
so
goto(x,y[,units])
you can leave
goto(id) as is as units in that case is redundant.

units being defaults to 0 (grid cell coord) and optional 1 (pixel coords).

I'm currently making 'hover' function which animates the view of the clients on a new map, where the viewport of a client is taken over the map as an animated overview of that map. Currently I have the granularity of grid cell which makes the animation rather jerky, having the option for pixel coords can make it go much more fluent.

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: extension of goto function

Post by JamzTheMan »

Possible? Yes, most likely. When? Another question... Soon(tm)? :mrgreen:

Unless someone else can take up the mantle. (Man, we really need to get you into some Java coding, you do enough macro coding, oh wait...I can see the macro function list growing 10x lol)
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

User avatar
Jagged
Great Wyrm
Posts: 1306
Joined: Mon Sep 15, 2008 9:27 am
Location: Bristol, UK

Re: extension of goto function

Post by Jagged »

Could this not be done using the setViewArea function?

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: extension of goto function

Post by wolph42 »

Jagged wrote:Could this not be done using the setViewArea function?
interesting notion. no clue, I'll have to check that.

edit: checked it and you're right. setViewArea is better anyway to use instead of goto, so forget this request

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: extension of goto function

Post by Full Bleed »

JamzTheMan wrote:(Man, we really need to get you into some Java coding, you do enough macro coding, oh wait...I can see the macro function list growing 10x lol)
And that's a bad thing? ;)

I think both Wolph and Alias could be killer javascript coders. Bending MT's script to their will is probably a magnitude more difficult.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
Jagged
Great Wyrm
Posts: 1306
Joined: Mon Sep 15, 2008 9:27 am
Location: Bristol, UK

Re: extension of goto function

Post by Jagged »

wolph42 wrote: edit: checked it and you're right. setViewArea is better anyway to use instead of goto, so forget this request
Awesome. When you've finished, I'd love to see a video clip of your "animated map tour" :D

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: extension of goto function

Post by wolph42 »

Jagged wrote:
wolph42 wrote: edit: checked it and you're right. setViewArea is better anyway to use instead of goto, so forget this request
Awesome. When you've finished, I'd love to see a video clip of your "animated map tour" :D
well, that can take a while. I have most ready, but for 1.91 (using goto) the swap to setViewArea is easy, however requires an upgrade of the BoT to 1.4 and that aint gonna happen anytime soon as I'm also working on the conversion to mote. As soon as I go for 1.4 thats over.

Post Reply

Return to “Feature Requests”