@@ -628,7 +628,7 @@ struct DropdownList : SettingDlg {
628
628
629
629
630
630
// //////////////////////////////
631
- // アニメーション効果の名前表示 .
631
+ // フィルタ効果のスクリプト名表示 .
632
632
// //////////////////////////////
633
633
struct FilterName : SettingDlg {
634
634
private:
@@ -1000,12 +1000,6 @@ struct Easings : SettingDlg {
1000
1000
flag_loaded = 1 << 7 ;
1001
1001
};
1002
1002
1003
- // to store buffer for the tooltip text.
1004
- #ifndef _DEBUG
1005
- constinit // somehow it causes an error for debug build.
1006
- #endif
1007
- static inline std::string curr_tooltip_text{};
1008
-
1009
1003
// formatting the tooltip text according to the track mode.
1010
1004
static std::string format_tooltip (ExEdit::Object::TrackMode const & mode, int32_t param)
1011
1005
{
@@ -1078,6 +1072,11 @@ struct Easings : SettingDlg {
1078
1072
auto const & mode = obj.track_mode [idx];
1079
1073
if (mode.num == 0 ) break ; // 移動無し
1080
1074
1075
+ #ifndef _DEBUG
1076
+ constinit // somehow it causes an error for debug build.
1077
+ #endif
1078
+ static std::string curr_tooltip_text{};
1079
+
1081
1080
// store the string and return it.
1082
1081
curr_tooltip_text = format_tooltip (mode, obj.track_param [idx]);
1083
1082
reinterpret_cast <NMTTDISPINFOA*>(lparam)->lpszText = curr_tooltip_text.data ();
@@ -1289,19 +1288,19 @@ inline constinit struct Settings {
1289
1288
1290
1289
void load (const char * ini_file)
1291
1290
{
1292
- auto read_raw = [&](auto def, const char * section, const char * key) {
1291
+ auto read_raw = [&](auto def, char const * section, char const * key) {
1293
1292
return static_cast <decltype (def)>(
1294
1293
::GetPrivateProfileIntA (section, key, static_cast <int32_t >(def), ini_file));
1295
1294
};
1296
- auto read_modkey = [&](modkeys def, const char * section, const char * key) {
1295
+ auto read_modkey = [&](modkeys def, char const * section, char const * key) {
1297
1296
char str[std::bit_ceil (std::size (" ctrl + shift + alt ****" ))];
1298
1297
::GetPrivateProfileStringA (section, key, def.canon_name(), str, std::size(str), ini_file);
1299
1298
return modkeys{ str, def };
1300
1299
};
1301
- auto read_string = [&]<size_t max_len>(const char * def, const char * section, const char * key, const char * nil) {
1300
+ auto read_string = [&]<size_t max_len>(char8_t const * def, char const * section, char const * key, char8_t const * nil) {
1302
1301
char str[max_len + 1 ];
1303
- ::GetPrivateProfileStringA (section, key, def, str, std::size(str), ini_file);
1304
- if (std::strcmp (str, nil) == 0 )
1302
+ ::GetPrivateProfileStringA (section, key, reinterpret_cast < char const *>( def) , str, std::size(str), ini_file);
1303
+ if (std::strcmp (str, reinterpret_cast < char const *>( nil) ) == 0 )
1305
1304
return std::unique_ptr<std::wstring>{ nullptr };
1306
1305
return std::make_unique<std::wstring>(Encodes::to_wstring (str));
1307
1306
};
@@ -1325,8 +1324,8 @@ inline constinit struct Settings {
1325
1324
[&](auto x) { return std::clamp (x, textTweaks.min_tabstops , textTweaks.max_tabstops ); }, /* id */ );
1326
1325
load_gen (textTweaks., tabstops_script, " TextBox.Tweaks" ,
1327
1326
[&](auto x) { return std::clamp (x, textTweaks.min_tabstops , textTweaks.max_tabstops ); }, /* id */ );
1328
- load_str (textTweaks., replace_tab_text, " TextBox.Tweaks" , " \t " , textTweaks.max_replace_tab_length );
1329
- load_str (textTweaks., replace_tab_script, " TextBox.Tweaks" , " \t " , textTweaks.max_replace_tab_length );
1327
+ load_str (textTweaks., replace_tab_text, " TextBox.Tweaks" , u8 "\t " , textTweaks.max_replace_tab_length );
1328
+ load_str (textTweaks., replace_tab_script, " TextBox.Tweaks" , u8 "\t " , textTweaks.max_replace_tab_length );
1330
1329
1331
1330
load_bool (trackKbd., updown, " Track.Keyboard" );
1332
1331
load_bool (trackKbd., updown_clamp, " Track.Keyboard" );
@@ -1357,12 +1356,12 @@ inline constinit struct Settings {
1357
1356
1358
1357
load_bool (dropdownKbd., search, " Dropdown.Keyboard" );
1359
1358
1360
- load_str0 (filterName., anim_eff_fmt, " FilterName" , " {}(アニメーション効果)" , filterName.max_fmt_length , " " );
1361
- load_str0 (filterName., cust_std_fmt, " FilterName" , " {}(カスタムオブジェクト)[標準描画]" , filterName.max_fmt_length , " " );
1362
- load_str0 (filterName., cust_ext_fmt, " FilterName" , " {}(カスタムオブジェクト)[拡張描画]" , filterName.max_fmt_length , " " );
1363
- load_str0 (filterName., cust_particle_fmt, " FilterName" , " {}(カスタムオブジェクト)[パーティクル出力]" , filterName.max_fmt_length , " " );
1364
- load_str0 (filterName., cam_eff_fmt, " FilterName" , " {}(カメラ効果)" , filterName.max_fmt_length , " " );
1365
- load_str0 (filterName., scn_change_fmt, " FilterName" , " {}(シーンチェンジ)" , filterName.max_fmt_length , " " );
1359
+ load_str0 (filterName., anim_eff_fmt, " FilterName" , u8 " {}(アニメーション効果)" , filterName.max_fmt_length , u8 "" );
1360
+ load_str0 (filterName., cust_std_fmt, " FilterName" , u8 " {}(カスタムオブジェクト)[標準描画]" , filterName.max_fmt_length , u8 "" );
1361
+ load_str0 (filterName., cust_ext_fmt, " FilterName" , u8 " {}(カスタムオブジェクト)[拡張描画]" , filterName.max_fmt_length , u8 "" );
1362
+ load_str0 (filterName., cust_particle_fmt, " FilterName" , u8 " {}(カスタムオブジェクト)[パーティクル出力]" , filterName.max_fmt_length , u8 "" );
1363
+ load_str0 (filterName., cam_eff_fmt, " FilterName" , u8 " {}(カメラ効果)" , filterName.max_fmt_length , u8 "" );
1364
+ load_str0 (filterName., scn_change_fmt, " FilterName" , u8 " {}(シーンチェンジ)" , filterName.max_fmt_length , u8 "" );
1366
1365
1367
1366
load_bool (easings., linked_track_invert_shift, " Easings" );
1368
1367
load_bool (easings., wheel_click, " Easings" );
@@ -2152,7 +2151,7 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID lpvReserved)
2152
2151
// 看板.
2153
2152
// //////////////////////////////
2154
2153
#define PLUGIN_NAME " Reactive Dialog"
2155
- #define PLUGIN_VERSION " v1.62 "
2154
+ #define PLUGIN_VERSION " v1.63-beta1 "
2156
2155
#define PLUGIN_AUTHOR " sigma-axis"
2157
2156
#define PLUGIN_INFO_FMT (name, ver, author ) (name##" " ##ver##" by " ##author)
2158
2157
#define PLUGIN_INFO PLUGIN_INFO_FMT (PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
0 commit comments