Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions toolkit/src/main/java/toolkit/windows/Toolkit.form
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,11 @@
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="exportSceneGraphActionPerformed"/>
</Events>
</MenuItem>
<MenuItem class="javax.swing.JMenuItem" name="lamsKeyGen">
<Properties>
<Property name="text" type="java.lang.String" value="Calculate LAMS key"/>
</Properties>
</MenuItem>
</SubComponents>
</Menu>
<Menu class="javax.swing.JMenu" name="debugMenu">
Expand Down
13 changes: 13 additions & 0 deletions toolkit/src/main/java/toolkit/windows/Toolkit.java
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ private void initComponents() {
installProfileMod = new javax.swing.JMenuItem();
exportWorld = new javax.swing.JMenuItem();
exportSceneGraph = new javax.swing.JMenuItem();
lamsKeyGen = new javax.swing.JMenuItem();
debugMenu = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();

Expand Down Expand Up @@ -2163,6 +2164,17 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
});
toolsMenu.add(exportSceneGraph);

lamsKeyGen.setText("Calculate LAMS key");
lamsKeyGen.setToolTipText("Generated a LAMS identifier for a string key");
lamsKeyGen.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
String lams = JOptionPane.showInputDialog("String key identifier");
if (lams != null)
JOptionPane.showMessageDialog(Toolkit.this, RTranslationTable.makeLamsKeyID(lams));
}
});
toolsMenu.add(lamsKeyGen);

navigation.add(toolsMenu);

debugMenu.setText("Debug");
Expand Down Expand Up @@ -3800,6 +3812,7 @@ public Toolkit run(String[] args)
private javax.swing.JPopupMenu.Separator jSeparator5;
private javax.swing.JPopupMenu.Separator jSeparator6;
private javax.swing.JPopupMenu.Separator jSeparator9;
private javax.swing.JMenuItem lamsKeyGen;
private javax.swing.JMenuItem loadArchive;
public javax.swing.JMenuItem loadBigProfile;
public javax.swing.JMenuItem loadDB;
Expand Down