Esempio n. 1
0
        protected override void Awake()
        {
            Mod.Logger.Debug($"Awake tool");
            base.Awake();

            Instance = this;
            Mod.Logger.Debug($"Tool Created");

            ToolModes = new Dictionary <ToolModeType, BaseToolMode>()
            {
                { ToolModeType.Select, Instance.CreateToolMode <SelectToolMode>() },
                { ToolModeType.MakeLine, Instance.CreateToolMode <MakeLineToolMode>() },
                { ToolModeType.MakeCrosswalk, Instance.CreateToolMode <MakeCrosswalkToolMode>() },
                { ToolModeType.MakeFiller, Instance.CreateToolMode <MakeFillerToolMode>() },
                { ToolModeType.DragPoint, Instance.CreateToolMode <DragPointToolMode>() },
                { ToolModeType.PasteEntersOrder, Instance.CreateToolMode <PasteEntersOrderToolMode>() },
                { ToolModeType.EditEntersOrder, Instance.CreateToolMode <EditEntersOrderToolMode>() },
                { ToolModeType.ApplyIntersectionTemplateOrder, Instance.CreateToolMode <ApplyIntersectionTemplateOrderToolMode>() },
                { ToolModeType.PointsOrder, Instance.CreateToolMode <PointsOrderToolMode>() },
            };

            NodeMarkupPanel.CreatePanel();

            enabled = false;
        }
Esempio n. 2
0
        protected override void Awake()
        {
            Logger.LogDebug($"{nameof(NodeMarkupTool)}.{nameof(Awake)}");
            base.Awake();

            NodeMarkupButton.CreateButton();
            NodeMarkupPanel.CreatePanel();

            DisableTool();
        }