Fix UI Shader

This commit is contained in:
tym
2025-09-11 15:00:19 +08:00
parent 60f8c15ee3
commit 4ff743ce2b
88 changed files with 6135 additions and 3889 deletions

View File

@@ -74,8 +74,8 @@ namespace MoleMole
public void SetupApkCommentInfo()
{
apkCommentInfo = null;
apkCommentInfo = OpeUtil.GetApkComment();
//apkCommentInfo = null;
//apkCommentInfo = OpeUtil.GetApkComment();
}
}
}

View File

@@ -6,7 +6,7 @@ namespace MoleMole
{
public void Process()
{
fiSettings.GetTypeNameSpaceFormat = "MoleMole.Config.{0},Assembly-CSharp";
//fiSettings.GetTypeNameSpaceFormat = "MoleMole.Config.{0},Assembly-CSharp";
fiSettings.EmitWarnings = true;
fiSettings.EnableAnimation = false;
fiSettings.AutomaticReferenceInstantation = false;

View File

@@ -38,7 +38,7 @@ namespace MoleMole
_applicationBehaviour.Init(this);
_go.AddComponent<MonoTalkingData>();
_go.AddComponent<MonoNotificationServices>();
_go.AddComponent<AntiCheatPlugin>();
//_go.AddComponent<AntiCheatPlugin>();
_coroutines = new List<Coroutine>();
_manualCoroutines = new List<Tuple<int, IEnumerator>>();
}
@@ -225,7 +225,7 @@ namespace MoleMole
public void DetectCheat()
{
if (AntiCheatPlugin.Detect())
/*if (AntiCheatPlugin.Detect())
{
try
{
@@ -237,19 +237,19 @@ namespace MoleMole
SuperDebug.VeryImportantError("Exception: " + ex.ToString());
AntiCheatQuit("Menu_Title_AntiCheatQuit", "Menu_Desc_AntiCheatQuit");
}
}
}*/
}
public void ReportProcList()
{
byte[] buf = AntiCheatPlugin.ReadProcList();
/*byte[] buf = AntiCheatPlugin.ReadProcList();
Singleton<QAManager>.Instance.SendFileToServer(MiscData.Config.DumpFileUploadUrl, "anti-cheat", buf, delegate
{
AntiCheatQuit("Menu_Title_AntiCheatQuit", "Menu_Desc_AntiCheatQuit");
}, delegate
{
AntiCheatQuit("Menu_Title_AntiCheatQuit", "Menu_Desc_AntiCheatQuit");
}, 10f);
}, 10f);*/
}
public void AntiCheatQuit(string title, string text)

View File

@@ -28,7 +28,7 @@ namespace MoleMole
private DetourManager()
{
_detours = new Dictionary<uint, DetourElement>();
_stageAreaWalkMask = 1 << NavMesh.GetAreaFromName("Walkable");
_stageAreaWalkMask = 1 << UnityEngine.AI.NavMesh.GetAreaFromName("Walkable");
}
public void RemoveDetourElement(uint id)
@@ -95,12 +95,12 @@ namespace MoleMole
{
flag = uint.TryParse(locatorName.Substring(locatorName.Length - 1), out result);
}
int areaFromName = NavMesh.GetAreaFromName("Walkable");
int areaFromName = UnityEngine.AI.NavMesh.GetAreaFromName("Walkable");
if (flag)
{
areaFromName = NavMesh.GetAreaFromName("StageMask" + result);
areaFromName = UnityEngine.AI.NavMesh.GetAreaFromName("StageMask" + result);
}
_stageAreaWalkMask = (1 << areaFromName) | (1 << NavMesh.GetAreaFromName("Walkable"));
_stageAreaWalkMask = (1 << areaFromName) | (1 << UnityEngine.AI.NavMesh.GetAreaFromName("Walkable"));
}
public bool GetTargetPosition(BaseMonoEntity entity, Vector3 sourcePosition, Vector3 targetPosition, ref Vector3 targetCorner)
@@ -119,8 +119,8 @@ namespace MoleMole
for (int i = 0; i < num; i++)
{
Vector3 sourcePosition2 = sourcePosition + Random.insideUnitSphere * maxDistance;
NavMeshHit hit;
if (NavMesh.SamplePosition(sourcePosition2, out hit, 1f, _stageAreaWalkMask))
UnityEngine.AI.NavMeshHit hit;
if (UnityEngine.AI.NavMesh.SamplePosition(sourcePosition2, out hit, 1f, _stageAreaWalkMask))
{
targetPosition = hit.position;
return true;
@@ -132,8 +132,8 @@ namespace MoleMole
private bool Raycast(uint id, Vector3 sourcePosition, Vector3 targetPosition)
{
NavMeshHit hit;
bool flag = NavMesh.Raycast(sourcePosition, targetPosition, out hit, _stageAreaWalkMask);
UnityEngine.AI.NavMeshHit hit;
bool flag = UnityEngine.AI.NavMesh.Raycast(sourcePosition, targetPosition, out hit, _stageAreaWalkMask);
if (!flag)
{
Debug.DrawLine(sourcePosition, targetPosition, Color.red, 0.1f);
@@ -163,8 +163,8 @@ namespace MoleMole
private DetourElement GetNewDetourElement(BaseMonoEntity entity, Vector3 sourcePosition, Vector3 targetPosition)
{
NavMeshPath navMeshPath = new NavMeshPath();
bool isCompletePath = NavMesh.CalculatePath(sourcePosition, targetPosition, _stageAreaWalkMask, navMeshPath);
UnityEngine.AI.NavMeshPath navMeshPath = new UnityEngine.AI.NavMeshPath();
bool isCompletePath = UnityEngine.AI.NavMesh.CalculatePath(sourcePosition, targetPosition, _stageAreaWalkMask, navMeshPath);
for (int i = 0; i < navMeshPath.corners.Length - 1; i++)
{
Debug.DrawLine(navMeshPath.corners[i], navMeshPath.corners[i + 1], Color.green, 0.1f);
@@ -194,7 +194,7 @@ namespace MoleMole
return detourElement;
}
private Vector3[] SimplifyPath(Vector3 sourcePosition, NavMeshPath path)
private Vector3[] SimplifyPath(Vector3 sourcePosition, UnityEngine.AI.NavMeshPath path)
{
List<Vector3> list = new List<Vector3>();
Vector3[] corners = path.corners;

View File

@@ -1065,7 +1065,7 @@ namespace MoleMole
}
else if (tutorial.step == 1)
{
Transform highlightTrans = transform.FindChild("HPBar");
Transform highlightTrans = transform.Find("HPBar");
Singleton<MainUIManager>.Instance.ShowDialog(new NewbieDialogContext
{
disableHighlightEffect = true,
@@ -1084,7 +1084,7 @@ namespace MoleMole
}
else if (tutorial.step == 2)
{
Transform highlightTrans2 = transform.FindChild("SPBar");
Transform highlightTrans2 = transform.Find("SPBar");
Singleton<MainUIManager>.Instance.ShowDialog(new NewbieDialogContext
{
disableHighlightEffect = true,
@@ -1281,7 +1281,7 @@ namespace MoleMole
}
else if (tutorial.step == 7)
{
Transform highlightTrans4 = transform.FindChild("HPBar");
Transform highlightTrans4 = transform.Find("HPBar");
Singleton<MainUIManager>.Instance.ShowDialog(new NewbieDialogContext
{
disableHighlightEffect = true,
@@ -1300,7 +1300,7 @@ namespace MoleMole
}
else if (tutorial.step == 8)
{
Transform highlightTrans5 = transform.FindChild("SPBar");
Transform highlightTrans5 = transform.Find("SPBar");
Singleton<MainUIManager>.Instance.ShowDialog(new NewbieDialogContext
{
disableHighlightEffect = true,

View File

@@ -1107,9 +1107,9 @@ namespace MoleMole
public void SetEnvCollisionActive(bool isActive)
{
if (Singleton<StageManager>.Instance.GetStageEnv().transform.FindChild("Collision") != null)
if (Singleton<StageManager>.Instance.GetStageEnv().transform.Find("Collision") != null)
{
Singleton<StageManager>.Instance.GetStageEnv().transform.FindChild("Collision").gameObject.SetActive(isActive);
Singleton<StageManager>.Instance.GetStageEnv().transform.Find("Collision").gameObject.SetActive(isActive);
}
}
@@ -2168,7 +2168,7 @@ namespace MoleMole
if (targetUIPath != string.Empty)
{
BaseMonoCanvas sceneCanvas = Singleton<MainUIManager>.Instance.SceneCanvas;
highlightTrans = sceneCanvas.transform.FindChild(targetUIPath);
highlightTrans = sceneCanvas.transform.Find(targetUIPath);
}
NewbieDialogContext newbieDialogContext = new NewbieDialogContext();
newbieDialogContext.destroyByOthers = true;

View File

@@ -335,7 +335,7 @@ namespace MoleMole
Transform transform = base.view.transform.Find("LosePanel/HintListPanel");
for (int i = 0; i < list.Count; i++)
{
Transform transform2 = transform.FindChild(i + "/Content");
Transform transform2 = transform.Find(i + "/Content");
transform2.GetComponent<Text>().text = LocalizationGeneralLogic.GetText(list[i]);
}
}

View File

@@ -648,7 +648,7 @@ namespace MoleMole.MainMenu
collidedParticle.RealVelocity = _particles[i].velocity;
_collidedParticleMap.Add((int)_particles[i].startSize, collidedParticle);
_particles[i].velocity = Vector3.zero;
_particles[i].lifetime = 1f;
_particles[i].remainingLifetime = 1f;
}
}
if (collidedParticle != null)
@@ -657,7 +657,7 @@ namespace MoleMole.MainMenu
Vector3 point = LocalToCamera(collidedParticle.RealPosition);
if (point.z > -0.1f)
{
_particles[i].lifetime = 0f;
_particles[i].remainingLifetime = 0f;
_collidedParticleMap.Remove((int)_particles[i].startSize);
continue;
}
@@ -671,7 +671,7 @@ namespace MoleMole.MainMenu
color.b = Mathf.Max(1f / num2, 0.003921569f);
color.a = 1f / num2;
_particles[i].startColor = color;
_particles[i].lifetime = 1f;
_particles[i].remainingLifetime = 1f;
}
}
}
@@ -691,7 +691,7 @@ namespace MoleMole.MainMenu
shipColliderRect.size *= _particles[i].position.z / _shipColliderZ;
if (_shipColliderRect.Overlaps(other))
{
_particles[i].lifetime = 0f;
_particles[i].remainingLifetime = 0f;
}
}
}

View File

@@ -626,7 +626,7 @@ namespace MoleMole
Singleton<NetworkManager>.GetInstance().RequestGetSignInRewardStatus();
Singleton<PlayerModule>.GetInstance().playerData.uiTempSaveData.hasShowedStartUpDialogs = true;
}
AntiCheatPlugin.Init(MiscData.Config.AntiCheat.Enable, MiscData.Config.AntiCheat.LibList, MiscData.Config.AntiCheat.ProcList);
//AntiCheatPlugin.Init(MiscData.Config.AntiCheat.Enable, MiscData.Config.AntiCheat.LibList, MiscData.Config.AntiCheat.ProcList);
Singleton<ApplicationManager>.Instance.DetectCheat();
AntiEmulatorPlugin.Init(MiscData.Config.AntiEmulator.Enable, MiscData.Config.AntiEmulator.DeviceModelList);
Singleton<ApplicationManager>.Instance.DetectEmulator();

View File

@@ -25,7 +25,7 @@ namespace MoleMole
ParticleSystem.EmissionModule emission = targetParticleSystems[i].emission;
ParticleSystem.MinMaxCurve rate = emission.rate;
_origRateMaxes[i] = rate.constantMax;
rate.curveScalar = 0f;
rate.curveMultiplier = 0f;
emission.rate = rate;
}
}

View File

@@ -38,7 +38,7 @@ namespace MoleMole
{
return;
}
Transform transform = sceneCanvas.transform.FindChild(FollowTargetUIPath);
Transform transform = sceneCanvas.transform.Find(FollowTargetUIPath);
position = transform.position;
}
else if (UseParentUIPos)

View File

@@ -159,7 +159,7 @@ namespace MoleMole
for (int i = 0; i < array2.Length; i++)
{
Texture texture = (Texture)array2[i];
uint runtimeMemorySize = (uint)Profiler.GetRuntimeMemorySize(texture);
uint runtimeMemorySize = (uint)UnityEngine.Profiling.Profiler.GetRuntimeMemorySize(texture);
if (texture is RenderTexture)
{
_memory_renderTexture += runtimeMemorySize;
@@ -182,7 +182,7 @@ namespace MoleMole
for (int j = 0; j < array4.Length; j++)
{
Mesh mesh = (Mesh)array4[j];
uint runtimeMemorySize2 = (uint)Profiler.GetRuntimeMemorySize(mesh);
uint runtimeMemorySize2 = (uint)UnityEngine.Profiling.Profiler.GetRuntimeMemorySize(mesh);
_memory_mesh += runtimeMemorySize2;
if (_assetDetail == E_AssetDetail.Meshes)
{
@@ -194,7 +194,7 @@ namespace MoleMole
for (int k = 0; k < array6.Length; k++)
{
AnimationClip animationClip = (AnimationClip)array6[k];
uint runtimeMemorySize3 = (uint)Profiler.GetRuntimeMemorySize(animationClip);
uint runtimeMemorySize3 = (uint)UnityEngine.Profiling.Profiler.GetRuntimeMemorySize(animationClip);
_memory_animationClip += runtimeMemorySize3;
if (_assetDetail == E_AssetDetail.AnimationClips)
{
@@ -206,7 +206,7 @@ namespace MoleMole
for (int l = 0; l < array8.Length; l++)
{
Material material = (Material)array8[l];
uint runtimeMemorySize4 = (uint)Profiler.GetRuntimeMemorySize(material);
uint runtimeMemorySize4 = (uint)UnityEngine.Profiling.Profiler.GetRuntimeMemorySize(material);
_memory_material += runtimeMemorySize4;
if (_assetDetail == E_AssetDetail.Meterials)
{
@@ -221,7 +221,7 @@ namespace MoleMole
{
GameObject o = (GameObject)array10[m];
_num_gameobject++;
uint runtimeMemorySize5 = (uint)Profiler.GetRuntimeMemorySize(o);
uint runtimeMemorySize5 = (uint)UnityEngine.Profiling.Profiler.GetRuntimeMemorySize(o);
_memory_gameobject += runtimeMemorySize5;
}
_memory_texture = ToMegaBytes(_memory_texture);
@@ -229,8 +229,8 @@ namespace MoleMole
_memory_mesh = ToMegaBytes(_memory_mesh);
_memory_animationClip = ToMegaBytes(_memory_animationClip);
_memory_material = ToMegaBytes(_memory_material);
_memory_monoHeap = ToMegaBytes(Profiler.GetMonoHeapSize());
_memory_monoUsed = ToMegaBytes(Profiler.GetMonoUsedSize());
_memory_monoHeap = ToMegaBytes(UnityEngine.Profiling.Profiler.GetMonoHeapSize());
_memory_monoUsed = ToMegaBytes(UnityEngine.Profiling.Profiler.GetMonoUsedSize());
_memory_gameobject = ToMegaBytes(_memory_gameobject);
}

View File

@@ -12,25 +12,25 @@ namespace MoleMole
private void Awake()
{
CleanNotification();
// CleanNotification();
}
private void OnApplicationPause(bool paused)
{
if (paused)
{
AddGameLocalNotifications();
//AddGameLocalNotifications();
}
else
{
CleanNotification();
//CleanNotification();
}
}
public void OnApplicationQuit()
{
CleanNotification();
AddGameLocalNotifications();
//CleanNotification();
//AddGameLocalNotifications();
}
private void AddGameLocalNotifications()
@@ -115,16 +115,16 @@ namespace MoleMole
{
int num = ++_notificationId;
_notificationIdList.Add(num);
LocalNotificationPlugin.SendNotification(num, time - DateTime.Now, title, text);
//LocalNotificationPlugin.SendNotification(num, time - DateTime.Now, title, text);
}
}
private void CleanNotification()
{
LocalNotificationPlugin.ClearNotifications();
//LocalNotificationPlugin.ClearNotifications();
foreach (int notificationId in _notificationIdList)
{
LocalNotificationPlugin.CancelNotification(notificationId);
//LocalNotificationPlugin.CancelNotification(notificationId);
}
_notificationIdList.Clear();
}

View File

@@ -99,18 +99,18 @@ namespace MoleMole
{
Transform transform = volumeBtns[i];
transform.GetComponent<Image>().color = MiscData.GetColor("Blue");
transform.FindChild("Check").gameObject.SetActive(false);
transform.FindChild("Text").gameObject.SetActive(true);
transform.Find("Check").gameObject.SetActive(false);
transform.Find("Text").gameObject.SetActive(true);
}
volumeBtns[volume].GetComponent<Image>().color = MiscData.GetColor("Blue");
volumeBtns[volume].FindChild("Check").gameObject.SetActive(true);
volumeBtns[volume].FindChild("Text").gameObject.SetActive(false);
volumeBtns[volume].Find("Check").gameObject.SetActive(true);
volumeBtns[volume].Find("Text").gameObject.SetActive(false);
for (int j = volume + 1; j < volumeBtns.Length; j++)
{
Transform transform2 = volumeBtns[j];
transform2.GetComponent<Image>().color = MiscData.GetColor("TextGrey");
transform2.FindChild("Check").gameObject.SetActive(false);
transform2.FindChild("Text").gameObject.SetActive(true);
transform2.Find("Check").gameObject.SetActive(false);
transform2.Find("Text").gameObject.SetActive(true);
}
}
@@ -145,9 +145,9 @@ namespace MoleMole
int i = 0;
for (int num = cvLanguageGroups.Length; i < num && i < cvLanguageNames.Length; i++)
{
Transform transform = cvLanguageGroups[i].FindChild("Check");
Transform transform2 = cvLanguageGroups[i].FindChild("Blue");
Transform transform3 = cvLanguageGroups[i].FindChild("Grey");
Transform transform = cvLanguageGroups[i].Find("Check");
Transform transform2 = cvLanguageGroups[i].Find("Blue");
Transform transform3 = cvLanguageGroups[i].Find("Grey");
if (!(transform == null))
{
bool flag = cvLanguageNames[i] == _modifiedSettingConfig.CVLanguage;

View File

@@ -249,99 +249,99 @@ namespace MoleMole
{
Transform transform = base.transform.Find("Content/DetailSetting/FirstLine/Resolution");
Transform transform2 = transform.Find("Mark");
transform2.FindChild("Enable").gameObject.SetActive(!isRecommend);
transform2.FindChild("Disable").gameObject.SetActive(isRecommend);
Transform transform3 = transform.FindChild("Choice/Low");
Transform transform4 = transform.FindChild("Choice/Middle");
Transform transform5 = transform.FindChild("Choice/High");
Transform transform6 = transform.FindChild("Label");
Transform transform7 = transform3.FindChild("Text");
Transform transform8 = transform4.FindChild("Text");
Transform transform9 = transform5.FindChild("Text");
transform2.Find("Enable").gameObject.SetActive(!isRecommend);
transform2.Find("Disable").gameObject.SetActive(isRecommend);
Transform transform3 = transform.Find("Choice/Low");
Transform transform4 = transform.Find("Choice/Middle");
Transform transform5 = transform.Find("Choice/High");
Transform transform6 = transform.Find("Label");
Transform transform7 = transform3.Find("Text");
Transform transform8 = transform4.Find("Text");
Transform transform9 = transform5.Find("Text");
if (isRecommend)
{
transform3.FindChild("Blue").gameObject.SetActive(false);
transform3.FindChild("Grey").gameObject.SetActive(false);
transform3.FindChild("Disable").gameObject.SetActive(true);
transform4.FindChild("Blue").gameObject.SetActive(false);
transform4.FindChild("Grey").gameObject.SetActive(false);
transform4.FindChild("Disable").gameObject.SetActive(true);
transform5.FindChild("Blue").gameObject.SetActive(false);
transform5.FindChild("Grey").gameObject.SetActive(false);
transform5.FindChild("Disable").gameObject.SetActive(true);
transform3.Find("Blue").gameObject.SetActive(false);
transform3.Find("Grey").gameObject.SetActive(false);
transform3.Find("Disable").gameObject.SetActive(true);
transform4.Find("Blue").gameObject.SetActive(false);
transform4.Find("Grey").gameObject.SetActive(false);
transform4.Find("Disable").gameObject.SetActive(true);
transform5.Find("Blue").gameObject.SetActive(false);
transform5.Find("Grey").gameObject.SetActive(false);
transform5.Find("Disable").gameObject.SetActive(true);
transform6.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform7.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform8.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform9.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform3.FindChild("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
transform4.FindChild("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
transform5.FindChild("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
transform3.Find("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
transform4.Find("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
transform5.Find("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
}
else
{
transform3.FindChild("Disable").gameObject.SetActive(false);
transform4.FindChild("Disable").gameObject.SetActive(false);
transform5.FindChild("Disable").gameObject.SetActive(false);
transform3.Find("Disable").gameObject.SetActive(false);
transform4.Find("Disable").gameObject.SetActive(false);
transform5.Find("Disable").gameObject.SetActive(false);
transform6.GetComponent<Text>().color = Color.white;
transform7.GetComponent<Text>().color = Color.white;
transform8.GetComponent<Text>().color = Color.white;
transform9.GetComponent<Text>().color = Color.white;
transform3.FindChild("Check").GetComponent<Image>().color = Color.white;
transform4.FindChild("Check").GetComponent<Image>().color = Color.white;
transform5.FindChild("Check").GetComponent<Image>().color = Color.white;
transform3.Find("Check").GetComponent<Image>().color = Color.white;
transform4.Find("Check").GetComponent<Image>().color = Color.white;
transform5.Find("Check").GetComponent<Image>().color = Color.white;
}
switch (resolutionGrade)
{
case ResolutionQualityGrade.High:
transform3.FindChild("Button").GetComponent<Button>().interactable = !isRecommend;
transform4.FindChild("Button").GetComponent<Button>().interactable = !isRecommend;
transform5.FindChild("Button").GetComponent<Button>().interactable = false;
transform3.Find("Button").GetComponent<Button>().interactable = !isRecommend;
transform4.Find("Button").GetComponent<Button>().interactable = !isRecommend;
transform5.Find("Button").GetComponent<Button>().interactable = false;
if (!isRecommend)
{
transform3.FindChild("Blue").gameObject.SetActive(false);
transform3.FindChild("Grey").gameObject.SetActive(true);
transform4.FindChild("Blue").gameObject.SetActive(false);
transform4.FindChild("Grey").gameObject.SetActive(true);
transform5.FindChild("Blue").gameObject.SetActive(true);
transform5.FindChild("Grey").gameObject.SetActive(false);
transform3.Find("Blue").gameObject.SetActive(false);
transform3.Find("Grey").gameObject.SetActive(true);
transform4.Find("Blue").gameObject.SetActive(false);
transform4.Find("Grey").gameObject.SetActive(true);
transform5.Find("Blue").gameObject.SetActive(true);
transform5.Find("Grey").gameObject.SetActive(false);
}
transform3.FindChild("Check").gameObject.SetActive(false);
transform4.FindChild("Check").gameObject.SetActive(false);
transform5.FindChild("Check").gameObject.SetActive(true);
transform3.Find("Check").gameObject.SetActive(false);
transform4.Find("Check").gameObject.SetActive(false);
transform5.Find("Check").gameObject.SetActive(true);
break;
case ResolutionQualityGrade.Middle:
transform3.FindChild("Button").GetComponent<Button>().interactable = !isRecommend;
transform4.FindChild("Button").GetComponent<Button>().interactable = false;
transform5.FindChild("Button").GetComponent<Button>().interactable = !isRecommend;
transform3.Find("Button").GetComponent<Button>().interactable = !isRecommend;
transform4.Find("Button").GetComponent<Button>().interactable = false;
transform5.Find("Button").GetComponent<Button>().interactable = !isRecommend;
if (!isRecommend)
{
transform3.FindChild("Blue").gameObject.SetActive(false);
transform3.FindChild("Grey").gameObject.SetActive(true);
transform4.FindChild("Blue").gameObject.SetActive(true);
transform4.FindChild("Grey").gameObject.SetActive(false);
transform5.FindChild("Blue").gameObject.SetActive(false);
transform5.FindChild("Grey").gameObject.SetActive(true);
transform3.Find("Blue").gameObject.SetActive(false);
transform3.Find("Grey").gameObject.SetActive(true);
transform4.Find("Blue").gameObject.SetActive(true);
transform4.Find("Grey").gameObject.SetActive(false);
transform5.Find("Blue").gameObject.SetActive(false);
transform5.Find("Grey").gameObject.SetActive(true);
}
transform3.FindChild("Check").gameObject.SetActive(false);
transform4.FindChild("Check").gameObject.SetActive(true);
transform5.FindChild("Check").gameObject.SetActive(false);
transform3.Find("Check").gameObject.SetActive(false);
transform4.Find("Check").gameObject.SetActive(true);
transform5.Find("Check").gameObject.SetActive(false);
break;
default:
transform3.FindChild("Button").GetComponent<Button>().interactable = false;
transform4.FindChild("Button").GetComponent<Button>().interactable = !isRecommend;
transform5.FindChild("Button").GetComponent<Button>().interactable = !isRecommend;
transform3.Find("Button").GetComponent<Button>().interactable = false;
transform4.Find("Button").GetComponent<Button>().interactable = !isRecommend;
transform5.Find("Button").GetComponent<Button>().interactable = !isRecommend;
if (!isRecommend)
{
transform5.FindChild("Blue").gameObject.SetActive(false);
transform5.FindChild("Grey").gameObject.SetActive(true);
transform4.FindChild("Blue").gameObject.SetActive(false);
transform4.FindChild("Grey").gameObject.SetActive(true);
transform3.FindChild("Blue").gameObject.SetActive(true);
transform3.FindChild("Grey").gameObject.SetActive(false);
transform5.Find("Blue").gameObject.SetActive(false);
transform5.Find("Grey").gameObject.SetActive(true);
transform4.Find("Blue").gameObject.SetActive(false);
transform4.Find("Grey").gameObject.SetActive(true);
transform3.Find("Blue").gameObject.SetActive(true);
transform3.Find("Grey").gameObject.SetActive(false);
}
transform5.FindChild("Check").gameObject.SetActive(false);
transform4.FindChild("Check").gameObject.SetActive(false);
transform3.FindChild("Check").gameObject.SetActive(true);
transform5.Find("Check").gameObject.SetActive(false);
transform4.Find("Check").gameObject.SetActive(false);
transform3.Find("Check").gameObject.SetActive(true);
break;
}
}
@@ -354,64 +354,64 @@ namespace MoleMole
private void ShowFirstLineElement(Transform elementTransform, bool isRecommend, bool isHigh)
{
Transform transform = elementTransform.Find("Mark");
transform.FindChild("Enable").gameObject.SetActive(!isRecommend);
transform.FindChild("Disable").gameObject.SetActive(isRecommend);
Transform transform2 = elementTransform.FindChild("Choice/Low");
Transform transform3 = elementTransform.FindChild("Choice/High");
Transform transform4 = elementTransform.FindChild("Label");
Transform transform5 = transform2.FindChild("Text");
Transform transform6 = transform3.FindChild("Text");
transform.Find("Enable").gameObject.SetActive(!isRecommend);
transform.Find("Disable").gameObject.SetActive(isRecommend);
Transform transform2 = elementTransform.Find("Choice/Low");
Transform transform3 = elementTransform.Find("Choice/High");
Transform transform4 = elementTransform.Find("Label");
Transform transform5 = transform2.Find("Text");
Transform transform6 = transform3.Find("Text");
if (isRecommend)
{
transform2.FindChild("Blue").gameObject.SetActive(false);
transform2.FindChild("Grey").gameObject.SetActive(false);
transform2.FindChild("Disable").gameObject.SetActive(true);
transform3.FindChild("Blue").gameObject.SetActive(false);
transform3.FindChild("Grey").gameObject.SetActive(false);
transform3.FindChild("Disable").gameObject.SetActive(true);
transform2.Find("Blue").gameObject.SetActive(false);
transform2.Find("Grey").gameObject.SetActive(false);
transform2.Find("Disable").gameObject.SetActive(true);
transform3.Find("Blue").gameObject.SetActive(false);
transform3.Find("Grey").gameObject.SetActive(false);
transform3.Find("Disable").gameObject.SetActive(true);
transform4.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform5.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform6.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform2.FindChild("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
transform3.FindChild("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
transform2.Find("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
transform3.Find("Check").GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
}
else
{
transform2.FindChild("Disable").gameObject.SetActive(false);
transform3.FindChild("Disable").gameObject.SetActive(false);
transform2.Find("Disable").gameObject.SetActive(false);
transform3.Find("Disable").gameObject.SetActive(false);
transform4.GetComponent<Text>().color = Color.white;
transform5.GetComponent<Text>().color = Color.white;
transform6.GetComponent<Text>().color = Color.white;
transform2.FindChild("Check").GetComponent<Image>().color = Color.white;
transform3.FindChild("Check").GetComponent<Image>().color = Color.white;
transform2.Find("Check").GetComponent<Image>().color = Color.white;
transform3.Find("Check").GetComponent<Image>().color = Color.white;
}
if (isHigh)
{
transform2.FindChild("Button").GetComponent<Button>().interactable = !isRecommend;
transform3.FindChild("Button").GetComponent<Button>().interactable = false;
transform2.Find("Button").GetComponent<Button>().interactable = !isRecommend;
transform3.Find("Button").GetComponent<Button>().interactable = false;
if (!isRecommend)
{
transform2.FindChild("Blue").gameObject.SetActive(false);
transform2.FindChild("Grey").gameObject.SetActive(true);
transform3.FindChild("Blue").gameObject.SetActive(true);
transform3.FindChild("Grey").gameObject.SetActive(false);
transform2.Find("Blue").gameObject.SetActive(false);
transform2.Find("Grey").gameObject.SetActive(true);
transform3.Find("Blue").gameObject.SetActive(true);
transform3.Find("Grey").gameObject.SetActive(false);
}
transform2.FindChild("Check").gameObject.SetActive(false);
transform3.FindChild("Check").gameObject.SetActive(true);
transform2.Find("Check").gameObject.SetActive(false);
transform3.Find("Check").gameObject.SetActive(true);
}
else
{
transform2.FindChild("Button").GetComponent<Button>().interactable = false;
transform3.FindChild("Button").GetComponent<Button>().interactable = !isRecommend;
transform2.Find("Button").GetComponent<Button>().interactable = false;
transform3.Find("Button").GetComponent<Button>().interactable = !isRecommend;
if (!isRecommend)
{
transform3.FindChild("Blue").gameObject.SetActive(false);
transform3.FindChild("Grey").gameObject.SetActive(true);
transform2.FindChild("Blue").gameObject.SetActive(true);
transform2.FindChild("Grey").gameObject.SetActive(false);
transform3.Find("Blue").gameObject.SetActive(false);
transform3.Find("Grey").gameObject.SetActive(true);
transform2.Find("Blue").gameObject.SetActive(true);
transform2.Find("Grey").gameObject.SetActive(false);
}
transform3.FindChild("Check").gameObject.SetActive(false);
transform2.FindChild("Check").gameObject.SetActive(true);
transform3.Find("Check").gameObject.SetActive(false);
transform2.Find("Check").gameObject.SetActive(true);
}
}
@@ -437,31 +437,31 @@ namespace MoleMole
private void ShowSecondLineElement(Transform elementTransform, bool isRecommend, bool use)
{
Transform transform = elementTransform.Find("Mark");
transform.FindChild("Enable").gameObject.SetActive(!isRecommend);
transform.FindChild("Disable").gameObject.SetActive(isRecommend);
transform.Find("Enable").gameObject.SetActive(!isRecommend);
transform.Find("Disable").gameObject.SetActive(isRecommend);
Transform transform2 = elementTransform.Find("Choice/On");
Transform transform3 = elementTransform.Find("Choice/Off");
Transform transform4 = elementTransform.FindChild("Label");
Transform transform5 = transform2.FindChild("Text");
Transform transform6 = transform3.FindChild("Text");
Transform transform4 = elementTransform.Find("Label");
Transform transform5 = transform2.Find("Text");
Transform transform6 = transform3.Find("Text");
if (isRecommend)
{
transform2.FindChild("Blue").gameObject.SetActive(false);
transform2.FindChild("Grey").gameObject.SetActive(false);
transform2.FindChild("Disable").gameObject.SetActive(true);
transform3.FindChild("Grey").gameObject.SetActive(false);
transform3.FindChild("Disable").gameObject.SetActive(true);
transform2.Find("Blue").gameObject.SetActive(false);
transform2.Find("Grey").gameObject.SetActive(false);
transform2.Find("Disable").gameObject.SetActive(true);
transform3.Find("Grey").gameObject.SetActive(false);
transform3.Find("Disable").gameObject.SetActive(true);
transform4.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform5.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform6.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
}
else
{
transform2.FindChild("Blue").gameObject.SetActive(use);
transform2.FindChild("Grey").gameObject.SetActive(!use);
transform3.FindChild("Grey").gameObject.SetActive(!use);
transform2.FindChild("Disable").gameObject.SetActive(false);
transform3.FindChild("Disable").gameObject.SetActive(false);
transform2.Find("Blue").gameObject.SetActive(use);
transform2.Find("Grey").gameObject.SetActive(!use);
transform3.Find("Grey").gameObject.SetActive(!use);
transform2.Find("Disable").gameObject.SetActive(false);
transform3.Find("Disable").gameObject.SetActive(false);
transform4.GetComponent<Text>().color = Color.white;
transform5.GetComponent<Text>().color = Color.white;
transform6.GetComponent<Text>().color = Color.white;
@@ -494,26 +494,26 @@ namespace MoleMole
private void ShowThirdLineElement(Transform elementTransform, bool isRecommend, bool usePostFX, bool use)
{
Transform transform = elementTransform.FindChild("Text");
Transform transform2 = elementTransform.FindChild("Check");
Transform transform = elementTransform.Find("Text");
Transform transform2 = elementTransform.Find("Check");
if (isRecommend)
{
elementTransform.FindChild("Blue").gameObject.SetActive(false);
elementTransform.FindChild("Grey").gameObject.SetActive(false);
elementTransform.FindChild("Disable").gameObject.SetActive(true);
elementTransform.Find("Blue").gameObject.SetActive(false);
elementTransform.Find("Grey").gameObject.SetActive(false);
elementTransform.Find("Disable").gameObject.SetActive(true);
transform.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform2.GetComponent<Image>().color = MiscData.GetColor("GraphicsSettingDisableRadioboxCheck");
}
else
{
elementTransform.FindChild("Blue").gameObject.SetActive(usePostFX && use);
elementTransform.FindChild("Grey").gameObject.SetActive(!usePostFX || !use);
elementTransform.FindChild("Disable").gameObject.SetActive(false);
elementTransform.Find("Blue").gameObject.SetActive(usePostFX && use);
elementTransform.Find("Grey").gameObject.SetActive(!usePostFX || !use);
elementTransform.Find("Disable").gameObject.SetActive(false);
transform.GetComponent<Text>().color = Color.white;
transform2.GetComponent<Image>().color = Color.white;
}
transform2.gameObject.SetActive(use);
elementTransform.FindChild("Button").GetComponent<Button>().interactable = !isRecommend && usePostFX;
elementTransform.Find("Button").GetComponent<Button>().interactable = !isRecommend && usePostFX;
}
private void ShowEcoModeConfig()
@@ -556,10 +556,10 @@ namespace MoleMole
for (int i = 0; i < grades.Length - 1; i++)
{
Transform transform = grades[i];
transform.FindChild("Recommend").gameObject.SetActive(false);
transform.Find("Recommend").gameObject.SetActive(false);
}
Transform transform2 = grades[(int)graphicsRecommendGrade];
transform2.FindChild("Recommend").gameObject.SetActive(true);
transform2.Find("Recommend").gameObject.SetActive(true);
}
private void ShowRecommendGradeInfo(GraphicsRecommendGrade grade)
@@ -569,14 +569,14 @@ namespace MoleMole
if (i != (int)grade)
{
Transform transform = grades[i];
transform.FindChild("Blue").gameObject.SetActive(true);
transform.FindChild("Check").gameObject.SetActive(false);
transform.Find("Blue").gameObject.SetActive(true);
transform.Find("Check").gameObject.SetActive(false);
processes[i].gameObject.SetActive(false);
}
}
Transform transform2 = grades[(int)grade];
transform2.FindChild("Blue").gameObject.SetActive(false);
transform2.FindChild("Check").gameObject.SetActive(true);
transform2.Find("Blue").gameObject.SetActive(false);
transform2.Find("Check").gameObject.SetActive(true);
processes[(int)grade].gameObject.SetActive(true);
}
@@ -587,16 +587,16 @@ namespace MoleMole
Transform transform = grades[i];
if (transform.gameObject.activeSelf)
{
transform.FindChild("Blue").gameObject.SetActive(true);
transform.FindChild("Check").gameObject.SetActive(false);
transform.Find("Blue").gameObject.SetActive(true);
transform.Find("Check").gameObject.SetActive(false);
processes[i].gameObject.SetActive(false);
}
}
if (!isInLevelSimpleSetting)
{
Transform transform2 = grades[grades.Length - 1];
transform2.FindChild("Blue").gameObject.SetActive(false);
transform2.FindChild("Check").gameObject.SetActive(true);
transform2.Find("Blue").gameObject.SetActive(false);
transform2.Find("Check").gameObject.SetActive(true);
processes[grades.Length - 1].gameObject.SetActive(true);
}
}
@@ -605,8 +605,8 @@ namespace MoleMole
{
for (int i = 0; i < grades.Length; i++)
{
grades[i].FindChild("Blue").gameObject.SetActive(true);
grades[i].FindChild("Check").gameObject.SetActive(false);
grades[i].Find("Blue").gameObject.SetActive(true);
grades[i].Find("Check").gameObject.SetActive(false);
processes[i].gameObject.SetActive(false);
}
processes[0].gameObject.SetActive(true);
@@ -617,29 +617,29 @@ namespace MoleMole
bool isEcoMode = _modifiedPersonalSetting.IsEcoMode;
if (isInLevelSimpleSetting)
{
ecoMode.FindChild("Mode/Desc/On").gameObject.SetActive(isEcoMode);
ecoMode.FindChild("Mode/Desc/Off").gameObject.SetActive(!isEcoMode);
ecoMode.Find("Mode/Desc/On").gameObject.SetActive(isEcoMode);
ecoMode.Find("Mode/Desc/Off").gameObject.SetActive(!isEcoMode);
Transform transform = ecoMode.Find("Mode/Choice/On");
Transform transform2 = ecoMode.Find("Mode/Choice/Off");
transform.FindChild("Blue").gameObject.SetActive(isEcoMode);
transform.FindChild("Grey").gameObject.SetActive(!isEcoMode);
transform.FindChild("Disable").gameObject.SetActive(false);
transform.Find("Blue").gameObject.SetActive(isEcoMode);
transform.Find("Grey").gameObject.SetActive(!isEcoMode);
transform.Find("Disable").gameObject.SetActive(false);
transform.gameObject.SetActive(isEcoMode);
transform.GetComponent<Button>().interactable = isEcoMode;
transform2.FindChild("Grey").gameObject.SetActive(!isEcoMode);
transform2.FindChild("Disable").gameObject.SetActive(false);
transform2.Find("Grey").gameObject.SetActive(!isEcoMode);
transform2.Find("Disable").gameObject.SetActive(false);
transform2.gameObject.SetActive(!isEcoMode);
transform2.GetComponent<Button>().interactable = !isEcoMode;
}
else
{
ecoMode.FindChild("Desc/ON").gameObject.SetActive(isEcoMode);
ecoMode.FindChild("Desc/OFF").gameObject.SetActive(!isEcoMode);
ecoMode.FindChild("Choice/Blue").gameObject.SetActive(isEcoMode);
ecoMode.FindChild("Choice/Grey").gameObject.SetActive(!isEcoMode);
ecoMode.FindChild("Choice/Disable").gameObject.SetActive(false);
ecoMode.FindChild("Choice/Text").GetComponent<Text>().color = Color.white;
Transform transform3 = ecoMode.FindChild("Choice/Check");
ecoMode.Find("Desc/ON").gameObject.SetActive(isEcoMode);
ecoMode.Find("Desc/OFF").gameObject.SetActive(!isEcoMode);
ecoMode.Find("Choice/Blue").gameObject.SetActive(isEcoMode);
ecoMode.Find("Choice/Grey").gameObject.SetActive(!isEcoMode);
ecoMode.Find("Choice/Disable").gameObject.SetActive(false);
ecoMode.Find("Choice/Text").GetComponent<Text>().color = Color.white;
Transform transform3 = ecoMode.Find("Choice/Check");
transform3.GetComponent<Image>().color = Color.white;
transform3.gameObject.SetActive(isEcoMode);
}

View File

@@ -15,9 +15,9 @@ namespace MoleMole
public void SetupView()
{
base.transform.FindChild("Content/RT/3dModel").GetComponent<MonoGammaSettingRenderImage>().SetupView();
base.transform.Find("Content/RT/3dModel").GetComponent<MonoGammaSettingRenderImage>().SetupView();
GraphicsSettingData.ApplyPersonalContrastDelta();
_contrastSlider = base.transform.FindChild("Content/Contrast/Slider").GetComponent<Slider>();
_contrastSlider = base.transform.Find("Content/Contrast/Slider").GetComponent<Slider>();
RecoverOriginState();
}
@@ -57,13 +57,13 @@ namespace MoleMole
{
if (showValue == _contrastShowMinValue)
{
_contrastSlider.transform.FindChild("Fill Area/Fill").GetComponent<Image>().enabled = false;
_contrastSlider.transform.Find("Fill Area/Fill").GetComponent<Image>().enabled = false;
}
else
{
_contrastSlider.transform.FindChild("Fill Area/Fill").GetComponent<Image>().enabled = true;
_contrastSlider.transform.Find("Fill Area/Fill").GetComponent<Image>().enabled = true;
}
_contrastSlider.transform.FindChild("Handle Slide Area/Handle/Popup/PopupSmall/Text").GetComponent<Text>().text = showValue.ToString();
_contrastSlider.transform.Find("Handle Slide Area/Handle/Popup/PopupSmall/Text").GetComponent<Text>().text = showValue.ToString();
}
}
}

View File

@@ -22,7 +22,7 @@ namespace MoleMole
{
_modifiedSettingConfig = new ConfigNotificationSetting();
RecoverOriginState();
Transform settingTrans = base.gameObject.transform.FindChild("Content/NotificationSetting/ThirdLine/ActivityNotification").transform;
Transform settingTrans = base.gameObject.transform.Find("Content/NotificationSetting/ThirdLine/ActivityNotification").transform;
SetSettingEnable(settingTrans, false);
}
@@ -96,29 +96,29 @@ namespace MoleMole
private void SetSettingEnable(Transform settingTrans, bool enable)
{
Transform transform = settingTrans.FindChild("Choice/On");
Transform transform2 = settingTrans.FindChild("Choice/Off");
Transform transform3 = settingTrans.FindChild("Label");
Transform transform4 = transform.FindChild("Text");
Transform transform5 = transform2.FindChild("Text");
Transform transform = settingTrans.Find("Choice/On");
Transform transform2 = settingTrans.Find("Choice/Off");
Transform transform3 = settingTrans.Find("Label");
Transform transform4 = transform.Find("Text");
Transform transform5 = transform2.Find("Text");
if (!enable)
{
transform.FindChild("Blue").gameObject.SetActive(false);
transform.FindChild("Grey").gameObject.SetActive(false);
transform.FindChild("Disable").gameObject.SetActive(true);
transform2.FindChild("Grey").gameObject.SetActive(false);
transform2.FindChild("Disable").gameObject.SetActive(true);
transform.Find("Blue").gameObject.SetActive(false);
transform.Find("Grey").gameObject.SetActive(false);
transform.Find("Disable").gameObject.SetActive(true);
transform2.Find("Grey").gameObject.SetActive(false);
transform2.Find("Disable").gameObject.SetActive(true);
transform3.GetComponent<Text>().color = MiscData.GetColor("NotificationSettingDisableText");
transform4.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
transform5.GetComponent<Text>().color = MiscData.GetColor("GraphicsSettingDisableText");
}
else
{
transform.FindChild("Blue").gameObject.SetActive(true);
transform.FindChild("Grey").gameObject.SetActive(true);
transform2.FindChild("Grey").gameObject.SetActive(true);
transform.FindChild("Disable").gameObject.SetActive(false);
transform2.FindChild("Disable").gameObject.SetActive(false);
transform.Find("Blue").gameObject.SetActive(true);
transform.Find("Grey").gameObject.SetActive(true);
transform2.Find("Grey").gameObject.SetActive(true);
transform.Find("Disable").gameObject.SetActive(false);
transform2.Find("Disable").gameObject.SetActive(false);
transform3.GetComponent<Text>().color = Color.white;
transform4.GetComponent<Text>().color = Color.white;
transform5.GetComponent<Text>().color = Color.white;

View File

@@ -404,7 +404,7 @@ namespace MoleMole
_currentRightModelAvatarID = avatarID;
}
}
Animation animation = ((side != SelectScreenSide.Left) ? _rightScreen.FindChild("Name").GetComponent<Animation>() : _leftScreen.FindChild("Name").GetComponent<Animation>());
Animation animation = ((side != SelectScreenSide.Left) ? _rightScreen.Find("Name").GetComponent<Animation>() : _leftScreen.Find("Name").GetComponent<Animation>());
animation.Play("PlotScreenCurrent");
if (flag)
{

View File

@@ -217,7 +217,7 @@ namespace MoleMole
return;
}
GetMainDataReq val = new GetMainDataReq();
val.type_list.Add((DataType)0);
val.type_list.Add((GetMainDataReq.DataType)0);
SendPacket<GetMainDataReq>(val);
}
@@ -231,7 +231,7 @@ namespace MoleMole
return;
}
GetMainDataReq val = new GetMainDataReq();
val.type_list.Add((DataType)7);
val.type_list.Add((GetMainDataReq.DataType)7);
SendPacket<GetMainDataReq>(val);
}
@@ -245,7 +245,7 @@ namespace MoleMole
return;
}
GetMainDataReq val = new GetMainDataReq();
val.type_list.Add((DataType)10);
val.type_list.Add((GetMainDataReq.DataType)10);
SendPacket<GetMainDataReq>(val);
}

View File

@@ -494,7 +494,7 @@ namespace MoleMole
private void SetupMask()
{
Transform transform = base.view.transform.FindChild("Mask");
Transform transform = base.view.transform.Find("Mask");
transform.GetComponent<Image>().enabled = !disableMask;
if ((!disableMask && highlightTrans == null) || isMaskClickable || handIconPosType == HandIconPosType.None || handIconPosType == HandIconPosType.Arrow)
{
@@ -554,7 +554,7 @@ namespace MoleMole
item.gameObject.SetActive(false);
}
}
Transform transform3 = transform.FindChild(bubblePosType.ToString() + "/Head/Icon");
Transform transform3 = transform.Find(bubblePosType.ToString() + "/Head/Icon");
if (!(transform3 == null))
{
float num = UnityEngine.Random.Range(0f, 3f);
@@ -570,10 +570,10 @@ namespace MoleMole
{
transform3.GetComponent<Image>().sprite = Miscs.GetSpriteByPrefab("SpriteOutput/Newbie/CharaHeadAIMusume03");
}
Transform transform4 = transform.FindChild(bubblePosType.ToString() + "/Text");
Transform transform4 = transform.Find(bubblePosType.ToString() + "/Text");
if (!string.IsNullOrEmpty(guideDesc))
{
transform4.FindChild("Panel/Text").GetComponent<Text>().text = guideDesc;
transform4.Find("Panel/Text").GetComponent<Text>().text = guideDesc;
}
}
}
@@ -594,27 +594,27 @@ namespace MoleMole
{
return;
}
Transform transform = base.view.transform.FindChild("HandIcon");
Transform transform = base.view.transform.Find("HandIcon");
if (transform == null)
{
return;
}
if (handIconPosType == HandIconPosType.Downward)
{
base.view.transform.FindChild("HandIcon/Downward").gameObject.SetActive(true);
base.view.transform.Find("HandIcon/Downward").gameObject.SetActive(true);
return;
}
if (handIconPosType == HandIconPosType.Tips)
{
base.view.transform.FindChild("Tips").gameObject.SetActive(true);
base.view.transform.Find("Tips").gameObject.SetActive(true);
return;
}
if (handIconPosType == HandIconPosType.Arrow)
{
if (!(highlightTrans == null))
{
base.view.transform.FindChild("Arrow").gameObject.SetActive(true);
base.view.transform.FindChild("Arrow").position = highlightTrans.GetComponent<RectTransform>().position;
base.view.transform.Find("Arrow").gameObject.SetActive(true);
base.view.transform.Find("Arrow").position = highlightTrans.GetComponent<RectTransform>().position;
}
return;
}
@@ -637,7 +637,7 @@ namespace MoleMole
item.gameObject.SetActive(false);
}
}
Transform transform3 = base.view.transform.FindChild("HandIcon/" + handIconPosType);
Transform transform3 = base.view.transform.Find("HandIcon/" + handIconPosType);
if (!(transform3 == null))
{
RectTransform component2 = transform3.GetComponent<RectTransform>();
@@ -783,7 +783,7 @@ namespace MoleMole
Destroy();
return;
}
highlightTrans = sceneCanvas.transform.FindChild(highlightPath);
highlightTrans = sceneCanvas.transform.Find(highlightPath);
if (highlightTrans == null || highlightTrans.gameObject == null || !highlightTrans.gameObject.activeInHierarchy)
{
Destroy();

View File

@@ -179,7 +179,7 @@ namespace MoleMole
{
playerData.costAddByAvatarStar[(int)item.star] = (int)item.cost_plus;
}
foreach (GachaTicket item2 in rsp.gacha_ticket_list)
foreach (proto.GetConfigRsp.GachaTicket item2 in rsp.gacha_ticket_list)
{
playerData.gachaTicketPriceDict[(int)item2.material_id] = (int)item2.hcoin_cost;
playerData.gachaTicketPriceDict[(int)(item2.material_id * 10)] = (int)(item2.hcoin_cost * 10);

View File

@@ -485,7 +485,7 @@ namespace MoleMole
_redeemCode = base.view.transform.Find("AccountPanel/Award/InputField/Text").GetComponent<Text>().text;
if (_redeemCode.Length != 10)
{
string networkErrCodeOutput = LocalizationGeneralLogic.GetNetworkErrCodeOutput((object)(Retcode)2);
string networkErrCodeOutput = LocalizationGeneralLogic.GetNetworkErrCodeOutput((object)(GetRedeemCodeInfoRsp.Retcode)2);
Singleton<MainUIManager>.Instance.ShowDialog(new RedeemDialogContext(_redeemCode, RedeemDialogContext.RedeemStatus.Error, null, networkErrCodeOutput));
}
else

View File

@@ -90,7 +90,7 @@ namespace MoleMole
}
else
{
_errorCode = LocalizationGeneralLogic.GetNetworkErrCodeOutput((object)(Retcode)1) + '\n';
_errorCode = LocalizationGeneralLogic.GetNetworkErrCodeOutput((object)(ExchangeRedeemCodeRsp.Retcode)1) + '\n';
_errorCode += LocalizationGeneralLogic.GetNetworkErrCodeOutput(rsp.retcode);
SetupErrorContext();
}
@@ -167,7 +167,7 @@ namespace MoleMole
{
return;
}
RewardData val = _redeemInfo.reward_list[0];
proto.RewardData val = _redeemInfo.reward_list[0];
if (val.exp != 0)
{
RewardUIData playerExpData = RewardUIData.GetPlayerExpData((int)val.exp);

View File

@@ -188,14 +188,14 @@ namespace MoleMole
//IL_0068: Expected I4, but got Unknown
int target_uid = (int)rsp.target_uid;
string desc = string.Empty;
Retcode retcode = rsp.retcode;
int retcode = (int)rsp.retcode;
switch ((int)retcode)
{
case 0:
{
string text = Singleton<FriendModule>.Instance.TryGetPlayerNickName(target_uid);
AddFriendAction action = rsp.action;
switch (action - 1)
switch ((int)action - 1)
{
case 1:
desc = LocalizationGeneralLogic.GetText("Menu_Desc_AgreeFriend", text);

View File

@@ -88,7 +88,7 @@ namespace MoleMole
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_0019: Expected I4, but got Unknown
Retcode retcode = rsp.retcode;
GetPlayerDetailDataRsp.Retcode retcode = rsp.retcode;
switch ((int)retcode)
{
case 0:

View File

@@ -89,7 +89,7 @@ namespace MoleMole
public override void Destroy()
{
base.view.transform.Find("ImageTab").FindChild("Content/RT/3dModel").GetComponent<MonoGammaSettingRenderImage>()
base.view.transform.Find("ImageTab").Find("Content/RT/3dModel").GetComponent<MonoGammaSettingRenderImage>()
.ReleaseRenderTexture();
base.Destroy();
}

View File

@@ -96,7 +96,7 @@ namespace MoleMole
{
return;
}
RewardData val = _signInRewardRsp.reward_list[0];
proto.RewardData val = _signInRewardRsp.reward_list[0];
_missionRewardList.Clear();
if (val.exp != 0)
{

View File

@@ -8,7 +8,7 @@ namespace MoleMole
private void Start()
{
NavMeshAgent component = GetComponent<NavMeshAgent>();
UnityEngine.AI.NavMeshAgent component = GetComponent<UnityEngine.AI.NavMeshAgent>();
component.destination = goal.position;
}

View File

@@ -15,11 +15,11 @@ namespace MoleMole
public TheBaseAccountDelegate()
{
if (_activity == null)
/*if (_activity == null)
{
AndroidJavaClass androidJavaClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
_activity = androidJavaClass.GetStatic<AndroidJavaObject>("currentActivity");
}
}*/
}
public virtual void init(bool debugMode, string callbackClass, string callbackMethod, Function callback)

View File

@@ -40,14 +40,14 @@ namespace MoleMole
public TheOriginalAccountDelegate()
{
if (_delegate == null)
/*if (_delegate == null)
{
_delegate = new AndroidJavaObject("com.miHoYo.originpaydelegate.AlipayDelegate", _activity);
}
if (_delegate_weixin == null)
{
_delegate_weixin = new AndroidJavaObject("com.miHoYo.originpaydelegate.WeixinPayDelegate", _activity, _handler, WEIXIN_PAY_APP_ID);
}
}*/
}
public override void pay(string productID, string productName, float productPrice, string tradeNo, string userID, string notifyUrl, string callbackClass, string callbackMethod, Function callback)
@@ -77,7 +77,7 @@ namespace MoleMole
}
else if (Singleton<ChannelPayModule>.Instance.GetPayMethodId() == ChannelPayModule.PayMethod.WEIXIN_PAY)
{
_delegate_weixin.Call("pay", WEIXIN_PAY_APP_ID, weixinPrepayOrderInfo.partnerID, weixinPrepayOrderInfo.prepayID, WEIXIN_PAY_PACKAGE_VALUE, weixinPrepayOrderInfo.nonceStr, weixinPrepayOrderInfo.timestamp, weixinPrepayOrderInfo.sign);
//_delegate_weixin.Call("pay", WEIXIN_PAY_APP_ID, weixinPrepayOrderInfo.partnerID, weixinPrepayOrderInfo.prepayID, WEIXIN_PAY_PACKAGE_VALUE, weixinPrepayOrderInfo.nonceStr, weixinPrepayOrderInfo.timestamp, weixinPrepayOrderInfo.sign);
}
}
}

View File

@@ -283,7 +283,7 @@ namespace MoleMole
BaseMonoCanvas sceneCanvas = Singleton<MainUIManager>.Instance.SceneCanvas;
if (!(sceneCanvas == null))
{
Transform transform = sceneCanvas.transform.FindChild(scrollUIPath);
Transform transform = sceneCanvas.transform.Find(scrollUIPath);
if (!(transform == null) && transform.gameObject.activeInHierarchy && !(transform.GetComponent<ScrollRect>() == null))
{
MonoGridScroller component = transform.GetComponent<MonoGridScroller>();
@@ -466,7 +466,7 @@ namespace MoleMole
{
return false;
}
Transform transform = sceneCanvas.transform.FindChild(targetUIPath);
Transform transform = sceneCanvas.transform.Find(targetUIPath);
if (transform == null)
{
return false;
@@ -821,7 +821,7 @@ namespace MoleMole
if (targetUIPath != string.Empty)
{
BaseMonoCanvas sceneCanvas = Singleton<MainUIManager>.Instance.SceneCanvas;
highlightTrans = sceneCanvas.transform.FindChild(targetUIPath);
highlightTrans = sceneCanvas.transform.Find(targetUIPath);
}
bool disableMask = false;
if (tutorialStepData.stepType == 2)

View File

@@ -175,7 +175,7 @@ namespace MoleMole
uIAvatarTattooByID2.gameObject.SetActive(item.Value != null);
if (item.Value != null)
{
Material material = uIAvatarTattooByID2.GetComponent<MeshRenderer>().material;
UnityEngine.Material material = uIAvatarTattooByID2.GetComponent<MeshRenderer>().material;
material.SetTexture("_MainTex", Miscs.LoadResource<Texture>(item.Value.GetTattooPath()));
uIAvatar.StigmataFadeIn(item.Key);
}

View File

@@ -228,7 +228,7 @@ namespace MoleMole
}
AvatarModule instance = Singleton<AvatarModule>.Instance;
IslandVentureDispatchCond condition2 = condition.condition;
switch (condition2 - 1)
switch ((int)condition2 - 1)
{
case 0:
return selectedAvatarList.Contains(condition.para1);
@@ -373,7 +373,7 @@ namespace MoleMole
{
AvatarModule instance = Singleton<AvatarModule>.Instance;
IslandVentureDispatchCond condition2 = condition.condition;
switch (condition2 - 1)
switch ((int)condition2 - 1)
{
case 0:
{

View File

@@ -122,15 +122,15 @@ namespace MoleMole
mainCamera.CopyFrom(cannonCamera);
_weaponObj.transform.SetParent(cannonHolder, false);
ClearTransform(_weaponObj);
AdjustTransform(_weaponObj, cannonHolder.FindChild(BOUNDING_NAME).gameObject);
AdjustTransform(_weaponObj, cannonHolder.Find(BOUNDING_NAME).gameObject);
_weaponObj.transform.SetParent(null);
SetCannonMaterial(_weaponObj);
}
else if (weaponType == WeaponType.Katana)
{
mainCamera.CopyFrom(katanaCamera);
GameObject gameObject2 = _weaponObj.transform.FindChild(LONG_SWORD_NAME).gameObject;
GameObject gameObject3 = _weaponObj.transform.FindChild(SHORT_SWORD_NAME).gameObject;
GameObject gameObject2 = _weaponObj.transform.Find(LONG_SWORD_NAME).gameObject;
GameObject gameObject3 = _weaponObj.transform.Find(SHORT_SWORD_NAME).gameObject;
if (gameObject2 == null || gameObject3 == null)
{
return "Sword missing";
@@ -139,14 +139,14 @@ namespace MoleMole
ClearTransform(gameObject2);
if (wholeForKatana)
{
AdjustTransform(gameObject2, longSwordHolder.FindChild(BOUNDING_NAME).gameObject);
AdjustTransform(gameObject2, longSwordHolder.Find(BOUNDING_NAME).gameObject);
}
gameObject2.transform.SetParent(_weaponObj.transform);
gameObject3.transform.SetParent(shortSwordHolder, false);
ClearTransform(gameObject3);
if (wholeForKatana)
{
AdjustTransform(gameObject3, longSwordHolder.FindChild(BOUNDING_NAME).gameObject);
AdjustTransform(gameObject3, longSwordHolder.Find(BOUNDING_NAME).gameObject);
}
gameObject3.transform.SetParent(_weaponObj.transform);
SetKatanaMaterial(_weaponObj);
@@ -154,19 +154,19 @@ namespace MoleMole
else
{
mainCamera.CopyFrom(pistolCamera);
GameObject gameObject4 = _weaponObj.transform.FindChild(LEFT_PISTOL_NAME).gameObject;
GameObject gameObject5 = _weaponObj.transform.FindChild(RIGHT_PISTOL_NAME).gameObject;
GameObject gameObject4 = _weaponObj.transform.Find(LEFT_PISTOL_NAME).gameObject;
GameObject gameObject5 = _weaponObj.transform.Find(RIGHT_PISTOL_NAME).gameObject;
if (gameObject4 == null || gameObject5 == null)
{
return "Missing pistol";
}
gameObject4.transform.SetParent(leftPistolHolder, false);
ClearTransform(gameObject4);
AdjustTransform(gameObject4, leftPistolHolder.FindChild(BOUNDING_NAME).gameObject);
AdjustTransform(gameObject4, leftPistolHolder.Find(BOUNDING_NAME).gameObject);
gameObject4.transform.SetParent(_weaponObj.transform);
gameObject5.transform.SetParent(rightPistolHolder, false);
ClearTransform(gameObject5);
AdjustTransform(gameObject5, rightPistolHolder.FindChild(BOUNDING_NAME).gameObject);
AdjustTransform(gameObject5, rightPistolHolder.Find(BOUNDING_NAME).gameObject);
gameObject5.transform.SetParent(_weaponObj.transform);
SetPistolMaterial(_weaponObj);
}
@@ -186,8 +186,8 @@ namespace MoleMole
}
else if (weaponType == WeaponType.Katana)
{
GameObject gameObject = _weaponObj.transform.FindChild(LONG_SWORD_NAME).gameObject;
GameObject gameObject2 = _weaponObj.transform.FindChild(SHORT_SWORD_NAME).gameObject;
GameObject gameObject = _weaponObj.transform.Find(LONG_SWORD_NAME).gameObject;
GameObject gameObject2 = _weaponObj.transform.Find(SHORT_SWORD_NAME).gameObject;
if (gameObject == null || gameObject2 == null)
{
return "Sword missing";
@@ -203,8 +203,8 @@ namespace MoleMole
}
else
{
GameObject gameObject3 = _weaponObj.transform.FindChild(LEFT_PISTOL_NAME).gameObject;
GameObject gameObject4 = _weaponObj.transform.FindChild(RIGHT_PISTOL_NAME).gameObject;
GameObject gameObject3 = _weaponObj.transform.Find(LEFT_PISTOL_NAME).gameObject;
GameObject gameObject4 = _weaponObj.transform.Find(RIGHT_PISTOL_NAME).gameObject;
if (gameObject3 == null || gameObject4 == null)
{
return "Missing pistol";
@@ -275,7 +275,7 @@ namespace MoleMole
ClearTransform(obj);
if (needAdjust)
{
AdjustTransform(obj, holder.FindChild(BOUNDING_NAME).gameObject);
AdjustTransform(obj, holder.Find(BOUNDING_NAME).gameObject);
}
}