New default marker
Before Width: | Height: | Size: 835 B |
Before Width: | Height: | Size: 931 B |
Before Width: | Height: | Size: 950 B |
Before Width: | Height: | Size: 966 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 902 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 974 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 5.4 KiB |
BIN
assets/textures/markers/triangles/approach.png
Normal file
After Width: | Height: | Size: 7.0 MiB |
BIN
assets/textures/markers/triangles/good.png
Normal file
After Width: | Height: | Size: 10 MiB |
BIN
assets/textures/markers/triangles/great.png
Normal file
After Width: | Height: | Size: 10 MiB |
41
assets/textures/markers/triangles/marker.json
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"name": "triangles",
|
||||||
|
"size": 600,
|
||||||
|
"fps": 60,
|
||||||
|
"approach": {
|
||||||
|
"sprite_sheet": "approach.png",
|
||||||
|
"count": 32,
|
||||||
|
"columns": 4,
|
||||||
|
"rows": 8
|
||||||
|
},
|
||||||
|
"miss": {
|
||||||
|
"sprite_sheet": "miss.png",
|
||||||
|
"count": 16,
|
||||||
|
"columns": 4,
|
||||||
|
"rows": 4
|
||||||
|
},
|
||||||
|
"poor": {
|
||||||
|
"sprite_sheet": "poor.png",
|
||||||
|
"count": 32,
|
||||||
|
"columns": 4,
|
||||||
|
"rows": 8
|
||||||
|
},
|
||||||
|
"good": {
|
||||||
|
"sprite_sheet": "good.png",
|
||||||
|
"count": 32,
|
||||||
|
"columns": 4,
|
||||||
|
"rows": 8
|
||||||
|
},
|
||||||
|
"great": {
|
||||||
|
"sprite_sheet": "great.png",
|
||||||
|
"count": 32,
|
||||||
|
"columns": 4,
|
||||||
|
"rows": 8
|
||||||
|
},
|
||||||
|
"perfect": {
|
||||||
|
"sprite_sheet": "perfect.png",
|
||||||
|
"count": 32,
|
||||||
|
"columns": 4,
|
||||||
|
"rows": 8
|
||||||
|
}
|
||||||
|
}
|
BIN
assets/textures/markers/triangles/miss.png
Normal file
After Width: | Height: | Size: 6.4 MiB |
BIN
assets/textures/markers/triangles/perfect.png
Normal file
After Width: | Height: | Size: 12 MiB |
BIN
assets/textures/markers/triangles/poor.png
Normal file
After Width: | Height: | Size: 12 MiB |
BIN
assets/textures/markers/triangles/preview.png
Normal file
After Width: | Height: | Size: 267 KiB |
@ -6,7 +6,9 @@ one directory = one marker
|
|||||||
|
|
||||||
let's call that directory `folder/`
|
let's call that directory `folder/`
|
||||||
|
|
||||||
`folder/preview.png` will be used as preview if present
|
The first existing + valid image in this list is used as a preview icon :
|
||||||
|
- `folder/preview.png`
|
||||||
|
- `folder/ma15.png`
|
||||||
|
|
||||||
## Old Format
|
## Old Format
|
||||||
|
|
||||||
@ -71,6 +73,7 @@ Markers in the old format run at 30 fps.
|
|||||||
|
|
||||||
| Key | Meaning |
|
| Key | Meaning |
|
||||||
|-|-|
|
|-|-|
|
||||||
|
| `name` | self-explanatory |
|
||||||
| `size` | side length of each frame, in pixels |
|
| `size` | side length of each frame, in pixels |
|
||||||
| `fps` | number of frames per seconds of this marker |
|
| `fps` | number of frames per seconds of this marker |
|
||||||
| `*.count` | how many frames are used in a given sprite sheet |
|
| `*.count` | how many frames are used in a given sprite sheet |
|
||||||
@ -86,8 +89,10 @@ Sprites in a sheet are ordrered left to right, top to bottom :
|
|||||||
7 8 9
|
7 8 9
|
||||||
```
|
```
|
||||||
|
|
||||||
`count` can be <= `columns` * `rows`. It means the last few frames in
|
`count` can be less than `columns` * `rows`. It means the last few frames in
|
||||||
the sheet are unused. For instance in a 3 * 3 sprite sheet with `count` = 7 :
|
the sheet are unused.
|
||||||
|
|
||||||
|
For instance in a 3 * 3 sprite sheet with `count` = 7 :
|
||||||
|
|
||||||
```none
|
```none
|
||||||
1 2 3
|
1 2 3
|
||||||
|
@ -765,6 +765,9 @@ int main() {
|
|||||||
}
|
}
|
||||||
if (ImGui::BeginMenu("Marker")) {
|
if (ImGui::BeginMenu("Marker")) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
const auto& style = ImGui::GetStyle();
|
||||||
|
const auto size_x = 100 + style.FramePadding.x * 2;
|
||||||
|
const auto size_y = 100 + style.FramePadding.y * 2;
|
||||||
std::for_each(
|
std::for_each(
|
||||||
markers.cbegin(),
|
markers.cbegin(),
|
||||||
markers.cend(),
|
markers.cend(),
|
||||||
@ -775,7 +778,7 @@ int main() {
|
|||||||
if (opt_preview) {
|
if (opt_preview) {
|
||||||
clicked = ImGui::ImageButton(*opt_preview, {100, 100});
|
clicked = ImGui::ImageButton(*opt_preview, {100, 100});
|
||||||
} else {
|
} else {
|
||||||
clicked = ImGui::Button(path_to_utf8_encoded_string(path).c_str(), {100, 100});
|
clicked = ImGui::Button(path_to_utf8_encoded_string(path).c_str(), {size_x, size_y});
|
||||||
}
|
}
|
||||||
if (clicked) {
|
if (clicked) {
|
||||||
markers.load_marker(path);
|
markers.load_marker(path);
|
||||||
|