The native Krento skin is a set of the ini text file and few images. The default name of the ini file is background.ini You can use Notepad to create and edit background.ini file.

Ini file (skin settings file) has the following structure:

[Info]
Name = User Friendly Name of the skin
FontName = Tahoma
FontSize = 14
Color = White
HotImage = DoDown.png
StoneInfo = StoneInfo.png

[Background]
Image = background.png
LeftWidth    = 12
RightWidth    = 12
TopHeight   = 12
BottomHeight   = 12
OutsideBorderTop   = 0
OutsideBorderBottom   = 0
OutsideBorderLeft    = 0
OutsideBorderRight    = 0
TextOffset = 14

[Stone]
Image = background.png
OutsideBorderTop   = 12
OutsideBorderBottom   = 12
OutsideBorderLeft    = 12
OutsideBorderRight    = 12
Border = 0

If the size of the stone skin drawing is smaller than total size of the image (image has unused transparent area between the image border and the skin border) this area size is specified by using OutsideBorderXXX parameters for stone manager.
The size of the unstretchable area for the manager background is defined as OutsideBorderXXX parameter and XXXWidth/XXXHeight parameter.
For the stone background only OutsideBorderXXX parameter is used and it equals to the total size of the unstretchable area.

  1. OutsideBorderLeft
  2. OutsideBorderBottom
  3. OutsideBorderRight
  4. OutsideBorderTop
  5. TopHeight
  6. LeftWidth
  7. LeftWidth + OutsideBorderLeft = Total unstretched area size at the left side
  8. OutsideBorderBottom + BottomHeight = Total unstretched area size at the bottom
  9. BottomHeight
  10. OutsideBorderRight + RightWidth = Total unstretched area size at the right side
  11. RightWidth
  12. OutsideBorderTop + TopHeight = Total unstretched area size at the top
  13. TextOffset (This value can be negative as well)
  14. Text Area – the area of the Stone Manager where text is displayed
  15. Streched area of the skin. This part of the skin is used to fill the central part of the stone or manager window
  16. Non stretched corner of the skin.

One more sample of Krento skin ini file:

[Info] Name = Krento Gloss Blue
FontName = Tahoma
FontSize = 14
Color = 254, 37, 103, 162
HotImage = DoDown.png
StoneInfo = StoneInfo.png

[Background]
Image = background.png
LeftWidth    = 0
RightWidth    = 0
TopHeight   = 0
BottomHeight   = 0
OutsideBorderTop   = 8
OutsideBorderBottom   = 8
OutsideBorderLeft    = 52
OutsideBorderRight    = 52
TextOffset = -8

[Stone]
Image = background.png
OutsideBorderTop   = 8
OutsideBorderBottom   = 8
OutsideBorderLeft    = 52
OutsideBorderRight    = 52
Border = 0

The skin is packaged by default as PKZIP file with extension .kskin, for example MySkin.kskin

It is recommended to add all files to kskin file including subfolder name.

Installing of Krento skin (.kskin) file is very simple – just drag and drop it to Krento Pulsar.

You can download few existing skin files and analyze it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s