< Summary

Class:SmartItemTextParameter
Assembly:BuilderInWorldEntityInformation
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/BuilderMode/EntityInformation/SmartItems/Parameters/SmartItemTextParameter.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:25
Line coverage:0% (0 of 7)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Start()0%2100%
SetInfo()0%2100%
OnValueChange(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/BuilderMode/EntityInformation/SmartItems/Parameters/SmartItemTextParameter.cs

#LineLine coverage
 1using DCL.Components;
 2using System.Collections;
 3using System.Collections.Generic;
 4using TMPro;
 5using UnityEngine;
 6
 7public class SmartItemTextParameter : SmartItemUIParameterAdapter
 8{
 9    public TMP_InputField textParameterInputField;
 10
 011    private void Start() { textParameterInputField.onEndEdit.AddListener(OnValueChange); }
 12
 13    public override void SetInfo()
 14    {
 015        base.SetInfo();
 16
 017        textParameterInputField.gameObject.SetActive(true);
 18
 019        textParameterInputField.contentType = TMP_InputField.ContentType.Standard;
 20
 021        textParameterInputField.SetTextWithoutNotify((string)GetParameterValue());
 022    }
 23
 024    public void OnValueChange(string text) { SetParameterValue(text); }
 25}