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); }
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); }