-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.新增胜率和评分场次数量自定义 3.修复选择英雄战绩窗口胜场不显示bug 4.修复战绩查询bug 5.优化和胜率改为组队房间获取模式取消手动筛选模式 6.修复战绩查询跨区bug
- Loading branch information
Showing
35 changed files
with
570 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package helper.bo; | ||
|
||
import lombok.Data; | ||
|
||
/** | ||
* @author WuYi | ||
*/ | ||
@Data | ||
public class TencentChampion { | ||
private Integer heroId; | ||
private String name; | ||
private String keywords; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
src/main/java/helper/frame/panel/history/HistoryCountBox.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package helper.frame.panel.history; | ||
|
||
import helper.cache.AppCache; | ||
import helper.frame.bo.ItemBO; | ||
import helper.frame.panel.base.BaseComboBox; | ||
import helper.frame.utils.FrameConfigUtil; | ||
import lombok.extern.slf4j.Slf4j; | ||
|
||
import java.awt.event.ItemEvent; | ||
import java.awt.event.ItemListener; | ||
|
||
/** | ||
* @author WuYi | ||
*/ | ||
@Slf4j | ||
public class HistoryCountBox extends BaseComboBox<ItemBO> { | ||
|
||
public HistoryCountBox() { | ||
this.setItems(); | ||
this.addItemListener(listener()); | ||
} | ||
|
||
public void setItems() { | ||
this.addItem(new ItemBO("-1", "评分胜率战绩数量(默认20)")); | ||
this.addItem(new ItemBO("5", "5")); | ||
this.addItem(new ItemBO("10", "10")); | ||
this.addItem(new ItemBO("20", "20")); | ||
this.addItem(new ItemBO("30", "30")); | ||
this.addItem(new ItemBO("40", "40")); | ||
this.addItem(new ItemBO("50", "50")); | ||
this.addItem(new ItemBO("100", "100")); | ||
this.addItem(new ItemBO("200", "200")); | ||
Integer historyCount = AppCache.settingPersistence.getHistoryCount(); | ||
if (!historyCount.equals(20)) { | ||
this.setSelectedItem(new ItemBO(historyCount.toString(), historyCount.toString())); | ||
} | ||
} | ||
|
||
private ItemListener listener() { | ||
return e -> { | ||
if (e.getStateChange() == ItemEvent.SELECTED) { | ||
ItemBO item = (ItemBO) e.getItem(); | ||
int count = Integer.parseInt(item.getValue()); | ||
if (count >= 5) { | ||
AppCache.settingPersistence.setHistoryCount(count); | ||
} else { | ||
AppCache.settingPersistence.setHistoryCount(20); | ||
} | ||
FrameConfigUtil.save(); | ||
} | ||
}; | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.