TinyLAF theme for monospaced macro editing!
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.
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.
- JonathanTheBlack
- Dragon
- Posts: 544
- Joined: Mon Jun 28, 2010 12:12 pm
- Location: I'm the worm...
TinyLAF theme for monospaced macro editing!
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.
- 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.
- JonathanTheBlack
- Dragon
- Posts: 544
- Joined: Mon Jun 28, 2010 12:12 pm
- Location: I'm the worm...
Re: TinyLAF and the macro editor...
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
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: TinyLAF theme for monospaced macro editing!
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).
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).
- JonathanTheBlack
- Dragon
- Posts: 544
- Joined: Mon Jun 28, 2010 12:12 pm
- Location: I'm the worm...
Re: TinyLAF theme for monospaced macro editing!
Too bad we can't access those buttons directly in maptool.
Re: TinyLAF theme for monospaced macro editing!
Hm? You mean manipulating the Jbuttons in frames and stuff?JonathanTheBlack wrote:Too bad we can't access those buttons directly in maptool.
Re: TinyLAF and the macro editor...
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.JonathanTheBlack wrote:Here's the TinyLAF Default.theme that will make any JTextArea field use Courier New as a monospaced font.
- JonathanTheBlack
- Dragon
- Posts: 544
- Joined: Mon Jun 28, 2010 12:12 pm
- Location: I'm the worm...
Re: TinyLAF theme for monospaced macro editing!
If courier new isn't a universal font... haha.
Re: TinyLAF theme for monospaced macro editing!
Heh-heh. There a term for that kind of thinking, y'know.
Re: TinyLAF theme for monospaced macro editing!
Wow, I think you win the Geekiest Reference of the Year award for programming.Azhrei wrote:Heh-heh. There a term for that kind of thinking, y'know.
- Congratulations
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: TinyLAF theme for monospaced macro editing!
"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.aliasmask wrote:Wow, I think you win the Geekiest Reference of the Year award for programming.
"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!"
- JonathanTheBlack
- Dragon
- Posts: 544
- Joined: Mon Jun 28, 2010 12:12 pm
- Location: I'm the worm...
Re: TinyLAF theme for monospaced macro editing!
Just a little bump for anyone new.
Re: TinyLAF theme for monospaced macro editing!
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
http://rptroll.blogspot.com/2011/06/map ... -feel.html
- JonathanTheBlack
- Dragon
- Posts: 544
- Joined: Mon Jun 28, 2010 12:12 pm
- Location: I'm the worm...
Re: TinyLAF theme for monospaced macro editing!
I really like it. It's so much easier to edit macros inside maptool.
Re: TinyLAF theme for monospaced macro editing!
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?
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?