File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ public unsafe void OnIMGUI(UIContext context)
9696 ImguiHelpers . BeginRect ( ) ;
9797 if ( HideNumberInput ) {
9898 ImGui . Text ( context . label + ": " ) ;
99+ AppImguiHelpers . ShowJsonCopyPopup < T > ( value , context ) ;
99100 } else if ( ImGui . InputScalar ( context . label , scalarType , & value ) ) {
100101 UndoRedo . RecordSet ( context , value ) ;
101102 }
Original file line number Diff line number Diff line change @@ -312,6 +312,8 @@ public void OnIMGUI(UIContext context)
312312 var tex = context . Get < MaterialHeader > ( ) ;
313313 var ws = context . GetWorkspace ( ) ;
314314 WindowHandlerFactory . SetupObjectUIContext ( context , typeof ( MaterialHeader ) , members : DisplayedFields ) ;
315+ context . GetChildByValue < MaterialFlags1 > ( ) ? . uiHandler = new CsharpFlagsEnumFieldHandler < MaterialFlags1 , int > ( ) { HideNumberInput = true } ;
316+ context . GetChildByValue < MaterialFlags2 > ( ) ? . uiHandler = new CsharpFlagsEnumFieldHandler < MaterialFlags2 , int > ( ) { HideNumberInput = true } ;
315317 context . AddChildContextSetter < MaterialHeader , string > (
316318 "MMTR path" ,
317319 tex ,
You can’t perform that action at this time.
0 commit comments