Compare commits
5 Commits
7c14e8b8c6
...
30dff88b76
| Author | SHA1 | Date |
|---|---|---|
|
|
30dff88b76 | |
|
|
5accee955b | |
|
|
cbec4a2c16 | |
|
|
824a68b345 | |
|
|
80871ea544 |
|
|
@ -0,0 +1,260 @@
|
|||
/*
|
||||
* Created by JFormDesigner on Wed Mar 12 14:50:47 CST 2025
|
||||
*/
|
||||
|
||||
package gui.UI_LenheartUI;
|
||||
|
||||
import java.util.*;
|
||||
import gui.Start;
|
||||
import gui.tw.BlConfig;
|
||||
import gui.特殊控制台;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.swing.*;
|
||||
import javax.swing.table.*;
|
||||
|
||||
/**
|
||||
* @author dongj
|
||||
*/
|
||||
public class DropControl extends JPanel {
|
||||
public DropControl() {
|
||||
initComponents();
|
||||
}
|
||||
|
||||
|
||||
private void 保存配置(ActionEvent e) {
|
||||
// TODO add your code here
|
||||
|
||||
Start.blkg = this.toggleButton1.isSelected() ? 1 : 0;
|
||||
Start.bldj = this.toggleButton2.isSelected() ? 1 : 0;
|
||||
Start.bskg = this.toggleButton3.isSelected() ? 1 : 0;
|
||||
|
||||
List<BlConfig> Buf = new ArrayList<>();
|
||||
DefaultTableModel tableModel = (DefaultTableModel) table1.getModel();
|
||||
int rowCount = tableModel.getRowCount();
|
||||
for (int i = 0; i < rowCount; i++) {
|
||||
|
||||
Integer ItemId = (int) tableModel.getValueAt(i, 0);
|
||||
Integer GoldRate = (int) tableModel.getValueAt(i, 1);
|
||||
Integer ItemRate = (int) tableModel.getValueAt(i, 2);
|
||||
String Time = tableModel.getValueAt(i, 3) + "-" + tableModel.getValueAt(i, 4);
|
||||
Integer IsStack = (int) tableModel.getValueAt(i, 5);
|
||||
|
||||
BlConfig buffer = new BlConfig();
|
||||
buffer.setItem_id(ItemId);
|
||||
buffer.setGold_rate(GoldRate);
|
||||
buffer.setItem_rate(ItemRate);
|
||||
buffer.setTime_range(Time);
|
||||
buffer.setStackable(IsStack);
|
||||
Buf.add(buffer);
|
||||
}
|
||||
Start.BLlist = Buf;
|
||||
Start.bsConfig.setItem_id(Integer.valueOf(this.textField1.getText()));
|
||||
Start.bsConfig.setRate(Integer.valueOf(this.textField2.getText()));
|
||||
特殊控制台.setTwConfig();
|
||||
}
|
||||
|
||||
private void 新增配置(ActionEvent e) {
|
||||
DefaultTableModel tableModel = (DefaultTableModel)this.table1.getModel();
|
||||
Object[] rowData = {0, 0 ,0,0,0, 0};
|
||||
tableModel.addRow(rowData);
|
||||
}
|
||||
|
||||
private void 删除配置(ActionEvent e) {
|
||||
// TODO add your code here
|
||||
int selectedRow = table1.getSelectedRow();
|
||||
if (selectedRow != -1) {
|
||||
DefaultTableModel tableModel = (DefaultTableModel) table1.getModel();
|
||||
tableModel.removeRow(selectedRow);
|
||||
if(tableModel.getRowCount() > selectedRow)table1.setRowSelectionInterval(selectedRow, selectedRow);
|
||||
}
|
||||
}
|
||||
|
||||
private void initComponents() {
|
||||
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents @formatter:off
|
||||
scrollPane1 = new JScrollPane();
|
||||
table1 = new JTable();
|
||||
toggleButton1 = new JToggleButton();
|
||||
toggleButton2 = new JToggleButton();
|
||||
label1 = new JLabel();
|
||||
label2 = new JLabel();
|
||||
button19 = new JButton();
|
||||
button20 = new JButton();
|
||||
button21 = new JButton();
|
||||
textField1 = new JTextField();
|
||||
textField2 = new JTextField();
|
||||
toggleButton3 = new JToggleButton();
|
||||
label3 = new JLabel();
|
||||
label4 = new JLabel();
|
||||
label5 = new JLabel();
|
||||
|
||||
//======== this ========
|
||||
setLayout(null);
|
||||
|
||||
//======== scrollPane1 ========
|
||||
{
|
||||
|
||||
//---- table1 ----
|
||||
table1.setModel(new DefaultTableModel(
|
||||
new Object[][] {
|
||||
},
|
||||
new String[] {
|
||||
"\u9053\u5177\u4ee3\u7801", "\u91d1\u5e01\u7206\u7387", "\u7269\u54c1\u7206\u7387", "\u5f00\u59cb\u65f6\u95f4", "\u7ed3\u675f\u65f6\u95f4", "\u5355\u7269\u54c1\u6570\u91cf\u5806\u53e0"
|
||||
}
|
||||
) {
|
||||
Class<?>[] columnTypes = new Class<?>[] {
|
||||
Integer.class, Integer.class, Integer.class, String.class, String.class, Integer.class
|
||||
};
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return columnTypes[columnIndex];
|
||||
}
|
||||
});
|
||||
scrollPane1.setViewportView(table1);
|
||||
}
|
||||
add(scrollPane1);
|
||||
scrollPane1.setBounds(18, 10, 1130, 550);
|
||||
|
||||
//---- toggleButton1 ----
|
||||
toggleButton1.setIcon(new ImageIcon(getClass().getResource("/image/OFF3.png")));
|
||||
toggleButton1.setSelectedIcon(new ImageIcon(getClass().getResource("/image/ON3.png")));
|
||||
toggleButton1.setFocusPainted(false);
|
||||
toggleButton1.setContentAreaFilled(false);
|
||||
add(toggleButton1);
|
||||
toggleButton1.setBounds(15, 565, 100, 35);
|
||||
|
||||
//---- toggleButton2 ----
|
||||
toggleButton2.setIcon(new ImageIcon(getClass().getResource("/image/OFF3.png")));
|
||||
toggleButton2.setSelectedIcon(new ImageIcon(getClass().getResource("/image/ON3.png")));
|
||||
toggleButton2.setFocusPainted(false);
|
||||
toggleButton2.setContentAreaFilled(false);
|
||||
add(toggleButton2);
|
||||
toggleButton2.setBounds(15, 605, 100, 35);
|
||||
|
||||
//---- label1 ----
|
||||
label1.setText("\u591a\u500d\u7206\u7387\u5f00\u5173");
|
||||
add(label1);
|
||||
label1.setBounds(130, 570, 185, 30);
|
||||
|
||||
//---- label2 ----
|
||||
label2.setText("\u591a\u7269\u54c1\u7206\u7387\u662f\u5426\u53e0\u52a0");
|
||||
add(label2);
|
||||
label2.setBounds(130, 605, 185, 30);
|
||||
|
||||
//---- button19 ----
|
||||
button19.setText("\u4fdd\u5b58\u914d\u7f6e");
|
||||
button19.addActionListener(e -> 保存配置(e));
|
||||
add(button19);
|
||||
button19.setBounds(25, 645, 160, 35);
|
||||
|
||||
//---- button20 ----
|
||||
button20.setText("\u65b0\u589e\u914d\u7f6e");
|
||||
button20.addActionListener(e -> 新增配置(e));
|
||||
add(button20);
|
||||
button20.setBounds(825, 570, 160, 35);
|
||||
|
||||
//---- button21 ----
|
||||
button21.setText("\u5220\u9664\u914d\u7f6e");
|
||||
button21.addActionListener(e -> 删除配置(e));
|
||||
add(button21);
|
||||
button21.setBounds(990, 570, 160, 35);
|
||||
add(textField1);
|
||||
textField1.setBounds(1220, 22, 150, textField1.getPreferredSize().height);
|
||||
add(textField2);
|
||||
textField2.setBounds(1220, 57, 150, textField2.getPreferredSize().height);
|
||||
|
||||
//---- toggleButton3 ----
|
||||
toggleButton3.setIcon(new ImageIcon(getClass().getResource("/image/OFF3.png")));
|
||||
toggleButton3.setSelectedIcon(new ImageIcon(getClass().getResource("/image/ON3.png")));
|
||||
toggleButton3.setFocusPainted(false);
|
||||
toggleButton3.setContentAreaFilled(false);
|
||||
add(toggleButton3);
|
||||
toggleButton3.setBounds(1150, 95, 100, 35);
|
||||
|
||||
//---- label3 ----
|
||||
label3.setText("\u97ad\u5c38\u5f00\u5173");
|
||||
add(label3);
|
||||
label3.setBounds(1255, 100, 185, 30);
|
||||
|
||||
//---- label4 ----
|
||||
label4.setText("\u9053\u5177\u4ee3\u7801");
|
||||
add(label4);
|
||||
label4.setBounds(1165, 20, 55, 30);
|
||||
|
||||
//---- label5 ----
|
||||
label5.setText("\u97ad\u5c38\u51e0\u7387");
|
||||
add(label5);
|
||||
label5.setBounds(1165, 55, 88, 30);
|
||||
|
||||
{
|
||||
// compute preferred size
|
||||
Dimension preferredSize = new Dimension();
|
||||
for(int i = 0; i < getComponentCount(); i++) {
|
||||
Rectangle bounds = getComponent(i).getBounds();
|
||||
preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
|
||||
preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
|
||||
}
|
||||
Insets insets = getInsets();
|
||||
preferredSize.width += insets.right;
|
||||
preferredSize.height += insets.bottom;
|
||||
setMinimumSize(preferredSize);
|
||||
setPreferredSize(preferredSize);
|
||||
}
|
||||
// JFormDesigner - End of component initialization //GEN-END:initComponents @formatter:on
|
||||
|
||||
|
||||
this.toggleButton1.setSelected(Start.blkg == 1 ? true : false);
|
||||
this.toggleButton2.setSelected(Start.bldj == 1 ? true : false);
|
||||
this.toggleButton3.setSelected(Start.bskg == 1 ? true : false);
|
||||
|
||||
|
||||
DefaultTableModel tableModel = (DefaultTableModel)this.table1.getModel();
|
||||
// 创建一个自定义的单元格渲染器,用于右对齐字符串
|
||||
DefaultTableCellRenderer rightRenderer = new DefaultTableCellRenderer();
|
||||
rightRenderer.setHorizontalAlignment(JLabel.RIGHT);
|
||||
// 遍历表格的所有列,将字符串类型的列设置为右对齐
|
||||
for (int i = 0; i < table1.getColumnCount(); i++) {
|
||||
if (table1.getColumnClass(i) == String.class) {
|
||||
table1.getColumnModel().getColumn(i).setCellRenderer(rightRenderer);
|
||||
}
|
||||
}
|
||||
|
||||
Start.BLlist.forEach((obj) -> {
|
||||
Integer ItemId = obj.getItem_id();
|
||||
Integer GoldRate = obj.getGold_rate();
|
||||
Integer ItemRate = obj.getItem_rate();
|
||||
String Time = obj.getTime_range();
|
||||
Integer IsStack = obj.getStackableNum();
|
||||
|
||||
String[] split = Time.split("-");
|
||||
Object[] rowData = {ItemId, GoldRate ,ItemRate,split[0],split[1], IsStack};
|
||||
tableModel.addRow(rowData);
|
||||
});
|
||||
|
||||
int itemId = Start.bsConfig.getItem_id();
|
||||
int rate = Start.bsConfig.getRate();
|
||||
this.textField1.setText(String.valueOf(itemId));
|
||||
this.textField2.setText(String.valueOf(rate));
|
||||
}
|
||||
|
||||
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables @formatter:off
|
||||
private JScrollPane scrollPane1;
|
||||
private JTable table1;
|
||||
private JToggleButton toggleButton1;
|
||||
private JToggleButton toggleButton2;
|
||||
private JLabel label1;
|
||||
private JLabel label2;
|
||||
private JButton button19;
|
||||
private JButton button20;
|
||||
private JButton button21;
|
||||
private JTextField textField1;
|
||||
private JTextField textField2;
|
||||
private JToggleButton toggleButton3;
|
||||
private JLabel label3;
|
||||
private JLabel label4;
|
||||
private JLabel label5;
|
||||
// JFormDesigner - End of variables declaration //GEN-END:variables @formatter:on
|
||||
}
|
||||
|
|
@ -0,0 +1,178 @@
|
|||
JFDML JFormDesigner: "9.0.0.0.352" Java: "21.0.6" encoding: "UTF-8"
|
||||
|
||||
new FormModel {
|
||||
contentType: "form/swing"
|
||||
root: new FormRoot {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class com.jformdesigner.runtime.NullLayout ) ) {
|
||||
name: "this"
|
||||
add( new FormContainer( "javax.swing.JScrollPane", new FormLayoutManager( class javax.swing.JScrollPane ) ) {
|
||||
name: "scrollPane1"
|
||||
add( new FormComponent( "javax.swing.JTable" ) {
|
||||
name: "table1"
|
||||
"model": new com.jformdesigner.model.SwingTableModel( new java.util.Vector, new java.util.Vector {
|
||||
add( "道具代码" )
|
||||
add( "金币爆率" )
|
||||
add( "物品爆率" )
|
||||
add( "开始时间" )
|
||||
add( "结束时间" )
|
||||
add( "单物品数量堆叠" )
|
||||
}, new java.util.Vector {
|
||||
add( class java.lang.Integer )
|
||||
add( class java.lang.Integer )
|
||||
add( class java.lang.Integer )
|
||||
add( class java.lang.String )
|
||||
add( class java.lang.String )
|
||||
add( class java.lang.Integer )
|
||||
}, new java.util.Vector {
|
||||
add( null )
|
||||
add( null )
|
||||
add( null )
|
||||
add( null )
|
||||
add( null )
|
||||
add( null )
|
||||
}, new java.util.Vector {
|
||||
add( null )
|
||||
add( null )
|
||||
add( null )
|
||||
add( null )
|
||||
add( null )
|
||||
add( null )
|
||||
} )
|
||||
} )
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"x": 18
|
||||
"y": 10
|
||||
"width": 1130
|
||||
"height": 550
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JToggleButton" ) {
|
||||
name: "toggleButton1"
|
||||
"icon": &SwingIcon0 new com.jformdesigner.model.SwingIcon( 0, "/image/OFF3.png" )
|
||||
"selectedIcon": &SwingIcon1 new com.jformdesigner.model.SwingIcon( 0, "/image/ON3.png" )
|
||||
"focusPainted": false
|
||||
"contentAreaFilled": false
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"width": 100
|
||||
"height": 35
|
||||
"x": 15
|
||||
"y": 565
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JToggleButton" ) {
|
||||
name: "toggleButton2"
|
||||
"icon": #SwingIcon0
|
||||
"selectedIcon": #SwingIcon1
|
||||
"focusPainted": false
|
||||
"contentAreaFilled": false
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"width": 100
|
||||
"height": 35
|
||||
"x": 15
|
||||
"y": 605
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label1"
|
||||
"text": "多倍爆率开关"
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"x": 130
|
||||
"y": 570
|
||||
"width": 185
|
||||
"height": 30
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label2"
|
||||
"text": "多物品爆率是否叠加"
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"width": 185
|
||||
"height": 30
|
||||
"x": 130
|
||||
"y": 605
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JButton" ) {
|
||||
name: "button19"
|
||||
"text": "保存配置"
|
||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "保存配置", true ) )
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"width": 160
|
||||
"height": 35
|
||||
"x": 25
|
||||
"y": 645
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JButton" ) {
|
||||
name: "button20"
|
||||
"text": "新增配置"
|
||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "新增配置", true ) )
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"width": 160
|
||||
"height": 35
|
||||
"x": 825
|
||||
"y": 570
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JButton" ) {
|
||||
name: "button21"
|
||||
"text": "删除配置"
|
||||
addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "删除配置", true ) )
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"width": 160
|
||||
"height": 35
|
||||
"x": 990
|
||||
"y": 570
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JTextField" ) {
|
||||
name: "textField1"
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"x": 1220
|
||||
"y": 22
|
||||
"width": 150
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JTextField" ) {
|
||||
name: "textField2"
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"x": 1220
|
||||
"y": 57
|
||||
"width": 150
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JToggleButton" ) {
|
||||
name: "toggleButton3"
|
||||
"icon": #SwingIcon0
|
||||
"selectedIcon": #SwingIcon1
|
||||
"focusPainted": false
|
||||
"contentAreaFilled": false
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"width": 100
|
||||
"height": 35
|
||||
"x": 1150
|
||||
"y": 95
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label3"
|
||||
"text": "鞭尸开关"
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"width": 185
|
||||
"height": 30
|
||||
"x": 1255
|
||||
"y": 100
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label4"
|
||||
"text": "道具代码"
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"x": 1165
|
||||
"y": 20
|
||||
"height": 30
|
||||
"width": 55
|
||||
} )
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
name: "label5"
|
||||
"text": "鞭尸几率"
|
||||
}, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) {
|
||||
"width": 88
|
||||
"height": 30
|
||||
"x": 1165
|
||||
"y": 55
|
||||
} )
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 0, 0 )
|
||||
"size": new java.awt.Dimension( 1585, 715 )
|
||||
} )
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Created by JFormDesigner on Wed Mar 12 16:06:47 CST 2025
|
||||
*/
|
||||
|
||||
package gui.UI_LenheartUI;
|
||||
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
/**
|
||||
* @author dongj
|
||||
*/
|
||||
public class ExplosiveControl extends JPanel {
|
||||
public ExplosiveControl() {
|
||||
initComponents();
|
||||
}
|
||||
|
||||
private void initComponents() {
|
||||
// JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents @formatter:off
|
||||
|
||||
//======== this ========
|
||||
setLayout(null);
|
||||
|
||||
{
|
||||
// compute preferred size
|
||||
Dimension preferredSize = new Dimension();
|
||||
for(int i = 0; i < getComponentCount(); i++) {
|
||||
Rectangle bounds = getComponent(i).getBounds();
|
||||
preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
|
||||
preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
|
||||
}
|
||||
Insets insets = getInsets();
|
||||
preferredSize.width += insets.right;
|
||||
preferredSize.height += insets.bottom;
|
||||
setMinimumSize(preferredSize);
|
||||
setPreferredSize(preferredSize);
|
||||
}
|
||||
// JFormDesigner - End of component initialization //GEN-END:initComponents @formatter:on
|
||||
}
|
||||
|
||||
// JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables @formatter:off
|
||||
// JFormDesigner - End of variables declaration //GEN-END:variables @formatter:on
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
JFDML JFormDesigner: "9.0.0.0.352" Java: "21.0.6" encoding: "UTF-8"
|
||||
|
||||
new FormModel {
|
||||
contentType: "form/swing"
|
||||
root: new FormRoot {
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class com.jformdesigner.runtime.NullLayout ) ) {
|
||||
name: "this"
|
||||
}, new FormLayoutConstraints( null ) {
|
||||
"location": new java.awt.Point( 0, 0 )
|
||||
"size": new java.awt.Dimension( 400, 300 )
|
||||
} )
|
||||
}
|
||||
}
|
||||
|
|
@ -6,10 +6,18 @@ public class UI_LenheartUI {
|
|||
|
||||
private JPanel 物品回收页面;
|
||||
private JPanel 伤害控制页面;
|
||||
private JPanel 爆率控制页面;
|
||||
private JPanel 爆物管理页面;
|
||||
|
||||
public UI_LenheartUI(JTabbedPane mainComponent) {
|
||||
物品回收页面 = new ItemRecovery();
|
||||
伤害控制页面 = new DamageControl();
|
||||
爆率控制页面 = new DropControl();
|
||||
爆物管理页面 = new ExplosiveControl();
|
||||
|
||||
mainComponent.addTab("物品回收设置", 物品回收页面);
|
||||
mainComponent.addTab("伤害控制设置", 伤害控制页面);
|
||||
mainComponent.addTab("爆率 & 鞭尸控制设置", 爆率控制页面);
|
||||
mainComponent.addTab("爆物管理设置", 爆物管理页面);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -271,6 +271,7 @@ public class ppms extends JFrame {
|
|||
private JLabel jLabel186;
|
||||
private JLabel jLabel187;
|
||||
private JLabel jLabel188;
|
||||
private JLabel jLabel1188;
|
||||
private JLabel jLabel189;
|
||||
private JLabel jLabel19;
|
||||
private JLabel jLabel190;
|
||||
|
|
@ -809,6 +810,7 @@ public class ppms extends JFrame {
|
|||
private static JToggleButton 越级带人道具开关;
|
||||
private static JToggleButton 越级打怪;
|
||||
private static JToggleButton 道具强行宠吸开关;
|
||||
private static JToggleButton BOSS支持吸金吸物开关;
|
||||
private static JTextField 道具经验加成代码;
|
||||
private JButton 道具经验加成修改删除;
|
||||
private JButton 道具经验加成修改按钮;
|
||||
|
|
@ -1430,6 +1432,8 @@ public class ppms extends JFrame {
|
|||
ppms.宠吸道具 = new JTextField();
|
||||
this.jLabel188 = new JLabel();
|
||||
ppms.道具强行宠吸开关 = new JToggleButton();
|
||||
this.jLabel1188 = new JLabel();
|
||||
ppms.BOSS支持吸金吸物开关 = new JToggleButton();
|
||||
this.jLabel207 = new JLabel();
|
||||
ppms.特殊全宠物吸金开关 = new JToggleButton();
|
||||
this.jLabel208 = new JLabel();
|
||||
|
|
@ -5075,6 +5079,24 @@ public class ppms extends JFrame {
|
|||
ppms.this.道具强行宠吸开关ActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
this.jLabel1188.setText("BOSS支持吸金吸物开关");
|
||||
ppms.BOSS支持吸金吸物开关.setIcon((Icon) new ImageIcon(this.getClass().getResource("/image/OFF2.png")));
|
||||
ppms.BOSS支持吸金吸物开关.setBorderPainted(false);
|
||||
ppms.BOSS支持吸金吸物开关.setContentAreaFilled(false);
|
||||
ppms.BOSS支持吸金吸物开关.setFocusPainted(false);
|
||||
ppms.BOSS支持吸金吸物开关.setSelectedIcon((Icon) new ImageIcon(this.getClass().getResource("/image/ON2.png")));
|
||||
ppms.BOSS支持吸金吸物开关.addChangeListener((ChangeListener) new ChangeListener() {
|
||||
@Override
|
||||
public void stateChanged(final ChangeEvent evt) {
|
||||
ppms.this.BOSS支持吸金吸物开关StateChanged(evt);
|
||||
}
|
||||
});
|
||||
ppms.BOSS支持吸金吸物开关.addActionListener((ActionListener) new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(final ActionEvent evt) {
|
||||
ppms.this.BOSS支持吸金吸物开关ActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
this.jLabel207.setText("特殊全宠物吸金开关");
|
||||
ppms.特殊全宠物吸金开关.setIcon((Icon) new ImageIcon(this.getClass().getResource("/image/OFF2.png")));
|
||||
ppms.特殊全宠物吸金开关.setBorderPainted(false);
|
||||
|
|
@ -5113,8 +5135,107 @@ public class ppms extends JFrame {
|
|||
});
|
||||
final GroupLayout jPanel57Layout = new GroupLayout((Container) this.jPanel57);
|
||||
this.jPanel57.setLayout((LayoutManager) jPanel57Layout);
|
||||
jPanel57Layout.setHorizontalGroup((Group) jPanel57Layout.createParallelGroup(Alignment.LEADING).addGroup((Group) jPanel57Layout.createSequentialGroup().addContainerGap().addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.LEADING).addComponent((Component) this.jLabel148).addComponent((Component) this.jLabel165).addComponent((Component) this.jLabel167).addComponent((Component) this.jLabel169).addComponent((Component) this.jLabel187).addComponent((Component) this.jLabel188).addComponent((Component) this.jLabel207).addComponent((Component) this.jLabel208)).addPreferredGap(ComponentPlacement.RELATED, 94, 32767).addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.LEADING).addComponent((Component) ppms.特殊宠物吸金开关, -2, 74, -2).addComponent((Component) ppms.特殊宠物吸取开关, -2, 74, -2).addComponent((Component) ppms.特殊宠物吸物开关, -2, 74, -2).addComponent((Component) ppms.特殊宠物吸物无法使用地图开关, -2, 74, -2).addComponent((Component) ppms.宠吸道具, -2, 74, -2).addComponent((Component) ppms.道具强行宠吸开关, -2, 74, -2).addComponent((Component) ppms.特殊全宠物吸金开关, -2, 74, -2).addComponent((Component) ppms.特殊全宠物吸物开关, -2, 74, -2)).addGap(24, 24, 24)));
|
||||
jPanel57Layout.setVerticalGroup((Group) jPanel57Layout.createParallelGroup(Alignment.LEADING).addGroup((Group) jPanel57Layout.createSequentialGroup().addContainerGap().addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.CENTER).addComponent((Component) this.jLabel148).addComponent((Component) ppms.特殊宠物吸取开关, -2, 30, -2)).addPreferredGap(ComponentPlacement.UNRELATED).addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.CENTER).addComponent((Component) this.jLabel165).addComponent((Component) ppms.特殊宠物吸物开关, -2, 30, -2)).addGap(10, 10, 10).addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.CENTER).addComponent((Component) this.jLabel167).addComponent((Component) ppms.特殊宠物吸金开关, -2, 30, -2)).addGap(10, 10, 10).addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.CENTER).addComponent((Component) ppms.特殊宠物吸物无法使用地图开关, -2, 30, -2).addComponent((Component) this.jLabel169)).addGap(10, 10, 10).addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.CENTER).addComponent((Component) ppms.特殊全宠物吸金开关, -2, 30, -2).addComponent((Component) this.jLabel207)).addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.LEADING).addGroup((Group) jPanel57Layout.createSequentialGroup().addGap(17, 17, 17).addComponent((Component) this.jLabel208)).addGroup((Group) jPanel57Layout.createSequentialGroup().addPreferredGap(ComponentPlacement.UNRELATED).addComponent((Component) ppms.特殊全宠物吸物开关, -2, 30, -2))).addPreferredGap(ComponentPlacement.RELATED, 10, 32767).addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.CENTER).addComponent((Component) ppms.道具强行宠吸开关, -2, 30, -2).addComponent((Component) this.jLabel188)).addGap(10, 10, 10).addGroup((Group) jPanel57Layout.createParallelGroup(Alignment.BASELINE).addComponent((Component) this.jLabel187).addComponent((Component) ppms.宠吸道具, -2, -1, -2)).addGap(38, 38, 38)));
|
||||
jPanel57Layout.setHorizontalGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.LEADING)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createSequentialGroup()
|
||||
.addContainerGap()
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.LEADING)
|
||||
.addComponent((Component) this.jLabel148)
|
||||
.addComponent((Component) this.jLabel165)
|
||||
.addComponent((Component) this.jLabel167)
|
||||
.addComponent((Component) this.jLabel169)
|
||||
.addComponent((Component) this.jLabel187)
|
||||
.addComponent((Component) this.jLabel188)
|
||||
.addComponent((Component) this.jLabel1188)
|
||||
.addComponent((Component) this.jLabel207)
|
||||
.addComponent((Component) this.jLabel208)
|
||||
)
|
||||
.addPreferredGap(ComponentPlacement.RELATED, 94, 32767)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.LEADING)
|
||||
.addComponent((Component) ppms.特殊宠物吸金开关, -2, 74, -2)
|
||||
.addComponent((Component) ppms.特殊宠物吸取开关, -2, 74, -2)
|
||||
.addComponent((Component) ppms.特殊宠物吸物开关, -2, 74, -2)
|
||||
.addComponent((Component) ppms.特殊宠物吸物无法使用地图开关, -2, 74, -2)
|
||||
.addComponent((Component) ppms.宠吸道具, -2, 74, -2)
|
||||
.addComponent((Component) ppms.道具强行宠吸开关, -2, 74, -2)
|
||||
.addComponent((Component) ppms.BOSS支持吸金吸物开关, -2, 74, -2)
|
||||
.addComponent((Component) ppms.特殊全宠物吸金开关, -2, 74, -2)
|
||||
.addComponent((Component) ppms.特殊全宠物吸物开关, -2, 74, -2)
|
||||
)
|
||||
.addGap(24, 24, 24)
|
||||
)
|
||||
);
|
||||
jPanel57Layout.setVerticalGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.LEADING)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createSequentialGroup()
|
||||
.addContainerGap()
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.CENTER)
|
||||
.addComponent((Component) this.jLabel148)
|
||||
.addComponent((Component) ppms.特殊宠物吸取开关, -2, 30, -2)
|
||||
)
|
||||
.addPreferredGap(ComponentPlacement.UNRELATED)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.CENTER)
|
||||
.addComponent((Component) this.jLabel165)
|
||||
.addComponent((Component) ppms.特殊宠物吸物开关, -2, 30, -2)
|
||||
)
|
||||
.addGap(10, 10, 10)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.CENTER)
|
||||
.addComponent((Component) this.jLabel167)
|
||||
.addComponent((Component) ppms.特殊宠物吸金开关, -2, 30, -2)
|
||||
)
|
||||
.addGap(10, 10, 10)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.CENTER)
|
||||
.addComponent((Component) ppms.特殊宠物吸物无法使用地图开关, -2, 30, -2)
|
||||
.addComponent((Component) this.jLabel169)
|
||||
)
|
||||
.addGap(10, 10, 10)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.CENTER)
|
||||
.addComponent((Component) ppms.特殊全宠物吸金开关, -2, 30, -2)
|
||||
.addComponent((Component) this.jLabel207)
|
||||
)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.LEADING)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createSequentialGroup()
|
||||
.addGap(17, 17, 17)
|
||||
.addComponent((Component) this.jLabel208)
|
||||
)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createSequentialGroup()
|
||||
.addPreferredGap(ComponentPlacement.UNRELATED)
|
||||
.addComponent((Component) ppms.特殊全宠物吸物开关, -2, 30, -2)
|
||||
)
|
||||
)
|
||||
.addPreferredGap(ComponentPlacement.RELATED, 10, 32767)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.CENTER)
|
||||
.addComponent((Component) ppms.道具强行宠吸开关, -2, 30, -2)
|
||||
.addComponent((Component) this.jLabel188)
|
||||
)
|
||||
.addGap(10, 10, 10)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.CENTER)
|
||||
.addComponent((Component) ppms.BOSS支持吸金吸物开关, -2, 30, -2)
|
||||
.addComponent((Component) this.jLabel1188)
|
||||
)
|
||||
.addGap(10, 10, 10)
|
||||
.addGroup(
|
||||
(Group) jPanel57Layout.createParallelGroup(Alignment.BASELINE)
|
||||
.addComponent((Component) this.jLabel187)
|
||||
.addComponent((Component) ppms.宠吸道具, -2, -1, -2)
|
||||
)
|
||||
.addGap(38, 38, 38)
|
||||
)
|
||||
);
|
||||
this.jPanel88.setBorder((Border) BorderFactory.createTitledBorder("宠物吸取物品宠物代码列表"));
|
||||
ppms.宠物吸物列表.setModel((TableModel) new DefaultTableModel(new Object[0][], new String[]{"排序代码", "宠物代码"}) {
|
||||
Class[] types = {String.class, Integer.class};
|
||||
|
|
@ -7349,6 +7470,14 @@ public class ppms extends JFrame {
|
|||
private void 道具强行宠吸开关ActionPerformed(final ActionEvent evt) {
|
||||
}
|
||||
|
||||
private void BOSS支持吸金吸物开关StateChanged(final ChangeEvent evt) {
|
||||
Start.bossxw = (int) (ppms.BOSS支持吸金吸物开关.isSelected() ? 1 : 0);
|
||||
特殊控制台.setTwConfig();
|
||||
}
|
||||
|
||||
private void BOSS支持吸金吸物开关ActionPerformed(final ActionEvent evt) {
|
||||
}
|
||||
|
||||
private void 修改地图1ActionPerformed(final ActionEvent evt) {
|
||||
this.宠物吸取不参与地图调整(2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue