otacke / h5p-game-map

Let your students choose their exercises on a game map.
MIT License
3 stars 8 forks source link

Retrieve maximum possible score in editor #16

Closed otacke closed 1 year ago

otacke commented 1 year ago

When setting the finish score, the author is currently not aware what the maximum possible score is. Should be displayed somewhere (the "finish score" setting is outside of the custom editor widget, so maybe in some extra titlebar or other info area).

In order to determine the maximum possible score of every subcontent type, one will need to instantiate the content in the editor, attach it to some hidden DOM area and then call getMaxScore on the instance - there's no other feasible way to determine the maximum score.