Merge remote-tracking branch 'origin/master' into AnHui_BaoShi
This commit is contained in:
commit
de5bfbff80
@ -5,11 +5,14 @@ PluginImporter:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
iconMap: {}
|
iconMap: {}
|
||||||
executionOrder: {}
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
isPreloaded: 0
|
isPreloaded: 0
|
||||||
isOverridable: 0
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
platformData:
|
platformData:
|
||||||
- first:
|
- first:
|
||||||
'': Any
|
: Any
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 0
|
||||||
settings:
|
settings:
|
||||||
@ -19,17 +22,17 @@ PluginImporter:
|
|||||||
Exclude Linux64: 0
|
Exclude Linux64: 0
|
||||||
Exclude LinuxUniversal: 0
|
Exclude LinuxUniversal: 0
|
||||||
Exclude OSXUniversal: 0
|
Exclude OSXUniversal: 0
|
||||||
Exclude WebGL: 0
|
Exclude WebGL: 1
|
||||||
Exclude Win: 0
|
Exclude Win: 0
|
||||||
Exclude Win64: 1
|
Exclude Win64: 1
|
||||||
- first:
|
- first:
|
||||||
'': OSXIntel
|
: OSXIntel
|
||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: AnyCPU
|
CPU: AnyCPU
|
||||||
- first:
|
- first:
|
||||||
'': OSXIntel64
|
: OSXIntel64
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 0
|
||||||
settings:
|
settings:
|
||||||
@ -50,7 +53,7 @@ PluginImporter:
|
|||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: x86
|
CPU: AnyCPU
|
||||||
DefaultValueInitialized: true
|
DefaultValueInitialized: true
|
||||||
OS: AnyOS
|
OS: AnyOS
|
||||||
- first:
|
- first:
|
||||||
@ -104,7 +107,7 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
WebGL: WebGL
|
WebGL: WebGL
|
||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 0
|
||||||
settings: {}
|
settings: {}
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
@ -5,11 +5,14 @@ PluginImporter:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
iconMap: {}
|
iconMap: {}
|
||||||
executionOrder: {}
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
isPreloaded: 0
|
isPreloaded: 0
|
||||||
isOverridable: 0
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
platformData:
|
platformData:
|
||||||
- first:
|
- first:
|
||||||
'': Any
|
: Any
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 0
|
||||||
settings:
|
settings:
|
||||||
@ -19,17 +22,17 @@ PluginImporter:
|
|||||||
Exclude Linux64: 0
|
Exclude Linux64: 0
|
||||||
Exclude LinuxUniversal: 0
|
Exclude LinuxUniversal: 0
|
||||||
Exclude OSXUniversal: 0
|
Exclude OSXUniversal: 0
|
||||||
Exclude WebGL: 0
|
Exclude WebGL: 1
|
||||||
Exclude Win: 1
|
Exclude Win: 1
|
||||||
Exclude Win64: 0
|
Exclude Win64: 0
|
||||||
- first:
|
- first:
|
||||||
'': OSXIntel
|
: OSXIntel
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 0
|
||||||
settings:
|
settings:
|
||||||
CPU: None
|
CPU: None
|
||||||
- first:
|
- first:
|
||||||
'': OSXIntel64
|
: OSXIntel64
|
||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
@ -76,7 +79,7 @@ PluginImporter:
|
|||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: x86_64
|
CPU: AnyCPU
|
||||||
- first:
|
- first:
|
||||||
Standalone: LinuxUniversal
|
Standalone: LinuxUniversal
|
||||||
second:
|
second:
|
||||||
@ -104,7 +107,7 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
WebGL: WebGL
|
WebGL: WebGL
|
||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 0
|
||||||
settings: {}
|
settings: {}
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName:
|
||||||
|
|||||||
@ -1,23 +1,35 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 1ccab43e933dced44b5709cd5dbcf8cc
|
guid: 1ccab43e933dced44b5709cd5dbcf8cc
|
||||||
timeCreated: 1570482071
|
|
||||||
licenseType: Pro
|
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
iconMap: {}
|
iconMap: {}
|
||||||
executionOrder: {}
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
isPreloaded: 0
|
isPreloaded: 0
|
||||||
isOverridable: 0
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
platformData:
|
platformData:
|
||||||
- first:
|
- first:
|
||||||
'': OSXIntel
|
: Any
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
Exclude Editor: 0
|
||||||
|
Exclude Linux64: 0
|
||||||
|
Exclude OSXUniversal: 0
|
||||||
|
Exclude WebGL: 1
|
||||||
|
Exclude Win: 0
|
||||||
|
Exclude Win64: 0
|
||||||
|
- first:
|
||||||
|
: OSXIntel
|
||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: AnyCPU
|
CPU: AnyCPU
|
||||||
- first:
|
- first:
|
||||||
'': OSXIntel64
|
: OSXIntel64
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 0
|
||||||
settings:
|
settings:
|
||||||
@ -30,10 +42,11 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
Editor: Editor
|
Editor: Editor
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: x86
|
CPU: AnyCPU
|
||||||
DefaultValueInitialized: true
|
DefaultValueInitialized: true
|
||||||
|
OS: AnyOS
|
||||||
- first:
|
- first:
|
||||||
Facebook: Win
|
Facebook: Win
|
||||||
second:
|
second:
|
||||||
@ -55,7 +68,7 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
Standalone: Linux64
|
Standalone: Linux64
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: None
|
CPU: None
|
||||||
- first:
|
- first:
|
||||||
@ -67,7 +80,7 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
Standalone: OSXUniversal
|
Standalone: OSXUniversal
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: x86
|
CPU: x86
|
||||||
- first:
|
- first:
|
||||||
@ -79,7 +92,7 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
Standalone: Win64
|
Standalone: Win64
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: None
|
CPU: None
|
||||||
userData:
|
userData:
|
||||||
@ -1,23 +1,35 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: e6382e035030f2d4dac919d2484ec059
|
guid: e6382e035030f2d4dac919d2484ec059
|
||||||
timeCreated: 1570482072
|
|
||||||
licenseType: Pro
|
|
||||||
PluginImporter:
|
PluginImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
iconMap: {}
|
iconMap: {}
|
||||||
executionOrder: {}
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
isPreloaded: 0
|
isPreloaded: 0
|
||||||
isOverridable: 0
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
platformData:
|
platformData:
|
||||||
- first:
|
- first:
|
||||||
'': OSXIntel
|
: Any
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
Exclude Editor: 0
|
||||||
|
Exclude Linux64: 0
|
||||||
|
Exclude OSXUniversal: 0
|
||||||
|
Exclude WebGL: 1
|
||||||
|
Exclude Win: 0
|
||||||
|
Exclude Win64: 0
|
||||||
|
- first:
|
||||||
|
: OSXIntel
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 0
|
||||||
settings:
|
settings:
|
||||||
CPU: None
|
CPU: None
|
||||||
- first:
|
- first:
|
||||||
'': OSXIntel64
|
: OSXIntel64
|
||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
@ -30,10 +42,11 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
Editor: Editor
|
Editor: Editor
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: x86_64
|
CPU: x86_64
|
||||||
DefaultValueInitialized: true
|
DefaultValueInitialized: true
|
||||||
|
OS: AnyOS
|
||||||
- first:
|
- first:
|
||||||
Facebook: Win
|
Facebook: Win
|
||||||
second:
|
second:
|
||||||
@ -57,7 +70,7 @@ PluginImporter:
|
|||||||
second:
|
second:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: x86_64
|
CPU: AnyCPU
|
||||||
- first:
|
- first:
|
||||||
Standalone: LinuxUniversal
|
Standalone: LinuxUniversal
|
||||||
second:
|
second:
|
||||||
@ -67,13 +80,13 @@ PluginImporter:
|
|||||||
- first:
|
- first:
|
||||||
Standalone: OSXUniversal
|
Standalone: OSXUniversal
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: x86_64
|
CPU: x86_64
|
||||||
- first:
|
- first:
|
||||||
Standalone: Win
|
Standalone: Win
|
||||||
second:
|
second:
|
||||||
enabled: 0
|
enabled: 1
|
||||||
settings:
|
settings:
|
||||||
CPU: None
|
CPU: None
|
||||||
- first:
|
- first:
|
||||||
|
|||||||
@ -1,11 +1,7 @@
|
|||||||
using GCSeries.Core.Input;
|
using GCSeries.Core.Input;
|
||||||
using HighlightPlus;
|
|
||||||
using QFramework;
|
using QFramework;
|
||||||
using QFramework.Example;
|
using QFramework.Example;
|
||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Unity.Burst.CompilerServices;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
using XMLTool;
|
using XMLTool;
|
||||||
@ -48,14 +44,14 @@ public class DeviceController : MonoSingleton<DeviceController>
|
|||||||
}
|
}
|
||||||
if (uitip != null)
|
if (uitip != null)
|
||||||
{
|
{
|
||||||
uitip.Set(deviceItem.tipItem.label);
|
uitip.Open(new UIDeviceTipData() { txt = deviceItem.tipItem.label });
|
||||||
uitip.Active(true);
|
uitip.Show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
uitip?.Active(false);
|
uitip?.Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -104,12 +100,6 @@ public class DeviceController : MonoSingleton<DeviceController>
|
|||||||
{
|
{
|
||||||
#if !VR
|
#if !VR
|
||||||
var uitip = UIKit.GetPanel<UIDeviceTip>();
|
var uitip = UIKit.GetPanel<UIDeviceTip>();
|
||||||
if (uitip != null)
|
|
||||||
{
|
|
||||||
UIKit.OpenPanelAsync<UIDeviceTip>(UILevel.PopUI).ToAction().Start(this, () =>
|
|
||||||
{
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||||
RaycastHit hit;
|
RaycastHit hit;
|
||||||
if (Physics.Raycast(ray, out hit))
|
if (Physics.Raycast(ray, out hit))
|
||||||
@ -118,12 +108,12 @@ public class DeviceController : MonoSingleton<DeviceController>
|
|||||||
|
|
||||||
if (uitip != null && deviceItem != null && deviceItem.tipItem != null && EventSystem.current.IsPointerOverGameObject() == false)
|
if (uitip != null && deviceItem != null && deviceItem.tipItem != null && EventSystem.current.IsPointerOverGameObject() == false)
|
||||||
{
|
{
|
||||||
uitip.Set(deviceItem.tipItem.label);
|
uitip.Open(new UIDeviceTipData() { txt = deviceItem.tipItem.label });
|
||||||
uitip.Active(true);
|
uitip.Show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uitip?.Active(false);
|
uitip?.Hide();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
public DeviceItem GetDeviceItem(string name)
|
public DeviceItem GetDeviceItem(string name)
|
||||||
|
|||||||
@ -28,7 +28,7 @@ public class TipItem : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (tip != null)
|
if (tip != null)
|
||||||
{
|
{
|
||||||
tip.Active(false);
|
tip.Hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -59,24 +59,24 @@ public class TipItem : MonoBehaviour
|
|||||||
tip = UIKit.GetPanel<UIDeviceTip>();
|
tip = UIKit.GetPanel<UIDeviceTip>();
|
||||||
if (tip == null)
|
if (tip == null)
|
||||||
{
|
{
|
||||||
UIKit.OpenPanelAsync<UIDeviceTip>(UILevel.PopUI).ToAction().Start(this, () =>
|
UIKit.OpenPanelAsync<UIDeviceTip>(UILevel.PopUI).ToAction().StartGlobal(() =>
|
||||||
{
|
{
|
||||||
tip = UIKit.GetPanel<UIDeviceTip>();
|
tip = UIKit.GetPanel<UIDeviceTip>();
|
||||||
tip.Set(label);
|
tip.Open(new UIDeviceTipData() { txt = label });
|
||||||
tip.Active(true);
|
tip.Show();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tip.Set(label);
|
tip.Open(new UIDeviceTipData() { txt = label});
|
||||||
tip.Active(true);
|
tip.Show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void OnExit()
|
public void OnExit()
|
||||||
{
|
{
|
||||||
if (tip != null)
|
if (tip != null)
|
||||||
{
|
{
|
||||||
tip.Active(false);
|
tip.Hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ public class TipItem : MonoBehaviour
|
|||||||
{
|
{
|
||||||
if (tip != null)
|
if (tip != null)
|
||||||
{
|
{
|
||||||
tip.Active(false);
|
tip.Hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,6 +41,8 @@ public class Launch : MonoBehaviour
|
|||||||
});
|
});
|
||||||
|
|
||||||
yield return UIKit.OpenPanelAsync<UILoading>();
|
yield return UIKit.OpenPanelAsync<UILoading>();
|
||||||
|
yield return UIKit.OpenPanelAsync<UIDeviceTip>(canvasLevel: UILevel.PopUI);
|
||||||
|
UIKit.GetPanel<UIDeviceTip>().Hide();
|
||||||
yield return new WaitUntil(() => isLoadFinished == true);
|
yield return new WaitUntil(() => isLoadFinished == true);
|
||||||
if (Global.Instance.appData.preLoad != null && Global.Instance.appData.preLoad.action != null)
|
if (Global.Instance.appData.preLoad != null && Global.Instance.appData.preLoad.action != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -8,6 +8,7 @@ namespace QFramework.Example
|
|||||||
{
|
{
|
||||||
public class UIDeviceTipData : UIPanelData
|
public class UIDeviceTipData : UIPanelData
|
||||||
{
|
{
|
||||||
|
public string txt;
|
||||||
}
|
}
|
||||||
public partial class UIDeviceTip : UIPanel
|
public partial class UIDeviceTip : UIPanel
|
||||||
{
|
{
|
||||||
@ -20,6 +21,11 @@ namespace QFramework.Example
|
|||||||
|
|
||||||
protected override void OnOpen(IUIData uiData = null)
|
protected override void OnOpen(IUIData uiData = null)
|
||||||
{
|
{
|
||||||
|
if (uiData != null)
|
||||||
|
{
|
||||||
|
mData = uiData as UIDeviceTipData ?? new UIDeviceTipData();
|
||||||
|
Label.text = Regex.Replace(mData.txt, @"\\n", "\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !VR
|
#if !VR
|
||||||
@ -33,21 +39,19 @@ namespace QFramework.Example
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public void Set(string txt)
|
//public void Active(bool active)
|
||||||
{
|
//{
|
||||||
Label.text = Regex.Replace(txt, @"\\n", "\n");
|
// Point.gameObject.SetActive(active);
|
||||||
}
|
//}
|
||||||
public void Active(bool active)
|
|
||||||
{
|
|
||||||
Point.gameObject.SetActive(active);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnShow()
|
protected override void OnShow()
|
||||||
{
|
{
|
||||||
|
//Active(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnHide()
|
protected override void OnHide()
|
||||||
{
|
{
|
||||||
|
//Active(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnClose()
|
protected override void OnClose()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user