ui: GraphView can set active tokenId on node clicked
By now the graph displays the active node, without neighbours or anything, and clicking a node sets the active token id to the clicked nodes id. fortune cookie message = Be prepared to accept an exciting opportunity in the future.
This commit is contained in:
@@ -13,12 +13,13 @@ public:
|
||||
Vector2();
|
||||
Vector2(const T& x, const T& y);
|
||||
Vector2(const VectorBase<T, 2>& vector);
|
||||
Vector2(const Vector2<T>& vector);
|
||||
virtual ~Vector2();
|
||||
|
||||
T getValue(const unsigned int index) const;
|
||||
void setValue(const unsigned int index, const T& value);
|
||||
|
||||
T& operator[](const unsigned int index);
|
||||
T operator[](const unsigned int index);
|
||||
|
||||
Property<T> x;
|
||||
Property<T> y;
|
||||
@@ -62,6 +63,14 @@ Vector2<T>::Vector2(const VectorBase<T, 2>& vector)
|
||||
{
|
||||
}
|
||||
|
||||
template<class T>
|
||||
Vector2<T>::Vector2(const Vector2<T>& vector)
|
||||
: VectorBase<T, 2>(vector)
|
||||
, x(&VectorBase<T, 2>::m_values[m_xIndex])
|
||||
, y(&VectorBase<T, 2>::m_values[m_yIndex])
|
||||
{
|
||||
}
|
||||
|
||||
template<class T>
|
||||
Vector2<T>::~Vector2()
|
||||
{
|
||||
@@ -95,7 +104,7 @@ void Vector2<T>::setValue(const unsigned int index, const T& value)
|
||||
}
|
||||
|
||||
template<class T>
|
||||
T& Vector2<T>::operator[](const unsigned int index)
|
||||
T Vector2<T>::operator[](const unsigned int index)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user