Hi Liviu,

I think you would need to add target time to the TriggerLevel structure in main.h, and populate it from the XML in MainApp::loadLevel in main.cpp:380.

- Jasmine

On Mon, Jul 16, 2012 at 11:00 PM, Liviu Andronic <liv-public@myopera.com> wrote:
Dear all
I'm trying to fix part of
http://sourceforge.net/tracker/?func=detail&aid=3469600&group_id=157028&atid=802155
and here's what blocks me. To add the time limit info to the pre-race
screen I add teh following two lines:
     gui.addLabel(200.0f,350.0f, "Time", PTEXT_HZA_RIGHT | PTEXT_VTA_TOP,
30.0f);
     gui.addLabel(250.0f,350.0f, levels[lss.currentlevel].targettime,
PTEXT_HZA_LEFT | PTEXT_VTA_TOP, 30.0f);

in menu.cpp at line 268. However, predictably this fails building with the
following message:
C++ ./out/x86_64-unknown-linux-gnu/opt/src/trigger/menu.o
src/trigger/menu.cpp: In member function ‘void
MainApp::levelScreenAction(int, int)’:
src/trigger/menu.cpp:269: error: ‘struct TriggerLevel’ has no member named
‘targettime’

How would you suggest that I retrieve the following element:
<level ...>
<race ... targettime="163.1">

</race>
</level>


Regards
Liviu


--
Using Opera's revolutionary email client: http://www.opera.com/mail/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
trigger-rally-devel mailing list
trigger-rally-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/trigger-rally-devel