You are not logged in.

luis68

Beginner

  • "luis68" started this thread

Posts: 33

Location: Austria

  • Send private message

1

Sunday, June 16th 2013, 11:32pm

combobox nicht alle panos einfügen

hallo,

wie schaffe ich es das einige panos nicht automatisch in die combobox eingefügt werden?







<!-- combobox plugin -->
<plugin name="box" keep="true"
url="%SWFPATH%/plugins/combobox.swf"
alturl="%SWFPATH%/plugins/combobox.js" native="false"
align="leftbottom" x="40" y="90"
onloaded="fill_with_scenes();"
/>



<!-- an action for automatically fill the combobox with all scenes -->
<action name="fill_with_scenes">
for(set(i,0), i LT scene.count, inc(i),
txtadd(itemcall, 'loadscene(',get(scene[get(i)].name),',null,MERGE,BLEND(1));');
addIdItem(get(scene[get(i)].name), get(scene[get(i)].title), get(itemcall));
);
</action>

<!-- an action for updating the combobox when the scene was changed -->
<action name="select_box_item">
if(plugin[box].loaded,
plugin[box].selectIdItem(%1);
,
delayedcall(0.1, select_box_item(%1));
);
</action>

2

Monday, June 17th 2013, 2:47pm

Hi,

Du könntest zB eine action für das erstellen der comboboxes erstellen und diese dann nur in den gewünschten Panos aufrufen. Ohne "keep=true" werden diese dann beim verlassen der Szene automatisch gelöscht. Ansonsten könntest Du auch eine kleine action erstellen, in welcher die comboxes in den gewünschten Szenen auf "visible=false" gesetzt werden.

Könnte zB so aussehen:
set(scenename,get(scene[get(xml.scene)].name));
if (scenename == name_of_your_scene, action(hide_comboboxes));


Und in die onstart-events jeder Szene startest Du eine action welche die comboboxes wieder auf "visible=true" setzt.

Gruß
Nupsi

luis68

Beginner

  • "luis68" started this thread

Posts: 33

Location: Austria

  • Send private message

3

Tuesday, June 18th 2013, 7:14pm

danke nupsi,

ich habe inzwischen eine lösung gefunden

4

Thursday, June 20th 2013, 8:31am

Freut mich *smile* Wäre für künftige User, mit ähnlichem Problem, sicher noch interessant, auf welche Lösung Du gekommen bist ;-)

Gruß
Nupsi

luis68

Beginner

  • "luis68" started this thread

Posts: 33

Location: Austria

  • Send private message

5

Thursday, June 20th 2013, 9:15am

hier die lösung:




http://www.panorama-community.net/wbb/in…76283#post76283










<plugin name="cb" style="combobox" align="righttop" x="10" y="10" keep="true" rowcount="7">
<item name="cb0" caption="Szenen auswählen"/>
<item name="cb1" caption="Operationszentrale" onclick="loadscene(opz,null,MERGE,BLEND(1));"/>
<item name="cb2" caption="Lagebildauswertung" onclick="loadscene(lba,null,MERGE,BLEND(1));"/>
<item name="cb3" caption="Waffensysteme I" onclick="loadscene(wsys1,null,MERGE,BLEND(1));"/>
<item name="cb4" caption="Waffensysteme II" onclick="loadscene(wsys2,null,MERGE,BLEND(1));"/>
<item name="cb5" caption="Kommandant" onclick="loadscene(kdo,null,MERGE,BLEND(1));"/>
</plugin>