![]() |
#1 |
Senior Member
Join Date: Jun 2002
Posts: 209
|
Oldtimer.m
I'm having problems getting this to work. It should add a leading zero to the timer but I get a guru meditation error (null object called) when I include oldtimer.maki in my player-normal.xml. Is there a newer version of this script? The one I'm using is dated 2002.
|
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: Jul 2003
Location: UK
Posts: 1,316
|
it should probably work (not looked at the code), but make sure you have the right declarations in your player-normal.xml
the guru error is cos the maki script is looking for a named timer, there's documentation on it?, which should tell you what to name your timer in the xml i.e. id="yourtimerticker" |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Jun 2002
Posts: 209
|
Ok thanks, I'm gonna have another look...
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Jun 2002
Posts: 209
|
Nope, no documentation, but here's a peice of the oldtimer script:
#include "../../../lib/std.mi" blah, blah.... System.onScriptLoaded() { Group mainshade = getContainer("main window").getLayout("shade"); txtTimerShade = mainshade.findObject("player.display.time"); Group mainnormal = getContainer("main window").getLayout("normal"); txtTimer = mainnormal.findObject("player.display.time"); ... and here's what's in my player-main.xml: <text id="player.display.time" display="TIME" x="-5" y="2"........ ...so I have no clue why I keep getting the guru meditation. |
![]() |
![]() |
![]() |
#5 |
Senior Member
Join Date: Jun 2002
Posts: 209
|
Nevermind, I got it. I changed "main window" to "main" for the container.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|