NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 56 57 58 59 60 … 93 Next »
BaseSkin ThemeManager

 
  • 0 Vote(s) - 0 Average
BaseSkin ThemeManager
MixMan
Offline

Posting Freak

Posts: 1,239
Threads: 100
Joined: Oct 2005
#1
2006-04-20, 03:35 PM (This post was last modified: 2006-04-21, 08:00 AM by MixMan.)
I have started to think about a ThemeManager functionality for the BaseSkin and its ThemePacks.
I am not a programmer and a lousy with graphical stuff, but I have some friends that are better than I am, so there will be a "plugin/program" some day.

Perhaps Dottore and Torque would like to have some background/button change features for their skins, so a "general" ThemeChanger functionality would be nice to have.
Each skin could have their own Themes subdir with a specific config file for updates and Skin/ThemePacks for that specific skin.

I will write down my thoughts on functionality in this post.

Features
- Client Plugin and your Server for updates/viewing
- General background/button change functionality with all skins
- Download and/or update BaseSkin or other skin
- Download and/or update ThemePacks
- Download and/or update AppearancePacks for Themes/Skins
- Change GUI settings in config.xml
- Change Language.xml
- ???

The idea - a TDF (Theme Defentition File)
The Plugin gets a TDF file and the rest is done "AutoMagically"

The TDF is an XML file with all info about a skin or a theme.
The TDF has a standard for naming
TDF Name: "Name"."Type"."Extention" eg. SharperEdge.Theme.exe
Preview: Previev-"Name".jpg eg. Preview.SharperEdge.jpg

TDF file could be something like this, for the plugin/program to act upon:

<Type>Theme</Type> (skin, theme, xml, plugin)
<ActiveTheme>YES</ActiveTheme>
<ThemeName>BlueGBPVR<ThemeName>
<ThemePreviewURL>http://www.hyperlink.com/BlueGBPVR.jpg</ThemePreviewURL>
<ThemeDownloadURL>http://www.hyperlink.com/Advisor.GBPVR.exe</ThemeDownloadURL>
<DownloadPath>.\skins\baseskin\AllBaseSkinThemes\</DownloadPath> (relative InstallDir)
<ExecuteAfterDownload>Advisor.GBPVR.exe</ExecuteAfterDownload>
<Description>This theme is based on Subs original Blue design</Description>
<Version>2.0</Version>
<Compatibility>Baseskin 2.0</Compatibility>
<Author>Mixman</Author>
<!-- config.xml settings -->
<ActiveSkin>BaseSkin</ActiveSkin>
<AnimateTaskTransitions>false</AnimateTaskTransitions>
<AnimationStepCount>7</AnimationStepCount>

ThemeManager Menus
The ThemeMangager should have sub menus for different functions.
Today the ThemePacks uses WinRars sfxoption.txt file to create the exe file.
This makes it very easy to create a ThemePack by running a BAT file.
There is both pre and post execute options with WinRar.
The ThemePack.exe runs a BAT file that copies files, after the unpacking of files.
The plugin needs to be able to download a TDF file, download what is specified in the TDF file and execute the downloaded file.


Appearance Sub Menu - What shall the end user be able to set/change ?
Similar function like AM, but with more configuration possibilities for different Themes and ThemePacks like the BaseSkin has.
- Language
- MainMenu background
- SubMenu background
- Buttons
- TaskImage animation ?
- Overscan ?
- Newsfeeds
- Calendars
- Radio Streams

Themes Sub Menu - ThemePacks
- View List/Preview
- Update
- Select/Apply


More defenitions should be in the file.......so more will come.
Best Regards
MixMan
[SIZE="1"]
Antec Fusion case with Gigabyte GA-MA78GM-SH, AMD X2 4850e, 2GB RAM, AMD780G Onboard graphics. WinTV-PVR 150 MCE (With FM), Twinhan DVB-T, 750GB + 250GB HDD. Windows XP Pro SP3, MCE 2005 Remote, 29" 4:3 monitor and a 47" Philips 9603H LCD[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#2
2006-05-07, 09:49 PM
Mixman: As discused, attached is the first version of a ThemeChanger plugin. Posted on here as cannot send files via PM.

It defines a BaseSkin theme as being a folder named Advisor.* in the ...\gbpvr\skin\BaseSkin folder. Within this folder it looks for the file CopyTheme.bat and the optional files: preview.jpg and readme.txt, which can be viewed.

Quote:How about when GBPVR locks the Taskimages ?
GBPVR needs to be shutdown before running the CopyTheme bat file.
I got around this by having a seperate program (ThemeManagerHelper.exe) do all the theme copying and then restart GBPVR once finished.

I've done about 30 or so theme switches with no issues.

Looking forward to your feedback.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
MixMan
Offline

Posting Freak

Posts: 1,239
Threads: 100
Joined: Oct 2005
#3
2006-05-07, 11:15 PM
WOW ......Thanks McBainUK

The plugin works great.
My only comment is that the plugin does not "return" the task image to GBPVR so the task image does not show up in the menu for themes like SharperEdge or Horizon.

I guess Sub can answer how to get this function
Best Regards
MixMan
[SIZE="1"]
Antec Fusion case with Gigabyte GA-MA78GM-SH, AMD X2 4850e, 2GB RAM, AMD780G Onboard graphics. WinTV-PVR 150 MCE (With FM), Twinhan DVB-T, 750GB + 250GB HDD. Windows XP Pro SP3, MCE 2005 Remote, 29" 4:3 monitor and a 47" Philips 9603H LCD[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2006-05-08, 12:29 AM
It'd be something like:
Code:
        public Image getTaskImage()
        {
            if (taskImage == null)
            {
                string taskImageFilename = PluginHelperFactory.getPluginHelper().getStandardSkinDirectory() + getSkinSubdirectory() + "\\task.png";
                if (System.IO.File.Exists(taskImageFilename))
                {
                    taskImage = Image.FromFile(taskImageFilename);
                }
            }

            return taskImage;
        }
MixMan
Offline

Posting Freak

Posts: 1,239
Threads: 100
Joined: Oct 2005
#5
2006-05-08, 05:53 AM
Thanks Sub
I will spread the info.
Best Regards
MixMan
[SIZE="1"]
Antec Fusion case with Gigabyte GA-MA78GM-SH, AMD X2 4850e, 2GB RAM, AMD780G Onboard graphics. WinTV-PVR 150 MCE (With FM), Twinhan DVB-T, 750GB + 250GB HDD. Windows XP Pro SP3, MCE 2005 Remote, 29" 4:3 monitor and a 47" Philips 9603H LCD[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#6
2006-05-08, 06:01 AM (This post was last modified: 2006-05-08, 06:06 AM by McBainUK.)
Thanks sub, I was always returning null as this is what it does in the example plugin from the wiki. Will update all my plugins tonight with the taskImage code.

Mixmin: Will create a wiki page for the plugin if your ok that it works? Will also take a look at the BaseSkin / ThemePack pages for 'backwardness' lol Smile

Mark

ps. Like the mayhem theme you sent me, got any more? Be useful for screenshots.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
MixMan
Offline

Posting Freak

Posts: 1,239
Threads: 100
Joined: Oct 2005
#7
2006-05-08, 07:01 PM
It seems like the plugin caches the preview images...in some way, because it doesn't show the actual preview.jpg file for all themes. It usually uses the first themes preview.jpg
I haven't found a pattern though
Best Regards
MixMan
[SIZE="1"]
Antec Fusion case with Gigabyte GA-MA78GM-SH, AMD X2 4850e, 2GB RAM, AMD780G Onboard graphics. WinTV-PVR 150 MCE (With FM), Twinhan DVB-T, 750GB + 250GB HDD. Windows XP Pro SP3, MCE 2005 Remote, 29" 4:3 monitor and a 47" Philips 9603H LCD[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#8
2006-05-08, 07:07 PM
MixMan Wrote:It seems like the plugin caches the preview images...in some way, because it doesn't show the actual preview.jpg file for all themes. It usually uses the first themes preview.jpg
I haven't found a pattern though
Try the latest version from the wiki.

Also needs UI elements v0.36 as I'm sure I fixed the caching issue in that releas.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
MixMan
Offline

Posting Freak

Posts: 1,239
Threads: 100
Joined: Oct 2005
#9
2006-05-08, 09:47 PM
Yepp....updating UI elements fixed the cached previews
Best Regards
MixMan
[SIZE="1"]
Antec Fusion case with Gigabyte GA-MA78GM-SH, AMD X2 4850e, 2GB RAM, AMD780G Onboard graphics. WinTV-PVR 150 MCE (With FM), Twinhan DVB-T, 750GB + 250GB HDD. Windows XP Pro SP3, MCE 2005 Remote, 29" 4:3 monitor and a 47" Philips 9603H LCD[/SIZE]
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#10
2006-05-16, 01:46 PM
Make ThemeManager work with other skins, not just BaseSkin.

I can manually swap themes, but I can see other users (as well as myself) would like to use ThemeManager to radically change the skin, (then use AppearanceManager to fine tune it.)

Maybe one day both those utilities can "merge" into one universal standalone utility.
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Named Colors in Baseskin Digital712 5 2,215 2006-08-22, 01:29 AM
Last Post: Digital712
  See how baseskin.xml works today, with an eye on the future. Fatman_do 0 1,300 2006-07-27, 04:23 PM
Last Post: Fatman_do

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode