• S sverchok
  • Информация о проекте
    • Информация о проекте
    • Активность
    • Метки
    • Участники
  • Репозиторий
    • Репозиторий
    • Файлы
    • Коммиты
    • Ветки
    • Теги
    • Участники
    • Диаграмма
    • Сравнение
  • Задачи 148
    • Задачи 148
    • Список
    • Доски
    • Спринты
  • Запросы на слияние 21
    • Запросы на слияние 21
  • CI/CD
    • CI/CD
    • Конвейеры
    • Задания
    • Расписания
  • Развертывания
    • Развертывания
    • Окружения
    • Релизы
  • Пакеты и реестры
    • Пакеты и реестры
    • Реестр пакетов
    • Реестр контейнеров
  • Мониторинг
    • Мониторинг
    • Инциденты
  • Аналитика
    • Аналитика
    • Поток ценности
    • CI/CD
    • Репозиторий
  • Wiki
    • Wiki
  • Сниппеты
    • Сниппеты
  • Активность
  • Диаграмма
  • Создать новую задачу
  • Задания
  • Коммиты
  • Доски с задачами
Свернуть панель
  • nikitronn
  • sverchok
  • Запросы на слияние
  • !2530

Litemenu contexthop

  • Ревью изменений

  • Скачать
  • Почтовые патчи
  • Простое отличие
Слиты nikitronn запросил слияние litemenu_contexthop в b28_prelease_master Сен 10, 2019
  • Обзор 7
  • Коммиты 23
  • Конвейеры 0
  • Изменения 5

Created by: zeffii

This demonstrates the slightly obscure way to dynamically populate menus, there are pros and cons to this approach. I will focus on the positive.. this lets us totally hot-evaluate a new menu and submenus.

to test, switch to this branch

  1. hit f3 and type pop....ulate , it will show the populate lite menu operator behind the scenes this populates a CollectionProperty with items, all of which contain a StringProperty called item.heading, these headings are used as a submenu lookup.
  2. hit ctrl+shift+] (right bracket) this will display a menu, with submenus (that are just layout.labels for now.

the cons of this approach are, the menu must be populated once per active node_tree. I suspect this could be done in the builtin nodetree update function...

Ответственный
Назначить
Проверяющие
Запросить ревью
Оценка трудозатрат
Исходная ветка: litemenu_contexthop