Choosing Background Image (1 Viewer)

m.standish

Portal Pro
July 9, 2006
174
8
Wakefield
Home Country
United Kingdom United Kingdom
Ive wrote some code that changes backgrounds in home screen, It works beautifully! BUT...
whenever i go back to the home screen i always get the same picture (#1) and it will start re-scrolling

Is there ANY way i can either
A, add a button to the homescreen to lock the current picture (preferable, then i can do a slideshow whenever i want by unticking it)

B, Add a context menu option to my photos to set the picture as my backdrop
(Im sure this would be possible by making the button copy & rename a file, I can leave the skins link static)


C, if i Stop them scrolling by default and use the onup/ondown ect command to jump to the next one in the list??

In order of preference id LIKE A,C, then B as a last resort
I understand ill HAVE to reprogram MP for option B, could anyone help?

Current code below


<control>
<description>Screen Changer</description>
<type>animation</type>
<textures>
Backdrops\1.jpg;
Backdrops\2.jpg;
Backdrops\3.jpg;
Backdrops\4.jpg;
Backdrops\5.jpg;
Backdrops\6.jpg;
Backdrops\7.jpg;
Backdrops\8.jpg;
Backdrops\9.jpg;
Backdrops\10.jpg;
Backdrops\11.jpg;
Backdrops\12.jpg;
Backdrops\13.jpg;
Backdrops\14.jpg;
Backdrops\15.jpg;
Backdrops\16.jpg;
Backdrops\17.jpg;
Backdrops\18.jpg;
Backdrops\19.jpg
</textures>

<width>1290</width>
<height>1025</height>
<Duration>00:10:00</Duration>
<RepeatBehavior>100000</RepeatBehavior>
<FillBehavior>HoldEnd</FillBehavior>
<animation effect="fade" time="200">WindowOpen</animation>
<animation effect="fade" time="200">WindowClose</animation>
</control>
 

Harley

Retired Team Member
  • Premium Supporter
  • May 7, 2004
    2,053
    1,993
    Germany
    Home Country
    Germany Germany
    Better one thread

    Hi m.standish,:)

    it would be nice if you can put all your skinquestions in one thread. If you do for each question a new thread, you blow up the Overview in Skinsektion of the forum.

    It´s also easyer then to answer of the questions.


    Same goes gor Replikant skin (3 Threads for one skin )!!

    Many thanks ;)
    Harley

    To your Question: you can do such stuff with the multiimage funktion of new animationengine.

    <control>
    <type>multiimage</type>
    <id>1</id>
    <posx>0</posx>
    <posy>0</posy>
    <width>720</width>
    <height>576</height>
    <imagepath>Backany</imagepath>
    <timeperimage>200</timeperimage>
    <fadetime>800</fadetime>
    <loop>yes</loop>
    <randomize>false</randomize>
    </control>

    ;) :)
     

    m.standish

    Portal Pro
    July 9, 2006
    174
    8
    Wakefield
    Home Country
    United Kingdom United Kingdom
    Yeah sorry bout the posts, gonna start using just the one so theres a full resource, kinda new to all this been getting a bit carried away!

    THANK YOU for the randomise func!!! Its perfect!!!

    Had a thought about changing moods by weather
    Do you know how i could use the weather description to set pictures
    I dont know how i would go about with the variables
    Im wondering if i can do say

    <type>animation</type>
    <textures>
    Backdrops\#weather_descrip.jpg;

    </textures>
    <keepaspectratio>yes</keepaspectratio>
    <width>1280</width>
    <height>1024</height>
    </control>


    would this sort of thing work? and how would i code it?
     

    m.standish

    Portal Pro
    July 9, 2006
    174
    8
    Wakefield
    Home Country
    United Kingdom United Kingdom
    Miltiimage crashing the skin

    Harley,
    Ive tried the snippet you gave me as:

    <control>
    <type>multiimage</type>
    <id>98987</id>
    <posx>0</posx>
    <posy>0</posy>
    <width>1280</width>
    <height>1024</height>
    <imagepath>\backdrops</imagepath>
    <timeperimage>200</timeperimage>
    <fadetime>800</fadetime>
    <loop>yes</loop>
    <randomize>false</randomize>
    </control>

    but its crashing the skin, Where have i gone wrong?
    Using svn from 28th

    Where are these new additions announced?
     

    Harley

    Retired Team Member
  • Premium Supporter
  • May 7, 2004
    2,053
    1,993
    Germany
    Home Country
    Germany Germany
    Harley,
    Ive tried the snippet you gave me as:

    <control>
    <type>multiimage</type>
    <id>98987</id>
    <posx>0</posx>
    <posy>0</posy>
    <width>1280</width>
    <height>1024</height>
    <imagepath>\backdrops</imagepath>
    <timeperimage>200</timeperimage>
    <fadetime>800</fadetime>
    <loop>yes</loop>
    <randomize>false</randomize>
    </control>

    but its crashing the skin, Where have i gone wrong?

    Using svn from 28th

    Where are these new additions announced?

    Hi,

    test this one:

    <control>
    <type>multiimage</type>
    <id>1</id>
    <posx>0</posx>
    <posy>0</posy>
    <width>1280</width>
    <height>1024</height>
    <imagepath>backdrops</imagepath>
    <timeperimage>200</timeperimage>
    <fadetime>800</fadetime>
    <loop>yes</loop>
    <randomize>false</randomize>
    </control>

    Be sure that the pictures you will use are in Skinfolder / animations / backdrops.

    But you will have big cpu and ram use if you do random background with 1280*1024 and much pictures.

    Greetings Harley
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom