You send cards to be rendered on the screen using queueInfoCard:
this.queueInfoCard(new InfoCard({
id: 0,
title: 'Drink more water',
desc: 'Hydration is very important!! Hydration is very important!! Hydration is very important!! Hydration is very important!! Hydration is very important!! Hydration is very important!! Hydration is very important!!',
showOnce: true,
}));
19 still need to implement card duration taken from the json objects, as well as loading the data from a the json objects by ID (or maybe title, or a key?) so that rather than pushing a new object, you would do something like:
this.queueInfoCard('dehydrated');
For that to work, a little 'variable' or key needs to be added to each object, e.g. "key": "dehydrated", and they must be unique
Forgot to say, this also implements "lipid generation", following the table in the docs. Feel free to review the code or add any comments to bits you don't understand.
You send cards to be rendered on the screen using
queueInfoCard
:19 still need to implement card duration taken from the json objects, as well as loading the data from a the json objects by ID (or maybe title, or a key?) so that rather than pushing a new object, you would do something like:
this.queueInfoCard('dehydrated');
For that to work, a little 'variable' or key needs to be added to each object, e.g.
"key": "dehydrated"
, and they must be uniquecc @HarryAmmon @JamesMcGovern @td251