浏览代码

fix final several errors

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
358019a1
共有 4 个文件被更改,包括 20 次插入15 次删除
  1. 2
      com.unity.uiwidgets/Editor/UIWidgetsPanelEditor.cs
  2. 5
      com.unity.uiwidgets/Runtime/widgets/app.cs
  3. 26
      com.unity.uiwidgets/Runtime/widgets/image.cs
  4. 2
      com.unity.uiwidgets/Runtime/widgets/text_selection.cs

2
com.unity.uiwidgets/Editor/UIWidgetsPanelEditor.cs


var antiAliasingProperty = serializedObject.FindProperty("hardwareAntiAliasing");
EditorGUILayout.PropertyField(pixelRatioProperty);
EditorGUILayout.PropertyField(antiAliasingProperty);
serializedObject.ApplyModifiedProperties();
serializedObject.ApplyModifiedProperties();
}
}
}

5
com.unity.uiwidgets/Runtime/widgets/app.cs


}
public static Window of(GameObject gameObject) {
D.assert(false, () => "window.Of is not implemented yet!");
return null;
/*
*/
}
public override bool updateShouldNotify(InheritedWidget oldWidget) {

26
com.unity.uiwidgets/Runtime/widgets/image.cs


ImageRepeat repeat = ImageRepeat.noRepeat,
Rect centerSlice = null,
bool gaplessPlayback = false,
FilterMode filterMode = FilterMode.Bilinear
FilterQuality filterQuality = FilterQuality.low
) : base(key) {
D.assert(image != null);
this.image = image;

this.repeat = repeat;
this.centerSlice = centerSlice;
this.gaplessPlayback = gaplessPlayback;
this.filterMode = filterMode;
this.filterQuality = filterQuality;
}
public static Image network(

ImageRepeat repeat = ImageRepeat.noRepeat,
Rect centerSlice = null,
bool gaplessPlayback = false,
FilterMode filterMode = FilterMode.Bilinear,
FilterQuality filterQuality = FilterQuality.low,
IDictionary<string, string> headers = null
) {
var networkImage = new NetworkImage(src, scale, headers);

repeat,
centerSlice,
gaplessPlayback,
filterMode
filterQuality
);
}

ImageRepeat repeat = ImageRepeat.noRepeat,
Rect centerSlice = null,
bool gaplessPlayback = false,
FilterMode filterMode = FilterMode.Bilinear
FilterQuality filterQuality = FilterQuality.low
) {
var fileImage = new FileImage(file, scale);
return new Image(

repeat,
centerSlice,
gaplessPlayback,
filterMode
filterQuality
);
}

ImageRepeat repeat = ImageRepeat.noRepeat,
Rect centerSlice = null,
bool gaplessPlayback = false,
FilterMode filterMode = FilterMode.Bilinear
FilterQuality filterQuality = FilterQuality.low
) {
var image = scale != null
? (AssetBundleImageProvider) new ExactAssetImage(name, bundle: bundle, scale: scale.Value)

repeat,
centerSlice,
gaplessPlayback,
filterMode
filterQuality
);
}

ImageRepeat repeat = ImageRepeat.noRepeat,
Rect centerSlice = null,
bool gaplessPlayback = false,
FilterMode filterMode = FilterMode.Bilinear
FilterQuality filterQuality = FilterQuality.low
) {
var memoryImage = new MemoryImage(bytes, scale);
return new Image(

repeat,
centerSlice,
gaplessPlayback,
filterMode
filterQuality
);
}

public readonly Color color;
public readonly FilterMode filterMode;
public readonly FilterQuality filterQuality;
public readonly BlendMode colorBlendMode;
public readonly BoxFit? fit;
public readonly Alignment alignment;

properties.add(new EnumProperty<ImageRepeat>("repeat", repeat, defaultValue: ImageRepeat.noRepeat));
properties.add(new DiagnosticsProperty<Rect>("centerSlice", centerSlice,
defaultValue: foundation_.kNullDefaultValue));
properties.add(new EnumProperty<FilterMode>("filterMode", filterMode, foundation_.kNullDefaultValue));
properties.add(new EnumProperty<FilterQuality>("filterQuality", filterQuality, foundation_.kNullDefaultValue));
}
}

repeat: widget.repeat,
centerSlice: widget.centerSlice,
invertColors: _invertColors,
filterMode: widget.filterMode
filterQuality: widget.filterQuality
);
return image;

2
com.unity.uiwidgets/Runtime/widgets/text_selection.cs


public void handlePaste(TextSelectionDelegate selectionDelegate) {
TextEditingValue value = selectionDelegate.textEditingValue; // Snapshot the input before using `await`.
Clipboard.getData(Clipboard.kTextPlain).Then((data) => {
Clipboard.getData(Clipboard.kTextPlain).then_((data) => {
if (data != null) {
selectionDelegate.textEditingValue = new TextEditingValue(
text: value.selection.textBefore(value.text)

正在加载...
取消
保存