notes; load user/profile -> open user/profile

This commit is contained in:
Ryan Fleury
2024-01-29 17:31:47 -08:00
parent 9b8c0e32b5
commit 49f7fa9fa3
8 changed files with 25 additions and 19 deletions
+4 -4
View File
@@ -4279,8 +4279,8 @@ df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, D
DF_CoreCmdKind cmds[] =
{
DF_CoreCmdKind_Open,
DF_CoreCmdKind_LoadUser,
DF_CoreCmdKind_LoadProfile,
DF_CoreCmdKind_OpenUser,
DF_CoreCmdKind_OpenProfile,
DF_CoreCmdKind_Exit,
};
U32 codepoints[] =
@@ -4658,7 +4658,7 @@ df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, D
if(user_sig.clicked)
{
DF_CmdParams p = df_cmd_params_from_window(ws);
p.cmd_spec = df_cmd_spec_from_core_cmd_kind(DF_CoreCmdKind_LoadUser);
p.cmd_spec = df_cmd_spec_from_core_cmd_kind(DF_CoreCmdKind_OpenUser);
df_cmd_params_mark_slot(&p, DF_CmdParamSlot_CmdSpec);
df_push_cmd__root(&p, df_cmd_spec_from_core_cmd_kind(DF_CoreCmdKind_RunCommand));
}
@@ -4688,7 +4688,7 @@ df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, D
if(prof_sig.clicked)
{
DF_CmdParams p = df_cmd_params_from_window(ws);
p.cmd_spec = df_cmd_spec_from_core_cmd_kind(DF_CoreCmdKind_LoadProfile);
p.cmd_spec = df_cmd_spec_from_core_cmd_kind(DF_CoreCmdKind_OpenProfile);
df_cmd_params_mark_slot(&p, DF_CmdParamSlot_CmdSpec);
df_push_cmd__root(&p, df_cmd_spec_from_core_cmd_kind(DF_CoreCmdKind_RunCommand));
}
+3 -1
View File
@@ -170,7 +170,9 @@ DF_DefaultBindingTable:
@table(old_name new_name)
DF_BindingVersionRemapTable:
{
{"commands" "run_command"}
{"commands" "run_command"}
{"load_user" "open_user"}
{"load_profile" "open_profile"}
}
////////////////////////////////
+4
View File
@@ -1015,11 +1015,15 @@ DF_StringBindingPair df_g_default_binding_table[] =
String8 df_g_binding_version_remap_old_name_table[] =
{
str8_lit_comp("commands"),
str8_lit_comp("load_user"),
str8_lit_comp("load_profile"),
};
String8 df_g_binding_version_remap_new_name_table[] =
{
str8_lit_comp("run_command"),
str8_lit_comp("open_user"),
str8_lit_comp("open_profile"),
};
DF_ViewSpecInfo df_g_gfx_view_kind_spec_info_table[] =