Skip to content

Commit dda7e4a

Browse files
authored
Merge branch 'main' into feature/update-readme
2 parents 4f20ef5 + c5c4cee commit dda7e4a

File tree

285 files changed

+25965
-7781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

285 files changed

+25965
-7781
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ charset = utf-8
33
indent_size = 4
44
indent_style = tab
55

6+
[*/resource.h]
7+
charset = utf-8-bom
8+
69
[*.rc]
710
charset = utf-16le
811

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/curve_editor/ui" # Location of package manifests
10+
target-branch: "develop"
11+
schedule:
12+
interval: "weekly"

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,7 @@ MigrationBackup/
360360
.ionide/
361361

362362
# Fody - auto-generated XML schema
363-
FodyWeavers.xsd
363+
FodyWeavers.xsd
364+
365+
# Webpack build files
366+
curve_editor/ui/dist/

.gitmodules

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
path = curve_editor/external/json
33
url = https://github.com/nlohmann/json
44
branch = master
5-
[submodule "curve_editor/external/PerlinNoise"]
6-
path = curve_editor/external/PerlinNoise
7-
url = https://github.com/Reputeless/PerlinNoise
85
[submodule "curve_editor/external/strconv"]
96
path = curve_editor/external/strconv
107
url = https://github.com/javacommons/strconv
@@ -15,3 +12,15 @@
1512
path = curve_editor/external/aviutl-mkaul
1613
url = https://github.com/mimaraka/aviutl-mkaul
1714
branch = develop
15+
[submodule "curve_editor/external/cereal"]
16+
path = curve_editor/external/cereal
17+
url = https://github.com/USCiLab/cereal.git
18+
[submodule "curve_editor/external/FastNoiseLite"]
19+
path = curve_editor/external/FastNoiseLite
20+
url = https://github.com/Auburn/FastNoiseLite.git
21+
[submodule "curve_editor/external/sol2"]
22+
path = curve_editor/external/sol2
23+
url = https://github.com/ThePhD/sol2.git
24+
[submodule "curve_editor/external/magic_enum"]
25+
path = curve_editor/external/magic_enum
26+
url = https://github.com/Neargye/magic_enum

THIRD_PARTY_LICENSES.md

Lines changed: 767 additions & 0 deletions
Large diffs are not rendered by default.

@Curve Editor.tra renamed to curve_editor/@Curve Editor.tra

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local idx,t=math.modf(gp"index")
66
local st=gp(idx)
77
local ed=gp(idx+1)
88
local par=gp"param"
9-
return ce.getcurve(0,par,t,st,ed) or ce.getcurve(1,par,t,st,ed) or ce.getcurve(2,par,t,st,ed) or gp"default"
9+
return ce.getcurve(0,par,t,st,ed) or ce.getcurve(1,par,t,st,ed) or ce.getcurve(2,-par,t,st,ed) or ce.getcurve(5,par-524288,t,st,ed) or gp"default"
1010

1111

1212
@Type1(中間点無視)
@@ -15,7 +15,7 @@ return ce.getcurve(0,par,t,st,ed) or ce.getcurve(1,par,t,st,ed) or ce.getcurve(2
1515
local ce=require"curve_editor"
1616
local gp=obj.getpoint
1717
local par=gp"param"
18-
return ce.getcurve(0,par,gp"totalindex",gp(0),gp(1)) or ce.getcurve(1,par,gp"totalindex",gp(0),gp(1)) or ce.getcurve(2,par,gp"totalindex",gp(0),gp(1)) or gp"default"
18+
return ce.getcurve(0,par,gp"totalindex",gp(0),gp(1)) or ce.getcurve(1,par,gp"totalindex",gp(0),gp(1)) or ce.getcurve(2,-par,gp"totalindex",gp(0),gp(1)) or ce.getcurve(5,par-524288,gp"totalindex",gp(0),gp(1)) or gp"default"
1919

2020

2121
@Type1(補間)
@@ -24,7 +24,7 @@ local ce=require"curve_editor"
2424
local gp=obj.getpoint
2525
local par=gp"param"
2626
local prog=gp"totalindex"
27-
prog=ce.getcurve(0,par,prog,0,1) or ce.getcurve(1,par,prog,0,1) or ce.getcurve(2,par,prog,0,1) or prog
27+
prog=ce.getcurve(0,par,prog,0,1) or ce.getcurve(1,par,prog,0,1) or ce.getcurve(2,-par,prog,0,1) or ce.getcurve(5,par-524288,t,st,ed) or prog
2828
local num=gp"num"
2929

3030
local function interpolate(idx,t)

curve_editor/actctx_manager.cpp renamed to curve_editor/actctx_helper.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
#include "actctx_manager.hpp"
2-
#include <WinBase.h>
1+
#include "actctx_helper.hpp"
32
#include "resource.h"
3+
#include "util.hpp"
4+
#include <WinBase.h>
45

56

67

7-
namespace cved {
8-
bool ActCtxManager::init(HINSTANCE hinst) noexcept {
8+
namespace curve_editor {
9+
bool ActCtxHelper::init() noexcept {
910
ACTCTXA actctx{
1011
.cbSize = sizeof(ACTCTXA),
1112
.dwFlags = ACTCTX_FLAG_RESOURCE_NAME_VALID | ACTCTX_FLAG_HMODULE_VALID,
1213
.lpResourceName = MAKEINTRESOURCEA(ID_MANIFEST_VISUALSTYLE),
13-
.hModule = hinst
14+
.hModule = util::get_hinst()
1415
};
1516
HANDLE tmp = NULL;
1617
::GetCurrentActCtx(&tmp);
@@ -28,7 +29,7 @@ namespace cved {
2829
}
2930

3031

31-
bool ActCtxManager::exit() {
32+
bool ActCtxHelper::exit() {
3233
HANDLE tmp;
3334
bool ret = false;
3435
::GetCurrentActCtx(&tmp);
@@ -38,4 +39,4 @@ namespace cved {
3839
if (hactctx_) ::ReleaseActCtx(hactctx_);
3940
return ret;
4041
}
41-
}
42+
} // namespace curve_editor

curve_editor/actctx_manager.hpp renamed to curve_editor/actctx_helper.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55

66

7-
namespace cved {
8-
class ActCtxManager {
7+
namespace curve_editor {
8+
class ActCtxHelper {
99
ULONG_PTR cookie_ = 0ul;
1010
HANDLE hactctx_ = NULL;
1111

1212
public:
13-
bool init(HINSTANCE hinst) noexcept;
13+
bool init() noexcept;
1414
bool exit();
1515
};
16-
}
16+
} // namespace curve_editor

curve_editor/cereal_mkaul_point.hpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#pragma once
2+
3+
#include <mkaul/point.hpp>
4+
5+
6+
7+
namespace cereal {
8+
template <class Archive>
9+
void save(Archive& archive, const mkaul::Point<double>& pt) {
10+
archive(pt.x, pt.y);
11+
}
12+
13+
template <class Archive>
14+
void load(Archive& archive, mkaul::Point<double>& pt) {
15+
archive(pt.x, pt.y);
16+
}
17+
} // namespace cereal

0 commit comments

Comments
 (0)