TinyLAF theme for monospaced macro editing!

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

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. :)
User avatar
JonathanTheBlack
Dragon
Posts: 544
Joined: Mon Jun 28, 2010 12:12 pm
Location: I'm the worm...

TinyLAF theme for monospaced macro editing!

Post by JonathanTheBlack »

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 5:25 pm, edited 1 time in total.

User avatar
JonathanTheBlack
Dragon
Posts: 544
Joined: Mon Jun 28, 2010 12:12 pm
Location: I'm the worm...

Re: TinyLAF and the macro editor...

Post by JonathanTheBlack »

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
Attachments
Default .zip
(5.22 KiB) Downloaded 258 times


User avatar
Rumble
Deity
Posts: 6235
Joined: Tue Jul 01, 2008 7:48 pm

Re: TinyLAF theme for monospaced macro editing!

Post by Rumble »

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).

User avatar
JonathanTheBlack
Dragon
Posts: 544
Joined: Mon Jun 28, 2010 12:12 pm
Location: I'm the worm...

Re: TinyLAF theme for monospaced macro editing!

Post by JonathanTheBlack »

Too bad we can't access those buttons directly in maptool.

User avatar
Rumble
Deity
Posts: 6235
Joined: Tue Jul 01, 2008 7:48 pm

Re: TinyLAF theme for monospaced macro editing!

Post by Rumble »

JonathanTheBlack wrote:Too bad we can't access those buttons directly in maptool.
Hm? You mean manipulating the Jbuttons in frames and stuff?

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: TinyLAF and the macro editor...

Post by Azhrei »

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.

User avatar
JonathanTheBlack
Dragon
Posts: 544
Joined: Mon Jun 28, 2010 12:12 pm
Location: I'm the worm...

Re: TinyLAF theme for monospaced macro editing!

Post by JonathanTheBlack »

If courier new isn't a universal font... haha.

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: TinyLAF theme for monospaced macro editing!

Post by Azhrei »

Heh-heh. There a term for that kind of thinking, y'know. :)

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: TinyLAF theme for monospaced macro editing!

Post by aliasmask »

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
images.jpg
images.jpg (12.31 KiB) Viewed 4515 times

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: TinyLAF theme for monospaced macro editing!

Post by Azhrei »

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:

User avatar
JonathanTheBlack
Dragon
Posts: 544
Joined: Mon Jun 28, 2010 12:12 pm
Location: I'm the worm...

Re: TinyLAF theme for monospaced macro editing!

Post by JonathanTheBlack »

Just a little bump for anyone new.

User avatar
RPTroll
TheBard
Posts: 3159
Joined: Tue Mar 21, 2006 7:26 pm
Location: Austin, Tx
Contact:

Re: TinyLAF theme for monospaced macro editing!

Post by RPTroll »

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
Support RPTools by shopping
Image
Image

User avatar
JonathanTheBlack
Dragon
Posts: 544
Joined: Mon Jun 28, 2010 12:12 pm
Location: I'm the worm...

Re: TinyLAF theme for monospaced macro editing!

Post by JonathanTheBlack »

I really like it. It's so much easier to edit macros inside maptool.

aryll28
Kobold
Posts: 10
Joined: Sun Mar 29, 2015 5:05 pm

Re: TinyLAF theme for monospaced macro editing!

Post by aryll28 »

Hi, this thread is old, but I just stumbled upon it.

I'm on a Mac, but I can't seem to launch the tinyLAF jar file, I get a "no main manifest attribute" when I try to run from the terminal.

Any ideas?

Post Reply

Return to “MapTool”