Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

DG-Lab Beta波形导入 #46

Open
SakuraKoi opened this issue Jul 29, 2023 · 3 comments
Open

DG-Lab Beta波形导入 #46

SakuraKoi opened this issue Jul 29, 2023 · 3 comments
Labels
Priority: High Solve it as soon as possible Status: Confirmed We confirmed this issue exists or accepted the suggestion, waiting for work on it Type: Feature Add new features

Comments

@SakuraKoi
Copy link
Owner

看了看结构,应该和老版本差不多
realms数据库换成了sqlite库,操作起来省事多了
先卫星搁着,回头倒腾

@SakuraKoi SakuraKoi added Priority: High Solve it as soon as possible Status: Confirmed We confirmed this issue exists or accepted the suggestion, waiting for work on it Type: Feature Add new features labels Jul 29, 2023
@SakuraKoi
Copy link
Owner Author

INSERT INTO "pluse" (
	"pluseID", "waveName", "waveNameEn", "defaultName", "classic", 
	"A0", "B0", "C0", "J0", "PC0", "A1", "B1", "C1", "J1", "PC1", "A2", "B2", "C2", "J2", "PC2", "JIE1", "JIE2", "L", "ZY", 
	"points1", "points2", "points3"
) VALUES (
	'127', '呼吸', '自定义0', 1, 1, 
	0, 20, 8, 0, 1, 0, 20, 2, 20, 1, 0, 20, 2, 20, 1, 0, 0, 35, 8, 
	'[{"x": 0,"y": 0,"anchor": 1},{"x": 1,"y": 4,"anchor": 0},{"x": 2,"y": 8,"anchor": 0},{"x": 3,"y": 12,"anchor": 0},{"x": 4,"y": 16,"anchor": 0},{"x": 5,"y": 20,"anchor": 1},{"x": 6,"y": 20,"anchor": 1},{"x": 7,"y": 20,"anchor": 1}]',
	'[{"x": 0,"y": 0,"anchor": 1},{"x": 1,"y": 20,"anchor": 1}]',
	'[{"x": 0,"y": 0,"anchor": 1},{"x": 1,"y": 20,"anchor": 1}]'
);

不能说是和老版本完全相同, 但可以说是一模一样

@SakuraKoi
Copy link
Owner Author

SakuraKoi commented Jul 30, 2023

备忘:

  • pluseID没有auto_increment, 插入表时需要自己算id号
  • 现在是用en来存自定义名了, 老版本在cn里, 行为不同

以及

程序员出来挨打
classic用0表示出厂波形 1表示自定义
0=true 1=false是吧

可能需要考虑是直接操作数据库还是和原来一样调app函数创建
倾向于直接操作数据库后重载/重启app,那一堆错综复杂的eventbus调用之前就整出了鬼知道怎么来的崩溃bug
不知道新版本怎么样了,写功能的时候再看看

@SakuraKoi SakuraKoi changed the title [Beta] DG-Lab Beta波形导入 DG-Lab Beta波形导入 Jul 30, 2023
@SakuraKoi
Copy link
Owner Author

更改开发目标: 让3.0.8的官方波形导入支持咱模块导出的json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Priority: High Solve it as soon as possible Status: Confirmed We confirmed this issue exists or accepted the suggestion, waiting for work on it Type: Feature Add new features
Projects
None yet
Development

No branches or pull requests

1 participant