Quote:
Originally Posted by Mark Nord
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.