源战役客户端
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

66 rader
2.7 KiB

4 veckor sedan
  1. using UnityEngine;
  2. namespace U3DExtends
  3. {
  4. //功能和快捷键的配置
  5. public static class Configure
  6. {
  7. //是否开启场景中的右键菜单
  8. public static bool IsShowSceneMenu = true;
  9. //选中图片节点再选图片时,即帮节点赋上该图
  10. public static bool IsEnableFastSelectImage = false;
  11. //选中图片节点再选图片时,帮节点赋上该图时自动设为原图大小
  12. public static bool IsAutoSizeOnFastSelectImg = false;
  13. //拉UI prefab或者图片入scene界面时帮它找到鼠标下的Canvas并挂在其上,若鼠标下没有画布就创建一个
  14. public static bool IsEnableDragUIToScene = true;
  15. //是否开启用箭头按键移动UI节点
  16. public static bool IsMoveNodeByArrowKey = true;
  17. //保存界面时是否需要显示保存成功的提示框
  18. public static bool IsShowDialogWhenSaveLayout = true;
  19. //结束游戏运行时是否重新加载运行期间修改过的界面
  20. public static bool ReloadLayoutOnExitGame = true;
  21. //一添加参考图就打开选择图片框
  22. public static bool OpenSelectPicDialogWhenAddDecorate = true;
  23. //此路径可以为空,设置后首次导入本插件时就会加载该目录下的所有prefab
  24. //public const string PrefabWinFirstSearchPath = "Assets/LuaFramework/AssetBundleRes/ui/uiComponent/prefab";
  25. public const string PrefabWinFirstSearchPath = "";
  26. //快捷键配置 菜单项快捷键:%#&1 代表的就是:Ctrl + Shift + Alt + 1
  27. public static class ShortCut
  28. {
  29. //复制选中节点全名的字符串到系统剪切板
  30. public const string CopyNodesName = "#c";
  31. public const string CopyNodesComponentName = "&#c";
  32. }
  33. //所有编辑界面的Canvas都放到此节点上,可定制节点名
  34. public static string UITestNodeName = "UITestNode";
  35. public static string UITestParentNodeName = "root";
  36. public static Vector3 UITestNodePos = new Vector3(150, 15, 500);
  37. public static Vector2 UITestNodeSize = new Vector2(4, 4);
  38. public const string FolderName = "UGUI-Editor";
  39. public static string ResAssetsPath = Application.dataPath + "/" + FolderName + "/Res";
  40. static string projectUUID = string.Empty;
  41. public static string ProjectUUID
  42. {
  43. get
  44. {
  45. #if UNITY_EDITOR
  46. if (projectUUID == string.Empty)
  47. {
  48. projectUUID = UIEditorHelper.GenMD5String(Application.dataPath);
  49. }
  50. #endif
  51. return projectUUID;
  52. }
  53. }
  54. }
  55. }