Skip to content
nhmkdev edited this page Jan 2, 2014 · 3 revisions

Window objects are graphical components for use with Dialogs and CustomMenus (and possibly more!). A window is a single graphic intended for reuse.

Sample uses for windows in a standard character dialog. Each of the items below would be a single window.

  • The background behind text
  • The background behind an image of the speaker
  • The image of the speaker

Data Format

The Window data objects are stored in ig.support.data.windows.

var Windows = ig.support.data.windows;

Windows.sample =
{
    i:'spike', // image ('media/' is prepended; '.png' is appended)
    sx:0, // source x (default: 0)
    sy:0, // source y (default: 0)
    x:30, // target x (default: 0)
    y:30, // target y (default: 0)
    w:32, // width (default: image width)
    h:16, // height (default: image height)
    t:{} // text (TBD - not implemented at this time)
}

Clone this wiki locally