Exemple #1
0
void example_postinit()
{
#ifdef _WIN32
	extfs.setPath(file::fs().getFullPath("../data").c_str());
	file::mount(&extfs);
	
	extfs2.setPath(file::fs().getFullPath("data").c_str());
	file::mount(&extfs2);
#endif
	ObjectScript::Oxygine::postInit();
}
Exemple #2
0
void Test::init()
{
    //Mount additional file system with inner path "ext"
    //Used for searching files in data/ext
    extfs.setPath(file::fs().getFullPath("ext").c_str());
    file::mount(&extfs);

    resourcesUI.loadXML("demo/res_ui.xml");
    resourcesUI.loadXML("demo/fonts.xml");


    HttpRequestTask::init();

    //Load logo from oxygine server
    spWebImage sp = new WebImage;
    sp->load("http://oxygine.org/test/logo.png");
    sp->setTouchEnabled(false);
    sp->attachTo(getStage());
    sp->setPriority(10);
    sp->setAlpha(128);
    sp->setSize(150, 107);

    sp->setX(getStage()->getWidth() - sp->getWidth());
    sp->setY(getStage()->getHeight() - sp->getHeight());
}
Exemple #3
0
void Test::init()
{
    //mount additional file system with inner path "ext"
    //it would be used for searching path in data/ext
    extfs.setPath(file::fs().getFullPath("ext").c_str());
    file::mount(&extfs);

    resourcesUI.loadXML("demo/res_ui.xml");
    resourcesUI.loadXML("demo/fonts.xml");


    spSprite sp = new Sprite;
    sp->setResAnim(resourcesUI.getResAnim("logo2"));
    sp->setInputEnabled(false);
    sp->attachTo(getStage());
    sp->setPriority(10);
    sp->setAlpha(128);

    sp->setX(getStage()->getWidth() - sp->getWidth());
    sp->setY(getStage()->getHeight() - sp->getHeight());
}