xboxscene.org forums

Author Topic: (request) Shutdown Timer  (Read 55 times)

djdafreund

  • Archived User
  • Sr. Member
  • *
  • Posts: 476
(request) Shutdown Timer
« on: July 08, 2006, 11:04:00 AM »

An easy way would be to change this---> (in the dialogbuttonmenu.xml file)

<control>
   <description>reboot button</description>
   <type>button</type>
   <id>3112</id>
   <posx>340</posx>
   <posy>363</posy>
   <width>350</width>
   <height>59</height>
   <texturefocus>guide-button-focus.png</texturefocus>
   <texturenofocus>-</texturenofocus>2600
   <onclick>XBMC.Reset()</onclick>
   <pulseonselect>no</pulseonselect>
   <onleft>3112</onleft>
   <onright>3112</onright>
   <onup>3111</onup>
   <ondown>3113</ondown>
   <font>font14</font>
   <label>13313</label>
   <textoffsetx>40</textoffsetx>
   <textcolor>FF000000</textcolor>
   <include>shadow-grey</include>
   <animation effect="fade" delay="450" time="200">WindowOpen</animation>
   <animation effect="fade" time="200">WindowClose</animation>
   <animation effect="zoom" start="95" end="100" center="515,393" time="300" reversible="false">focus</animation>
</control>


And change it to---->


<control>
   <description>Shutdown Timer</description>
   <type>button</type>
   <id>3112</id>
   <posx>340</posx>
   <posy>363</posy>
   <width>350</width>
   <height>59</height>
   <texturefocus>guide-button-focus.png</texturefocus>
   <texturenofocus>-</texturenofocus>2600
   <onclick>e:\apps\xbmc\scripts\shutdowntimer\shutdowntimer.py</onclick>
   <pulseonselect>no</pulseonselect>
   <onleft>3112</onleft>
   <onright>3112</onright>
   <onup>3111</onup>
   <ondown>3113</ondown>
   <font>font14</font>
   <label>Shutdown Timer</label>
   <textoffsetx>40</textoffsetx>
   <textcolor>FF000000</textcolor>
   <include>shadow-grey</include>
   <animation effect="fade" delay="450" time="200">WindowOpen</animation>
   <animation effect="fade" time="200">WindowClose</animation>
   <animation effect="zoom" start="95" end="100" center="515,393" time="300" reversible="false">focus</animation>
</control>

Assuming, of course, your script is in the proper e:\apps\xbmc\scripts\shutdowntimer directory.

I whipped it up, since i actually wanted to have it there myself as well, and what better time then the present. Also since i didn't need both Reboot, AND Reboot XBMC. Other ways of doing it of course by adding a button and changing a lot more.
Logged

Fused0ne

  • Archived User
  • Full Member
  • *
  • Posts: 128
(request) Shutdown Timer
« Reply #1 on: July 08, 2006, 04:31:00 PM »

So does that replace something that is already there? Or just adds the shut down timer option? This is something I could use as well.
Logged

Fused0ne

  • Archived User
  • Full Member
  • *
  • Posts: 128
(request) Shutdown Timer
« Reply #2 on: July 08, 2006, 07:32:00 PM »

Ah ok, thanks, didnt even notice that there was 2 restarts. Works great! Thanks!
Logged

djdafreund

  • Archived User
  • Sr. Member
  • *
  • Posts: 476
(request) Shutdown Timer
« Reply #3 on: July 08, 2006, 11:29:00 PM »

You welcome guys. Glad to just help out. I wanted to do it before for this skin, but read this post, and thought "Heck, why not take a few minutes and just do it now." Maybe it can be perminantly added to the MC360 skin though. That would be nice. Or a separate button to get deeper into the mod.
  But as mentioned, i don't personally have any concerns for having to separate Restarts. RestartXBMC alone is just fine for me.
Logged

djdafreund

  • Archived User
  • Sr. Member
  • *
  • Posts: 476
(request) Shutdown Timer
« Reply #4 on: July 09, 2006, 09:51:00 AM »

Ok, for those that want a separate button added, cut and paste this, i don't have the traffic to be able to host the file itself. Sorry :-(




<window>

   <id>111</id>
   <defaultcontrol>3113</defaultcontrol>
   <type>buttonMenu</type>

   <animation effect="fade" time="200">WindowOpen</animation>
   <animation effect="fade" delay="1050" time="50">WindowClose</animation>

   <controls>
      <include>TheDialogs</include>
 
      <control>
         <description>Divider</description>
         <type>image</type>
         <posx>370</posx>
         <posy>222</posy>
         <width>300</width>
         <height>1</height>
         <texture>divider.png</texture>
         <visible>System.HasLocks</visible>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
      </control>
   
      <control>
         <description>Divider</description>
         <type>image</type>
         <posx>370</posx>
         <posy>262</posy>
         <width>300</width>
         <height>1</height>
         <texture>divider.png</texture>
         <visible>System.HasLocks</visible>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
      </control>

      <control>
         <description>Divider</description>
         <type>image</type>
         <posx>370</posx>
         <posy>299</posy>
         <width>300</width>
         <height>1</height>
         <texture>divider.png</texture>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
      </control>

      <control>
         <description>Divider</description>
         <type>image</type>
         <posx>370</posx>
         <posy>336</posy>
         <width>300</width>
         <height>1</height>
         <texture>divider.png</texture>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
      </control>

      <control>
         <description>Divider</description>
         <type>image</type>
         <posx>370</posx>
         <posy>373</posy>
         <width>300</width>
         <height>1</height>
         <texture>divider.png</texture>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
      </control>

      <control>
         <description>Divider</description>
         <type>image</type>
         <posx>370</posx>
         <posy>410</posy>
         <width>300</width>
         <height>1</height>
         <texture>divider.png</texture>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
      </control>

      <control>
         <description>Divider</description>
         <type>image</type>
         <posx>370</posx>
         <posy>447</posy>
         <width>300</width>
         <height>1</height>
         <texture>divider.png</texture>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
      </control>    

      <control>
         <description>Enter master mode / Leave master mode</description>
         <type>togglebutton</type>
         <id>3108</id>
         <posx>340</posx>
         <posy>213</posy>
         <width>350</width>
         <height>59</height>
         <label>20046</label>
         <altlabel>20045</altlabel>
         <textcolor>FF000000</textcolor>
         <include>shadow-grey</include>
         <font>font14</font>
         <textoffsetx>40</textoffsetx>
         <aligny>center</aligny>
         <texturefocus>guide-button-focus.png</texturefocus>
         <texturenofocus>-</texturenofocus>
         <usealttexture>System.IsMaster</usealttexture>
         <alttexturefocus>guide-button-focus.png</alttexturefocus>
         <alttexturenofocus>-</alttexturenofocus>
         <onclick>xbmc.mastermode</onclick>
         <pulseonselect>no</pulseonselect>
         <onleft>3108</onleft>
         <onright>3108</onright>
         <onup>3113</onup>
         <ondown>3109</ondown>
         <visible allowhiddenfocus="false">System.HasLocks</visible>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
         <animation effect="zoom" start="95" end="100" center="515,282" time="300" reversible="false">focus</animation>
      </control>

      <control>
         <description>Dashboard button</description>
         <type>button</type>
         <id>3109</id>
         <posx>340</posx>
         <posy>252</posy>
         <width>350</width>
         <height>59</height>
         <texturefocus>guide-button-focus.png</texturefocus>
         <texturenofocus>-</texturenofocus>
         <onclick>XBMC.Dashboard()</onclick>
         <onleft>3110</onleft>
         <onright>3108</onright>
         <onup>3108</onup>
         <ondown>3110</ondown>
         <font>font14</font>
         <label>13006</label>
         <textoffsetx>40</textoffsetx>
         <textcolor>FF000000</textcolor>
         <include>shadow-grey</include>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
         <animation effect="zoom" start="95" end="100" center="515,319" time="300" reversible="false">focus</animation>
      </control>

      <control>
         <description>reload xbmc Button</description>
         <type>button</type>
         <id>3110</id>
         <posx>340</posx>
         <posy>289</posy>
         <width>350</width>
         <height>59</height>
         <texturefocus>guide-button-focus.png</texturefocus>
         <texturenofocus>-</texturenofocus>
         <onclick>XBMC.RestartApp()</onclick>
         <pulseonselect>no</pulseonselect>
         <onleft>3110</onleft>
         <onright>3110</onright>
         <onup>3109</onup>
         <ondown>3111</ondown>
         <font>font14</font>
         <label>Restart XBMC</label>
         <textoffsetx>40</textoffsetx>
         <textcolor>FF000000</textcolor>
         <include>shadow-grey</include>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
         <animation effect="zoom" start="95" end="100" center="515,356" time="300" reversible="false">focus</animation>
      </control>

      <control>
         <description>reboot button</description>
         <type>button</type>
         <id>3111</id>
         <posx>340</posx>
         <posy>326</posy>
         <width>350</width>
         <height>59</height>
         <texturefocus>guide-button-focus.png</texturefocus>
         <texturenofocus>-</texturenofocus>2600
         <onclick>XBMC.Reset()</onclick>
         <pulseonselect>no</pulseonselect>
         <onleft>3111</onleft>
         <onright>3111</onright>
         <onup>3110</onup>
         <ondown>3112</ondown>
         <font>font14</font>
         <label>13313</label>
         <textoffsetx>40</textoffsetx>
         <textcolor>FF000000</textcolor>
         <include>shadow-grey</include>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
         <animation effect="zoom" start="95" end="100" center="515,393" time="300" reversible="false">focus</animation>
      </control>
      <control>
         <description>Shutdown Timer</description>
         <type>button</type>
         <id>3112</id>
         <posx>340</posx>
         <posy>363</posy>
         <width>350</width>
         <height>59</height>
         <label>Shutdown Timer</label>
         <altlabel>20045</altlabel>
         <textcolor>FF000000</textcolor>
         <include>shadow-grey</include>
         <font>font14</font>
         <textoffsetx>40</textoffsetx>
         <aligny>center</aligny>
         <texturefocus>guide-button-focus.png</texturefocus>
         <texturenofocus>-</texturenofocus>
         <onclick>e:\apps\xbmc\scripts\shutdowntimer\shutdowntimer.py</onclick>
         <pulseonselect>no</pulseonselect>
         <onleft>3112</onleft>
         <onright>3112</onright>
         <onup>3111</onup>
         <ondown>3113</ondown>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
         <animation effect="zoom" start="95" end="100" center="515,282" time="300" reversible="false">focus</animation>
      </control>

      <control>
         <description>Shutdown button</description>
         <type>button</type>
         <id>3113</id>
         <posx>340</posx>
         <posy>400</posy>
         <width>350</width>
         <height>59</height>
         <texturefocus>guide-button-focus.png</texturefocus>
         <texturenofocus>-</texturenofocus>
         <onclick>XBMC.ShutDown()</onclick>
         <pulseonselect>no</pulseonselect>
         <onleft>3113</onleft>
         <onright>3113</onright>
         <onup>3112</onup>
         <ondown>3108</ondown>
         <font>font14</font>
         <label>13005</label>
         <textoffsetx>40</textoffsetx>
         <textcolor>FF000000</textcolor>
         <include>shadow-grey</include>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
         <animation effect="zoom" start="95" end="100" center="515,430" time="300" reversible="false">focus</animation>
      </control>

      <control>
         <description>Top label</description>
         <type>label</type>
         <posx>407</posx>
         <posy>40</posy>
         <width>270</width>
         <label>13005</label>
         <align>left</align>
         <include>DialogTitle</include>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
      </control>

      <control>
         <description>Alert Icon</description>
         <type>image</type>
         <posx>365</posx>
         <posy>40</posy>
         <width>30</width>
         <height>30</height>
         <texture>icon-info.png</texture>
         <animation effect="fade" delay="450" time="200">WindowOpen</animation>
         <animation effect="fade" time="200">WindowClose</animation>
      </control>

   </controls>

</window>
Logged

Cr4z33

  • Archived User
  • Full Member
  • *
  • Posts: 157
(request) Shutdown Timer
« Reply #5 on: July 15, 2006, 11:45:00 PM »

QUOTE(djdafreund @ Jul 9 2006, 05:58 PM) View Post
[...]i don't have the traffic to be able to host the file itself.[...]

http://www.uploading.com/
http://www.filegone.com/
Etc., etc.
Logged

djdafreund

  • Archived User
  • Sr. Member
  • *
  • Posts: 476
(request) Shutdown Timer
« Reply #6 on: July 16, 2006, 06:35:00 PM »

Ok, cool. Here's the file. Goes in \PAL directory (inside mc360 of course). Thanks for the links BTW.

dialogbutton.xml File
Logged

LiL CLEMO

  • Archived User
  • Newbie
  • *
  • Posts: 1
(request) Shutdown Timer
« Reply #7 on: July 28, 2006, 08:00:00 AM »

your the best!
Logged