Response box

The response box represents the response selection window for your game. It defines the placement of the responses, some controls (such as the scrolling buttons) and the design of the background of the response selection.

Reponse box is defined in a simple text file which as a structure similar to this:

RESPONSE_BOX
{
  FONT = "fonts\outline_white.font"
  FONT_HOVER = "fonts\outline_red.font"
  CURSOR = "path\response_cursor.png"
  HORIZONTAL = FALSE
  TEXT_ALIGN = "left"
  VERTICAL_ALIGN = "bottom"
  SPACING = 5

  AREA {40, 0, 800, 170}

  WINDOW
  {    
    X = 0
    Y = 420
    WIDTH = 800
    HEIGHT = 180

    BUTTON
    {
      TEMPLATE = "ui_elements\template\but.button"
      IMAGE = "ui_elements\arrow_up.bmp"
      TEXT = ""
      NAME = "prev"

      X = 0
      Y = 0
      WIDTH = 30
      HEIGHT = 30
    }

    BUTTON{
      TEMPLATE = "ui_elements\template\but.button"
      IMAGE = "ui_elements\arrow_down.bmp"
      TEXT = ""
      NAME = "next"

      X = 0
      Y = 150
      WIDTH = 30
      HEIGHT = 30
    }
  }
}

 

As you see, the first part (purple) defines some response-box specific attributes, while the second part (gray) defines the design. The second part is a casual window, as described in the Windows and controls chapter. The response-box window can contain any GUI elements you want, please see the mentioned chapter for more details about GUI definitions.

Let's take a closer look at the first section. It contains the following attributes:

Based on this setting, WME will automatically populate the defined rectangle with responses.

 

As for the second part, i.e. the window definitions, it's a normal window definition with a few exceptions. If you name some of the buttons "next" or "prev", WME will use them automatically for the response scrolling.