This commit is contained in:
雪风 2025-04-08 13:42:24 +08:00
commit 285da62cfd
3 changed files with 12 additions and 5 deletions

View File

@ -52,7 +52,7 @@ public class AutoScriptNpc extends JPanel {
aotuNpc.setItemId(Integer.parseInt(tableModel.getValueAt(i, 3).toString()));
aotuNpc.setItemNum(Integer.parseInt(tableModel.getValueAt(i, 4).toString()));
aotuNpc.setEquId(Integer.parseInt(tableModel.getValueAt(i, 5).toString()));
aotuNpc.setTime(Integer.parseInt(tableModel.getValueAt(i, 6).toString()));
// 将对象添加到列表中
Start.aotuNpcs.add(aotuNpc);
}
@ -76,11 +76,11 @@ public class AutoScriptNpc extends JPanel {
//---- table1 ----
table1.setModel(new DefaultTableModel(
new Object[][] {
{null, null, null, null, null, null},
{null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
},
new String[] {
"\u5730\u56feID", "NPC_ID", "\u811a\u672c\u540d\u5b57", "\u9053\u5177ID", "\u9053\u5177\u6570\u91cf", "\u88c5\u5907ID"
"\u5730\u56feID", "NPC_ID", "\u811a\u672c\u540d\u5b57", "\u9053\u5177ID", "\u9053\u5177\u6570\u91cf", "\u88c5\u5907ID", "\u95f4\u9694\u65f6\u95f4"
}
));
scrollPane1.setViewportView(table1);
@ -137,7 +137,7 @@ public class AutoScriptNpc extends JPanel {
}
for (AotuNpc aotuNpc : Start.aotuNpcs) {
Object[] rowData = {aotuNpc.getMapId(), aotuNpc.getNpcId() ,aotuNpc.getScriptsName(),aotuNpc.getItemId(),aotuNpc.getItemNum(),aotuNpc.getEquId()};
Object[] rowData = {aotuNpc.getMapId(), aotuNpc.getNpcId() ,aotuNpc.getScriptsName(),aotuNpc.getItemId(),aotuNpc.getItemNum(),aotuNpc.getEquId(),aotuNpc.getTime()};
tableModel.addRow(rowData);
}
}

View File

@ -17,6 +17,7 @@ new FormModel {
add( null )
add( null )
add( null )
add( null )
} )
add( new java.util.Vector {
add( null )
@ -25,6 +26,7 @@ new FormModel {
add( null )
add( null )
add( null )
add( null )
} )
}, new java.util.Vector {
add( "地图ID" )
@ -33,6 +35,7 @@ new FormModel {
add( "道具ID" )
add( "道具数量" )
add( "装备ID" )
add( "间隔时间" )
}, new java.util.Vector {
add( null )
add( null )
@ -40,6 +43,7 @@ new FormModel {
add( null )
add( null )
add( null )
add( null )
}, new java.util.Vector {
add( null )
add( null )
@ -47,6 +51,7 @@ new FormModel {
add( null )
add( null )
add( null )
add( null )
}, new java.util.Vector {
add( null )
add( null )
@ -54,6 +59,7 @@ new FormModel {
add( null )
add( null )
add( null )
add( null )
} )
} )
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {

View File

@ -5080,6 +5080,7 @@ public class ppms extends JFrame {
}
});
this.jLabel1188.setText("BOSS支持吸金吸物开关");
ppms.BOSS支持吸金吸物开关.setSelected(Start.bossxw == 1 ? true : false);
ppms.BOSS支持吸金吸物开关.setIcon((Icon) new ImageIcon(this.getClass().getResource("/image/OFF2.png")));
ppms.BOSS支持吸金吸物开关.setBorderPainted(false);
ppms.BOSS支持吸金吸物开关.setContentAreaFilled(false);