RPTools.net

Discussion and Support

Skip to content

It is currently Sat May 18, 2013 9:25 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  [ 14 posts ] 

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Dragon
 
Joined: Mon Jun 28, 2010 11:12 am
Posts: 563
Location: I'm the worm...
 Post subject: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Oct 22, 2010 2:59 pm 
How would I use TinyLAF to change the font inside the edit macro window to a monospaced font? I don't want it to change anywhere else.

- edit - Never mind, I finally figured out I just have to double click the tinylaf.jar inside /lib and save it to the base maptool folder. I downloaded TinyLAF from their website and was trying to use that. Maptool can't use the latest version I guess.


Last edited by JonathanTheBlack on Fri Oct 22, 2010 4:25 pm, edited 1 time in total.

Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Mon Jun 28, 2010 11:12 am
Posts: 563
Location: I'm the worm...
 Post subject: Re: TinyLAF and the macro editor...
PostPosted: Fri Oct 22, 2010 4:23 pm 
Here's the TinyLAF Default.theme that will make any JTextArea field use Courier New as a monospaced font. This includes any text fields in frames, dialogs, and input windows, but most importantly (at least for me) the macro edit window. All other fonts remain the same as the default: Tahoma. Just rename it to Default.theme instead of Default.zip and as far as I know, put it in your MapTool directory where you have the exe launcher and the maptool*.jar


Default .zip [5.22 KiB]
Downloaded 82 times
Top
 Profile  
 
User avatar  Offline
Demigod
 
Joined: Mon Jun 29, 2009 9:37 am
Posts: 2682
Location: Germany
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Oct 22, 2010 4:50 pm 
I like it. :)

_________________
"Cif's html works" (confirmed by independent studies)

most complete list of my maptool stuff


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Jul 01, 2008 6:48 pm
Posts: 6235
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Oct 22, 2010 6:05 pm 
Nice!



AHA! You can use the look-and-feel thing to deal with the excessively wide margins on the buttons, too (an issue people have run into is that by default, there's a 12-pixel left and right margin on buttons. This makes buttons on HTML frames/dialogs sometimes a lot wider than they need to be).

_________________

What I'm Working On

MapTool Tutorials:
Introduction to Tokens
Introduction to Properties
Introduction to Macro Writing
Introduction to Light and Sight


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Mon Jun 28, 2010 11:12 am
Posts: 563
Location: I'm the worm...
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Oct 22, 2010 9:19 pm 
Too bad we can't access those buttons directly in maptool.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Jul 01, 2008 6:48 pm
Posts: 6235
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Oct 22, 2010 9:42 pm 
JonathanTheBlack wrote:
Too bad we can't access those buttons directly in maptool.


Hm? You mean manipulating the Jbuttons in frames and stuff?

_________________

What I'm Working On

MapTool Tutorials:
Introduction to Tokens
Introduction to Properties
Introduction to Macro Writing
Introduction to Light and Sight


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: TinyLAF and the macro editor...
PostPosted: Fri Oct 22, 2010 9:42 pm 
JonathanTheBlack wrote:
Here's the TinyLAF Default.theme that will make any JTextArea field use Courier New as a monospaced font.

Note that there are only a few fonts that are portable and they are the generically named ones, so if you need/want to use the same theme in different locales choose a font like SansSerifMono (or whatever it's called). Using specific fonts makes your theme less portable since other people may not have that particular font installed.

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Mon Jun 28, 2010 11:12 am
Posts: 563
Location: I'm the worm...
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Oct 22, 2010 10:02 pm 
If courier new isn't a universal font... haha.


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Thu Dec 16, 2010 8:01 pm 
Heh-heh. There a term for that kind of thinking, y'know. :)

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 5300
Location: Bay Area
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Dec 17, 2010 1:49 pm 
Azhrei wrote:
Heh-heh. There a term for that kind of thinking, y'know. :)

Wow, I think you win the Geekiest Reference of the Year award for programming.

    Congratulations
Attachment:
images.jpg
images.jpg [ 12.31 KiB | Viewed 1418 times ]

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 11622
Location: Tampa, FL
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Dec 17, 2010 2:20 pm 
aliasmask wrote:
Wow, I think you win the Geekiest Reference of the Year award for programming.

"I just wanna thank a few of the special people in my life. First, my mother for not buying me a computer when I was a kid. Her attitude motivated me to save my lawn mowing money and buy a computer myself -- it certainly gave me incentive to spend every last second I could on the computer in order to get enough value for my hard-earned dollar.

"Next, I want to thank my younger sisters. They were so obnoxious that once again, I spent as much time away from them as possible and where better to spend it than programming on a computer?

"Last, I want to thank those women who, in my adult life, provided me with an intense need for cash. Without you I never would've pursued a career that turned out so lucrative once I was able to get you off my back and out of my life permanently.

"A big 'thank you' goes out to all of them!"





:mrgreen:

_________________
Interested in Time Magazine's Best Invention of 2008 Unix-powered laptop? No crashes or lockups. In fact, that series of articles has two such machines. The other is a Dell netbook. :)


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Mon Jun 28, 2010 11:12 am
Posts: 563
Location: I'm the worm...
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Jun 03, 2011 4:10 pm 
Just a little bump for anyone new.


Top
 Profile  
 
User avatar  Offline
TheBard
 
Joined: Tue Mar 21, 2006 7:26 pm
Posts: 3042
Location: Austin, Tx
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Fri Jun 03, 2011 4:25 pm 
That really is cool. I'm going to add this post as a link from my blog post about LaF and Window controls
http://rptroll.blogspot.com/2011/06/map ... -feel.html

_________________
ImageImage ImageImageImageImage
MapTool/Savage Worlds Blog
Free SW/MT Modules
SW Framework for MT


Top
 Profile  
 
User avatar  Offline
Dragon
 
Joined: Mon Jun 28, 2010 11:12 am
Posts: 563
Location: I'm the worm...
 Post subject: Re: TinyLAF theme for monospaced macro editing!
PostPosted: Sun Jun 05, 2011 6:37 am 
I really like it. It's so much easier to edit macros inside maptool.


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 14 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 8 users online :: 1 registered, 0 hidden and 7 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: Google [Bot] and 7 guests





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

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman