@@ -9149,7 +9149,7 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_
9149
9149
ui_set_next_pref_width(ui_px(params->margin_width_px, 1));
9150
9150
ui_set_next_pref_height(ui_px(params->line_height_px*(dim_1s64(params->line_num_range)+1), 1.f));
9151
9151
ui_set_next_child_layout_axis(Axis2_Y);
9152
- margin_container_box = ui_build_box_from_string (UI_BoxFlag_Clickable , str8_lit ("margin_container" ));
9152
+ margin_container_box = ui_build_box_from_string(UI_BoxFlag_Clickable*!!(params->flags & DF_CodeSliceFlag_Clickable) , str8_lit("margin_container"));
9153
9153
UI_Parent(margin_container_box) UI_PrefHeight(ui_px(params->line_height_px, 1.f))
9154
9154
{
9155
9155
U64 line_idx = 0;
@@ -9162,7 +9162,7 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_
9162
9162
DF_EntityList line_pins = params->line_pins[line_idx];
9163
9163
ui_set_next_hover_cursor(OS_Cursor_HandPoint);
9164
9164
ui_set_next_background_color(v4f32(0, 0, 0, 0));
9165
- UI_Box * line_margin_box = ui_build_box_from_stringf (UI_BoxFlag_Clickable |UI_BoxFlag_DrawBackground |UI_BoxFlag_DrawActiveEffects , "line_margin_%I64x" , line_num );
9165
+ UI_Box *line_margin_box = ui_build_box_from_stringf(UI_BoxFlag_Clickable*!!(params->flags & DF_CodeSliceFlag_Clickable) |UI_BoxFlag_DrawBackground|UI_BoxFlag_DrawActiveEffects, "line_margin_%I64x", line_num);
9166
9166
UI_Parent(line_margin_box)
9167
9167
{
9168
9168
//- rjf: build margin thread ip ui
@@ -9215,7 +9215,7 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_
9215
9215
ui_set_next_text_alignment(UI_TextAlign_Center);
9216
9216
UI_Key thread_box_key = ui_key_from_stringf(top_container_box->key, "###ip_%p", thread);
9217
9217
UI_Box *thread_box = ui_build_box_from_key(UI_BoxFlag_DisableTextTrunc|
9218
- UI_BoxFlag_Clickable |
9218
+ UI_BoxFlag_Clickable*!!(params->flags & DF_CodeSliceFlag_Clickable) |
9219
9219
UI_BoxFlag_AnimatePosX|
9220
9220
UI_BoxFlag_DrawText,
9221
9221
thread_box_key);
@@ -9341,7 +9341,7 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_
9341
9341
UI_BoxFlag_DrawHotEffects|
9342
9342
UI_BoxFlag_DrawBorder|
9343
9343
UI_BoxFlag_AnimatePosX|
9344
- UI_BoxFlag_Clickable |
9344
+ UI_BoxFlag_Clickable*!!(params->flags & DF_CodeSliceFlag_Clickable) |
9345
9345
UI_BoxFlag_DisableTextTrunc,
9346
9346
"%S##bp_%p",
9347
9347
df_g_icon_kind_text_table[DF_IconKind_CircleFilled],
@@ -9408,7 +9408,7 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_
9408
9408
UI_BoxFlag_DrawActiveEffects|
9409
9409
UI_BoxFlag_DrawHotEffects|
9410
9410
UI_BoxFlag_DrawBorder|
9411
- UI_BoxFlag_Clickable |
9411
+ UI_BoxFlag_Clickable*!!(params->flags & DF_CodeSliceFlag_Clickable) |
9412
9412
UI_BoxFlag_AnimatePosX|
9413
9413
UI_BoxFlag_DisableTextTrunc,
9414
9414
"%S##watch_%p",
@@ -9472,7 +9472,7 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_
9472
9472
{
9473
9473
ui_set_next_hover_cursor(ctrlified ? OS_Cursor_HandPoint : OS_Cursor_IBar);
9474
9474
ui_set_next_pref_height(ui_px(params->line_height_px*(dim_1s64(params->line_num_range)+1), 1.f));
9475
- text_container_box = ui_build_box_from_string (UI_BoxFlag_Clickable , str8_lit ("text_container" ));
9475
+ text_container_box = ui_build_box_from_string(UI_BoxFlag_Clickable*!!(params->flags & DF_CodeSliceFlag_Clickable) , str8_lit("text_container"));
9476
9476
}
9477
9477
9478
9478
//////////////////////////////
@@ -9530,7 +9530,7 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_
9530
9530
String8 explanation = df_stop_explanation_string_icon_from_ctrl_event(scratch.arena, &stop_event, &icon);
9531
9531
UI_Parent(line_extras_boxes[line_idx]) UI_PrefWidth(ui_children_sum(1)) UI_PrefHeight(ui_px(params->line_height_px, 1.f))
9532
9532
{
9533
- UI_Box * box = ui_build_box_from_stringf (UI_BoxFlag_DrawBorder | UI_BoxFlag_Clickable , "###exception_info" );
9533
+ UI_Box *box = ui_build_box_from_stringf(UI_BoxFlag_DrawBorder, "###exception_info");
9534
9534
UI_Parent(box)
9535
9535
{
9536
9536
UI_TextColor(df_rgba_from_theme_color(DF_ThemeColor_FailureBackground))
@@ -9580,7 +9580,10 @@ df_code_slice(DF_Window *ws, DF_CtrlCtx *ctrl_ctx, EVAL_ParseCtx *parse_ctx, DF_
9580
9580
ui_spacer(ui_em(1.5f, 1.f));
9581
9581
ui_set_next_pref_width(ui_children_sum(1));
9582
9582
UI_Key pin_box_key = ui_key_from_stringf(ui_key_zero(), "###pin_%p", pin);
9583
- UI_Box * pin_box = ui_build_box_from_key (UI_BoxFlag_AnimatePos |UI_BoxFlag_Clickable |UI_BoxFlag_DrawHotEffects |UI_BoxFlag_DrawBorder , pin_box_key );
9583
+ UI_Box *pin_box = ui_build_box_from_key(UI_BoxFlag_AnimatePos|
9584
+ UI_BoxFlag_Clickable*!!(params->flags & DF_CodeSliceFlag_Clickable)|
9585
+ UI_BoxFlag_DrawHotEffects|
9586
+ UI_BoxFlag_DrawBorder, pin_box_key);
9584
9587
UI_Parent(pin_box) UI_PrefWidth(ui_text_dim(10, 1))
9585
9588
{
9586
9589
Vec4F32 pin_color = df_rgba_from_theme_color(DF_ThemeColor_WeakText);
0 commit comments