tooll3--t3
34 行
1.3 KiB
C#
34 行
1.3 KiB
C#
using ImGuiNET;
|
|
using T3.Core.Operator;
|
|
using T3.Editor.Gui.UiHelpers;
|
|
|
|
namespace T3.Editor.Gui.OpUis.UIs;
|
|
|
|
public static class SelectBoolFromFloatDictUi
|
|
{
|
|
public static OpUi.CustomUiResult DrawChildUi(Instance instance1, ImDrawListPtr drawList, ImRect area, Vector2 canvasScale)
|
|
{
|
|
// TODO: @pixtur fix this
|
|
// if (instance1 is not SelectBoolFromFloatDict instance)
|
|
// return OpUi.CustomUiResult.PreventOpenSubGraph;
|
|
//
|
|
// var symbolChild = instance.Parent.Symbol.Children[instance.SymbolChildId];
|
|
// drawList.PushClipRect(area.Min, area.Max, true);
|
|
//
|
|
// var value = instance.Result.Value;
|
|
//
|
|
// if (!string.IsNullOrEmpty(symbolChild.Name))
|
|
// {
|
|
// WidgetElements.DrawPrimaryTitle(drawList, area, symbolChild.Name, canvasScale);
|
|
// }
|
|
// else
|
|
// {
|
|
// WidgetElements.DrawPrimaryTitle(drawList, area, instance.Select.TypedInputValue.Value,canvasScale);
|
|
// }
|
|
//
|
|
// WidgetElements.DrawSmallValue(drawList, area, $"{value}",canvasScale);
|
|
//
|
|
// drawList.PopClipRect();
|
|
return OpUi.CustomUiResult.Rendered | OpUi.CustomUiResult.PreventInputLabels | OpUi.CustomUiResult.PreventOpenSubGraph;
|
|
}
|
|
} |