Пример #1
0
        public void Initialize()
        {
            toolMod = EditorService.Instance.QueryModule<FormToolBoxModule>();
            ToolItem item = new ToolItem();
            // item.TurnOn = onTurnOn;
            // item.TurnOff = onTurnOff;
            item.Name = "创建";
            item.Image = Resources._22_Create;
            toolMod.RegistToolItem(item);

            contextCtrl = new CreateContextControl();

            created = false;
            mouseX = 0;
            mouseY = 0;
            curPicPath = "";
            picture = null;
            makeMode = 0;
            isHalfAlpha = false;
        }
Пример #2
0
 public void RegistToolItem(ToolItem item)
 {
     ToolItemList.Add(item);
     if (ToolListChanged != null)
         ToolListChanged(ToolItemList);
 }