Skip to content

Commit

Permalink
全新UI设计
Browse files Browse the repository at this point in the history
  • Loading branch information
leck995 committed Aug 6, 2024
1 parent 15dfe12 commit 6c0738a
Show file tree
Hide file tree
Showing 45 changed files with 5,951 additions and 490 deletions.
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,33 @@
- [x] 查询每日进度,包括体力,活跃度,电台
- [x] 游戏时间统计
- [x] 查询宝箱获取数量
- [x] 库街区鸣潮签到
- [x] 库街区鸣潮签到与统计
- [x] 抽卡分析(已支持国际服账号)
- [x] 明暗色主题
- [ ] 明暗色主题
- [ ] 查看角色数据
- [ ] 地图探索进度分析
- [ ] 角色数据分析
- [ ] 挑战数据分析

## 运行截图
![image.png](https://github.com/leck995/WutheringWavesTool/blob/master/temp/img01.png)

![image.png](https://github.com/leck995/WutheringWavesTool/blob/master/temp/img04.png)
![image.png](https://github.com/leck995/WutheringWavesTool/blob/master/temp/01.png)

![image.png](https://github.com/leck995/WutheringWavesTool/blob/master/temp/img02.png)

![image.png](https://github.com/leck995/WutheringWavesTool/blob/master/temp/img03.png)

![image.png](https://github.com/leck995/WutheringWavesTool/blob/master/temp/img04.png)

![image.png](https://github.com/leck995/WutheringWavesTool/blob/master/temp/img05.png)
## 教程
软件启动先在设置中设置鸣潮游戏目录(类似于“D:\Game\Wuthering Waves”),这是最优先的一步
软件启动先在设置中设置鸣潮游戏目录(类似于“D:\Game\Wuthering Waves”),这是最优先的一步。

#### 关于游戏时长统计
在本软件不被关闭的前提下,可以自动统计鸣潮游玩时间。
只要使用本软件启动游戏,将自动统计鸣潮游玩时间。

#### 关于签到
签到需要手动添加:库街区ID、鸣潮ID以及库街区Token,Token获取请前往 [库街区](https://wiki.kurobbs.com/mc/home) ,登录后获取,具体获取Token请善用搜索引擎。
签到需要手动添加:库街区ID、鸣潮ID以及库街区Token,Token获取请前往 [库街区](https://wiki.kurobbs.com/mc/home) ,登录后获取,具体获取Token请善用搜索引擎(现内置简易教程)

添加账号请务必设置一个主账号,主界面默认会使用主账号信息,从而获取游戏内相关数据
添加账号请务必设置一个主账号,所有的账号相关界面默认会使用主账号信息,从而获取游戏内相关数据

签到最大支持9个账号同时签到(我想普通玩家玩家不可能有9个以上的账号)

Expand All @@ -42,8 +46,11 @@
后续对于该账号的数据获取可直接点击刷新即可。

如果仅需要抽卡分析功能,可在设置中将抽卡分析设置为启动页。

### 其他
项目背景来之与网络,有知晓作者请告知一下,谢谢。
项目仅供学习交流使用,请勿用于其他用途。

## 支持
倘若喜欢本程序,欢迎支持一下开发者,您的支持会加快软件的开发进度。

Expand Down
Binary file added libs/nfx-core-1.0.0.jar
Binary file not shown.
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,21 @@
<artifactId>jnativehook</artifactId>
<version>2.2.2</version>
</dependency>

<!-- <dependency>
<groupId>xss.it.nfx</groupId>
<artifactId>nfx.core</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${basedir}/libs/nfx-core-1.0.0.jar</systemPath>
</dependency>-->
<dependency>
<groupId>xss.it.nfx</groupId>
<artifactId>nfx-core</artifactId>
<version>1.0.0</version>
</dependency>


</dependencies>

<build>
Expand Down
50 changes: 12 additions & 38 deletions src/main/java/cn/tealc/wutheringwavestool/MainApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,67 +43,42 @@

public class MainApplication extends Application {
private static final Logger LOG=LoggerFactory.getLogger(MainApplication.class);
public static RoundStage window;
public static MainWindow window;
private static WinNT.HANDLE gameAppListener;
public GameAppListener appListener;
private static FXTrayIcon fxTrayIcon;

@Override
public void start(Stage stage) throws IOException {
stage.close();
JdbcUtils.init();
System.setProperty("prism.lcdtext", "false");
// System.setProperty("LcdFontSmoothing", "true");
// System.setProperty("LcdFontSmoothing", "true");
System.setProperty("prism.text", "t2k");

VersionUpdateUtil.update();

window = new MainWindow();
window.show();

RoundStage roundStage=new RoundStage();
window=roundStage;
roundStage.setWidth(1300.0);
roundStage.setHeight(750.0);
roundStage.setTitle("鸣潮助手");
roundStage.getIcons().add(new Image(MainApplication.class.getResourceAsStream("image/icon.png")));
initFont();
//initFont();
if (Config.setting.isTheme()){
Application.setUserAgentStylesheet(new PrimerDark().getUserAgentStylesheet());
//Application.setUserAgentStylesheet(new PrimerDark().getUserAgentStylesheet());
}else {
Application.setUserAgentStylesheet(new PrimerLight().getUserAgentStylesheet());
//Application.setUserAgentStylesheet(new PrimerLight().getUserAgentStylesheet());
}



ViewTuple<MainView, MainViewModel> viewTuple = FluentViewLoader.fxmlView(MainView.class).load();
roundStage.setContent(viewTuple.getView());
Application.setUserAgentStylesheet(FXResourcesLoader.load("css/light.css"));

appListener = GameAppListener.getInstance();
gameAppListener = User32.INSTANCE.SetWinEventHook(0x0003, 0x0003, null, appListener, 0, 0, 0);

roundStage.show();
createTrayIcon();
//createTrayIcon();
initExceptionHandler();

}

private void initFont(){
boolean contains = Font.getFamilies().contains("Microsoft YaHei");
if (!contains){
LOG.info("默认字体不存在,加载内置字体");
Font.loadFont(
MainApplication.class.getResourceAsStream("/cn/tealc/wutheringwavestool/font/HarmonyOS_Sans_SC_Regular.ttf"),
12);
Font.loadFont(
MainApplication.class.getResourceAsStream("/cn/tealc/wutheringwavestool/font/HarmonyOS_Sans_SC_Bold.ttf"),
12);
window.getScene().getRoot().setStyle("-fx-font-family: \"HarmonyOS Sans SC\"");
}else {
window.getScene().getRoot().setStyle("-fx-font-family: \"Microsoft YaHei\"");
LOG.info("默认字体存在");
}
LOG.info("系统默认字体:{}",Font.getDefault().getFamily());
}



private void initExceptionHandler(){
// 捕捉未处理的异常
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
Expand Down Expand Up @@ -135,12 +110,11 @@ public static void exit(){
window.close();
System.exit(0);
}

public static void main(String[] args) {
launch();
}



private void createTrayIcon() throws UnsupportedEncodingException {
MenuItem recovery=new MenuItem("还原");
recovery.setOnAction(event -> {
Expand Down
Loading

0 comments on commit 6c0738a

Please sign in to comment.