@@ -186,7 +186,7 @@ local function popupSourceView(sourceContent, frameTitle)
186
186
end
187
187
188
188
local function killAllSourcePopups ()
189
- for k ,v in ipairs (blobsProfiler .sourceFrames ) do
189
+ for k ,v in pairs (blobsProfiler .sourceFrames ) do
190
190
if IsValid (v ) then
191
191
v :Remove ()
192
192
end
@@ -244,8 +244,7 @@ blobsProfiler.Menu.RCFunctions_DEFAULT = {
244
244
print (ref .value )
245
245
print (node .GlobalPath )
246
246
end ,
247
- icon = " icon16/application_osx_terminal.png" ,
248
- requiredAccess = " Read"
247
+ icon = " icon16/application_osx_terminal.png"
249
248
}
250
249
},
251
250
[" number" ] = {
@@ -255,8 +254,7 @@ blobsProfiler.Menu.RCFunctions_DEFAULT = {
255
254
print (ref .value )
256
255
print (node .GlobalPath )
257
256
end ,
258
- icon = " icon16/application_osx_terminal.png" ,
259
- requiredAccess = " Read"
257
+ icon = " icon16/application_osx_terminal.png"
260
258
}
261
259
},
262
260
[" boolean" ] = {
@@ -266,8 +264,7 @@ blobsProfiler.Menu.RCFunctions_DEFAULT = {
266
264
print (ref .value )
267
265
print (node .GlobalPath )
268
266
end ,
269
- icon = " icon16/application_osx_terminal.png" ,
270
- requiredAccess = " Read"
267
+ icon = " icon16/application_osx_terminal.png"
271
268
}
272
269
},
273
270
[" table" ] = {
@@ -276,11 +273,8 @@ blobsProfiler.Menu.RCFunctions_DEFAULT = {
276
273
func = function (ref , node )
277
274
PrintTable (ref .value )
278
275
print (" Global Path:" , node .GlobalPath )
279
- print (" Restrictions:" )
280
- PrintTable (node .Restrictions )
281
276
end ,
282
- icon = " icon16/application_osx_terminal.png" ,
283
- requiredAccess = " Read"
277
+ icon = " icon16/application_osx_terminal.png"
284
278
}
285
279
},
286
280
[" function" ] = {
@@ -427,9 +421,6 @@ local function addDTreeNode(parentNode, nodeData, specialType, isRoot, varType,
427
421
local RCTable = blobsProfiler .GetRCFunctionsTable (varType )
428
422
if RCTable and RCTable [dataType ] then
429
423
for k ,v in ipairs (RCTable [dataType ]) do
430
- if v .requiredAccess and childNode .Restrictions [v .requiredAccess ] then
431
- continue
432
- end
433
424
if v .condition and not v .condition (nodeData , childNode , luaState ) then
434
425
continue
435
426
end
@@ -471,7 +462,6 @@ local function addDTreeNode(parentNode, nodeData, specialType, isRoot, varType,
471
462
end
472
463
473
464
childNode .GlobalPath = childNode .GlobalPath || " "
474
- childNode .Restrictions = childNode .Restrictions || {}
475
465
476
466
if not nodeData .special then
477
467
if isRoot then
@@ -483,21 +473,6 @@ local function addDTreeNode(parentNode, nodeData, specialType, isRoot, varType,
483
473
484
474
varType = varType or " Lua.Globals"
485
475
486
- if parentNode .Restrictions then
487
- childNode .Restrictions = parentNode .Restrictions
488
- end
489
-
490
- if blobsProfiler .Restrictions [varType ] and blobsProfiler .Restrictions [varType ][childNode .GlobalPath ] then
491
- childNode .Restrictions = blobsProfiler .Restrictions [varType ][childNode .GlobalPath ].Restrict
492
- end
493
-
494
- if childNode .Restrictions and (childNode .Restrictions [" Read" ] or childNode .Restrictions [" Write" ] or childNode .Restrictions [" Delete" ]) then
495
- childNode .Label :SetTextColor (Color (200 ,190 ,0 ))
496
-
497
- local toolTipStr = " Read: " .. (childNode .Restrictions [" Read" ] and " NO" or " YES" ) .. " \n Write: " .. (childNode .Restrictions [" Write" ] and " NO" or " YES" ) .. " \n Delete: " .. (childNode .Restrictions [" Delete" ] and " NO" or " YES" )
498
- childNode :SetTooltip (toolTipStr )
499
- end
500
-
501
476
childNode .DoRightClick = function ()
502
477
childNode :InternalDoClick ()
503
478
@@ -507,9 +482,6 @@ local function addDTreeNode(parentNode, nodeData, specialType, isRoot, varType,
507
482
local RCMenu = blobsProfiler .Menu .RCMenu
508
483
509
484
for _ , rcM in ipairs (RCTable [visualDataType ]) do
510
- if rcM .requiredAccess and childNode .Restrictions [rcM .requiredAccess ] then
511
- continue
512
- end
513
485
if rcM .condition and not rcM .condition (nodeData , childNode , luaState ) then
514
486
continue
515
487
end
@@ -529,9 +501,6 @@ local function addDTreeNode(parentNode, nodeData, specialType, isRoot, varType,
529
501
if useIcon then rcParent :SetIcon (useIcon ) end
530
502
531
503
for _ , rcMS in ipairs (rcM .submenu ) do
532
- if rcMS .requiredAccess and childNode .Restrictions [rcMS .requiredAccess ] then
533
- continue
534
- end
535
504
if rcMS .condition and not rcMS .condition (nodeData , childNode , luaState ) then
536
505
continue
537
506
end
@@ -579,9 +548,6 @@ local function addDTreeNode(parentNode, nodeData, specialType, isRoot, varType,
579
548
local RCTable = blobsProfiler .GetRCFunctionsTable (varType )
580
549
if RCTable and RCTable [visualDataType ] then
581
550
for k ,v in ipairs (RCTable [visualDataType ]) do
582
- if v .requiredAccess and childNode .Restrictions [v .requiredAccess ] then
583
- continue
584
- end
585
551
if v .condition and not v .condition (nodeData , childNode , luaState ) then
586
552
continue
587
553
end
@@ -640,9 +606,6 @@ local function addDTreeNode(parentNode, nodeData, specialType, isRoot, varType,
640
606
childNode :SetExpanded (not childNode :GetExpanded ())
641
607
elseif RCTable and RCTable [visualDataType ] then
642
608
for _ , rcM in ipairs (RCTable [visualDataType ]) do
643
- if rcM .requiredAccess and childNode .Restrictions [rcM .requiredAccess ] then
644
- continue
645
- end
646
609
if rcM .condition and not rcM .condition (nodeData , childNode , luaState ) then
647
610
continue
648
611
end
0 commit comments