fzhangtj
6 年前
当前提交
ab45a021
共有 13 个文件被更改,包括 1267 次插入 和 71 次删除
-
7Assets/UIWidgets/editor/editor_window.cs
-
70Assets/UIWidgets/editor/window_adapter.cs
-
149Assets/UIWidgets/engine/WidgetCanvas.cs
-
25Assets/UIWidgets/ui/window.cs
-
35Assets/UIWidgets/engine/canvas_window.cs
-
3Assets/UIWidgetsSample.meta
-
13Assets/UIWidgetsSample/SampleCanvas.cs
-
3Assets/UIWidgetsSample/SampleCanvas.cs.meta
-
1001Assets/UIWidgetsSample/UIWidgetSample.unity
-
7Assets/UIWidgetsSample/UIWidgetSample.unity.meta
-
25Assets/UIWidgets/editor/canvas_window.cs
-
0/Assets/UIWidgets/engine/canvas_window.cs.meta
|
|||
using System; |
|||
using UIWidgets.editor; |
|||
using UIWidgets.ui; |
|||
using UnityEngine; |
|||
using Rect = UnityEngine.Rect; |
|||
|
|||
namespace UIWidgets.engine |
|||
{ |
|||
public class CanvasWindowAdapter : WindowAdapter |
|||
{ |
|||
private Rect _position; |
|||
private double __devicePixelRatio; |
|||
public CanvasWindowAdapter(Rect position, double devicePixelRatio, Transform tranform): base(position, devicePixelRatio) |
|||
{ |
|||
this._position = position; |
|||
this.__devicePixelRatio = devicePixelRatio; |
|||
} |
|||
|
|||
public override void scheduleFrame() |
|||
{ |
|||
} |
|||
|
|||
protected override void getWindowMetrics(out double devicePixelRatio, out Rect position) |
|||
{ |
|||
devicePixelRatio = this.__devicePixelRatio; |
|||
position = this._position; |
|||
} |
|||
|
|||
protected override Vector2d convertPointerPosition(Vector2 postion) |
|||
{ |
|||
throw new NotImplementedException("pointer event should not be handled by this class"); |
|||
} |
|||
} |
|||
|
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: ade2732b79fb40cfacd288e4083d3a8e |
|||
timeCreated: 1545377495 |
|
|||
using UIWidgets.engine; |
|||
using UIWidgets.widgets; |
|||
|
|||
namespace UIWidgetsSample |
|||
{ |
|||
public class SampleCanvas:WidgetCanvas |
|||
{ |
|||
protected override Widget getWidget() |
|||
{ |
|||
return new AsScreen(); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 45ef9c98c7594497921b0c714f2b4c33 |
|||
timeCreated: 1545377537 |
1001
Assets/UIWidgetsSample/UIWidgetSample.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
fileFormatVersion: 2 |
|||
guid: 4e3b67b8f19ff4635b924fb6e01a071d |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
namespace UIWidgets.editor |
|||
{ |
|||
public class CanvasWindowAdapter : WindowAdapter |
|||
{ |
|||
private Rect _position; |
|||
private double __devicePixelRatio; |
|||
public CanvasWindowAdapter(Rect position, double devicePixelRatio): base(position, devicePixelRatio) |
|||
{ |
|||
this._position = position; |
|||
this.__devicePixelRatio = devicePixelRatio; |
|||
} |
|||
|
|||
public override void scheduleFrame() |
|||
{ |
|||
} |
|||
|
|||
protected override void getWindowMetrics(out double devicePixelRatio, out Rect position) |
|||
{ |
|||
devicePixelRatio = this.__devicePixelRatio; |
|||
position = this._position; |
|||
} |
|||
} |
|||
|
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue