• hello!
    At startup open cube:
    <preview type="grid(cube,16,32,512,0xCCCCCC,0xF6F6F6,0x999999);" />


    I want to make that by clicking on the button, I redirected to this cube

    whether it can be done through the command onclick="" and how?

  • Hi,

    there are several possibilities,

    e.g. make a scene with only that preview pano and load it:

    Best regards,
    Klaus

  • xml parsing failed
    I'm doing something wrong doing it.


    <include url="skin/vtourskin.xml" />

    <scene name="preview">
    <preview type="grid(cube,16,32,512,0xCCCCCC,0xF6F6F6,0x999999);" />
    </scene>


    <plugin name="planopen" keep="true"
    url="plan.png"
    align="topright"
    x="15"
    y="15"
    alpha="0.9"
    onclick="loadscene(preview, null, MERGE, BLEND(0.5));"
    onhover="set(plugin[name].alpha,1);tween(scale,0.9); showtext('Открыть план техникума', STYLE12);"
    onout="set(plugin[name].alpha,1); tween(scale,0.9);"

  • Hi,

    the vtourskin.xml is hidding the loading text on the 'onloadcomplete' event.

    And when there is no pano image, that event doesn't get called.

    The loading text of the vtourskin will be hidden by this call:

    Code
    skin_showloading(false);

    So you could put that into the 'onstart' event of that <scene> - e.g:

    Code
    <scene name="preview" onstart="skin_showloading(false);">
    <preview type="grid(cube,16,32,512,0xCCCCCC,0xF6F6F6,0x999999);" />
    </scene>

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!