Relative Paths in Boxely
Developers have been asking us to support relative paths for some time now. Well, that time has come. Starting with the Boxely version 1.5 series the support for relative paths will be there. :-) The "base" directory is where the box file for the scene is being opened. For example, if you open a scene called bar.box from c:\foo, your base is c:\foo. So a path such as "theme/style.box" would resolve to "c:\foo\theme\style.box" From there you can access any of your other surrounding files or you could use a box url ("box://boxelyToolkit/...") to access the toolkit (or other files) in the EE hive.
<?xml version="1.0" encoding="UTF-8"?>
<?import href="theme/style.box"?>
<window
xmlns="http://www.aol.com/boxely/box.xsd"
id="window"
translucent="false"
title="Test"
icon="theme/images/myIcon.png">
<script id="main" language="jscript" href="script/myScript.js"/>
...
...
</window>

1 Comments:
all your base are belong to us
Post a Comment
Links to this post:
Create a Link
<< Home