Showing the changes to interface/src/scripting/SelectionScriptingInterface.cpp (1 of 58 files). Show all
Unified · Split
| @@ -71,6 +71,24 @@ bool SelectionScriptingInterface::removeFromSelectedItemsList(const QString& lis · 70 unmodified lines | |||
| 71 | return false; | 71 | return false; |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | bool SelectionScriptingInterface::clearSelectedItemsList(const QString& listName) { | ||
| 75 | _selectedItemsListMap.insert(listName, GameplayObjects()); | ||
| 76 | emit selectedItemsListChanged(listName); | ||
| 77 | return true; | ||
| 78 | } | ||
| 79 | |||
| 80 | bool SelectionScriptingInterface::enableListHighlight(const QString& listName, const QVariantMap& highlightStyle) { | ||
| 81 | return true; | ||
| 82 | } | ||
| 83 | |||
| 84 | bool SelectionScriptingInterface::disableListHighlight(const QString& listName) { | ||
| 85 | return true; | ||
| 86 | } | ||
| 87 | |||
| 88 | QVariantMap SelectionScriptingInterface::getListHighlightStyle(const QString& listName) const { | ||
| 89 | return QVariantMap(); | ||
| 90 | } | ||
| 91 | |||
| 74 | template <class T> bool SelectionScriptingInterface::addToGameplayObjects(const QString& listName, T idToAdd) { | 92 | template <class T> bool SelectionScriptingInterface::addToGameplayObjects(const QString& listName, T idToAdd) { |
| 75 | GameplayObjects currentList = _selectedItemsListMap.value(listName); | 93 | GameplayObjects currentList = _selectedItemsListMap.value(listName); |
| 76 | currentList.addToGameplayObjects(idToAdd); | 94 | currentList.addToGameplayObjects(idToAdd); |