Пример #1
0
    public void SetContent(SmartItemActionEvent actionEvent)
    {
        this.actionEvent = actionEvent;
        filteredList     = BuilderInWorldUtils.FilterEntitiesBySmartItemComponentAndActions(actionEvent.entityList);

        GenerateEntityDropdownContent();
        SelectedEntity(0);
    }
    public void SetContent(SmartItemActionEvent actionEvent)
    {
        this.actionEvent = actionEvent;
        filteredList     = BuilderInWorldUtils.FilterEntitiesBySmartItemComponentAndActions(actionEvent.entityList);

        GenerateEntityDropdownContent();
        foreach (DCLBuilderInWorldEntity entity in filteredList)
        {
            GetThumbnail(entity);
        }
        SelectedEntity(entityDropDown.value);
    }
Пример #3
0
    public void AddEventAction(SmartItemActionable action)
    {
        if (alreadyFilterList.Count <= 0)
        {
            return;
        }

        SmartItemActionEvent actionEvent = new SmartItemActionEvent();

        actionEvent.entityList          = alreadyFilterList;
        actionEvent.smartItemActionable = action;

        if (currentValues.ContainsKey(action.actionableId))
        {
            actionEvent.values = (Dictionary <object, object>)currentValues[action.actionableId];
        }
        else
        {
            actionEvent.values = new Dictionary <object, object>();
        }

        actionsListView.AddActionEventAdapter(actionEvent);
    }