Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »dave360« (6. November 2017, 15:01)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
<hotspot name="spotpoint" ath="112.814930" atv="1.401869" url="myImage.jpg" distorted="true" depth="1000" onclick="" tooltip="My tooltip text" visible="true" onloaded="showTooltip();" /> <action name="showTooltip"> set(tooltipForSpot, "myTooltipForPointSpot"); addlayer(get(tooltipForSpot)); set(layer[get(tooltipForSpot)].distorted, true); txtadd(layer[get(tooltipForSpot)].parent, 'hotspot[', get(name), ']'); set(layer[get(tooltipForSpot)].align,bottom); set(layer[get(tooltipForSpot)].edge,top); set(layer[get(tooltipForSpot)].enabled,false); set(layer[get(tooltipForSpot)].capture,false); set(layer[get(tooltipForSpot)].visible, true); set(layer[get(tooltipForSpot)].type, 'text'); set(layer[get(tooltipForSpot)].bg,false); set(layer[get(tooltipForSpot)].bgborder,0); set(layer[get(tooltipForSpot)].txtshadow,'1.0 1.0 4.0 0x000000 1'); set(layer[get(tooltipForSpot)].css,'color:#ffffff;font-family:Arial;font-weight:bold;font-size:14px;text-align:center;'); set(layer[get(tooltipForSpot)].interactivecontent, false); set(layer[get(tooltipForSpot)].zorder,0); set(layer[get(tooltipForSpot)].padding,2); set(tooltipHtmlText, get(tooltip)); escape(tooltipHtmlText); set(layer[get(tooltipForSpot)].html, get(tooltipHtmlText)); </action> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »benji33« (7. November 2017, 16:54)
my spot and my text layer are not visible when entering VR.
|
|
Quellcode |
1 |
<plugin name="icon_infos_retina" style="onover_style" ... |
|
|
Quellcode |
1 2 3 |
<style name="onover_style" onup="txtadd(customised, 'button_ui_action.',get(name));customised();" keep="true" preload="true" blendmode="normal" autoscale="false" handcursor="true"/> |
|
|
Quellcode |
1 2 3 4 5 6 7 |
<button_ui_action icon_thumbs_retina="action(drawer_switch);" icon_infos_retina="action(infos_switch);" icon_sound_on_retina="action(resume_sound);" icon_sound_off_retina="action(pause_sound);" icon_controls_retina="action(drawer_controls_switch);" /> |
when updating project from pr12 to pr13 there a new bug,
i think it's may be related to new "scope" feature for Styles,
i use style to assign custom action to my UI buttons (OnUp) as is :
|
|
Quellcode |
1 |
button_ui_action.icon_infos_retina |
|
|
Quellcode |
1 |
button_ui_action.icon_infos_retina() |
|
|
Quellcode |
1 |
txtadd(customised, 'button_ui_action.',get(name),'()'); |
Hello.
I seem to have found a problem. If I change limitview="auto" to limitview="fullrange" for Flat Images, the image doesn't load correctly. I seem to be seeing a mix of image tiles from different zoom levels when trying to view the full image.
Regards
James.
Zitat
You could change that in your code by adding a '()' in the txtadd:
|
|
Quellcode |
1 2 3 4 5 |
<layer name="scroll_text" visible="false" handcursor="false" keep="true" type="container" align="lefttop" edge="lefttop" y="0" width="100%" height="100" zorder="7" bgcolor="0x00CCFF" bgalpha="0.0">
<layer name="scrollable_text" url="plugins/scrollarea.js" ......... >
<layer name="textfield_infos" url="plugins/textfield.swf" ........... />
</layer>
</layer>
|
|
|
Quellcode |
1 |
layer[scrollable_text].update(); |
|
|
Quellcode |
1 |
WARNING: Unknown action: plugin[scrollable_text].update |
|
|
Quellcode |
1 2 3 4 5 |
off : no change level : just levelling the image no north remap remap : levelling + remap to the north |
|
|
Quellcode |
1 2 |
set(style[skin_hotspotstyle].scale, 0.33); set(style[info].visible, false); |
|
|
Quellcode |
1 2 |
WARNING: plugin[webvr]: set style[skin_hotspotstyle].scale=0.33 - 'style' is not an array! WARNING: plugin[webvr]: set style[info].visible=false - 'style' is not an array! |
With the update from pr12 to pr13 I have detected a little problem: With starting VR-mode I like to align the styles of my hotspots. The following code has functioned bevor updating to pr13:
set(style[skin_hotspotstyle].scale, 0.33);
set(style[info].visible, false);
Now I get the following message in the trace-box:
WARNING: plugin[webvr]: set style[skin_hotspotstyle].scale=0.33 - 'style' is not an array!
WARNING: plugin[webvr]: set style[info].visible=false - 'style' is not an array!
Is this ab bug or is there any other another workaround to solve this problem?
Hi Klaus,
With the new PR4, I find that the textfield is not selectable anymore.
With PR3, and variable selectable="true", I can select the text
It's something in .js since PR4 to cause the problem
P.S. both "interactivecontent" and "selectable" are set to "true"