예제 #1
0
파일: WETools.cs 프로젝트: tarsupin/Nexus
 public static void ClearWorldTempTool()
 {
     if (WETools.WETempTool != null)
     {
         WETools.WETempTool = null;
     }
 }
예제 #2
0
파일: WETools.cs 프로젝트: tarsupin/Nexus
        public static void SetWorldTempTool(WEFuncTool tool)
        {
            WETools.WETempTool = tool;

            // Update Helper Text (if applicable)
            WETools.UpdateHelperText();
        }
예제 #3
0
파일: WETools.cs 프로젝트: tarsupin/Nexus
        public static WEFuncTool WETempTool;                    // The highest priority tool; runs because the user is forcing a temporary tool to activate.

        public static void SetWorldTileTool(WETileTool tool, byte index = 0)
        {
            WETools.WETileTool = tool;
            WETools.WEFuncTool = null;
            WETools.WETempTool = null;

            WE_UI.curWESlotGroup = WETools.WETileTool.slotGroup;

            // Assign Index and SubIndex to WorldTileTool (if applicable)
            WETools.WETileTool.SetIndex(index);

            // Update Helper Text (if applicable)
            WETools.UpdateHelperText();
        }