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.
[ABANDONED] extension of goto function
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
[ABANDONED] extension of goto function
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
- JamzTheMan
- Great Wyrm
- Posts: 1872
- Joined: Mon May 10, 2010 12:59 pm
- Location: Chicagoland
- Contact:
Re: extension of goto function
Possible? Yes, most likely. When? Another question... Soon(tm)?
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)
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
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
Re: extension of goto function
Could this not be done using the setViewArea function?
Re: extension of goto function
interesting notion. no clue, I'll have to check that.Jagged wrote:Could this not be done using the setViewArea function?
edit: checked it and you're right. setViewArea is better anyway to use instead of goto, so forget this request
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: extension of goto function
And that's a bad thing?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)
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."
Re: extension of goto function
Awesome. When you've finished, I'd love to see a video clip of your "animated map tour"wolph42 wrote: edit: checked it and you're right. setViewArea is better anyway to use instead of goto, so forget this request
Re: extension of goto function
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.Jagged wrote:Awesome. When you've finished, I'd love to see a video clip of your "animated map tour"wolph42 wrote: edit: checked it and you're right. setViewArea is better anyway to use instead of goto, so forget this request
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS