RPTools.net

Discussion and Support

Skip to content

It is currently Wed Dec 13, 2017 2:13 am 




Forum rules


Posting now open to all registered forum users.



Reply to topic  [ 4 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Thu Oct 05, 2017 9:17 am
Posts: 2
 Post subject: Lock the background images in place??
PostPosted: Thu Oct 05, 2017 9:28 am 
Please tell me there is a way to lock the background images so they don't move around. Usually once a session I move the background map, which by proxy, messes up my vision blocking. Or even just while setting up the maps I will place a door, it jumps to the background map, I try to move what I think I've clicked on, and it screws up everything I've done. Playing a virtual tabletop style.

Thanks in advance,
Brian Klass


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9427
Location: Netherlands
 Post subject: Re: Lock the background images in place??
PostPosted: Thu Oct 05, 2017 9:43 am 
It does not happen often that I say this, but: no not possible... at least AFAIK!.

it would be if onTokenMove would work for background as well, but it does not, so no.
and yes I agree that it is annoying.

However, as usually when I say 'no' things start to pop-up in mind on how you *could* make it possible. Two option pop-up in mind:
1. simply create two macros (on the campaign panel): 'lock' and 'put it back'. In lock you store the current coords of the image (including width and height) ON the token itself and 'put it back' you simply read them out and apply them.
2. bit more fancy: use onMouseOver event for the 'put it back' though...im not sure OMO works for tokens on the BG. Anyway this can work really smooth, but could potentially be really annoying, so option 1 is probly best.

edit: stuff you need:
Wiki: getTokenX()
Wiki: getTokenY()
Wiki: getTokenHeight()
Wiki: getTokenWidth()

Wiki: moveToken()
Wiki: setTokenHeight()
Wiki: setTokenWidth()

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
 Offline
Kobold
 
Joined: Thu Oct 05, 2017 9:17 am
Posts: 2
 Post subject: Re: Lock the background images in place??
PostPosted: Thu Oct 05, 2017 10:13 am 
I have through my own devices (basically right after I posted this) discovered if I select map on the new map window and make my background image/map as the map image it can't be moved. This information would have saved me at least an hours worth of extra rework.


Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Sun Feb 25, 2007 11:53 am
Posts: 3782
Location: MD
 Post subject: Re: Lock the background images in place??
PostPosted: Thu Oct 05, 2017 10:45 am 
brian_klass wrote:
Usually once a session I move the background map, which by proxy, messes up my vision blocking.

I'm sitting here wondering why this happens to you when it *never* happens to me and then I realized that I almost never use the background layer for my background map.

If you import your background map when using Map>New Map and then select the Map button and import the map image that way the background image is not accessible from the Background Layer. So it's basically "locked".

_________________
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 4 posts ] 

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

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





cron

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman