PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > Windows Mobile Hacks/Tweaks > Titanium Tweaks
Register Community Search

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9 (permalink)  
Old 04-12-2009, 12:54 AM
showaco's Avatar
Lurker
Offline
 
Join Date: Nov 2007
Posts: 20
Reputation: 105
showaco is keeping up the good workshowaco is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: CHome/Titanium Modifications

Y'all may have missed it, but there is another GUID that can be used(and should probably be the basis for all custom panels). Its from the htc sliding panels for smartphone and is the GUID that all htc panels are based on. Here's some of the reg files from v3 titaniumweather for example:

Notice that you must specify a data source(in this case is this registry location), and a layout(this would be panel name inside the cpr). It also uses the Updated dword value. This can update the panel when value is toggled. I toggle it between 0 and 1 for the weather app to update when data is downloaded.
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\CHome\TitaniumWeather]
"Updated"=dword:00000001
"Pages"="Page1;Page2;Page3;Page4;Page5;Page6;Page7;Page9;Page8"
"DataSource"="SOFTWARE\\Microsoft\\CHome\\TitaniumWeather"
"GUID"="{F0A1B246-6E64-40cd-8E15-347D29FF6F18}"
"Layout"="TitaniumWeather"
"LocName"="TitaniumWeather"
"ICONPATHS"="\\Windows\\Neo_Weather.png;\\Windows\\Neo_Weather.png;\\Windows\\Neo_Weather.png"

[HKEY_LOCAL_MACHINE\Software\Microsoft\CHome\TitaniumWeather\Page1]
"Time"="07:54 PM"
"CurrentTemp"="60°"
"CurrentIcon"="\\Program Files\\TitaniumWeather\\condicons\\06.png"
"TodayTemps"="67°/56°"
"Day1Icon"="\\Program Files\\TitaniumWeather\\condicons\\07.png"
"Highs"="H: 75           75           76           75"
"Lows"="L:    51           49           56           60"
"Day5Icon"="\\Program Files\\TitaniumWeather\\condicons\\04.png"
"Days"="Sun         Mon         Tue         Wed"
"Day4Icon"="\\Program Files\\TitaniumWeather\\condicons\\03.png"
"Day3Icon"="\\Program Files\\TitaniumWeather\\condicons\\02.png"
"Day2Icon"="\\Program Files\\TitaniumWeather\\condicons\\15.png"
"ACTIONURL"="\\Program Files\\TitaniumWeather\\TitaniumWeather.mscr"
"SK2URL"="\\Program Files\\TitaniumWeather\\TitaniumWeatherOptions.mscr"
"SK2TEXT"="Menu"

[HKEY_LOCAL_MACHINE\Software\Microsoft\CHome\TitaniumWeather\CondensedPage]
"PluginLabel"="60° Mostly Cloudy"
With this GUID, you will also need to make your panel layout in your cpr since it won't be using an existing panel. It can read any text string or image location from registry. In cpr file there must be a corresponding image or text line with same name as reg entry. For example, here's my v3 cpr section. You will be able to find the reg values above for page1 listed in cpr along with there position values. You'll notice that there are many image and text files, but the reg above doesn't use all of them. You can define all for all the pages in the cpr, but then use different ones for different pages of the panel. This way you can have different layouts for each page of a single panel.
Code:
  <!-- TitaniumWeather -->
  <Layer ID="TitaniumWeatherExpanded" Visible="False" Width="480" Height="180">
    <Layer ID="Page">
      <!-- Page1 icons -->
      <Image ID="CurrentIcon" Left="10" Top="-10" Width="120" Height="120"/>
      <Image ID="Day2Icon" Left="195" Top="25" Width="60" Height="60" /> 
      <Image ID="Day3Icon" Left="265" Top="25" Width="60" Height="60" /> 
      <Image ID="Day4Icon" Left="335" Top="25" Width="60" Height="60" /> 
      <Image ID="Day5Icon" Left="410" Top="25" Width="60" Height="60" />

      <!-- detail pages icons -->
    <Image ID="ForecastIcon" Left="10" Top="-10" Width="120" Height="120"/>

      <!-- detail pages text --> 
      <Text ID="CurrentTemp2" Left="0" Top="-8" Width="168" Height="50" FontFamily="Segoe UI" FontSize="18" FontStyle="Regular" Wrap="False" HorizontalAlignment="Right" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
      </Text>
      <Text ID="Temps" Left="5" Top="90" Width="130" Height="70" FontFamily="Segoe UI" FontSize="17" FontStyle="Regular" Wrap="False" HorizontalAlignment="Center" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
      </Text>
        <Text ID="Day" Left="161" Top="17" Width="470" Height="60" FontFamily="Segoe UI" FontSize="8" FontStyle="Regular" Wrap="False" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
        </Text>
        <Text ID="Desc" Left="161" Top="43" Width="470" Height="60" FontFamily="Segoe UI" FontSize="8" FontStyle="Regular" Wrap="False" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
        </Text>
        <Text ID="Winds" Left="161" Top="69" Width="470" Height="30" FontFamily="Segoe UI" FontSize="7" FontStyle="Regular" Wrap="False" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
        </Text>
        <Text ID="Prec" Left="161" Top="92" Width="470" Height="30" FontFamily="Segoe UI" FontSize="7" FontStyle="Regular" Wrap="False" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
        </Text>
        <Text ID="Other" Left="161" Top="115" Width="470" Height="30" FontFamily="Segoe UI" FontSize="7" FontStyle="Regular" Wrap="False" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
        </Text>

      <!-- Page1 text -->
      <Text ID="CurrentTemp" Left="0" Top="-10" Width="190" Height="70" FontFamily="Segoe UI" FontSize="22" FontStyle="Regular" Wrap="False" HorizontalAlignment="Right" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
      </Text>
      <Text ID="TodayTemps" Left="2" Top="92" Width="150" Height="50" FontFamily="Segoe UI" FontSize="7" FontStyle="Regular"  Wrap="False" HorizontalAlignment="Center" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
      </Text>
      <Text ID="Days" Left="205" Top="80" Width="370" Height="50" FontFamily="Segoe UI" FontSize="6" FontStyle="Regular"  Wrap="False" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
      </Text>
      <Text ID="Highs" Left="188" Top="100" Width="370" Height="50" FontFamily="Segoe UI" FontSize="6" FontStyle="Regular"  Wrap="False" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
      </Text>
      <Text ID="Lows" Left="188" Top="118" Width="380" Height="50" FontFamily="Segoe UI" FontSize="6" FontStyle="Regular"  Wrap="False" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
      </Text>
      <Text ID="Time" Left="2" Top="113" Width="150" Height="20" FontFamily="Segoe UI" FontSize="6" FontStyle="Regular"  Wrap="False" HorizontalAlignment="Center" Trimming="EllipsisCharacter">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
      </Text>

    </Layer>
  </Layer>
  <Layer ID="TitaniumWeatherCondensed" Visible="False" Width="480" Height="60">
    <Layer ID="Page">
      <Text ID="PluginLabel" Left="20" Top="8" Width="460" Height="52" FontFamily="Segoe UI" FontSize="16" FontStyle="Regular"  Wrap="False" VerticalAlignment="Middle" Trimming="EllipsisCharacter"  Text="voicemail">
          <TextStage TextOffsetType="TextOffsetDropBottomRight" Color="#00000000" TextOffset="1" BlurFactor="3" Alpha="1.0"/>
          <TextStage TextOffsetType="TextOffsetNone" Color="#FFFFFFFF"/>
      </Text>
    </Layer>
  </Layer>
drkfngthdragnlrd found this GUID and pointed it out to me, so all thanks go to him. Now a panel could be made for almost anything now with this. Use your imagination of what you'd like to see. It would be possible to add Pocket SportsCenter to a panel too, baseball and football scores that auto update=D>

Last edited by showaco; 04-12-2009 at 01:02 AM.
This post has been thanked 3 times.
 

  PPCGeeks > Windows Mobile > Windows Mobile Hacks/Tweaks > Titanium Tweaks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 12:02 AM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com