#!sdl_chomik

<<sdl chomik widgets prefix> please create new window widget at 0 and 0 of width 13 and height 13>;
let my map window index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new window widget at 520 and 0 of width 4 and height 5>;
let my status window index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new icon widget at 32 and 32 with image <my world image index>>;
let my world map icon index = <<sdl chomik widgets prefix> the made widget index>;

let <sdl chomik widgets prefix> the widget <my world map icon index> is movable = value boolean false;
let <sdl chomik widgets prefix> the widget <my world map icon index> is clickable = value boolean false;


# create the town icons

<<sdl chomik widgets prefix> please create new icon widget at 48 and 48 with image <my town image index>>;
let my town 1 icon index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new icon widget at 400 and 48 with image <my town image index>>;
let my town 2 icon index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new icon widget at 48 and 400 with image <my town image index>>;
let my town 3 icon index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new icon widget at 400 and 400 with image <my town image index>>;
let my town 4 icon index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new icon widget at 224 and 224 with image <my town image index>>;
let my town 5 icon index = <<sdl chomik widgets prefix> the made widget index>;

# create key sprites

<<sdl chomik widgets prefix> please create new icon widget at 100 and 100 with image <my key black small image index>>;
let my key black sprite index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new icon widget at 132 and 100 with image <my key blue small image index>>;
let my key blue sprite index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new icon widget at 164 and 100 with image <my key red small image index>>;
let my key red sprite index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new icon widget at 192 and 100 with image <my key white small image index>>;
let my key white sprite index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new icon widget at 224 and 100 with image <my key yellow small image index>>;
let my key yellow sprite index = <<sdl chomik widgets prefix> the made widget index>;


# create person sprites
<<sdl chomik widgets prefix> please create new animated icon widget at 0 and 0 with image <my person 1 small image index>>;
let my person 1 sprite index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new animated icon widget at 0 and 0 with image <my person 2 small image index>>;
let my person 2 sprite index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new animated icon widget at 0 and 0 with image <my person 3 small image index>>;
let my person 3 sprite index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new animated icon widget at 0 and 0 with image <my person 4 small image index>>;
let my person 4 sprite index = <<sdl chomik widgets prefix> the made widget index>;


<<sdl chomik widgets prefix> please add an image <my person number (PERSON:range 1..4) small image number (IMAGE_NUMBER:range 1000..1019) index> to the animated icon <my person (PERSON:range 1..4) sprite index>>;




type color = {black,blue,red,white,yellow};
expand(1);

let my widget for the key 1 = <my key black sprite index>;
let my widget for the key 2 = <my key blue sprite index>;
let my widget for the key 3 = <my key red sprite index>;
let my widget for the key 4 = <my key white sprite index>;
let my widget for the key 5 = <my key yellow sprite index>;

let my widget for the person (PERSON:person_id) = <my person (PERSON:person_id) sprite index>;

let <sdl chomik widgets prefix> the widget <my person (PERSON:person_id) sprite index> is movable = value boolean false;
let <sdl chomik widgets prefix> the widget <my person (PERSON:person_id) sprite index> is clickable = value boolean false;


let <sdl chomik widgets prefix> the widget <my key (COLOR:color) sprite index> is movable = value boolean false;
let <sdl chomik widgets prefix> the widget <my key (COLOR:color) sprite index> is clickable = value boolean false;

let <sdl chomik widgets prefix> the widget <my town (TOWN:range 1..5) icon index> is movable = value boolean false;
let <sdl chomik widgets prefix> the widget <my town (TOWN:range 1..5) icon index> is clickable = value boolean true;

<<sdl chomik widgets prefix> please create new text widget at 48 and 48 of width 1 and height 1>;
let my town 1 name index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new text widget at 400 and 48 of width 1 and height 1>;
let my town 2 name index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new text widget at 48 and 400 of width 1 and height 1>;
let my town 3 name index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new text widget at 400 and 400 of width 1 and height 1>;
let my town 4 name index = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please create new text widget at 224 and 224 of width 1 and height 1>;
let my town 5 name index = <<sdl chomik widgets prefix> the made widget index>;

let <sdl chomik widgets prefix> the widget <my town (TOWN:range 1..5) name index> is movable = value boolean false;
let <sdl chomik widgets prefix> the widget <my town (TOWN:range 1..5) name index> is clickable = value boolean false;

<<sdl chomik widgets prefix> please attach widget <my world map icon index> to <my map window index>>;
<<sdl chomik widgets prefix> please attach widget <my town (TOWN:range 1..5) icon index> to <my map window index>>;
<<sdl chomik widgets prefix> please attach widget <my town (TOWN:range 1..5) name index> to <my map window index>>;
<<sdl chomik widgets prefix> please attach widget <my key (COLOR:color) sprite index> to <my map window index>>;
<<sdl chomik widgets prefix> please attach widget <my person (PERSON:person_id) sprite index> to <my map window index>>;

<<sdl chomik widgets prefix> please add text line <name of place (TOWN:range 1..5)> to the widget <my town (TOWN:range 1..5) name index>>;



<<sdl chomik widgets prefix> please create new text widget at 552 and 32 of width 1 and height 1>;
let my title text index of the status = <<sdl chomik widgets prefix> the made widget index>;

<<sdl chomik widgets prefix> please add text line "Your status" to the widget <my title text index of the status>>;
let <sdl chomik widgets prefix> the widget <my title text index of the status> is movable = value boolean false;
let <sdl chomik widgets prefix> the widget <my title text index of the status> is clickable = value boolean false;
<<sdl chomik widgets prefix> please attach widget <my title text index of the status> to <my status window index>>;

<<sdl chomik widgets prefix> please add text line "Strength 10" to the widget <my title text index of the status>>;
<<sdl chomik widgets prefix> please add text line "Charisma 10" to the widget <my title text index of the status>>;
<<sdl chomik widgets prefix> please add text line "Intelligence 10" to the widget <my title text index of the status>>;

