28 || value.GameWidget !=
this) {
29 throw new InvalidOperationException(
"Invalid camera.");
61 modLoader.ManageCameras(
this);
67 foreach (KeyValuePair<string, int> item
in list) {
68 string name = item.Key;
69 int value = item.Value;
79 T val = (T)
m_cameras.FirstOrDefault(c => c is T);
84 throw new InvalidOperationException($
"Camera with type \"{typeof(T).Name}\" not found.");
93 throw new InvalidOperationException($
"Camera with type \"{type.Name}\" not found.");
105 if (
m_isCameraEnable.TryGetValue(result, out Func<GameWidget, bool> func)) {
106 isEnable = func?.Invoke(
this) ??
true;
117 if (camera ==
null) {
121 if (isEnable !=
null) {
128 return Target.Entity == entity;
148 WidgetsHierarchyInput.UseSoftMouseCursor =
true;
151 WidgetsHierarchyInput.UseSoftMouseCursor =
false;
169 widgetInputDevice |= allInputDevice;
172 if (
PlayerData.SubsystemPlayers.PlayersData.Count > 0
static object Get(Type type, string name)
static Dictionary< string, int > CombinedCameraManageSettings
SubsystemGameWidgets SubsystemGameWidgets
WidgetInputDevice InputDevice
static ReadOnlyList< WidgetInputDevice > AllInputDevices
static void SetCameraManageSetting(string keyName, int value)
仅用于修改现有相机配置,添加相机配置请使用ModLoader.GetCameraList
static void HookAction(string HookName, Func< ModLoader, bool > action)
执行Hook