- LocalizationManager: 新增翻译表(SetFormatted/SetDuration/LocalizeOperateMsg) - LoginPanel: InputField placeholder本地化、字体颜色保持 - HistoryPanel: 用时数据本地化、placeholder本地化 - RecordDetailPanel: 操作详情消息本地化(LanguageChanged重建) - AppraiseWindowBase: 评价等级本地化、操作消息重建 - EditorAppraiser: 所有评估消息改用InjectOperateMsgLocalized - StudentOperateRecorder: 新增InjectOperateMsgLocalized方法 - LocalizationLanguageTestBar: 单例模式、ScreenSpaceOverlay筛选 - 字体切换时保留颜色和verticalOverflow
54 lines
2.2 KiB
Plaintext
54 lines
2.2 KiB
Plaintext
namespace VRTK.UnityEventHelper
|
|
{
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using System;
|
|
|
|
[AddComponentMenu("VRTK/Scripts/Utilities/Unity Events/VRTK_DestinationMarker_UnityEvents")]
|
|
public sealed class VRTK_DestinationMarker_UnityEvents : VRTK_UnityEvents<VRTK_DestinationMarker>
|
|
{
|
|
[Serializable]
|
|
public sealed class DestinationMarkerEvent : UnityEvent<object, DestinationMarkerEventArgs> { }
|
|
|
|
public DestinationMarkerEvent OnDestinationMarkerEnter = new DestinationMarkerEvent();
|
|
public DestinationMarkerEvent OnDestinationMarkerExit = new DestinationMarkerEvent();
|
|
public DestinationMarkerEvent OnDestinationMarkerHover = new DestinationMarkerEvent();
|
|
public DestinationMarkerEvent OnDestinationMarkerSet = new DestinationMarkerEvent();
|
|
|
|
protected override void AddListeners(VRTK_DestinationMarker component)
|
|
{
|
|
component.DestinationMarkerEnter += DestinationMarkerEnter;
|
|
component.DestinationMarkerExit += DestinationMarkerExit;
|
|
component.DestinationMarkerHover += DestinationMarkerHover;
|
|
component.DestinationMarkerSet += DestinationMarkerSet;
|
|
}
|
|
|
|
protected override void RemoveListeners(VRTK_DestinationMarker component)
|
|
{
|
|
component.DestinationMarkerEnter -= DestinationMarkerEnter;
|
|
component.DestinationMarkerExit -= DestinationMarkerExit;
|
|
component.DestinationMarkerHover -= DestinationMarkerHover;
|
|
component.DestinationMarkerSet -= DestinationMarkerSet;
|
|
}
|
|
|
|
private void DestinationMarkerEnter(object o, DestinationMarkerEventArgs e)
|
|
{
|
|
OnDestinationMarkerEnter.Invoke(o, e);
|
|
}
|
|
|
|
private void DestinationMarkerExit(object o, DestinationMarkerEventArgs e)
|
|
{
|
|
OnDestinationMarkerExit.Invoke(o, e);
|
|
}
|
|
|
|
private void DestinationMarkerHover(object o, DestinationMarkerEventArgs e)
|
|
{
|
|
OnDestinationMarkerHover.Invoke(o, e);
|
|
}
|
|
|
|
private void DestinationMarkerSet(object o, DestinationMarkerEventArgs e)
|
|
{
|
|
OnDestinationMarkerSet.Invoke(o, e);
|
|
}
|
|
}
|
|
} |