Shouldn't the tooltips be more generic?

The Tooltips are tied to items, by name at least.

Shouldn’t they be more generic?

interface ITooltipHolder {

Tooltip GetTooltip();

}

With Tooltip just having the getters for title and description?

1 Like

Quite probably yes. When writing the Inventory course, I think this is a case where Sam was specifically thinking of Inventory items only.
In my own project, Beneath The Mountain, many things have tooltips, and I wound up creating different classes/interfaces for each of them.

1 Like

I’m getting into that situation now as I go through the course. So I may have to do the same.

Thanks Brian.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms