Page 1 of 2

Confluence mod help

Posted: Tue Sep 25, 2012 5:47 pm
by sealeysonic
Hi just a little question how easy is it to change what the menu buttons say at the side of this skin....?

Thanks all

ps. i want to change `programs` to Drawings` for use at work

Re: Confluence mod help

Posted: Tue Sep 25, 2012 5:54 pm
by xbs
Look for this section in Home.xml

Code: Select all

<item id="1">
	<label>0</label>
	<onclick>ActivateWindow(Programs)</onclick>
	<icon>-</icon>
	<thumb>-</thumb>
	<visible>!Skin.HasSetting(HomeMenuNoProgramsButton)</visible>
</item>
You can write 'Drawings' in the label and you need to edit the onclick to do what you want.

Do you want to open a folder with the drawing?
If so, it's easier to add a source in pictures.

Re: Confluence mod help

Posted: Tue Sep 25, 2012 8:41 pm
by sealeysonic
Thank you xbs ur a star...i`ll keep you posted on my `Idea` lol

Re: Confluence mod help

Posted: Sat Sep 29, 2012 10:13 am
by sealeysonic
Now call me blind but i can not see what im looking for here lol

heres the Home.xml


<defaultcontrol always="true">9000</defaultcontrol>
<allowoverlay>no</allowoverlay>
<controls>
<control type="multiimage">
<posx>0</posx>
<posy>0</posy>
<width>1280</width>
<height>720</height>
<imagepath background="true">$INFO[Container(9000).ListItem.Icon]</imagepath>
<timeperimage>8000</timeperimage>
<randomize>true</randomize>
<fadetime>1000</fadetime>
</control>
<include>CommonMediaPlayingBackground</include>
<include condition="!Skin.HasSetting(UseHorizontalHome)">IncludeHomeVertical</include>
<include condition="Skin.HasSetting(UseHorizontalHome)">IncludeHomeHorizontal</include>
<!-- System Info -->
<control type="group">
<posx>840r</posx>
<posy>0</posy>
<include>VisibleFadeEffect</include>
<visible>Skin.HasSetting(homepageSysteminfo) + Container(9000).HasFocus(5)</visible>
<animation effect="slide" start="0,0" end="-60,0" delay="0" time="300" condition="Window.IsVisible(MuteBug)">conditional</animation>
<animation effect="slide" start="0,0" end="130,0" delay="0" time="300" condition="Skin.HasSetting(homepageWeatherinfo) | !Weather.IsFetched">conditional</animation>
<animation effect="slide" start="0,0" end="840,0" delay="0" time="300">WindowClose</animation>
<animation effect="slide" start="840,0" end="0,0" delay="0" time="300">WindowOpen</animation>
<control type="image">
<description>system info background</description>
<posx>0</posx>
<posy>0</posy>
<width>440</width>
<height>35</height>
<texture flipx="true" border="32,0,0,0">header.png</texture>
</control>
<control type="label">
<description>system info label</description>
<posx>30</posx>
<posy>0</posy>
<width>400</width>
<height>28</height>
<align>left</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$LOCALIZE[140] $INFO[System.cputemperature] $LOCALIZE[141] $INFO[System.gputemperature] | $INFO[System.FreeMemory]</label>
</control>
</control>
<!-- Weather Info -->
<control type="group">
<posx>510r</posx>
<posy>0</posy>
<animation effect="slide" start="0,0" end="-60,0" delay="0" time="300" condition="Window.IsVisible(MuteBug)">conditional</animation>
<animation effect="slide" start="0,0" end="510,0" delay="0" time="300">WindowClose</animation>
<animation effect="slide" start="510,0" end="0,0" delay="0" time="300">WindowOpen</animation>
<visible>!Skin.HasSetting(homepageWeatherinfo) + Weather.IsFetched</visible>
<control type="image">
<description>time background</description>
<posx>0</posx>
<posy>0</posy>
<width>180</width>
<height>35</height>
<texture flipx="true" border="32,0,0,0">header.png</texture>
</control>
<control type="image">
<description>Weather image</description>
<posx>30</posx>
<posy>1</posy>
<width>25</width>
<height>25</height>
<aspectratio>keep</aspectratio>
<texture>$INFO[Weather.Conditions]</texture>
</control>
<control type="label">
<description>time label</description>
<posx>60</posx>
<posy>0</posy>
<width>100</width>
<height>28</height>
<align>left</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$INFO[Weather.Temperature]</label>
</control>
</control>
<control type="image">
<include>VisibleFadeEffect</include>
<include>Window_OpenClose_Animation</include>
<posx>0</posx>
<posy>100r</posy>
<width>256</width>
<height>100</height>
<texture>HomeButtonsBack.png</texture>
</control>
<control type="group" id="10">
<posx>15</posx>
<posy>55r</posy>
<include>VisibleFadeEffect</include>
<include>Window_OpenClose_Animation</include>
<control type="button" id="20">
<description>Power push button</description>
<posx>90</posx>
<posy>0</posy>
<width>43</width>
<height>43</height>
<label>31003</label>
<font>-</font>
<aligny>-</aligny>
<onclick>ActivateWindow(ShutdownMenu)</onclick>
<texturefocus>home-power-FO.png</texturefocus>
<texturenofocus>home-power.png</texturenofocus>
<onleft>21</onleft>
<onright>9000</onright>
<onup>9000</onup>
<ondown>9000</ondown>
</control>
<control type="button" id="21">
<description>Favourites push button</description>
<posx>45</posx>
<posy>0</posy>
<width>43</width>
<height>43</height>
<label>1036</label>
<font>-</font>
<aligny>-</aligny>
<onclick>ActivateWindow(Favourites)</onclick>
<texturefocus>home-favourites-FO.png</texturefocus>
<texturenofocus>home-favourites.png</texturenofocus>
<onleft>22</onleft>
<onright>20</onright>
<onup>9000</onup>
<ondown>9000</ondown>
</control>
<control type="button" id="22">
<description>Play Disc Media push button</description>
<posx>0</posx>
<posy>0</posy>
<width>43</width>
<height>43</height>
<label>16004</label>
<font>-</font>
<aligny>-</aligny>
<onclick>ActivateWindow(1113)</onclick>
<texturefocus>home-playmedia-FO.png</texturefocus>
<texturenofocus>home-playmedia.png</texturenofocus>
<onleft>9000</onleft>
<onright>21</onright>
<onup>9000</onup>
<ondown>9000</ondown>
</control>
</control>
<control type="group">
<posx>420</posx>
<posy>35r</posy>
<animation effect="slide" end="0,35" time="300" tween="quadratic" easing="out">WindowClose</animation>
<animation effect="slide" start="0,35" time="300" tween="quadratic" easing="out">WindowOpen</animation>
<control type="image">
<description>RSS background</description>
<posx>0</posx>
<posy>0</posy>
<width>860</width>
<height>35</height>
<texture border="32,0,0,0">Rss_Back.png</texture>
<visible>system.getbool(lookandfeel.enablerssfeeds)</visible>
</control>
<control type="rss">
<description>RSS feed</description>
<posx>35</posx>
<posy>6</posy>
<height>35</height>
<width>825</width>
<font>font12</font>
<urlset>1</urlset>
<textcolor>blue</textcolor>
<titlecolor>blue</titlecolor>
<headlinecolor>white</headlinecolor>
<visible>system.getbool(lookandfeel.enablerssfeeds)</visible>
</control>
<control type="image">
<description>RSS background</description>
<posx>0</posx>
<posy>0</posy>
<width>100</width>
<height>35</height>
<texture border="32,0,0,0">Rss_Back_Overlay.png</texture>
<visible>system.getbool(lookandfeel.enablerssfeeds)</visible>
</control>
</control>
<control type="group">
<posx>380r</posx>
<posy>0</posy>
<animation effect="slide" start="0,0" end="-60,0" delay="0" time="300" condition="Window.IsVisible(MuteBug)">conditional</animation>
<animation effect="slide" start="0,0" end="380,0" delay="0" time="300">WindowClose</animation>
<animation effect="slide" start="380,0" end="0,0" delay="0" time="300">WindowOpen</animation>
<control type="image">
<description>time background</description>
<posx>0</posx>
<posy>0</posy>
<width>440</width>
<height>35</height>
<texture flipx="true" border="32,0,0,0">header.png</texture>
</control>
<control type="label">
<description>time label</description>
<posx>30</posx>
<posy>0</posy>
<width>400</width>
<height>28</height>
<align>left</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>white</textcolor>
<shadowcolor>black</shadowcolor>
<label>$INFO[System.Date] | $INFO[System.Time]</label>
<visible>!IntegerGreaterThan(system.memory(used.percent),90)</visible>
</control>
<control type="label">
<description>low free memory label</description>
<posx>0</posx>
<posy>0</posy>
<width>400</width>
<height>28</height>
<align>center</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>FFDD0000</textcolor>
<label>$LOCALIZE[158]: $INFO[System.FreeMemory]</label>
<visible>IntegerGreaterThan(system.memory(used.percent),90)</visible>
</control>
</control>
</controls>
</window>

Re: Confluence mod help

Posted: Sat Sep 29, 2012 11:24 am
by xbs
Sorry my bad I :(
Look in one of the IncludesHome*.xml

I wrongly assumed you were using Confluence Lite :roll:

Re: Confluence mod help

Posted: Sat Sep 29, 2012 1:56 pm
by sealeysonic
dont worry oh great one lol :lol:

Re: Confluence mod help

Posted: Sat Oct 06, 2012 12:07 am
by sealeysonic
Found it lol

<item id="1">
<label>0</Foundry>
<onclick>ActivateWindow(Programs)</onclick>
<icon>-</icon>
<thumb>-</thumb>
<visible>!Skin.HasSetting(HomeMenuNoProgramsButton)</visible>


now to change the button name ive typed `Foundry` is this right...?

Re: Confluence mod help

Posted: Sat Oct 06, 2012 12:21 am
by Dom DXecutioner
sealeysonic wrote:Found it lol

<item id="1">
<label>0</Foundry>
<onclick>ActivateWindow(Programs)</onclick>
<icon>-</icon>
<thumb>-</thumb>
<visible>!Skin.HasSetting(HomeMenuNoProgramsButton)</visible>


now to change the button name ive typed `Foundry` is this right...?
close, but no... the text should be between the tags:

Code: Select all

<label>Foundry</label>

Re: Confluence mod help

Posted: Sat Oct 06, 2012 8:20 am
by sealeysonic
great...now lets see what i can do lol :P

Re: Confluence mod help

Posted: Sat Oct 13, 2012 10:26 pm
by sealeysonic
Right..still struggling with this one...ive managed to change one menu item....but i seem to be taking one step forward and two steps back...ive moved to PM3 HD skin for the moment...what im trying to do is use XBMC as a Info point on the shopfloor/workshops displaying scanned Jpegs...mainly CAD drawings scanned in...safety information etc at the end of the day im wanting all the menu items doing the same thing as `pictures` in the standard Skin.

i want to leave `videos` as is...so ppl can go there to view safety videos.

I want the background to change so ppl know what department there assessing info for.

I want `music` menu item hidden untill management have gone home :P :D

Image

Re: Confluence mod help

Posted: Sat Oct 13, 2012 10:27 pm
by sealeysonic
my xbox 720p :D

Re: Confluence mod help

Posted: Sun Oct 14, 2012 2:19 pm
by sealeysonic
:D anybody there...? lol

Re: Confluence mod help

Posted: Sun Oct 14, 2012 4:29 pm
by Spongy
I'm not sure, but it sounds like you're trying to replace buttons (programs,weather,scripts) with buttons that lead directly to sub folders in your pictures source. As an example I show how to replace the programs button with a button that leads to a folder of nature pictures I have.

Open PM3.HD/720p/Home.xml.
Find the <content> section and look for the programs button.

This is the default code for the programs button.

Code: Select all

				<item id="4">
					<label>0</label>
					<onclick>ActivateWindow(Programs)</onclick>
					<icon>special://skin/backgrounds/programs.jpg</icon>
					<thumb>$INFO[Skin.String(Home_Custom_Back_Programs_Folder)]</thumb>
					<visible>Skin.HasSetting(ProgramsInHome)</visible>
				</item>
First edit the label <label>0</label>
With the name you want <label>Nature</label>

Edit the onclick <onclick>ActivateWindow(Programs)</onclick>
With the location you want <onclick>ActivateWindow(10002,"smb://HOME-PC/My Pictures/Nature/")</onclick>
Don't know what to put here? Add the folder you want to your favorites then you can find the location in UserData/Favorites.xml.

Edit the icon <icon>special://skin/backgrounds/programs.jpg</icon>
With the icon you want <icon>special://skin/backgrounds/nature.jpg</icon>
This requires a nature.jpg be placed in PM3.HD/backgrounds.

If you leave the <thumb> code, you can change the background in settings > skin settings > backgrounds > programs.
I would just delete it, and use the <icon> code above.

Delete the <visible> code.

This is what I ended up with.

Code: Select all

				<item id="4">
					<label>Nature</label>
					<onclick>ActivateWindow(10002,"smb://HOME-PC/My Pictures/Nature/")</onclick>
					<icon>special://skin/backgrounds/nature.jpg</icon>
				</item>
None of this is tested, but it should work.

You will no longer have a programs button, so you may want to add it too your favorites before you do this.

Music button coming soon.

Re: Confluence mod help

Posted: Sun Oct 14, 2012 5:12 pm
by Spongy
For the music button, I would just add it to favorites so it's always there, but out of sight.
If you want it on the main menu with the ability to hide it, keep reading.

Again in the <content> section of Home.xml
The music button is actually two buttons. One for library mode and one for files mode.

Since you no longer have a programs button, we can use it's settings to show/hide the music button.

Here is the default code for the music buttons.

Code: Select all

				<item id="2">
					<label>2</label>
					<onclick>ActivateWindow(Music)</onclick>
					<icon>special://skin/backgrounds/music.jpg</icon>
					<thumb>$INFO[Skin.String(Home_Custom_Back_Music_Folder)]</thumb>
					<visible>Library.HasContent(Music)</visible>
				</item>
				<item id="2">
					<label>2</label>
					<onclick>ActivateWindow(MusicFiles)</onclick>
					<icon>special://skin/backgrounds/music.jpg</icon>
					<thumb>$INFO[Skin.String(Home_Custom_Back_Music_Folder)]</thumb>
					<visible>!Library.HasContent(Music)</visible>
				</item>
Edit the visibility <visible>Library.HasContent(Music)</visible> and <visible>!Library.HasContent(Music)</visible>
Add the programs settings <visible>Library.HasContent(Music) + Skin.HasSetting(ProgramsInHome)</visible> and <visible>!Library.HasContent(Music) + Skin.HasSetting(ProgramsInHome)</visible>

What you should end up with.

Code: Select all

				<item id="2">
					<label>2</label>
					<onclick>ActivateWindow(Music)</onclick>
					<icon>special://skin/backgrounds/music.jpg</icon>
					<thumb>$INFO[Skin.String(Home_Custom_Back_Music_Folder)]</thumb>
					<visible>Library.HasContent(Music) + Skin.HasSetting(ProgramsInHome)</visible>
				</item>
				<item id="2">
					<label>2</label>
					<onclick>ActivateWindow(MusicFiles)</onclick>
					<icon>special://skin/backgrounds/music.jpg</icon>
					<thumb>$INFO[Skin.String(Home_Custom_Back_Music_Folder)]</thumb>
					<visible>!Library.HasContent(Music) + Skin.HasSetting(ProgramsInHome)</visible>
				</item>
Now you can go to settings > skin settings > home window > show programs in main menu.

If you want it to say "show music" instead of "show programs".
Open custom_SkinSettings_1111.xml and find the control below.

Code: Select all

				<control type="radiobutton" id="201">
					<description>Show Programs in home</description>
					<width>950</width>
					<height>35</height>
					<font>font12</font>
					<label>20082</label>
					<onclick>Skin.ToggleSetting(ProgramsInHome)</onclick>
					<selected>Skin.HasSetting(ProgramsInHome)</selected>
					<textcolor>grey2</textcolor>
					<focusedcolor>white</focusedcolor>
					<texturefocus border="7">list-focus.png</texturefocus>
					<texturenofocus>-</texturenofocus>
					<textureradioon>radiobutton-focus-2.png</textureradioon>
				</control>
Edit the label <label>20082</label>
With what you want <label>show music in main menu</label>

Again, none of this is tested.

Re: Confluence mod help

Posted: Sun Oct 14, 2012 7:41 pm
by sealeysonic
Great.......Thank you for this....you are a Star :D :D :D :D :D

Re: Confluence mod help

Posted: Sun Oct 28, 2012 10:29 pm
by sealeysonic
Heres how far i have got...lol a mobile video.

http://s101.beta.photobucket.com/user/s ... 0.mp4.html

all i need to do is edit the Home.xml to do the same on each button click on the menu....<oneclick> so every button apart from Videos does the same.

Re: Confluence mod help

Posted: Tue Oct 30, 2012 10:09 am
by sealeysonic
bttt

Re: Confluence mod help

Posted: Tue Oct 30, 2012 5:07 pm
by Spongy
sealeysonic wrote:Heres how far i have got...lol a mobile video.

http://s101.beta.photobucket.com/user/s ... 0.mp4.html

all i need to do is edit the Home.xml to do the same on each button click on the menu....<oneclick> so every button apart from Videos does the same.
Looking good, nice job.
Is there a question in there?

Re: Confluence mod help

Posted: Wed Oct 31, 2012 9:36 am
by sealeysonic
yeh lol i need to make all the buttons do the same thing.....goto the pictures page...... :D :D :D apart from the videos button.

Re: Confluence mod help

Posted: Wed Nov 07, 2012 9:07 pm
by Spongy
sealeysonic wrote:yeh lol i need to make all the buttons do the same thing.....goto the pictures page...... :D :D :D apart from the videos button.
You just need to repeat this process for each button.
Spongy wrote:Edit the onclick <onclick>ActivateWindow(Programs)</onclick>
With the location you want <onclick>ActivateWindow(10002,"smb://HOME-PC/My Pictures/Nature/")</onclick>
Don't know what to put here? Add the folder you want to your favorites then you can find the location in UserData/Favorites.xml.

If you can't figure it out.

Add each of the folders you want opened to your favorites, then upload home.xml and favorites.xml somewhere and I'll edit it.