Quote:
Originally Posted by showaco
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>
|
I've been playing with the for a while now, and I just can't seem to wrap my head around it. I think I'm understanding that with the GUID we will be able to create new panels without making anything "invisible". To test it I simply created a "test" panel using that GUID, and then copied my "welcome center" panel in the CPR file and changed it to represent Test at the end of the cpr file. I then pasted my new CPR and I then went through the standard step to set up the panel, and havent been able to get it to show up. I see Test in the configurator, I've added it to the xml file, but i can't get it to show up. Anyone have any ideas? Shawco, am i missing the boat on this or am I on the right track?