View Single Post
Old 11-20-2010, 02:26 PM   #37
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
Quote:
Originally Posted by Mark Nord View Post
By checking the code in resources.img I found this line in addons.js:
Code:
tmp=function(){var a={name:"Calculator",title:"Calculator",description:"scientific calculator",icon:"CROSSED_BOX",activate:function(){kbook.autoRunRoot.path=Core.config.addonsPath+"Calc/calculator.xml";kbook.autoRunRoot.enterIf(kbook.model);},
But as far as I can see the needed files in the addonsPath are missing. So the app couldn't show any UI.
For the content of recources.img see attachment - But I'm sure you know what you packed into
There is actually a bug in the build script.

Quote:
BTW I would prefere to use surquizu's Calc-Icon instead of "CROSSED_BOX"
Me too. Remind me where it was again please, and I'll create an "issue" on projects site, not to forget about it again.

Quote:
As it is done by _PRSPlus.js in the Sim?
If so, there will be no problems with the Sim.
I meant even skipping the:

Quote:
<function id="doHoldCenter">
this.doNextF();
</function>
in the XML, directly going:

Quote:
var AUTORUN = kbook.model.container.sandbox.AUTORUN_GROUP.sandbo x.AUTORUN;
// not sure if it should be .doHoldCenter or .sandbox.doHoldCenter, most likely the latter
AUTORUN.doHoldCenter = function () {
...
}
but your way would certainly work.
kartu is offline   Reply With Quote