OrderBookPanel with callback.

This commit is contained in:
7u83
2018-12-26 03:07:33 +01:00
parent 99fea69520
commit 974c1cb81e
7 changed files with 121 additions and 58 deletions

View File

@ -41,7 +41,7 @@ import org.json.JSONObject;
*/
public class AssetEditorDialog extends EscDialog {
GodWorld worldadm;
GodWorld godworld;
/**
@ -124,10 +124,10 @@ public class AssetEditorDialog extends EscDialog {
private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
if (assetEditorPanel.save(worldadm)){
if (assetEditorPanel.save(godworld)){
dispose();
}
godworld.notifyUpdateListeners();
return;
@ -198,7 +198,7 @@ public class AssetEditorDialog extends EscDialog {
static public boolean runDialog(Window parent, GodWorld worldadm, JSONObject o, JSONObject old) {
AssetEditorDialog d = new AssetEditorDialog(parent);
d.worldadm = worldadm;
d.godworld = worldadm;
if (o!=null)