From 179fd3a745a208b525b4eb60f15c8a398a96f035 Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Tue, 15 Apr 2025 20:31:01 +0800 Subject: [PATCH] 111 --- src/gui/UI_LenheartUI/DropTips.java | 285 +++++++++++++++++++++++ src/gui/UI_LenheartUI/DropTips.jfd | 178 ++++++++++++++ src/gui/UI_LenheartUI/UI_LenheartUI.java | 11 + src/gui/UI_LenheartUI/WorldBoss.java | 150 ++++++++++++ src/gui/UI_LenheartUI/WorldBoss.jfd | 106 +++++++++ src/gui/UI_LenheartUI/zygn.java | 45 ++++ src/gui/UI_LenheartUI/zygn.jfd | 13 ++ src/gui/ppms.java | 5 +- 8 files changed, 792 insertions(+), 1 deletion(-) create mode 100644 src/gui/UI_LenheartUI/DropTips.java create mode 100644 src/gui/UI_LenheartUI/DropTips.jfd create mode 100644 src/gui/UI_LenheartUI/WorldBoss.java create mode 100644 src/gui/UI_LenheartUI/WorldBoss.jfd create mode 100644 src/gui/UI_LenheartUI/zygn.java create mode 100644 src/gui/UI_LenheartUI/zygn.jfd diff --git a/src/gui/UI_LenheartUI/DropTips.java b/src/gui/UI_LenheartUI/DropTips.java new file mode 100644 index 0000000..4fbd292 --- /dev/null +++ b/src/gui/UI_LenheartUI/DropTips.java @@ -0,0 +1,285 @@ +/* + * Created by JFormDesigner on Tue Apr 15 18:46:50 CST 2025 + */ + +package gui.UI_LenheartUI; + +import java.awt.event.*; + +import client.MapleCharacter; +import gui.Start; +import gui.tw.DiaoLuoTiShi; +import gui.特殊控制台; +import handling.channel.ChannelServer; +import handling.world.World; +import tools.MaplePacketCreator; + +import java.awt.*; +import java.util.ArrayList; +import javax.swing.*; +import javax.swing.border.Border; +import javax.swing.table.*; + +/** + * @author dongj + */ +public class DropTips extends JPanel { + public DropTips() { + initComponents(); + } + + private void 新增(ActionEvent e) { + // TODO add your code here + int Id = Integer.valueOf(textField1.getText()); + DiaoLuoTiShi diaoLuoTiShi = new DiaoLuoTiShi(0, Id); + Start.diaoLuoTiShis.put(Id,diaoLuoTiShi); + ReData(); +// Integer.valueOf(textField1.getText()) + } + + private void 删除(ActionEvent e) { + // TODO add your code here + int selectedRow = table1.getSelectedRow(); + if (selectedRow != -1) { + DefaultTableModel tableModel = (DefaultTableModel) table1.getModel(); + int id = Integer.valueOf(tableModel.getValueAt(selectedRow, 2).toString()); + Start.diaoLuoTiShis.remove(id); + tableModel.removeRow(selectedRow); + if(tableModel.getRowCount() > selectedRow)table1.setRowSelectionInterval(selectedRow, selectedRow); + } + } + + private void 保存配置(ActionEvent e) { + // TODO add your code here + Start.diaoLuoGongGao = textField3.getText(); + 特殊控制台.setTwConfig(); + } + + private void 发起公告(final int type) { + for (final ChannelServer cserv1 : ChannelServer.getAllInstances()) { + for (final MapleCharacter mch : cserv1.getPlayerStorage().getAllCharacters()) { + switch (type) { + case 0: { + World.Broadcast.broadcastMessage(MaplePacketCreator.serverMessage(this.textField2.getText())); + continue; + } + case 1: { + World.Broadcast.broadcastMessage(MaplePacketCreator.serverNotice(1, this.textField2.getText())); + continue; + } + case 2: { + mch.startMapEffect(this.textField2.getText(), 5120015); + continue; + } + case 3: { + World.Broadcast.broadcastMessage(MaplePacketCreator.serverNotice(6, this.textField2.getText())); + continue; + } + case 4: { + World.Broadcast.broadcastMessage(MaplePacketCreator.serverMessage(this.textField2.getText())); + World.Broadcast.broadcastMessage(MaplePacketCreator.serverNotice(1, this.textField2.getText())); + World.Broadcast.broadcastMessage(MaplePacketCreator.serverNotice(6, this.textField2.getText())); + mch.startMapEffect(this.textField2.getText(), 5120015); + continue; + } + } + } + } + } + + private void 顶端滚动公告(ActionEvent e) { + // TODO add your code here + 发起公告(0); + } + + private void 中心弹窗公告(ActionEvent e) { + // TODO add your code here + 发起公告(1); + } + + private void 中心气泡公告(ActionEvent e) { + // TODO add your code here + 发起公告(2); + } + + private void 聊天蓝色公告(ActionEvent e) { + // TODO add your code here + 发起公告(3); + } + + private void 发放全部公告(ActionEvent e) { + // TODO add your code here + 发起公告(4); + } + + private void initComponents() { + // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents @formatter:off + scrollPane1 = new JScrollPane(); + table1 = new JTable(); + button1 = new JButton(); + textField1 = new JTextField(); + label1 = new JLabel(); + button2 = new JButton(); + button3 = new JButton(); + textField2 = new JTextField(); + label2 = new JLabel(); + button4 = new JButton(); + button5 = new JButton(); + button6 = new JButton(); + button7 = new JButton(); + button8 = new JButton(); + textField3 = new JTextField(); + label3 = new JLabel(); + + //======== this ======== + setLayout(null); + + //======== scrollPane1 ======== + { + + //---- table1 ---- + table1.setModel(new DefaultTableModel( + new Object[][] { + {null, null, null}, + {null, null, null}, + }, + new String[] { + "\u5e8f\u53f7", "\u9053\u5177\u540d", "\u9053\u5177ID" + } + )); + scrollPane1.setViewportView(table1); + } + add(scrollPane1); + scrollPane1.setBounds(new Rectangle(new Point(25, 20), scrollPane1.getPreferredSize())); + + //---- button1 ---- + button1.setText("\u65b0\u589e"); + button1.addActionListener(e -> 新增(e)); + add(button1); + button1.setBounds(225, 465, 95, 35); + add(textField1); + textField1.setBounds(115, 465, 110, 35); + + //---- label1 ---- + label1.setText("\u9053\u5177ID"); + add(label1); + label1.setBounds(45, 465, 110, 35); + + //---- button2 ---- + button2.setText("\u5220\u9664"); + button2.addActionListener(e -> 删除(e)); + add(button2); + button2.setBounds(350, 465, 95, 35); + + //---- button3 ---- + button3.setText("\u4fdd\u5b58\u914d\u7f6e"); + button3.addActionListener(e -> 保存配置(e)); + add(button3); + button3.setBounds(335, 505, 130, 55); + add(textField2); + textField2.setBounds(505, 55, 575, 160); + + //---- label2 ---- + label2.setText("\u5168\u670d\u516c\u544a"); + add(label2); + label2.setBounds(515, 20, 120, 30); + + //---- button4 ---- + button4.setText("\u9876\u7aef\u6eda\u52a8"); + button4.addActionListener(e -> 顶端滚动公告(e)); + add(button4); + button4.setBounds(505, 225, 85, button4.getPreferredSize().height); + + //---- button5 ---- + button5.setText("\u4e2d\u5fc3\u5f39\u7a97"); + button5.addActionListener(e -> 中心弹窗公告(e)); + add(button5); + button5.setBounds(630, 225, 85, 34); + + //---- button6 ---- + button6.setText("\u4e2d\u5fc3\u6c14\u6ce1"); + button6.addActionListener(e -> 中心气泡公告(e)); + add(button6); + button6.setBounds(750, 225, 85, 34); + + //---- button7 ---- + button7.setText("\u804a\u5929\u84dd\u8272"); + button7.addActionListener(e -> 聊天蓝色公告(e)); + add(button7); + button7.setBounds(870, 225, 85, 34); + + //---- button8 ---- + button8.setText("\u53d1\u653e\u5168\u90e8"); + button8.addActionListener(e -> 发放全部公告(e)); + add(button8); + button8.setBounds(990, 225, 85, 34); + add(textField3); + textField3.setBounds(95, 510, 240, 70); + + //---- label3 ---- + label3.setText("\u64ad\u62a5\u5185\u5bb9"); + add(label3); + label3.setBounds(new Rectangle(new Point(45, 530), label3.getPreferredSize())); + + { + // 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 + + + ReData(); + textField3.setText(Start.diaoLuoGongGao); + } + + private void ReData(){ + DefaultTableModel tableModel = (DefaultTableModel)this.table1.getModel(); + tableModel.setRowCount(0); + // 创建一个自定义的单元格渲染器,用于右对齐字符串 + 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); + } + } + + int xh = 1; + for (DiaoLuoTiShi value : Start.diaoLuoTiShis.values()) { + Object[] rowData = {xh,value.getName(),value.getItemId()}; + tableModel.addRow(rowData); + xh++; + } + + } + + // JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables @formatter:off + private JScrollPane scrollPane1; + private JTable table1; + private JButton button1; + private JTextField textField1; + private JLabel label1; + private JButton button2; + private JButton button3; + private JTextField textField2; + private JLabel label2; + private JButton button4; + private JButton button5; + private JButton button6; + private JButton button7; + private JButton button8; + private JTextField textField3; + private JLabel label3; + // JFormDesigner - End of variables declaration //GEN-END:variables @formatter:on +} diff --git a/src/gui/UI_LenheartUI/DropTips.jfd b/src/gui/UI_LenheartUI/DropTips.jfd new file mode 100644 index 0000000..1c8a4b5 --- /dev/null +++ b/src/gui/UI_LenheartUI/DropTips.jfd @@ -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 { + add( new java.util.Vector { + add( null ) + add( null ) + add( null ) + } ) + add( new java.util.Vector { + add( null ) + add( null ) + add( null ) + } ) + }, new java.util.Vector { + add( "序号" ) + add( "道具名" ) + add( "道具ID" ) + }, new java.util.Vector { + add( null ) + add( null ) + add( null ) + }, new java.util.Vector { + add( null ) + add( null ) + add( null ) + }, new java.util.Vector { + add( null ) + add( null ) + add( null ) + } ) + } ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 25 + "y": 20 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button1" + "text": "新增" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "新增", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 225 + "y": 465 + "width": 95 + "height": 35 + } ) + add( new FormComponent( "javax.swing.JTextField" ) { + name: "textField1" + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 115 + "y": 465 + "width": 110 + "height": 35 + } ) + add( new FormComponent( "javax.swing.JLabel" ) { + name: "label1" + "text": "道具ID" + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 45 + "y": 465 + "width": 110 + "height": 35 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button2" + "text": "删除" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "删除", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 350 + "y": 465 + "width": 95 + "height": 35 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button3" + "text": "保存配置" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "保存配置", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 335 + "y": 505 + "width": 130 + "height": 55 + } ) + add( new FormComponent( "javax.swing.JTextField" ) { + name: "textField2" + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 505 + "y": 55 + "width": 575 + "height": 160 + } ) + add( new FormComponent( "javax.swing.JLabel" ) { + name: "label2" + "text": "全服公告" + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 515 + "y": 20 + "width": 120 + "height": 30 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button4" + "text": "顶端滚动" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "顶端滚动公告", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 505 + "y": 225 + "width": 85 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button5" + "text": "中心弹窗" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "中心弹窗公告", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "width": 85 + "height": 34 + "x": 630 + "y": 225 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button6" + "text": "中心气泡" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "中心气泡公告", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "width": 85 + "height": 34 + "x": 750 + "y": 225 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button7" + "text": "聊天蓝色" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "聊天蓝色公告", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "width": 85 + "height": 34 + "x": 870 + "y": 225 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button8" + "text": "发放全部" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "发放全部公告", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "width": 85 + "height": 34 + "x": 990 + "y": 225 + } ) + add( new FormComponent( "javax.swing.JTextField" ) { + name: "textField3" + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 95 + "y": 510 + "width": 240 + "height": 70 + } ) + add( new FormComponent( "javax.swing.JLabel" ) { + name: "label3" + "text": "播报内容" + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 45 + "y": 530 + } ) + }, new FormLayoutConstraints( null ) { + "location": new java.awt.Point( 0, 0 ) + "size": new java.awt.Dimension( 1145, 590 ) + } ) + } +} diff --git a/src/gui/UI_LenheartUI/UI_LenheartUI.java b/src/gui/UI_LenheartUI/UI_LenheartUI.java index c20b6d2..3661e2d 100644 --- a/src/gui/UI_LenheartUI/UI_LenheartUI.java +++ b/src/gui/UI_LenheartUI/UI_LenheartUI.java @@ -12,6 +12,11 @@ public class UI_LenheartUI { private JPanel 钓鱼管理页面; private JPanel 自动访问NPC页面; private JPanel 杀怪统计页面; + private JPanel 掉落捡取提示; + private JPanel 野外BOSS页面; + private JPanel 专用功能页面; + + public UI_LenheartUI(JTabbedPane mainComponent) { 物品回收页面 = new ItemRecovery(); @@ -22,7 +27,12 @@ public class UI_LenheartUI { 钓鱼管理页面 = new Fishing(); 自动访问NPC页面 = new AutoScriptNpc(); 杀怪统计页面 = new KillMonsterStatistics(); + 掉落捡取提示 = new DropTips(); + 野外BOSS页面 = new WorldBoss(); + 专用功能页面 = new zygn(); +// mainComponent.addTab("专用功能", 专用功能页面); + mainComponent.addTab("掉落捡取提示 & 通知", 掉落捡取提示); mainComponent.addTab("物品回收设置", 物品回收页面); mainComponent.addTab("伤害控制设置", 伤害控制页面); mainComponent.addTab("爆率 & 鞭尸控制设置", 爆率控制页面); @@ -31,5 +41,6 @@ public class UI_LenheartUI { mainComponent.addTab("钓鱼管理设置", 钓鱼管理页面); mainComponent.addTab("自动访问NPC设置", 自动访问NPC页面); mainComponent.addTab("杀怪统计", 杀怪统计页面); + mainComponent.addTab("野外BOSS", 野外BOSS页面); } } diff --git a/src/gui/UI_LenheartUI/WorldBoss.java b/src/gui/UI_LenheartUI/WorldBoss.java new file mode 100644 index 0000000..1ef3c1a --- /dev/null +++ b/src/gui/UI_LenheartUI/WorldBoss.java @@ -0,0 +1,150 @@ +/* + * Created by JFormDesigner on Tue Apr 15 19:19:53 CST 2025 + */ + +package gui.UI_LenheartUI; + +import java.awt.event.*; +import gui.Start; +import gui.特殊控制台; +import server.BossInMap; + +import java.awt.*; +import javax.swing.*; +import javax.swing.table.*; + +/** + * @author dongj + */ +public class WorldBoss extends JPanel { + public WorldBoss() { + initComponents(); + } + + private void 新增(ActionEvent e) { + // TODO add your code here + DefaultTableModel tableModel = (DefaultTableModel)this.table1.getModel(); + Object[] rowData = {0,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(); + int id = Integer.valueOf(tableModel.getValueAt(selectedRow, 2).toString()); + Start.diaoLuoTiShis.remove(id); + tableModel.removeRow(selectedRow); + if(tableModel.getRowCount() > selectedRow)table1.setRowSelectionInterval(selectedRow, selectedRow); + } + } + + private void 保存配置(ActionEvent e) { + // TODO add your code here + DefaultTableModel tableModel = (DefaultTableModel) table1.getModel(); + int rowCount = tableModel.getRowCount(); + Start.野外boss刷新.clear(); + for (int i = 0; i < rowCount; i++) { + BossInMap bossInMap = new BossInMap((int) tableModel.getValueAt(i, 0), + (int) tableModel.getValueAt(i, 2), + (int) tableModel.getValueAt(i, 3), + (int) tableModel.getValueAt(i, 4), + tableModel.getValueAt(i, 5).toString(), + (int) tableModel.getValueAt(i, 6)); + bossInMap.setBosshp(tableModel.getValueAt(i, 1).toString()); + Start.野外boss刷新.add(bossInMap); + } + 特殊控制台.setTwConfig(); + } + + private void initComponents() { + // JFormDesigner - Component initialization - DO NOT MODIFY //GEN-BEGIN:initComponents @formatter:off + scrollPane1 = new JScrollPane(); + table1 = new JTable(); + button1 = new JButton(); + button2 = new JButton(); + button3 = new JButton(); + + //======== this ======== + setLayout(null); + + //======== scrollPane1 ======== + { + + //---- table1 ---- + table1.setModel(new DefaultTableModel( + new Object[][] { + {null, null, null, null, null, null, null}, + {null, null, null, null, null, null, null}, + }, + new String[] { + "\u91ce\u5916BOSS", "\u8840\u91cf(\u4ebf)", "\u5730\u56fe\u4ee3\u7801", "X\u5750\u6807", "Y\u5750\u6807", "\u8bf4\u660e", "\u5237\u65b0\u95f4\u9694/\u5206" + } + )); + scrollPane1.setViewportView(table1); + } + add(scrollPane1); + scrollPane1.setBounds(15, 10, 1245, 575); + + //---- button1 ---- + button1.setText("\u65b0\u589e"); + button1.addActionListener(e -> 新增(e)); + add(button1); + button1.setBounds(145, 615, 175, 50); + + //---- button2 ---- + button2.setText("\u5220\u9664"); + button2.addActionListener(e -> 删除(e)); + add(button2); + button2.setBounds(487, 615, 175, 50); + + //---- button3 ---- + button3.setText("\u4fdd\u5b58\u914d\u7f6e"); + button3.addActionListener(e -> 保存配置(e)); + add(button3); + button3.setBounds(829, 615, 175, 50); + + { + // 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 + + + DefaultTableModel tableModel = (DefaultTableModel)this.table1.getModel(); + tableModel.setRowCount(0); + // 创建一个自定义的单元格渲染器,用于右对齐字符串 + 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); + } + } + + for (BossInMap bossInMap : Start.野外boss刷新) { + Object[] rowData = {bossInMap.getMobid(),bossInMap.getBosshp(),bossInMap.getMap(),bossInMap.getX(),bossInMap.getY(),bossInMap.getMsg(),bossInMap.getTime()}; + tableModel.addRow(rowData); + } + } + + // JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables @formatter:off + private JScrollPane scrollPane1; + private JTable table1; + private JButton button1; + private JButton button2; + private JButton button3; + // JFormDesigner - End of variables declaration //GEN-END:variables @formatter:on +} diff --git a/src/gui/UI_LenheartUI/WorldBoss.jfd b/src/gui/UI_LenheartUI/WorldBoss.jfd new file mode 100644 index 0000000..05f4249 --- /dev/null +++ b/src/gui/UI_LenheartUI/WorldBoss.jfd @@ -0,0 +1,106 @@ +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 { + add( new java.util.Vector { + add( null ) + add( null ) + add( null ) + add( null ) + add( null ) + add( null ) + add( null ) + } ) + add( new java.util.Vector { + add( null ) + add( null ) + add( null ) + add( null ) + add( null ) + add( null ) + add( null ) + } ) + }, new java.util.Vector { + add( "野外BOSS" ) + add( "血量(亿)" ) + add( "地图代码" ) + add( "X坐标" ) + add( "Y坐标" ) + add( "说明" ) + add( "刷新间隔/分" ) + }, new java.util.Vector { + add( null ) + 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 ) + add( null ) + }, new java.util.Vector { + add( null ) + add( null ) + add( null ) + add( null ) + add( null ) + add( null ) + add( null ) + } ) + } ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 15 + "y": 10 + "width": 1245 + "height": 575 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button1" + "text": "新增" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "新增", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "x": 145 + "y": 615 + "width": 175 + "height": 50 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button2" + "text": "删除" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "删除", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "width": 175 + "height": 50 + "x": 487 + "y": 615 + } ) + add( new FormComponent( "javax.swing.JButton" ) { + name: "button3" + "text": "保存配置" + addEvent( new FormEvent( "java.awt.event.ActionListener", "actionPerformed", "保存配置", true ) ) + }, new FormLayoutConstraints( class com.jformdesigner.runtime.NullConstraints ) { + "width": 175 + "height": 50 + "x": 829 + "y": 615 + } ) + }, new FormLayoutConstraints( null ) { + "location": new java.awt.Point( 0, 0 ) + "size": new java.awt.Dimension( 1310, 730 ) + } ) + } +} diff --git a/src/gui/UI_LenheartUI/zygn.java b/src/gui/UI_LenheartUI/zygn.java new file mode 100644 index 0000000..dcd3f7f --- /dev/null +++ b/src/gui/UI_LenheartUI/zygn.java @@ -0,0 +1,45 @@ +/* + * Created by JFormDesigner on Tue Apr 15 20:20:15 CST 2025 + */ + +package gui.UI_LenheartUI; + +import java.awt.*; +import javax.swing.*; +import javax.swing.border.Border; + +/** + * @author dongj + */ +public class zygn extends JPanel { + public zygn() { + 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 +} diff --git a/src/gui/UI_LenheartUI/zygn.jfd b/src/gui/UI_LenheartUI/zygn.jfd new file mode 100644 index 0000000..0491d8f --- /dev/null +++ b/src/gui/UI_LenheartUI/zygn.jfd @@ -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 ) + } ) + } +} diff --git a/src/gui/ppms.java b/src/gui/ppms.java index 8202580..107fa64 100644 --- a/src/gui/ppms.java +++ b/src/gui/ppms.java @@ -5693,7 +5693,7 @@ public class ppms extends JFrame { this.jPanel5.setLayout((LayoutManager) jPanel5Layout); jPanel5Layout.setHorizontalGroup((Group) jPanel5Layout.createParallelGroup(Alignment.LEADING).addGroup((Group) jPanel5Layout.createSequentialGroup().addContainerGap().addComponent((Component) this.jPanel38, -2, -1, -2).addGap(10, 10, 10).addComponent((Component) this.jPanel41, -2, -1, -2).addPreferredGap(ComponentPlacement.UNRELATED).addComponent((Component) this.jPanel43, -2, -1, -2).addContainerGap(-1, 32767))); jPanel5Layout.setVerticalGroup((Group) jPanel5Layout.createParallelGroup(Alignment.LEADING).addGroup((Group) jPanel5Layout.createSequentialGroup().addContainerGap().addGroup((Group) jPanel5Layout.createParallelGroup(Alignment.LEADING).addComponent((Component) this.jPanel43, -2, -1, -2).addGroup((Group) jPanel5Layout.createParallelGroup(Alignment.LEADING, false).addComponent((Component) this.jPanel41, -1, -1, 32767).addComponent((Component) this.jPanel38, -1, -1, 32767))).addContainerGap(579, 32767))); - ppms.主界面菜单.addTab("专用功能", (Icon) new ImageIcon(this.getClass().getResource("/image/问题.png")), (Component) this.jPanel5); +// ppms.主界面菜单.addTab("专用功能", (Icon) new ImageIcon(this.getClass().getResource("/image/问题.png")), (Component) this.jPanel5); this.jPanel78.setBorder((Border) BorderFactory.createTitledBorder("充值赞助")); this.充值赞助列表.setModel((TableModel) new DefaultTableModel(new Object[0][], new String[]{"角色ID", "玩家名字", "每日充值", "累计充值", "剩余积分", "可用点券"}) { boolean[] canEdit = {false, false, false, false, false, false}; @@ -5875,6 +5875,9 @@ public class ppms extends JFrame { ppms.主界面菜单.addTab("贪玩定制", (Icon) new ImageIcon(this.getClass().getResource("/image/至尊版工具.png")), (Component) this.LenheartUI); this.LenheartUI.setPreferredSize(new Dimension(LenheartUI.getPreferredSize().width + 10, LenheartUI.getPreferredSize().height)); this.UI_Control = new UI_LenheartUI(this.贪玩功能面板); +// this.贪玩功能面板.addTab("专用功能",this.jPanel5); + this.贪玩功能面板.insertTab("专用功能", null, jPanel5, null, 0); + this.贪玩功能面板.setSelectedIndex(0); this.jTextField1.setText("贪玩冒险岛079");