浏览代码

fix media query issue

/main
fzhangtj 6 年前
当前提交
d066a685
共有 4 个文件被更改,包括 11 次插入6 次删除
  1. 4
      Runtime/editor/editor_utils.cs
  2. 5
      Runtime/engine/DisplayMetrics.cs
  3. 3
      Runtime/engine/UIWidgetsPanel.cs
  4. 5
      Samples/UIWidgetSample/TextInputSample.cs

4
Runtime/editor/editor_utils.cs


this._lastDevicePixelRatio = GameViewUtil.getGameViewDevicePixelRatio();
}
public void OnEnable() {
this._lastDevicePixelRatio = GameViewUtil.getGameViewDevicePixelRatio();
}
public float DevicePixelRatio {
get { return this._lastDevicePixelRatio; }
}

5
Runtime/engine/DisplayMetrics.cs


}
public interface DisplayMetrics {
void OnEnable();
void Update();
float DevicePixelRatio { get; }

float _devicePixelRatio = 0;
public void OnEnable() {
}
public void OnGUI() {

3
Runtime/engine/UIWidgetsPanel.cs


Input.simulateMouseWithTouches = false;
this._displayMetrics = DisplayMetricsProvider.provider();
this._displayMetrics.OnEnable();
if (_repaintEvent == null) {
_repaintEvent = new Event {type = EventType.Repaint};
}

5
Samples/UIWidgetSample/TextInputSample.cs


return new _EditableInputTypeWidgetState();
}
}
bool unityKeyboard = false;
//width:300,
// widget,
}
));
}

正在加载...
取消
保存