浏览代码

Merge pull request #18 from Unity-Technologies/zxw/skiaBase

fix some other compile errors
/siyaoH-1.17-PlatformMessage
GitHub 4 年前
当前提交
c18133ec
共有 9 个文件被更改,包括 28 次插入13 次删除
  1. 1
      com.unity.uiwidgets/Editor/UIWidgetsPanelEditor.cs
  2. 4
      com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs
  3. 4
      com.unity.uiwidgets/Runtime/engine/raycastable/UIWidgetsRaycastablePanel.cs
  4. 4
      com.unity.uiwidgets/Runtime/material/colors.cs
  5. 2
      com.unity.uiwidgets/Runtime/rendering/editable.cs
  6. 6
      com.unity.uiwidgets/Runtime/service/clipboard.cs
  7. 9
      com.unity.uiwidgets/Runtime/service/keyboard.cs
  8. 1
      com.unity.uiwidgets/Runtime/service/text_formatter.cs
  9. 10
      com.unity.uiwidgets/Runtime/ui2/window.cs

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


using Unity.UIWidgets.engine;
using Unity.UIWidgets.engine2;
using UnityEditor;
using UnityEditor.UI;

4
com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs


using System.Collections.Generic;
/*using System.Collections.Generic;
using Unity.UIWidgets.async;
using Unity.UIWidgets.editor;
using Unity.UIWidgets.external.simplejson;

get { return _windowAdapter; }
}
}
}
}*/

4
com.unity.uiwidgets/Runtime/engine/raycastable/UIWidgetsRaycastablePanel.cs


using Unity.UIWidgets.engine;
/*using Unity.UIWidgets.engine;
using UnityEngine;
namespace Unity.UIWidgets.engine.raycast {

return !RaycastManager.CheckCastThrough(windowHashCode, local);
}
}
}
}*/

4
com.unity.uiwidgets/Runtime/material/colors.cs


namespace Unity.UIWidgets.material {
public class MaterialColor : ColorSwatch<int> {
public MaterialColor(
long primary,
uint primary,
Dictionary<int, Color> swatch) : base(primary: primary, swatch: swatch) {
}

public class MaterialAccentColor : ColorSwatch<int> {
public MaterialAccentColor(
long primary,
uint primary,
Dictionary<int, Color> swatch) : base(primary: primary, swatch: swatch) {
}

2
com.unity.uiwidgets/Runtime/rendering/editable.cs


break;
case KeyCommand.Paste:
TextEditingValue value = textSelectionDelegate.textEditingValue;
Clipboard.getData(Clipboard.kTextPlain).Then(data => {
Clipboard.getData(Clipboard.kTextPlain).then_(data => {
if (data != null) {
textSelectionDelegate.textEditingValue = new TextEditingValue(
text: value.selection.textBefore(value.text)

6
com.unity.uiwidgets/Runtime/service/clipboard.cs


using System.Runtime.InteropServices;
using RSG;
using Unity.UIWidgets.async2;
using UnityEngine;
namespace Unity.UIWidgets.service {

GUIUtility.systemCopyBuffer = data.text;
#endif
return Promise.Resolved();
return Future.value();
return Promise<ClipboardData>.Resolved(data);
return Future.value(FutureOr.value(data)).to<ClipboardData>();
}
#if UNITY_WEBGL

9
com.unity.uiwidgets/Runtime/service/keyboard.cs


using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;

}
public void setIMEPos(Offset imeGlobalPos) {
var uiWidgetWindowAdapter = Window.instance as UIWidgetWindowAdapter;
var uiWidgetWindowAdapter = Window.instance;
Offset screenPos = uiWidgetWindowAdapter != null
? uiWidgetWindowAdapter.windowPosToScreenPos(imeGlobalPos)
: _editorWindowPosToScreenPos(imeGlobalPos);

}
void _handleMethodCall(string method, List<JSONNode> args) {
if (TextInput._currentConnection == null) {
D.assert(false, () => "keyboard.handleMethodCall is not implemented yet!");
/*if (TextInput._currentConnection == null) {
return;
}
int client = args[0].AsInt;

default:
throw new UIWidgetsError($"unknown method ${method}");
}
}
}*/
}
}

1
com.unity.uiwidgets/Runtime/service/text_formatter.cs


using System;
using System.Text.RegularExpressions;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.ui;
using UnityEngine;
namespace Unity.UIWidgets.service {

10
com.unity.uiwidgets/Runtime/ui2/window.cs


}
}
public Offset windowPosToScreenPos(Offset offset) {
D.assert(false, () => "window.windowPosToScreenPos is not implemented yet!");
return offset;
}
public void run(Action callback) {
//Fixme: do nothing now
D.assert(false, () => "window.run is not implemented yet!");
}
public PointerDataPacketCallback onPointerDataPacket {
get { return _onPointerDataPacket; }
set {

正在加载...
取消
保存