Difference between revisions of "Theme"
From BotF2-Wiki
Line 1: | Line 1: | ||
+ | |||
+ | We are still finding out how that works. | ||
+ | |||
+ | Atm we have two different ways: | ||
+ | *new one (created by Hannes): defines a BasePath and a Filename in '''game's''' folder "Resources", and in the middle the players race is filled in | ||
+ | private const string MusicThemeBasePath = "Resources/Themes"; | ||
+ | private const string MusicPackFileName = "MusicPacks.xml"; | ||
+ | Advantage: easier to code | ||
+ | Disadvantage: files are separated | ||
+ | |||
+ | *this new one is already done for \Resources\UI, but there only the *.png are included, no xaml. (Example: shipyard_dock.png for each race) | ||
+ | |||
+ | *suggestion (by reg): doing all new stuff into \Resources\Themes, separated by played race. | ||
+ | |||
+ | *an older option is to put all files into one folder and separate it by filename (examples: '''fed_'''destroyer.png, '''card_'''destroyer.png, another example: audio files for TaskForceOrders) | ||
+ | |||
+ | |||
+ | |||
+ | |||
*maybe for StartGame-Screen: \Mainline\SupremacyClient\themes\Default.xaml | *maybe for StartGame-Screen: \Mainline\SupremacyClient\themes\Default.xaml | ||
<ResourceDictionary Source="/SupremacyClient;component/themes/Global.xaml"/> | <ResourceDictionary Source="/SupremacyClient;component/themes/Global.xaml"/> |
Revision as of 15:39, 3 January 2016
We are still finding out how that works.
Atm we have two different ways:
- new one (created by Hannes): defines a BasePath and a Filename in game's folder "Resources", and in the middle the players race is filled in
private const string MusicThemeBasePath = "Resources/Themes"; private const string MusicPackFileName = "MusicPacks.xml";
Advantage: easier to code Disadvantage: files are separated
- this new one is already done for \Resources\UI, but there only the *.png are included, no xaml. (Example: shipyard_dock.png for each race)
- suggestion (by reg): doing all new stuff into \Resources\Themes, separated by played race.
- an older option is to put all files into one folder and separate it by filename (examples: fed_destroyer.png, card_destroyer.png, another example: audio files for TaskForceOrders)
- maybe for StartGame-Screen: \Mainline\SupremacyClient\themes\Default.xaml
<ResourceDictionary Source="/SupremacyClient;component/themes/Global.xaml"/> <ResourceDictionary Source="/SupremacyClient;component/themes/MessageDialog.xaml"/> <ResourceDictionary Source="/SupremacyClient;component/themes/MenuScreen.xaml"/>
- \Mainline\SupremacyClient\themes\Global.xaml
<ResourceDictionary Source="pack://siteoforigin:,,,/Resources/Geometry/Glyphs.xaml" /> <ResourceDictionary Source="pack://siteoforigin:,,,/Resources/Images/Resources/Icons.xaml" />
MusicPack
(done by Hannes)