How to create user-defined themes

A user-defined theme supports the same features as the standard themes that come with Four Winds. 

However, there are some differences between the two:

To create user-defined themes, it is strongly recommended that you use Four Winds Theme Editor, a separate utility that can be downloaded free of charge from Four Winds web site. In addition to making the creation of user-defined themes easy, this utility includes documentation that explains in detail how the graphics must be created (e.g., the exact size of each bitmap and exact position of each graphic element that must be included, etc.).

Installing user-defined themes

Each user-defined theme must be placed in a separate folder under \Custom\Themes folder (Custom folder is by default a sub folder in the Four Winds program folder, or when Windows Vista or later is used, under the [Users]\[Public]\[Documents]\4Winds2 folder). The folder names are used directly in the user interface to identify the user-defined themes. The file names must be as follows ([MyTheme] denotes the name of the folder and your theme, e.g. "Garden"):

Contents of the .4wg configuration file

The theme configuration file [MyTheme].4wg is a standard ANSI text file that contains the following settings:
[General]
Description="Description of my theme."
DrawTopBorder=0
HidePlayerBorder=0
[Colors]
DiscardColor=140008008
DiscardBorderColor=098008000
TutorFontColor=255247198
MeldedColor=000099099
SlotFontColor=255247198
ReadyColor=255255000
StatusFontColor=255247198
ButtonFontColor=255247198
ButtonFontGrayedColor=192192192
BestList=214231239
InnerDarkS=000000000
InnerLightS=214214222
OuterDarkS=128128128
OuterLightS=255255255
CaptionFontColor=255247198
Top20FontColor=000000000
ScoresFontColor=000000000
ScoresStatusFontColor=255247198
WinnerColor=024074033
DiscarderColor=128000000
LineColor=016123099
WallFontColor=255247198
TabBackGround=000099099
TabFontColorActive=255247198
TabFontColorInActive=255251240
TabColor=140008008
InnerDark=000000000
InnerLight=206132082
OuterDark=090016008
OuterLight=156066049
ListBack=198214222
ListFontColor=000000000
ListFontGrayColor=128128128
ListFontBoldColor=000000000
MyMoves=128000000
OtherMoves=024074033
DominantWindColor=189000000
EastWindColor=247173090
RoundWindColor=255107066
PlayerSeparator=255247198
HighlightColor=255255000
CornerColor=140008008
DividerColor=255255255
DividerColor2=191191191

 

The meanings of the settings are explained in detail in the documentation that comes with Four Winds Theme Editor (which also lets you specify all these settings visually so that you do not need to type the values in the configuration file).

If you have created a complete user-defined theme (preferably including all the needed cursors and sounds) and want to share it with other users, please contact info@4windsmj.com for details.

Related topics:
Changing a theme
Using custom tiles
Customizing the sound effects and background music