Skip to content

Commit feac5ac

Browse files
committed
Refined the criteria to re-order the trackbar.
1 parent fc571ab commit feac5ac

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

reactive_dlg.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ inline constinit struct ExEdit092 {
130130
// index: index of the script; zero1, zero2: zero, unknown otherwise.
131131
void(*load_easing_spec)(int32_t index, int32_t zero1, int32_t zero2); // 0x087940
132132

133+
Filter** loaded_filter_table; // 0x187c98
134+
//int32_t* loaded_filter_count; // 0x146248
135+
133136
private:
134137
void init_pointers()
135138
{
@@ -163,6 +166,9 @@ inline constinit struct ExEdit092 {
163166
pick_addr(cmp_shift_state_easing, 0x02ca90);
164167
pick_addr(call_easing_popup_menu, 0x02d4b5);
165168
pick_addr(load_easing_spec, 0x087940);
169+
170+
pick_addr(loaded_filter_table, 0x187c98);
171+
//pick_addr(loaded_filter_count, 0x146248);
166172
}
167173
} exedit;
168174

@@ -470,16 +476,10 @@ struct TrackLabel : SettingDlg {
470476
const auto track_n = obj.track_n;
471477
int track_o = 0;
472478

473-
// needs re-ordering the indices if the final filter is of the certain types.
474-
switch (const auto& filter_last = obj.filter_param[obj.countFilters() - 1]; filter_last.id) {
475-
using enum filter_id::id;
476-
case draw_std:
477-
case draw_ext:
478-
case play_std:
479-
case particle:
479+
// needs re-ordering the indices if the final filter is of the certain type.
480+
if (const auto& filter_last = obj.filter_param[obj.countFilters() - 1];
481+
has_flag_or(exedit.loaded_filter_table[filter_last.id]->flag, Filter::Flag::Output))
480482
track_o = filter_last.track_begin; // alter offset.
481-
break;
482-
}
483483

484484
for (int j = 0; j < track_n; j++) {
485485
// find the index of the track.
@@ -2280,7 +2280,7 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID lpvReserved)
22802280
// 看板.
22812281
////////////////////////////////
22822282
#define PLUGIN_NAME "Reactive Dialog"
2283-
#define PLUGIN_VERSION "v1.70-beta2"
2283+
#define PLUGIN_VERSION "v1.70-beta3"
22842284
#define PLUGIN_AUTHOR "sigma-axis"
22852285
#define PLUGIN_INFO_FMT(name, ver, author) (name##" "##ver##" by "##author)
22862286
#define PLUGIN_INFO PLUGIN_INFO_FMT(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)

0 commit comments

Comments
 (0)