버그 수정 중
This commit is contained in:
@@ -145,3 +145,12 @@
|
|||||||
.utk-boundsfield--disabled .unity-float-field > .unity-base-text-field__input:focus {
|
.utk-boundsfield--disabled .unity-float-field > .unity-base-text-field__input:focus {
|
||||||
border-color: var(--color-border);
|
border-color: var(--color-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ===================================
|
||||||
|
Read Only
|
||||||
|
=================================== */
|
||||||
|
|
||||||
|
.utk-boundsfield--readonly > .unity-base-text-field__input {
|
||||||
|
background-color: var(--color-btn-disabled);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,3 +100,11 @@
|
|||||||
.utk-double-field--disabled > .unity-label {
|
.utk-double-field--disabled > .unity-label {
|
||||||
color: var(--color-text-disabled);
|
color: var(--color-text-disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ===================================
|
||||||
|
Read Only
|
||||||
|
=================================== */
|
||||||
|
|
||||||
|
.utk-double-field--readonly > .unity-base-text-field__input {
|
||||||
|
background-color: var(--color-btn-disabled);
|
||||||
|
}
|
||||||
|
|||||||
@@ -100,3 +100,13 @@
|
|||||||
.utk-float-field--disabled > .unity-label {
|
.utk-float-field--disabled > .unity-label {
|
||||||
color: var(--color-text-disabled);
|
color: var(--color-text-disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ===================================
|
||||||
|
Read Only
|
||||||
|
=================================== */
|
||||||
|
|
||||||
|
.utk-float-field--readonly > .unity-base-text-field__input {
|
||||||
|
background-color: var(--color-btn-disabled);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,3 +100,12 @@
|
|||||||
.utk-integer-field--disabled > .unity-label {
|
.utk-integer-field--disabled > .unity-label {
|
||||||
color: var(--color-text-disabled);
|
color: var(--color-text-disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ===================================
|
||||||
|
Read Only
|
||||||
|
=================================== */
|
||||||
|
|
||||||
|
.utk-integer-field--readonly > .unity-base-text-field__input {
|
||||||
|
background-color: var(--color-btn-disabled);
|
||||||
|
}
|
||||||
@@ -99,3 +99,12 @@
|
|||||||
.utk-long-field--disabled > .unity-label {
|
.utk-long-field--disabled > .unity-label {
|
||||||
color: var(--color-text-disabled);
|
color: var(--color-text-disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ===================================
|
||||||
|
Read Only
|
||||||
|
=================================== */
|
||||||
|
|
||||||
|
.utk-long-field--readonly > .unity-base-text-field__input {
|
||||||
|
background-color: var(--color-btn-disabled);
|
||||||
|
}
|
||||||
@@ -136,3 +136,12 @@
|
|||||||
.utk-rectfield--disabled .unity-float-field > .unity-base-text-field__input:focus {
|
.utk-rectfield--disabled .unity-float-field > .unity-base-text-field__input:focus {
|
||||||
border-color: var(--color-border);
|
border-color: var(--color-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ===================================
|
||||||
|
Read Only
|
||||||
|
=================================== */
|
||||||
|
|
||||||
|
.utk-rectfield--readonly > .unity-base-text-field__input {
|
||||||
|
background-color: var(--color-btn-disabled);
|
||||||
|
}
|
||||||
|
|||||||
@@ -142,3 +142,12 @@
|
|||||||
.utk-vector2-field--disabled > .unity-label {
|
.utk-vector2-field--disabled > .unity-label {
|
||||||
color: var(--color-text-disabled);
|
color: var(--color-text-disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ===================================
|
||||||
|
Read Only
|
||||||
|
=================================== */
|
||||||
|
|
||||||
|
.utk-vector2-field--readonly > .unity-base-text-field__input {
|
||||||
|
background-color: var(--color-btn-disabled);
|
||||||
|
}
|
||||||
|
|||||||
@@ -137,3 +137,12 @@
|
|||||||
.utk-vector3-field--disabled > .unity-label {
|
.utk-vector3-field--disabled > .unity-label {
|
||||||
color: var(--color-text-disabled);
|
color: var(--color-text-disabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ===================================
|
||||||
|
Read Only
|
||||||
|
=================================== */
|
||||||
|
|
||||||
|
.utk-vector3-field--readonly > .unity-base-text-field__input {
|
||||||
|
background-color: var(--color-btn-disabled);
|
||||||
|
}
|
||||||
|
|||||||
@@ -123,3 +123,12 @@
|
|||||||
.utk-vector4field--disabled .unity-float-field > .unity-base-text-field__input:focus {
|
.utk-vector4field--disabled .unity-float-field > .unity-base-text-field__input:focus {
|
||||||
border-color: var(--color-border);
|
border-color: var(--color-border);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ===================================
|
||||||
|
Read Only
|
||||||
|
=================================== */
|
||||||
|
|
||||||
|
.utk-vector4field--readonly > .unity-base-text-field__input {
|
||||||
|
background-color: var(--color-btn-disabled);
|
||||||
|
}
|
||||||
|
|||||||
@@ -597,6 +597,7 @@ namespace UVC.Sample.UIToolkit
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void UpdateGapVisibility(string gapType)
|
private void UpdateGapVisibility(string gapType)
|
||||||
{
|
{
|
||||||
|
Debug.Log($"Updating gap visibility for type: {gapType}");
|
||||||
_propertyWindow.SetPropertyVisibilityBatch(new (string, bool)[]
|
_propertyWindow.SetPropertyVisibilityBatch(new (string, bool)[]
|
||||||
{
|
{
|
||||||
// 상수
|
// 상수
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ namespace UVC.UIToolkit
|
|||||||
#region Fields
|
#region Fields
|
||||||
private bool _disposed;
|
private bool _disposed;
|
||||||
private bool _isEnabled = true;
|
private bool _isEnabled = true;
|
||||||
private bool _isReadOnly;
|
private bool _isReadOnly = false;
|
||||||
private string _centerLabel = "Center";
|
private string _centerLabel = "Center";
|
||||||
private string _extentsLabel = "Extents";
|
private string _extentsLabel = "Extents";
|
||||||
private string _xLabel = "X";
|
private string _xLabel = "X";
|
||||||
|
|||||||
@@ -139,6 +139,19 @@ namespace UVC.UIToolkit
|
|||||||
EnableInClassList("utk-double-field--disabled", !value);
|
EnableInClassList("utk-double-field--disabled", !value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>읽기 전용</summary>
|
||||||
|
[UxmlAttribute("is-readonly")]
|
||||||
|
public new bool isReadOnly
|
||||||
|
{
|
||||||
|
get => base.isReadOnly;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
base.isReadOnly = value;
|
||||||
|
EnableInClassList("utk-double-field--readonly", value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constructor
|
#region Constructor
|
||||||
|
|||||||
@@ -151,6 +151,17 @@ namespace UVC.UIToolkit
|
|||||||
EnableInClassList("utk-float-field--disabled", !value);
|
EnableInClassList("utk-float-field--disabled", !value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[UxmlAttribute("is-readonly")]
|
||||||
|
public new bool isReadOnly
|
||||||
|
{
|
||||||
|
get => base.isReadOnly;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
base.isReadOnly = value;
|
||||||
|
EnableInClassList("utk-float-field--readonly", value);
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constructor
|
#region Constructor
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ namespace UVC.UIToolkit
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>읽기 전용</summary>
|
/// <summary>읽기 전용</summary>
|
||||||
|
[UxmlAttribute("is-readonly")]
|
||||||
public new bool isReadOnly
|
public new bool isReadOnly
|
||||||
{
|
{
|
||||||
get => base.isReadOnly;
|
get => base.isReadOnly;
|
||||||
|
|||||||
@@ -150,6 +150,17 @@ namespace UVC.UIToolkit
|
|||||||
EnableInClassList("utk-integer-field--disabled", !value);
|
EnableInClassList("utk-integer-field--disabled", !value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[UxmlAttribute("is-readonly")]
|
||||||
|
public new bool isReadOnly
|
||||||
|
{
|
||||||
|
get => base.isReadOnly;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
base.isReadOnly = value;
|
||||||
|
EnableInClassList("utk-integer-field--readonly", value);
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constructor
|
#region Constructor
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ namespace UVC.UIToolkit
|
|||||||
#region Fields
|
#region Fields
|
||||||
private bool _disposed;
|
private bool _disposed;
|
||||||
private bool _isEnabled = true;
|
private bool _isEnabled = true;
|
||||||
private bool _isReadOnly;
|
private bool _isReadOnly = false;
|
||||||
private string _xLabel = "X";
|
private string _xLabel = "X";
|
||||||
private string _yLabel = "Y";
|
private string _yLabel = "Y";
|
||||||
private string _wLabel = "W";
|
private string _wLabel = "W";
|
||||||
|
|||||||
@@ -442,7 +442,7 @@ namespace UVC.UIToolkit
|
|||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Debug.Log($"SetPropertyVisibilityBatch applied {changes.Count()} changes, any visibility changed: {changed}");
|
||||||
if (changed) RefreshTreeViewLight();
|
if (changed) RefreshTreeViewLight();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ namespace UVC.UIToolkit
|
|||||||
{
|
{
|
||||||
var oldValue = _value;
|
var oldValue = _value;
|
||||||
_value = value;
|
_value = value;
|
||||||
NotifyValueChanged(oldValue, value);
|
NotifyValueChanged(oldValue, value, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -197,7 +197,7 @@ namespace UVC.UIToolkit
|
|||||||
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
||||||
{
|
{
|
||||||
_colorPreview?.SetEnabled(!isReadOnly);
|
_colorPreview?.SetEnabled(!isReadOnly);
|
||||||
if (_hexField != null) _hexField.isReadOnly = isReadOnly;
|
//if (_hexField != null) _hexField.isReadOnly = isReadOnly; // 항상 편집 불가
|
||||||
if (_pickerButton != null) _pickerButton.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
if (_pickerButton != null) _pickerButton.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ namespace UVC.UIToolkit
|
|||||||
|
|
||||||
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
||||||
{
|
{
|
||||||
if (_dateField != null) _dateField.isReadOnly = isReadOnly;
|
// if (_dateField != null) _dateField.isReadOnly = isReadOnly;// 항상 편집 불가
|
||||||
if (_pickerButton != null) _pickerButton.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
if (_pickerButton != null) _pickerButton.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@@ -239,8 +239,8 @@ namespace UVC.UIToolkit
|
|||||||
|
|
||||||
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
||||||
{
|
{
|
||||||
if (_startField != null) _startField.isReadOnly = isReadOnly;
|
// if (_startField != null) _startField.isReadOnly = isReadOnly; // 항상 편집 불가
|
||||||
if (_endField != null) _endField.isReadOnly = isReadOnly;
|
// if (_endField != null) _endField.isReadOnly = isReadOnly; // 항상 편집 불가
|
||||||
if (_startPickerBtn != null) _startPickerBtn.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
if (_startPickerBtn != null) _startPickerBtn.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
||||||
if (_endPickerBtn != null) _endPickerBtn.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
if (_endPickerBtn != null) _endPickerBtn.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ namespace UVC.UIToolkit
|
|||||||
|
|
||||||
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
||||||
{
|
{
|
||||||
if (_dateTimeField != null) _dateTimeField.isReadOnly = isReadOnly;
|
// if (_dateTimeField != null) _dateTimeField.isReadOnly = isReadOnly; // 항상 편집 불가
|
||||||
if (_pickerButton != null) _pickerButton.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
if (_pickerButton != null) _pickerButton.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@@ -239,8 +239,8 @@ namespace UVC.UIToolkit
|
|||||||
|
|
||||||
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
protected override void OnReadOnlyStateChanged(bool isReadOnly)
|
||||||
{
|
{
|
||||||
if (_startField != null) _startField.isReadOnly = isReadOnly;
|
// if (_startField != null) _startField.isReadOnly = isReadOnly;// 항상 편집 불가
|
||||||
if (_endField != null) _endField.isReadOnly = isReadOnly;
|
// if (_endField != null) _endField.isReadOnly = isReadOnly;// 항상 편집 불가
|
||||||
if (_startPickerBtn != null) _startPickerBtn.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
if (_startPickerBtn != null) _startPickerBtn.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
||||||
if (_endPickerBtn != null) _endPickerBtn.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
if (_endPickerBtn != null) _endPickerBtn.style.display = isReadOnly ? DisplayStyle.None : DisplayStyle.Flex;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user