It is really nice, but you forgot to add to WDColor the method #asWDColor.
Strange, it is defined in Woden-Core. Do you see it?
By the way are you planning to add menu like it was in roassal el@(RTMenuActivable new action: #inspect; item: 'browse class' action: [ :e | e model browse ]).
I have just included this:
-=-=-=-=-=-=-=-=-=-= classes := RTObject withAllSubclasses. v := RWView new. n := RTMultiLinearColorForIdentity new objects: classes. shape := RWUVSphere new size: [ :c | (c numberOfMethods / 100) + 1 ] ; color: [ :cls | (n rtValue: cls) asWDColor ]. es := shape elementsOn: classes. es @ (RWMenuActivable new action: #inspect; item: 'browse class' action: [ :e | e model browse ]). v addAll: es. RWCubeLayout on: es. v -=-=-=-=-=-=-=-=-=-=
You need to update Woden-Roassal. Let us know how it goes
Cheers, Alexandre
Best regards, Natalia
On 13 May 2015, at 03:38, Alexandre Bergel alexandre.bergel@me.com wrote:
Hi Natalia,
In the last version of Woden, you will find the popup and the highlight. Consider the following example:
=-=-=-==-=-=-==-=-=-= v := RWView new. es := ((RWCube new size: 1)) elementsOn: (1 to: 16). es @ RWPopup. es @ (RWHighlightable highlight: [ :vv | | arr | arr := OrderedCollection new. arr add: vv - 1. arr add: vv. arr add: vv + 1. arr add: vv - 4. arr add: vv + 4. arr]).
RWXYGridLayout on: es. v addAll: es. v =-=-=-==-=-=-==-=-=-=
Let us know how it goes!
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On May 12, 2015, at 12:53 PM, Natalia Tymchuk natalia.tymchuk@unikernel.net wrote:
I want to be able to highlight an element with a desired color when hovering over it. In general I need this:
el @ (RTPopup new text: #rmozaikLabel) el @ (RTHighlightable new highlightedColor: (Color red alpha: 0.3)). el @ (RTMenuActivable new action: #inspect; item: 'browse class' action: [ :e | e model browse ]).
Kind regards, Natalia
On 12 May 2015, at 18:48, Alexandre Bergel alexandre.bergel@me.com wrote:
I am not sure about this. In the previous version of Roassal3D we had this. In the version based on Woden we do not have it.
Give me a bit of time to evaluate this. Having popup is essential.
Which highlighting do you need?
Alexandre
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On May 12, 2015, at 11:27 AM, Natalia Tymchuk natalia.tymchuk@unikernel.net wrote:
Hello. I started to work with Woden. Unfortunately I cannot find the interaction I need. Does RWoden has the interaction as popup, highlighting and menu activating?
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev