Permalink
Browse files

Presets only modify Font and Color config

  • Loading branch information...
GlitchCog committed May 31, 2015
1 parent 355b506 commit 0dd03e53a6006286b00e00765ed0c8f28f556969
Showing with 90 additions and 827 deletions.
  1. +4 −0 .gitignore
  2. BIN jar/ChatGameFontificator.jar
  3. +5 −5 src/main/java/com/glitchcog/fontificator/config/FontificatorProperties.java
  4. +4 −6 src/main/java/com/glitchcog/fontificator/gui/controls/ControlWindow.java
  5. +9 −30 src/main/resources/presets/cc.cgf
  6. +8 −29 src/main/resources/presets/crystalis.cgf
  7. +4 −25 src/main/resources/presets/ct.cgf
  8. +2 −23 src/main/resources/presets/dw1.cgf
  9. +2 −23 src/main/resources/presets/dw2.cgf
  10. +2 −23 src/main/resources/presets/dw3.cgf
  11. +2 −23 src/main/resources/presets/dw3gbc.cgf
  12. +2 −23 src/main/resources/presets/dw4.cgf
  13. +2 −23 src/main/resources/presets/eb0.cgf
  14. +2 −23 src/main/resources/presets/eb_banana.cgf
  15. +2 −23 src/main/resources/presets/eb_mint.cgf
  16. +2 −23 src/main/resources/presets/eb_peanut.cgf
  17. +2 −23 src/main/resources/presets/eb_plain.cgf
  18. +2 −23 src/main/resources/presets/eb_saturn.cgf
  19. +2 −23 src/main/resources/presets/eb_strawberry.cgf
  20. +2 −23 src/main/resources/presets/ff1.cgf
  21. +2 −23 src/main/resources/presets/metroid.cgf
  22. +3 −24 src/main/resources/presets/metroidboss.cgf
  23. +0 −44 src/main/resources/presets/metroidpipes.cgf
  24. +2 −23 src/main/resources/presets/pkmnfrlg.cgf
  25. +1 −22 src/main/resources/presets/pkmnrb.cgf
  26. +1 −22 src/main/resources/presets/rcr.cgf
  27. +2 −23 src/main/resources/presets/smb1.cgf
  28. +2 −23 src/main/resources/presets/smb1_underworld.cgf
  29. +2 −23 src/main/resources/presets/smb2.cgf
  30. +2 −23 src/main/resources/presets/smb3_hud.cgf
  31. +2 −23 src/main/resources/presets/smb3_letter.cgf
  32. +2 −23 src/main/resources/presets/zelda1_bush.cgf
  33. +2 −23 src/main/resources/presets/zelda1_dungeon.cgf
  34. +3 −24 src/main/resources/presets/zelda1_rock.cgf
  35. +0 −44 src/main/resources/presets/zelda1_story.cgf
  36. +2 −23 src/main/resources/presets/zelda2.cgf
  37. +2 −23 src/main/resources/presets/zelda3.cgf
@@ -1 +1,5 @@
.classpath
.project
.settings
target
.fontificator.conf
BIN -7.07 KB (99%) jar/ChatGameFontificator.jar
Binary file not shown.
@@ -80,7 +80,7 @@
public static final String[] FONT_KEYS = new String[] { KEY_FONT_FILE_BORDER, KEY_FONT_FILE_FONT, KEY_FONT_TYPE, KEY_FONT_GRID_WIDTH, KEY_FONT_GRID_HEIGHT, KEY_FONT_SCALE, KEY_FONT_BORDER_SCALE, KEY_FONT_BORDER_INSET_X, KEY_FONT_BORDER_INSET_Y, KEY_FONT_SPACE_WIDTH, KEY_FONT_UNKNOWN_CHAR, KEY_FONT_CHARACTERS, KEY_FONT_SPACING_LINE, KEY_FONT_SPACING_CHAR };
public static final String KEY_CHAT_SCROLL = "charScrollEnabled";
public static final String KEY_CHAT_SCROLL = "chatScrollEnabled";
public static final String KEY_CHAT_RESIZABLE = "chatResizable";
public static final String KEY_CHAT_WIDTH = "chatWidth";
public static final String KEY_CHAT_HEIGHT = "chatHeight";
@@ -226,7 +226,7 @@ public boolean loadFile(String filename) throws Exception
}
InputStream is = getClass().getClassLoader().getResourceAsStream(plainFilename);
boolean success = loadFile(is, filename);
boolean success = loadFile(is, filename, true);
is.close();
return success;
}
@@ -247,7 +247,7 @@ public boolean loadFile(File file) throws Exception
{
logger.trace("Loading file " + file.getAbsolutePath());
InputStream is = new FileInputStream(file);
boolean success = loadFile(is, file.getAbsolutePath());
boolean success = loadFile(is, file.getAbsolutePath(), false);
is.close();
return success;
}
@@ -261,7 +261,7 @@ public boolean loadFile(File file) throws Exception
* @return
* @throws Exception
*/
private boolean loadFile(InputStream is, String filename) throws Exception
private boolean loadFile(InputStream is, String filename, boolean isPreset) throws Exception
{
final String prevAuth = getProperty(KEY_IRC_AUTH);
super.load(is);
@@ -278,7 +278,7 @@ private boolean loadFile(InputStream is, String filename) throws Exception
boolean success = loadConfigs();
if (success)
if (success && !isPreset)
{
rememberLastConfigFile(filename);
}
@@ -384,7 +384,6 @@ else if (strHelpAbout.equals(mi.getText()))
final String[] strMario3letter = new String[] { "Super Mario Bros. 3 Letter", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "smb3_letter.cgf" };
/* Presets Metroid */
final String[] strMetroid = new String[] { "Metroid", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "metroid.cgf" };
final String[] strMetroidPipe = new String[] { "Metroid Pipes", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "metroidpipes.cgf" };
final String[] strMetroidBoss = new String[] { "Metroid Mother Brain", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "metroidboss.cgf" };
/* Presets Pokemon */
final String[] strPkmnRb = new String[] { "Pokemon Red/Blue", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "pkmnrb.cgf" };
@@ -393,7 +392,6 @@ else if (strHelpAbout.equals(mi.getText()))
final String[] strLozBush = new String[] { "The Legend of Zelda Bushes", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "zelda1_bush.cgf" };
final String[] strLozRock = new String[] { "The Legend of Zelda Moutains", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "zelda1_rock.cgf" };
final String[] strLozDungeon = new String[] { "The Legend of Zelda Dungeon", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "zelda1_dungeon.cgf" };
final String[] strLozStory = new String[] { "The Legend of Zelda Story", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "zelda1_story.cgf" };
final String[] strZelda2 = new String[] { "Zelda II: The Adventures of Link", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "zelda2.cgf" };
final String[] strZelda3 = new String[] { "The Legend of Zelda: A Link to the Past", ConfigFont.INTERNAL_FILE_PREFIX + PRESET_DIRECTORY + "zelda3.cgf" };
/* Ungrouped Presets */
@@ -408,9 +406,9 @@ else if (strHelpAbout.equals(mi.getText()))
strDw1, strDw2, strDw3, strDw3Gbc, strDw4,
strEb0, strEbPlain, strEbMint, strEbStrawberry, strEbBanana, strEbPeanut, strEbSaturn,
strMario1, strMario1Underworld, strMario2, strMario3hud, strMario3letter,
strMetroid, strMetroidPipe, strMetroidBoss,
strMetroid, strMetroidBoss,
strPkmnRb, strPkmnFrlg,
strLozBush, strLozRock, strLozDungeon, strLozStory, strZelda2, strZelda3,
strLozBush, strLozRock, strLozDungeon, strZelda2, strZelda3,
strCrystalis, strFinalFantasy, strRiverCityRansom
};
// @formatter:on
@@ -438,9 +436,9 @@ public void actionPerformed(ActionEvent e)
presetMapSubmenuToItem.put("Dragon Warrior", new String[] { strDw1[0], strDw2[0], strDw3[0], strDw3Gbc[0], strDw4[0] });
presetMapSubmenuToItem.put("Earthbound", new String[] { strEb0[0], strEbPlain[0], strEbMint[0], strEbStrawberry[0], strEbBanana[0], strEbPeanut[0], strEbSaturn[0] });
presetMapSubmenuToItem.put("Mario", new String[] { strMario1[0], strMario2[0], strMario3hud[0], strMario3letter[0] });
presetMapSubmenuToItem.put("Metroid", new String[] { strMetroid[0], strMetroidPipe[0], strMetroidBoss[0] });
presetMapSubmenuToItem.put("Metroid", new String[] { strMetroid[0], strMetroidBoss[0] });
presetMapSubmenuToItem.put("Pokemon", new String[] { strPkmnRb[0], strPkmnFrlg[0] });
presetMapSubmenuToItem.put("Zelda", new String[] { strLozBush[0], strLozRock[0], strLozDungeon[0], strLozStory[0], strZelda2[0], strZelda3[0] });
presetMapSubmenuToItem.put("Zelda", new String[] { strLozBush[0], strLozRock[0], strLozDungeon[0], strZelda2[0], strZelda3[0] });
presetMapSubmenuToItem.put(null, new String[] { strCrystalis[0], strFinalFantasy[0], strRiverCityRansom[0] });
for (String submenuKey : presetMapSubmenuToItem.keySet())
@@ -1,44 +1,23 @@
chromaRight=0
fontCharSpacing=1
colorBorder=FFFFFF
messageShowTimestamp=false
chatAlwaysOnTop=false
colorUsername=true
fontType=VARIABLE_WIDTH
chatWidth=720
messageTimestampFormat=[HH\:mm\:ss]
fontGridWidth=8
messageUserCase=LOOKUP
messageSpeed=60
fontBorderInsetY=1
fontBorderInsetX=1
colorPalette=E7F323,FF2432,31C23F,6863B3,743042,DDD8C4
messageShowJoin=true
chatHeight=500
fontUnknownChar=\u007F
colorJoin=true
charScrollEnabled=false
chromaEnabled=false
fontGridHeight=12
fontBorderFile=preset\://borders/cc_border.png
fontFile=preset\://fonts/cc_font.png
messageShowUsername=true
colorMessage=false
messageUserCaseSpecify=true
colorHighlight=18F3FF
fontLineSpacing=2
fontScale=3
fontScale=2
fontCharacters=\ \!"\#$%&'()*+,-./0123456789\:;<\=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007F
fontBorderScale=3
chromaTop=0
chromaLeft=0
fontBorderScale=2
fontSpaceWidth=25
invertChroma=false
colorUsername=true
colorJoin=true
colorTimestamp=false
colorMessage=false
colorForeground=FFFFFF
chromaCornerRadius=0
colorBackground=000000
messageQueueSize=64
colorTimestamp=false
chromaKey=00FF00
chatResizable=true
chromaBottom=0
colorBorder=FFFFFF
colorHighlight=18F3FF
colorPalette=E7F323,FF2432,31C23F,6863B3,743042,DDD8C4
@@ -1,44 +1,23 @@
chromaRight=0
fontCharSpacing=0
colorBorder=FFFFFF
messageShowTimestamp=false
chatAlwaysOnTop=false
colorUsername=true
fontType=FIXED_WIDTH
chatWidth=769
messageTimestampFormat=[HH\:mm\:ss]
fontGridWidth=8
messageUserCase=LOOKUP
messageSpeed=60
fontBorderInsetY=5
fontBorderInsetX=10
colorPalette=FFA000,E05000,50A000,5080FF,F769FF,4ACEDE
messageShowJoin=true
chatHeight=384
fontUnknownChar=\u007F
colorJoin=true
charScrollEnabled=false
chromaEnabled=false
fontGridHeight=12
fontBorderFile=preset\://borders/crystalis_border.png
fontFile=preset\://fonts/crystalis_font.png
messageShowUsername=true
colorMessage=false
messageUserCaseSpecify=true
colorHighlight=6699FF
fontLineSpacing=8
fontScale=3
fontScale=2
fontCharacters=\ \!"\#$%&'()*+,-./0123456789\:;<\=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007F
fontBorderScale=3
chromaTop=0
chromaLeft=0
fontBorderScale=2
fontSpaceWidth=25
invertChroma=false
colorMessage=false
colorJoin=true
colorHighlight=6699FF
colorForeground=FFFFFF
chromaCornerRadius=0
colorBackground=0056FF
colorTimestamp=false
messageQueueSize=64
chatResizable=true
chromaKey=00FF00
chromaBottom=0
colorBorder=FFFFFF
colorUsername=true
colorPalette=FFA000,E05000,50A000,5080FF,F769FF,4ACEDE
@@ -1,44 +1,23 @@
chromaRight=0
fontCharSpacing=0
colorBorder=CEDBE8
messageShowTimestamp=false
chatAlwaysOnTop=false
colorUsername=true
fontType=VARIABLE_WIDTH
chatWidth=800
messageTimestampFormat=[HH\:mm\:ss]
fontGridWidth=8
messageUserCase=LOOKUP
messageSpeed=60
fontBorderInsetY=-80
fontBorderInsetX=-45
fontBorderInsetY=-45
fontBorderInsetX=-32
colorPalette=F88800,F8F848,F078F8,F0C878,80F010,70A8F8,909898
messageShowJoin=true
chatHeight=600
fontUnknownChar=\u007F
colorJoin=true
charScrollEnabled=false
chromaEnabled=false
fontGridHeight=12
fontBorderFile=preset\://borders/ct_border.png
fontFile=preset\://fonts/ct_font.png
messageShowUsername=true
colorMessage=false
messageUserCaseSpecify=true
colorHighlight=D0A028
fontLineSpacing=3
fontScale=3
fontScale=2
fontCharacters=\ \!"\#$%&'()*+,-./0123456789\:;<\=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007F
fontBorderScale=3
chromaTop=0
chromaLeft=0
fontBorderScale=2
fontSpaceWidth=31
invertChroma=false
colorForeground=E0E0E0
chromaCornerRadius=0
colorBackground=000000
messageQueueSize=64
colorTimestamp=false
chromaKey=00FF00
chatResizable=true
chromaBottom=0
@@ -1,44 +1,23 @@
chromaRight=0
fontCharSpacing=0
colorBorder=FFFFFF
messageShowTimestamp=false
chatAlwaysOnTop=false
colorUsername=true
fontType=FIXED_WIDTH
chatWidth=700
messageTimestampFormat=[HH\:mm\:ss]
fontGridWidth=8
messageUserCase=LOOKUP
messageSpeed=60
fontBorderInsetY=0
fontBorderInsetX=0
colorPalette=0070EC,80D010,E40058,8000F0,FCD8A8,B53120
messageShowJoin=true
chatHeight=400
fontUnknownChar=\u007F
colorJoin=true
charScrollEnabled=false
chromaEnabled=false
fontGridHeight=12
fontBorderFile=preset\://borders/dw1_border.png
fontFile=preset\://fonts/dw1_font.png
messageShowUsername=true
colorMessage=false
messageUserCaseSpecify=true
colorHighlight=CCCC00
fontLineSpacing=0
fontScale=3
fontScale=2
fontCharacters=\ \!"\#$%&'()*+,-./0123456789\:;<\=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007F
fontBorderScale=3
chromaTop=0
chromaLeft=0
invertChroma=false
fontBorderScale=2
fontSpaceWidth=25
colorForeground=FFFFFF
chromaCornerRadius=0
colorBackground=000000
colorTimestamp=false
messageQueueSize=64
chatResizable=true
chromaKey=00FF00
chromaBottom=0
@@ -1,44 +1,23 @@
chromaRight=0
fontCharSpacing=0
colorBorder=FFFFFF
messageShowTimestamp=false
chatAlwaysOnTop=false
colorUsername=true
fontType=FIXED_WIDTH
chatWidth=700
messageTimestampFormat=[HH\:mm\:ss]
fontGridWidth=8
messageUserCase=LOOKUP
messageSpeed=60
fontBorderInsetY=0
fontBorderInsetX=0
colorPalette=0070EC,80D010,E40058,8000F0,FCD8A8,B53120
messageShowJoin=true
chatHeight=400
fontUnknownChar=\u007F
colorJoin=true
charScrollEnabled=false
chromaEnabled=false
fontGridHeight=12
fontBorderFile=preset\://borders/dw2_border.png
fontFile=preset\://fonts/dw2_font.png
messageShowUsername=true
colorMessage=false
messageUserCaseSpecify=true
colorHighlight=CCCC00
fontLineSpacing=0
fontScale=3
fontScale=2
fontCharacters=\ \!"\#$%&'()*+,-./0123456789\:;<\=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007F
fontBorderScale=3
chromaTop=0
chromaLeft=0
invertChroma=false
fontBorderScale=2
fontSpaceWidth=25
colorForeground=FFFFFF
chromaCornerRadius=0
colorBackground=000000
colorTimestamp=false
messageQueueSize=64
chatResizable=true
chromaKey=00FF00
chromaBottom=0
@@ -1,44 +1,23 @@
chromaRight=0
fontCharSpacing=0
colorBorder=FFFFFF
messageShowTimestamp=false
chatAlwaysOnTop=false
colorUsername=true
fontType=FIXED_WIDTH
chatWidth=700
messageTimestampFormat=[HH\:mm\:ss]
fontGridWidth=8
messageUserCase=LOOKUP
messageSpeed=60
fontBorderInsetY=0
fontBorderInsetX=0
colorPalette=0070EC,80D010,E40058,8000F0,FCD8A8,B53120
messageShowJoin=true
chatHeight=400
fontUnknownChar=\u007F
colorJoin=true
charScrollEnabled=false
chromaEnabled=false
fontGridHeight=12
fontBorderFile=preset\://borders/dw3_border.png
fontFile=preset\://fonts/dw3_font.png
messageShowUsername=true
colorMessage=false
messageUserCaseSpecify=true
colorHighlight=CCCC00
fontLineSpacing=0
fontScale=3
fontScale=2
fontCharacters=\ \!"\#$%&'()*+,-./0123456789\:;<\=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u007F
fontBorderScale=3
chromaTop=0
chromaLeft=0
invertChroma=false
fontBorderScale=2
fontSpaceWidth=25
colorForeground=FFFFFF
chromaCornerRadius=0
colorBackground=000000
colorTimestamp=false
messageQueueSize=64
chatResizable=true
chromaKey=00FF00
chromaBottom=0
Oops, something went wrong.

0 comments on commit 0dd03e5

Please sign in to comment.