public Info(GameObject _node, SerializeValueList _values, TabMaker.Element _element) { this.node = _node; this.values = _values; this.element = _element; this.tgl = (Toggle)this.node.GetComponent <Toggle>(); this.ev = (ButtonEvent)this.node.GetComponent <ButtonEvent>(); }
public void Create(string[] keys, Action <GameObject, SerializeValueList> callback) { if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.m_TabNode, (UnityEngine.Object)null)) { Debug.LogException(new Exception("Failed TabNode Null > " + ((UnityEngine.Object)((Component)this).get_gameObject()).get_name())); } else { this.Destroy(); for (int index = 0; index < keys.Length; ++index) { TabMaker.Element element = this.GetElement(keys[index]); if (element == null) { Debug.LogError((object)("Tab素材見つかりません > " + (keys[index] == null ? "null" : keys[index]))); } else { GameObject _node = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)((Component)this.m_TabNode).get_gameObject()); SerializeValueBehaviour component = (SerializeValueBehaviour)_node.GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { Image uiImage1 = component.list.GetUIImage("off"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiImage1, (UnityEngine.Object)null)) { if (index == 0 || index == keys.Length - 1) { uiImage1.set_sprite(!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_CornerSpriteOff, (UnityEngine.Object)null) ? this.m_SpriteOff : this.m_CornerSpriteOff); if (index == keys.Length - 1) { Vector3 localScale = ((Component)uiImage1).get_transform().get_localScale(); // ISSUE: explicit reference operation // ISSUE: variable of a reference type Vector3& local = @localScale; // ISSUE: explicit reference operation // ISSUE: explicit reference operation (^ local).x = (__Null)((^ local).x * -1.0); ((Component)uiImage1).get_transform().set_localScale(localScale); } } else { uiImage1.set_sprite(this.m_SpriteOff); } } Image uiImage2 = component.list.GetUIImage("on"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiImage2, (UnityEngine.Object)null)) { if (index == 0 || index == keys.Length - 1) { uiImage2.set_sprite(!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_CornerSpriteOn, (UnityEngine.Object)null) ? this.m_SpriteOn : this.m_CornerSpriteOn); if (index == keys.Length - 1) { Vector3 localScale = ((Component)uiImage2).get_transform().get_localScale(); // ISSUE: explicit reference operation // ISSUE: variable of a reference type Vector3& local = @localScale; // ISSUE: explicit reference operation // ISSUE: explicit reference operation (^ local).x = (__Null)((^ local).x * -1.0); ((Component)uiImage2).get_transform().set_localScale(localScale); } } else { uiImage2.set_sprite(this.m_SpriteOn); } } Image uiImage3 = component.list.GetUIImage("icon"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiImage3, (UnityEngine.Object)null)) { if (UnityEngine.Object.op_Inequality((UnityEngine.Object)element.icon, (UnityEngine.Object)null)) { uiImage3.set_sprite(element.icon); ((Component)uiImage3).get_gameObject().SetActive(true); } else { ((Component)uiImage3).get_gameObject().SetActive(false); } } Text uiLabel = component.list.GetUILabel("text"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiLabel, (UnityEngine.Object)null)) { if (!string.IsNullOrEmpty(element.text)) { if (element.text.IndexOf("sys.") == -1) { uiLabel.set_text(element.text); } else { uiLabel.set_text(LocalizedText.Get(element.text)); } ((Component)uiLabel).get_gameObject().SetActive(true); } else { ((Component)uiLabel).get_gameObject().SetActive(false); } } component.list.AddObject("element", (object)element); if (callback != null) { callback(_node, component.list); } ((UnityEngine.Object)_node).set_name(element.key); _node.get_transform().SetParent(((Component)this).get_gameObject().get_transform(), false); _node.SetActive(true); this.m_InfoList.Add(new TabMaker.Info(_node, component.list, element)); } } } } }