RPTools.net

Discussion and Support

Skip to content

It is currently Mon Oct 16, 2017 4:58 pm 




Forum rules


PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)



Reply to topic  [ 5 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Cave Troll
 
Joined: Thu Jul 31, 2014 12:24 am
Posts: 32
 Post subject: Need a Larger "Input" Macro Window
PostPosted: Thu Jun 01, 2017 7:56 pm 
Hello everyone, I'm making a macro for MapTool and I need some advice. My macro is based on the input function, and I want to offer a selection of about ~30-50 images that the user can pick from. Using the "List" option, it is perfectly doable for about 20 images, but adding any more to the list causes the selection box to be too long and go off the screen. If I shrink the images so they all fit, they are too small to see.

It seems like the most obvious solution would be to offer the images in a grid, rather than a single line, but I can't find if this is possible or not. Another option might be to associate each picture with a radio button, as described at the bottom of the page. But again, I can't find any way to make the radio option into a grid instead of a line. If any macro experts out there can help me out, I would be very grateful, thanks in advance.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7882
Location: Bay Area
 Post subject: Re: Need a Larger "Input" Macro Window
PostPosted: Thu Jun 01, 2017 8:04 pm 
You can make tabs. This is especially good if you can group your images.

_________________
Downloads:


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Thu Jul 31, 2014 12:24 am
Posts: 32
 Post subject: Re: Need a Larger "Input" Macro Window
PostPosted: Thu Jun 01, 2017 9:12 pm 
The problem with tabs, or even multiple lists, is how do I tell the macro which tab or which list to use for the output?


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7882
Location: Bay Area
 Post subject: Re: Need a Larger "Input" Macro Window
PostPosted: Thu Jun 01, 2017 9:51 pm 
Depends on how you do it. You could use the image name or number it based on the list. Btw, you can use a dropdown list. I will create a scroll bar within the list.

_________________
Downloads:


Top
 Profile  
 
 Offline
Dragon
 
Joined: Tue Apr 20, 2010 7:22 pm
Posts: 597
 Post subject: Re: Need a Larger "Input" Macro Window
PostPosted: Thu Jun 08, 2017 1:46 pm 
I had a similar issue, because I wanted the images in my drop down to be bigger, so players could see the details. But putting all 20+ images into one drop down list made it too big for most resolutions. So here's what I did.


Code:
[h:status=input(
        "entrySpeed|25,30,35,40,45,50,55,60,65,70|Entry Speed|LIST|SELECT=0|VALUE=STRING|SPAN=TRUE",
        "whichList|1st, 2nd, 3rd|Pick image from which drop down|RADIO|SELECT=0|VALUE=STRING|SPAN=TRUE",
        "charImage1|"+imageList1+"|List #1|LIST|SELECT=0 ICON=TRUE ICONSIZE=112|VALUE=STRING|SPAN=TRUE",
        "charImage2|"+imageList2+"|List #2|LIST|SELECT=0 ICON=TRUE ICONSIZE=112|VALUE=STRING|SPAN=TRUE",
        "charImage3|"+imageList3+"|List #3|LIST|SELECT=0 ICON=TRUE ICONSIZE=112|VALUE=STRING|SPAN=TRUE"
)]

[h, if(whichList == 0) : setTokenImage(tableImage(tableName, charImage1 + 1))]
[h, if(whichList == 1) : setTokenImage(tableImage(tableName, charImage2 + 8))]
[h, if(whichList == 2) : setTokenImage(tableImage(tableName, charImage3 + 15))]


This gives 3 seperate drop downs, with a 1/3 of the images in each one and then a set of radio buttons. So the user can say, "I'm using the image selcted in drop down #2", for example.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 5 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 are 4 users online :: 0 registered, 0 hidden and 4 guests (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 4 guests





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

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman