Mission planner Skinning

From SEOW Wiki
Revision as of 09:00, 17 March 2007 by Katana (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Availability: MP-v4.285 or later

Description:

The Mission Planner now supports rudimentary skinning, i.e. the ability to change the "look and feel" of the MP quickly and easily. The skin choice is set by the PHP variable $MPSkin in the first few lines of "Scripts/MP-Configuration.php". As of MP-v4.285, the allowed values for this variable are "green" (default) or "classic".

The Statistics pages can be made to conform to the MP skin, or to use their own colour scheme. This choice is governed by the PHP variable $StatSkin in the last few lines of "Scripts/MP-Configuration.php". Valid choices for the value of $StatSkin are "MP" or "self".

The skin scheme consists of several colour definitions for each skin:

Code:

///////////////////////////////////////////////////////////////////////////////////////////////////////<br>
// MP Skin Section<br>
//<br>
// "classic" Skin<br>
$Background_classic = "#424242";<br>
$BackgroundHigh_classic = "#626262";<br>
$BackgroundLow_classic = "#323232";<br>
$BackgroundListHigh_classic = "#585858";<br>
$BackgroundListLow_classic = "#505050";<br>
$BackgroundStrong_classic = "#1a321a";<br>
$BackgroundBold_classic = "#77771a";<br>
$Text_classic = "#aaaabb";<br>
//<br>
// "green" Skin<br>
$Background_green = "#708b96";<br>
$BackgroundHigh_green = "#75929c";<br>
$BackgroundLow_green = "#4c6069";<br>
$BackgroundListHigh_green = "#607c87";<br>
$BackgroundListLow_green = "#557275";<br>
$BackgroundStrong_green = "#1a321a";<br>
$BackgroundBold_green = "#77771a";<br>
$Text_green = "#b5c2c7";<br>
//<br>
//<br>
///////////////////////////////////////////////////////////////////////////////////////////////////////<br>
// Statistics Skin Section - allowing stats pages to have a different colour scheme to the MP<br>
// ... see Statistics/stats_functions.php for coding details.<br>
$StatSkin = "MP";      //"MP" means use MP scheme, while "self" means Stats use the following decorative colours.<br>
$Background_Statistics = "#ffffff";<br>
$BackgroundHigh_Statistics = "#cccccc";<br>
$BackgroundLow_Statistics = "#aaaaaa";<br>
$BackgroundListHigh_Statistics = "#cfcfcf";<br>
$BackgroundListLow_Statistics = "#c0c0c0";<br>
$BackgroundStrong_Statistics = "#aabbaa";<br>
$BackgroundBold_Statistics = "#aaaacc";<br>
$Text_Statistics = "#333333";<br>
|}<br>

The colour definitions are made in terms of hexadecimal RGB codes. Skins are completed by defining a small number of banner bitmaps prefixed by the uppercase form of the skin name, e.g. for the "green" skin the bitmaps are

Code:

uniticons/GREEN-SEOW-MP-Banner.jpg<br>
uniticons/GREEN-SEOW-MP-Manage.jpg<br>
uniticons/GREEN-SEOW-MP-Costs.jpg<br>

etc. New skins can be added by defining the new bitmaps to the "uniticons" folder and adding the colour definitions to the "Scripts/MP-Configuration.php" file, suitably defined with the skin name as suffix. Any users that develop new skins are encouraged to submit them to SEOW for inclusion in upcoming releases or as downloadable skin packs.