2,051
edits
(typos, use xml syntax highlighting) |
|||
Line 1: | Line 1: | ||
'''WIP''' | '''WIP''' | ||
The new ScummVM virtual keyboard hopes to provide a | The new ScummVM virtual keyboard hopes to provide a generalized implementation | ||
of a virtual keyboard that will be usable on all of the small backends that | of a virtual keyboard that will be usable on all of the small backends that | ||
require it. | require it. | ||
Line 43: | Line 43: | ||
=== Keyboard bitmaps === | === Keyboard bitmaps === | ||
ScummVM's image manager can only decode 24-bit BMP images, so make sure you save your images in this format. You need to reserve a particular | ScummVM's image manager can only decode 24-bit BMP images, so make sure you save your images in this format. You need to reserve a particular color value to be used for transparency. By default the color used for transparency is set to be #FF00FF, but if you want to use a different color this can be specified in the configuration file. | ||
=== XML configuration file === | === XML configuration file === | ||
Line 51: | Line 51: | ||
==== Example configuration file ==== | ==== Example configuration file ==== | ||
< | <syntax type="xml"> | ||
<keyboard modes="normal,caps" initial_mode="normal" v_align="bottom" h_align=" | <keyboard modes="normal,caps" initial_mode="normal" v_align="bottom" h_align="center"> | ||
<mode name="normal" resolutions="640x400,320x200"> | <mode name="normal" resolutions="640x400,320x200"> | ||
<layout resolution="640x400" bitmap="normal_640x400.bmp" transparent_color="255,0,255"> | <layout resolution="640x400" bitmap="normal_640x400.bmp" transparent_color="255,0,255"> | ||
Line 86: | Line 86: | ||
</mode> | </mode> | ||
</keyboard> | </keyboard> | ||
</ | </syntax> | ||
=== Inclusion in build === | === Inclusion in build === |
edits