mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 08:50:10 +00:00
3.0
This commit is contained in:
@@ -166,7 +166,7 @@ namespace XCharts.Editor
|
||||
}
|
||||
public static bool MakeComponentFoldout(ref Rect drawRect, Dictionary<string, float> heights,
|
||||
Dictionary<string, bool> moduleToggle, string key, string content, SerializedProperty prop,
|
||||
params HeaderMenuInfo[] menus)
|
||||
bool propEnable, params HeaderMenuInfo[] menus)
|
||||
{
|
||||
var sourRect = drawRect;
|
||||
float defaultWidth = drawRect.width;
|
||||
@@ -180,7 +180,11 @@ namespace XCharts.Editor
|
||||
{
|
||||
if (prop.propertyType == SerializedPropertyType.Boolean)
|
||||
{
|
||||
MakeBool(drawRect, prop);
|
||||
if (!propEnable)
|
||||
using (new EditorGUI.DisabledScope(true))
|
||||
MakeBool(drawRect, prop);
|
||||
else
|
||||
MakeBool(drawRect, prop);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user