Jump to content


Photo

Add "homebrew" Button To Games Blade


  • Please log in to reply
26 replies to this topic

#1 Popy

Popy

    X-S Young Member

  • Members
  • Pip
  • 30 posts

Posted 09 June 2006 - 07:33 PM

Hey Guys.

Found a way to activate the hidden "Game Trailers" button an modded it to "Homebrew" Button :-)

Here we go:

first open the "custom1112_GamesHome.xml" file an search for:

<!-- Game Trailers script not working due to website change. DO NOT DELETE CODE!!! - Blackbolt

then replace the following code (it ends with --> ):

<!-- Game Trailers script not working due to website change. DO NOT DELETE CODE!!! - Blackbolt
<control>
<description>Trailers Icon</description>
<type>image</type>
<posx>145</posx>
<posy>362</posy>
<width>30</width>
<height>30</height>
<texture>icon-trailer.png</texture>
<visible>!Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>icon</include>
</control>

<control>
<description>Trailer Icon Slide Left</description>
<type>image</type>
<posx>145</posx>
<posy>362</posy>
<width>30</width>
<height>30</height>
<texture>icon-trailer.png</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>icon-effect</include>
</control>

<control>
<description>Trailers Button Shine</description>
<type>image</type>
<posx>170</posx>
<posy>361</posy>
<width>135</width>
<height>31</height>
<colordiffuse>10FFFFFF</colordiffuse>
<texture>button_shine.gif</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<control>
<description>Trailers Push Button</description>
<type>button</type>
<id>9</id>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<onleft>1</onleft>
<onright>2</onright>
<onup>8</onup>
<ondown>10</ondown>
<texturefocus>homebutton-5a.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onclick>XBMC.ActivateWindow(1117)</onclick>
<onclick>XBMC.RunScript(Q:\skin\MC360\extras\gametrailers.py)</onclick>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<control>
<description>Trailer Button Shadow</description>
<type>image</type>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<texture>homebutton-5-shadow.png</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>button-shadow</include>
</control>

<control>
<description>Trailers description 1</description>
<type>label</type>
<posx>390</posx>
<posy>205</posy>
<width>256</width>
<height>15</height>
<include>19089</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Trailers description 2</description>190831
<type>label</type>
<posx>390</posx>
<posy>230</posy>
<width>256</width>
<height>15</height>
<include>19090</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Trailers description 3</description>190831
<type>label</type>
<posx>390</posx>
<posy>255</posy>
<width>256</width>
<height>15</height>
<include>190901</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Extra Trailers description 4 (translator use only)</description>190831
<type>label</type>
<posx>390</posx>
<posy>280</posy>
<width>256</width>
<height>15</height>
<include>ExtraGameTrailerDesc</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Trailers Label</description>
<type>label</type>
<posx>187</posx>
<posy>362</posy>
<include>19035</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<align>left</align>
<visible>!Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>label</include>
</control>

<control>
<description>Trailers Label Slide Left</description>
<type>label</type>
<posx>187</posx>
<posy>362</posy>
<include>19035</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<align>left</align>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>label-effect</include>
</control>

<control>
<description>Button Seperator</description>
<type>image</type>
<posx>135</posx>
<posy>394</posy>
<width>235</width>
<height>1</height>
<texture>divider.png</texture>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control> -->


with this one:

<!-- popy MOD - Homebrew -->

<control>
<description>Homebrew Icon</description>
<type>image</type>
<posx>145</posx>
<posy>362</posy>
<width>30</width>
<height>30</height>
<texture>icon-games.png</texture>
<visible>!Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>icon</include>
</control>

<control>
<description>Homebrew Icon Slide Left</description>
<type>image</type>
<posx>145</posx>
<posy>362</posy>
<width>30</width>
<height>30</height>
<texture>icon-games.png</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>icon-effect</include>
</control>

<control>
<description>Homebrew Button Shine</description>
<type>image</type>
<posx>170</posx>
<posy>361</posy>
<width>135</width>
<height>31</height>
<colordiffuse>10FFFFFF</colordiffuse>
<texture>button_shine.gif</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<control>
<description>Homebrew Push Button</description>
<type>button</type>
<id>9</id>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<onleft>1</onleft>
<onright>2</onright>
<onup>8</onup>
<ondown>10</ondown>
<texturefocus>homebutton-5a.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onclick>XBMC.ActivateWindow(1,Homebrew)</onclick>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<control>
<description>Homebrew Button Shadow</description>
<type>image</type>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<texture>homebutton-5-shadow.png</texture>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>button-shadow</include>
</control>

<control>
<description>Homebrew description 1</description>
<type>label</type>
<posx>390</posx>
<posy>205</posy>
<width>256</width>
<height>15</height>
<include>19089</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Homebrew description 2</description>190831
<type>label</type>
<posx>390</posx>
<posy>230</posy>
<width>256</width>
<height>15</height>
<include>19090</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>

<control>
<description>Homebrew description 3</description>190831
<type>label</type>
<posx>390</posx>
<posy>255</posy>
<width>256</width>
<height>15</height>
<include>190901</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<visible>Control.HasFocus(9)</visible>
<animation effect="fade" delay="100" time="150">WindowOpen</animation>
</control>


<control>
<description>Homebrew Label</description>
<type>label</type>
<posx>187</posx>
<posy>362</posy>
<include>19035</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<align>left</align>
<visible>!Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>label</include>
</control>

<control>
<description>Homebrew Label Slide Left</description>
<type>label</type>
<posx>187</posx>
<posy>362</posy>
<include>19035</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<align>left</align>
<visible>Control.HasFocus(9) + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<include>label-effect</include>
</control>

<control>
<description>Button Seperator</description>
<type>image</type>
<posx>135</posx>
<posy>394</posy>
<width>235</width>
<height>1</height>
<texture>divider.png</texture>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

<!-- pOpY MOD - Homebrew button -->



Labeling change in the "includes.xml" :

Search for: <include name="19035"><label>Game Trailers</label></include>
replace it with: <include name="19035"><label>Homebrew</label></include>



mod the Description in the "includes.xml"

search for:

<include name="19089"><label>Watch Trailers for up</label></include>
<include name="19090"><label>and coming games on</label></include>
<include name="190901"><label>all platforms.</label></include>
<include name="ExtraGameTrailerDesc"><label>-</label></include>

and replace it with something like that (thats GERMAN):

<include name="19089"><label>Verschiedene kleine</label></include>
<include name="19090"><label>selbstgemachte Spiele &</label></include>
<include name="190901"><label>Programme.</label></include>
<include name="ExtraGameTrailerDesc"><label>-</label></include>


Replace the original files with the modded files and reboot.

Have Fun
pOpY

Edited by Popy, 09 June 2006 - 07:34 PM.


#2 incognegro

incognegro

    X-S Hacker

  • XS-BANNED
  • PipPipPipPipPipPip
  • 2,519 posts
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 09 June 2006 - 07:45 PM

YOU R GOD!

#3 Nagi

Nagi

    X-S Enthusiast

  • Members
  • 26 posts

Posted 09 June 2006 - 07:54 PM

Please show a screen shot of what you have there

#4 Popy

Popy

    X-S Young Member

  • Members
  • Pip
  • 30 posts

Posted 09 June 2006 - 08:24 PM

Here it is ;-)


homebrew IMG


Greets

#5 Nagi

Nagi

    X-S Enthusiast

  • Members
  • 26 posts

Posted 09 June 2006 - 08:49 PM

That is King S**T ... Good work. Why was it hidden in the first place??? but really that is cool you have opened up several other modes to be possible now. You can put several different changes in that same spot. Like Dashboards, Scripts, or something like that.. Hey can make one that links to scripts that would good stuff love.gif love.gif

#6 Popy

Popy

    X-S Young Member

  • Members
  • Pip
  • 30 posts

Posted 09 June 2006 - 09:32 PM

It was hidden because the "Game Trailers" WebSite was offline ;-)

Lifes Good ;-)

Thank God for this amazing Skin!

Greets pOpY

#7 Nagi

Nagi

    X-S Enthusiast

  • Members
  • 26 posts

Posted 10 June 2006 - 12:00 AM

Hey I must have done something wrong with the screen I can not access the panel. I can see it but I cant get it scan over the part where it is. I need some help with that one.

#8 sadalius

sadalius

    X-S Member

  • Members
  • Pip
  • 76 posts
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 10 June 2006 - 01:23 AM

I seem to have the same problem, button shows up, but when I try to select it, it skips over homebrew and jumps to Open Tray.

#9 EvilShindo

EvilShindo

    X-S Expert

  • XS-BANNED
  • PipPipPip
  • 552 posts
  • Location:New York
  • Xbox Version:v1.4
  • 360 version:unknown

Posted 10 June 2006 - 01:39 AM

QUOTE(Popy @ Jun 9 2006, 09:39 PM) View Post



Thank God for this amazing Skin!



No, actually thank "Blackbolt" for this amazing skin biggrin.gif
he is a "skin god" after all. wink.gif

Edited by EvilShindo, 10 June 2006 - 01:40 AM.


#10 Popy

Popy

    X-S Young Member

  • Members
  • Pip
  • 30 posts

Posted 10 June 2006 - 08:06 AM

Hey.

Sorry i frorgot that!!!

You must correct the next ondown id from the gamesaves button like that (this is the ID Number of witch button is selected on the down key --> in our case the new Homebrew Button with id "9")


<control>
<description>Game Saves Push Button</description>
<type>button</type>
<id>8</id>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<onleft>1</onleft>
<onright>2</onright>
<onup>7</onup>
<ondown>9</ondown>
<texturefocus>homebutton-4a.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onclick>XBMC.ActivateWindow(1119)</onclick>
<onclick>XBMC.RunScript(Q:\skin\MC360\extras\gamesavemanger.py)</onclick>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>


an when you came from the Tray Button you must there correct the onup event like that:

<control>
<description>DVD Launch Button</description>
<type>button</type>
<id>10</id>
<posx>121</posx>
<posy>415</posy>
<width>492</width>
<height>71</height>
<include>19049</include>
<font>font14</font>
<textcolor>FF000000</textcolor>
<include>shadow-grey</include>
<onleft>1</onleft>
<onright>2</onright>
<onup>9</onup>
<ondown>11</ondown>
<texturefocus>dvdtrayeject-focus.png</texturefocus>
<texturenofocus>dvdtrayeject-nofocus.png</texturenofocus>
<textoffsetx>70</textoffsetx>
<pulseonselect>no</pulseonselect>
<visible>![System.hasmediadvd] + !Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
<onclick>XBMC.EjectTray()</onclick>
</control>


Greets
pOpY


#11 sadalius

sadalius

    X-S Member

  • Members
  • Pip
  • 76 posts
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 10 June 2006 - 01:47 PM

Thanks pOpY, that activated the button for me. Can you point me to somewhere that I can learn how to get my homebrew to show up when I click my new homebrew button?

#12 Popy

Popy

    X-S Young Member

  • Members
  • Pip
  • 30 posts

Posted 10 June 2006 - 07:54 PM

@sadalius:

If you want that a folder with Homebrew Games/applications are shown if you press homebrew button you must point the button to a bookmark in the xboxmediacenter.xml und the "myprograms" section.

Ill hope you have taken the code from me above then take a look at code block 4 of new code, it looks like that

<control>
<description>Homebrew Push Button</description>
<type>button</type>
<id>9</id>
<posx>112</posx>
<posy>180</posy>
<width>281</width>
<height>270</height>
<onleft>1</onleft>
<onright>2</onright>
<onup>8</onup>
<ondown>10</ondown>
<texturefocus>homebutton-5a.png</texturefocus>
<texturenofocus>-</texturenofocus>
<pulseonselect>no</pulseonselect>
<onclick>XBMC.ActivateWindow(1,Homebrew)</onclick>
<visible>!Control.HasFocus(1) + !Control.HasFocus(2)</visible>
<animation effect="fade" time="100">WindowOpen</animation>
</control>

Look above i have bold the onlick event for you.
You could see: XBMC.ActivateWindow(1,Homebrew)

that command is a system command of XBMC and means that a new Window will be opened up!
As first parameter "1" = that the myprograms window pop up, and the second parameter ist the Bookmarkname of the xboxmediacenter.xml, in our case "Homebrew".

You should add a bookmark named "Homebrew" in your "myprograms" section in the xboxmediacenter.xml.
it should look like my "myprograms" section:

<myprograms>
<default>Games</default>
<bookmark>
<name>Programs</name>
<path>E:\Apps\</path>
<depth>1</depth>
</bookmark>
<bookmark>
<name>Games</name>
<path>F:\Games\</path>
<depth>1</depth>
</bookmark>
<bookmark>
<name>Emulators</name>
<path>F:\Emulatoren\</path>
<depth>2</depth>
</bookmark>
<bookmark>
<name>Homebrew</name>
<path>F:\Homebrew\</path>
<depth>1</depth>
</bookmark>

<bookmark>
<name>DVD-Spiel</name>
<path>D:\</path>
</bookmark>
</myprograms>

Here you can see that the "Homebrew" Bookmark Points to the Folder F:\Homebrew.

Ill hope you learned a bit :-)

Greets pOpY

#13 sadalius

sadalius

    X-S Member

  • Members
  • Pip
  • 76 posts
  • Xbox Version:v1.1
  • 360 version:v1 (xenon)

Posted 11 June 2006 - 01:37 AM

Thank you kindly Popy. I was expecting maybe a link to a section of the XBMC manual, but you went out of your way and I really appreciate it!!

Thanks a bunch!

#14 Nagi

Nagi

    X-S Enthusiast

  • Members
  • 26 posts

Posted 11 June 2006 - 07:14 AM

Please some one send my the modded games.xml I still cant get this to work at all I dont know what I am doing wrong her mad.gif e

#15 Nagi

Nagi

    X-S Enthusiast

  • Members
  • 26 posts

Posted 11 June 2006 - 07:42 AM

Never mind I am retared I got it know thanks. sweet I changed mine to launch dashboards for me. Thanks for the help




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users