8000 InputFieldCell · piti6/UnityDebugSheet@22987eb · GitHub
[go: up one dir, main page]

Skip to content

Commit 22987eb

Browse files
committed
InputFieldCell
1 parent 93e5a38 commit 22987eb

File tree

10 files changed

+1057
-4
lines changed
  • UnityDebugSheet/Runtime/Core
  • 10 files changed

    +1057
    -4
    lines changed

    Assets/Demo/02_DefaultCells/Scenes/DefaultCellsDemo.unity

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -1261,8 +1261,8 @@ MonoBehaviour:
    12611261
    m_TargetGraphic: {fileID: 407859272}
    12621262
    m_HandleRect: {fileID: 407859271}
    12631263
    m_Direction: 2
    1264-
    m_Value: 0
    1265-
    m_Size: 1
    1264+
    m_Value: 0.99999475
    1265+
    m_Size: 0.8024207
    12661266
    m_NumberOfSteps: 0
    12671267
    m_OnValueChanged:
    12681268
    m_PersistentCalls:
    @@ -1888,7 +1888,7 @@ PrefabInstance:
    18881888
    objectReference: {fileID: 0}
    18891889
    - target: {fileID: 478013941774560328, guid: bb8b80e814ae04f3ab9eb27737cf302c, type: 3}
    18901890
    propertyPath: m_AnchoredPosition.x
    1891-
    value: 60
    1891+
    value: 139.71014
    18921892
    objectReference: {fileID: 0}
    18931893
    - target: {fileID: 478013941774560328, guid: bb8b80e814ae04f3ab9eb27737cf302c, type: 3}
    18941894
    propertyPath: m_AnchoredPosition.y

    Assets/Demo/02_DefaultCells/Scripts/DefaultCellsDemoDebugPage.cs

    Lines changed: 9 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -8,6 +8,7 @@
    88
    using UnityDebugSheet.Runtime.Core.Scripts.DefaultImpl.CellParts;
    99
    using UnityDebugSheet.Runtime.Core.Scripts.DefaultImpl.Cells;
    1010
    using UnityEngine;
    11+
    using UnityEngine.UI;
    1112
    #if UDS_USE_ASYNC_METHODS
    1213
    using System.Threading.Tasks;
    1314
    #endif
    @@ -92,6 +93,14 @@ public void AddDefaultCells()
    9293
    buttonData6.ShowArrow = true;
    9394
    AddButton(buttonData6);
    9495

    96+
    // Input Field
    97+
    var inputFieldData = new InputFieldCellModel(true);
    98+
    inputFieldData.CellTexts.Text = "Input Field";
    99+
    inputFieldData.Placeholder = "Input Here";
    100+
    inputFieldData.ContentType = InputField.ContentType.IntegerNumber;
    101+
    inputFieldData.ValueChanged += x => Debug.Log($"Input Field Value Changed: {x}");
    102+
    AddInputField(inputFieldData);
    103+
    95104
    // Switch
    96105
    var toggleData1 = new SwitchCellModel(false);
    97106
    toggleData1.CellTexts.Text = "Switch";

    Assets/UnityDebugSheet/Runtime/Core/Prefabs/DebugPage.prefab

    Lines changed: 1 addition & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -155,6 +155,7 @@ MonoBehaviour:
    155155
    - {fileID: 6987229120325524302, guid: 845de00a33eb44cec9e10a25ddad8642, type: 3}
    156156
    - {fileID: 9014153245102330141, guid: 25ca596e593364132b972721560d9519, type: 3}
    157157
    - {fileID: 5731899511101918073, guid: ba1c1bbcfbc3580488c4cb597381dfa8, type: 3}
    158+
    - {fileID: 8598406011095324281, guid: 0fc500253c2fd4dc19357970d8dc4e34, type: 3}
    158159
    - {fileID: 8598406011095324281, guid: 55608a8e2204c443097fbd1fd61957a4, type: 3}
    159160
    - {fileID: 1081749881188758106, guid: ee96c61c749e14f8dae1b8489f6742ce, type: 3}
    160161
    - {fileID: 1497897286729480508, guid: e8e4462ec0a88428da95256b1b1a05f2, type: 3}

    0 commit comments

    Comments
     (0)
    0