From aee673a041be18354179cc05af6d97f9997024fb Mon Sep 17 00:00:00 2001 From: bottlefish <781230111@qq.com> Date: Wed, 11 Dec 2024 18:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Prototype/佩佩/佩佩视觉模块.unity | 17 ++++++++++++++--- .../FixSystem/HeatMap/HeatMapController.cs | 6 ++---- .../Scripts/FixSystem/HeatMap/HeatTest.shader | 13 ++++++------- .../FixSystem/Scope/OscilloscopeController.cs | 8 ++++++++ 4 files changed, 30 insertions(+), 14 deletions(-) diff --git a/Assets/Prototype/佩佩/佩佩视觉模块.unity b/Assets/Prototype/佩佩/佩佩视觉模块.unity index e1f8b3d43..20b6929d2 100644 --- a/Assets/Prototype/佩佩/佩佩视觉模块.unity +++ b/Assets/Prototype/佩佩/佩佩视觉模块.unity @@ -4687,6 +4687,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!114 &177996565 @@ -10530,9 +10531,9 @@ MonoBehaviour: m_EditorClassIdentifier: heatMaterial: {fileID: 2100000, guid: 72b0010e1307b614ebb427b0d8dc54ee, type: 2} Pos: - - {fileID: 217924070} - - {fileID: 1376336156} - {fileID: 1190564545} + - {fileID: 1376336156} + - {fileID: 217924070} - {fileID: 1543897235} - {fileID: 2077058953} - {fileID: 157256356} @@ -11043,6 +11044,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!21 &461186577 @@ -13504,6 +13506,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!114 &572427498 @@ -23843,6 +23846,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!114 &1079123348 @@ -24061,6 +24065,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!114 &1081427057 @@ -25431,6 +25436,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!1 &1132009642 @@ -28009,7 +28015,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -2.4, y: -3.18} + m_AnchoredPosition: {x: -2.48, y: -3.45} m_SizeDelta: {x: 2.5, y: 2.5} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1257460299 @@ -30931,6 +30937,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!21 &1373427824 @@ -32473,6 +32480,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!1 &1460543628 @@ -34837,6 +34845,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 1 targetData: {fileID: 0} --- !u!21 &1609483042 @@ -37700,6 +37709,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!1 &1700390216 @@ -40333,6 +40343,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: c2a37d0f43cb6f14c8011e55a756c448, type: 3} m_Name: m_EditorClassIdentifier: + plug: {fileID: 0} notAlowedDeep: 0 targetData: {fileID: 0} --- !u!21 &1770343418 diff --git a/Assets/Scripts/FixSystem/HeatMap/HeatMapController.cs b/Assets/Scripts/FixSystem/HeatMap/HeatMapController.cs index 005bafaa2..7c917b6be 100644 --- a/Assets/Scripts/FixSystem/HeatMap/HeatMapController.cs +++ b/Assets/Scripts/FixSystem/HeatMap/HeatMapController.cs @@ -98,7 +98,7 @@ public class HeatMapController : MonoBehaviour { RectTransform transform=Pos[i].GetComponent(); - if(i==2) + if(i==0) { points[i] = new Vector4(Pos[i].position.x, Pos[i].position.y, uftempture, 0); @@ -111,9 +111,7 @@ public class HeatMapController : MonoBehaviour { points[i] = new Vector4(Pos[i].position.x, Pos[i].position.y, modulesTempture, 0); // (x, y, z, temperature) - } - - + } properties[i] = new Vector4(transform.rect.width*1, transform.rect.height*1, 0.0f, 0.0f); // (boxsize x, boxsize y, unused, unused) } diff --git a/Assets/Scripts/FixSystem/HeatMap/HeatTest.shader b/Assets/Scripts/FixSystem/HeatMap/HeatTest.shader index 5f8712147..0d9847446 100644 --- a/Assets/Scripts/FixSystem/HeatMap/HeatTest.shader +++ b/Assets/Scripts/FixSystem/HeatMap/HeatTest.shader @@ -4,9 +4,9 @@ Shader "Unlit/HeatTest" { //_MainTex ("Texture", 2D) = "white" {} _RampTexture ("_RampTexture", 2D) = "white" {} - _UFtexture ("_UFtexture", 2D) = "white" {} - _Eyetexture ("_Eyetexture", 2D) = "white" {} _Memorytexture ("_Memorytexture", 2D) = "white" {} + _Eyetexture ("_Eyetexture", 2D) = "white" {} + _UFtexture ("_UFtexture", 2D) = "white" {} _Emotexture ("_Emotexture", 2D) = "white" {} _Logictexture ("_Logictexture", 2D) = "white" {} _Speaktexture ("_Speaktexture", 2D) = "white" {} @@ -51,10 +51,9 @@ Shader "Unlit/HeatTest" sampler2D _Noise; uniform float4 _Points[7]; // (x, y) = center z = tempture uniform float4 _Properties[7]; // (x,y) = boxsize - - sampler2D _UFtexture; - sampler2D _Eyetexture ; sampler2D _Memorytexture; + sampler2D _Eyetexture ; + sampler2D _UFtexture; sampler2D _Emotexture; sampler2D _Logictexture ; sampler2D _Speaktexture; @@ -115,11 +114,11 @@ float remap(float x, float a, float b, float c, float d) float GetAlphaForTexture(int j, float2 localPos) { if (j == 0) - return tex2D(_UFtexture, localPos).a; + return tex2D(_Memorytexture, localPos).a; else if (j == 1) return tex2D(_Eyetexture, localPos).a; else if (j == 2) - return tex2D(_Memorytexture, localPos).a; + return tex2D(_UFtexture, localPos).a; else if (j == 3) return tex2D(_Emotexture, localPos).a; else if (j == 4) diff --git a/Assets/Scripts/FixSystem/Scope/OscilloscopeController.cs b/Assets/Scripts/FixSystem/Scope/OscilloscopeController.cs index 3a327ff4e..7e8fc1b89 100644 --- a/Assets/Scripts/FixSystem/Scope/OscilloscopeController.cs +++ b/Assets/Scripts/FixSystem/Scope/OscilloscopeController.cs @@ -172,11 +172,19 @@ public class OscilloscopeController : MonoBehaviour else if(heatNum>0) { screenText.text="模块过热,无法深入"; + screenText.color=Color.red; //transitionManager.SetViewAvailability(trimmedString, true); //DeepInButton.interactable=false; //HandleDeepIn(); } + else if(currentSocket.targetData.IsRunning()) + { + screenText.text="记忆正在被外部连续调取,无法进入"; + screenText.color=Color.red; + //waveformVisualizer.gameObject.SetActive(false); + // return; + } else if(currentSocket.targetData.HasExternalError()) { transitionManager.SetViewAvailability(trimmedString, true);