Page 1 of 1

How to access CMap outside of editor and mode, in the TP menu

Posted: 06 Apr 2018, 09:44
by crimplene
Hey,

how can I access

Code: Select all

Map.ObjectiveTextAuthor
Map.ObjectiveTextGold
Map.ObjectiveTextSilver
Map.ObjectiveTextBronze
from outside the editor, in the TP menu.

Every class I found has CMapInfo as member but never CMap. CMapInfo does not contain the above values only CMap does. The methods I found so far (GetMapGroup, GetNextMap) all return CMapInfo only, not CMap. So there I can't get access to ObjectiveTextGold etc.

CMap (aka Map) is accessible as global object in the editor and in the mode, but of course not that easily in the menu. I would need a method which returns it...

Is it possible in the CManiaAppTitle context?

Re: How to access CMap outside of editor and mode, in the TP menu

Posted: 06 Apr 2018, 12:03
by Miss
Does MapInfo not have "TMObjective_GoldTime", "TMObjective_BronzeTime", etc?

Re: How to access CMap outside of editor and mode, in the TP menu

Posted: 06 Apr 2018, 13:32
by crimplene
It sure does. Sadly Obstacle uses Map.ObjectiveTextGold etc.

Strange idea, btw to make those values Text with a formatted time string instead of Integer. But that is another problem. :-)