Skip to content

Commit

Permalink
Settings Includes Fix (#435)
Browse files Browse the repository at this point in the history
Readd messages for GM >530 <600 settings include tab. Change settings include tab layout to vertical. Use singular, rather than plural, labels on the instantiable include frame.
  • Loading branch information
RobertBColton authored May 23, 2019
1 parent c8f395b commit c9954e4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
2 changes: 1 addition & 1 deletion org/lateralgm/main/LGM.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@

public final class LGM
{
public static final String version = "1.8.73"; //$NON-NLS-1$
public static final String version = "1.8.74"; //$NON-NLS-1$

// TODO: This list holds the class loader for any loaded plugins which should be
// cleaned up and closed when the application closes.
Expand Down
17 changes: 15 additions & 2 deletions org/lateralgm/messages/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,8 @@ IncludeFrame.SIZE=Size: {0} bytes
IncludeFrame.ORIGINAL_FILE=Original File: {0}
IncludeFrame.COPIES_TO=Copies to:
IncludeFrame.PLATFORMS=
IncludeFrame.OVERWRITE_EXISTING=Overwrite existing files
IncludeFrame.REMOVE_FILES_AT_END=Remove files at end of game
IncludeFrame.OVERWRITE_EXISTING=Overwrite existing file
IncludeFrame.REMOVE_FILES_AT_END=Remove file at end of game
IncludeFrame.STORE_EDITABLE=Store in the project editable
IncludeFrame.FREE_MEMORY=Free memory after export

Expand Down Expand Up @@ -871,6 +871,19 @@ GameSettingFrame.PRODUCT=Product:
GameSettingFrame.COPYRIGHT=Copyright:
GameSettingFrame.DESCRIPTION=Description:

#Include tab
GameSettingFrame.TAB_INCLUDE=Include
GameSettingFrame.HINT_INCLUDE=Configure Includes
GameSettingFrame.FILES_TO_INCLUDE=Files to include in the Executable
GameSettingFrame.ADD_INCLUDE=Add
GameSettingFrame.DELETE_INCLUDE=Delete
GameSettingFrame.CLEAR_INCLUDES=Clear
GameSettingFrame.EXPORT_TO=Folder to export to
GameSettingFrame.SAME_FOLDER=Same folder as executable
GameSettingFrame.TEMP_DIRECTORY=Temporary directory
GameSettingFrame.OVERWRITE_EXISTING=Overwrite existing files
GameSettingFrame.REMOVE_FILES_AT_END=Remove files at end of game

#Errors tab
GameSettingFrame.TAB_ERRORS=Errors
GameSettingFrame.HINT_ERRORS=Configure Error handling
Expand Down
20 changes: 9 additions & 11 deletions org/lateralgm/subframes/GameSettingFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@
import javax.swing.JTextField;
import javax.swing.JTree;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.SwingConstants;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeSelectionModel;
import javax.swing.SwingConstants;

import org.lateralgm.components.ColorSelect;
import org.lateralgm.components.CustomFileChooser;
Expand Down Expand Up @@ -500,17 +500,15 @@ private JPanel makeIncludePane()
includesFc.setMultiSelectionEnabled(true);

layout.setHorizontalGroup(layout.createParallelGroup()
/**/.addGroup(layout.createSequentialGroup()
/* */.addComponent(folderPanel).addGap(4,8,MAX_VALUE)
/* */.addGroup(layout.createParallelGroup()
/* */.addComponent(overwriteExisting)
/* */.addComponent(removeAtGameEnd))));
/* */.addComponent(folderPanel).addGap(4,8,MAX_VALUE)
/* */.addGroup(layout.createParallelGroup()
/* */.addComponent(overwriteExisting)
/* */.addComponent(removeAtGameEnd)));
layout.setVerticalGroup(layout.createSequentialGroup()
/**/.addGroup(layout.createParallelGroup()
/* */.addComponent(folderPanel)
/* */.addGroup(layout.createSequentialGroup()
/* */.addComponent(overwriteExisting)
/* */.addComponent(removeAtGameEnd))));
/* */.addComponent(folderPanel)
/* */.addGroup(layout.createSequentialGroup()
/* */.addComponent(overwriteExisting)
/* */.addComponent(removeAtGameEnd)));
return panel;
}

Expand Down

0 comments on commit c9954e4

Please sign in to comment.