Suppress 'all' with a single verb (Wear) - Solved


#1

I’m putting this out as a new topic rather than update the previous one because it isn’t clear to me how best to do this in this forum. Please advise if a different approach is preferable.

I was able to get the behavior I was looking for (limiting Wear All to just articles of clothing) by modifying the Thing and Fixture classes:

[code]modify Thing
hideFromAll(action){
return (action.ofKind(WearAction) && !ofKind(Wearable)) || inherited(action);
}
;

modify Fixture
hideFromAll(action){
return action.ofKind(WearAction) || inherited(action);
}
;
[/code]

Thanks to responses in the previous thread which helped achieve this objective.


#2

Why did you start a new thread? Just reply to the existing one.


#3

Well better to not to split thread imho.