Wintermute Engine Forum

Wintermute Engine => Bug reports => Fixed => Topic started by: mRax on August 27, 2009, 01:16:44 PM

Title: VAL_BOTTOM failed
Post by: mRax on August 27, 2009, 01:16:44 PM
Hello! Vertical text alignment of the label in the window
Code: [Select]
WINDOW
{
  NAME="test_window"
  X=0
  Y=0
  WIDTH=800
  HEIGHT=600
  VISIBLE=TRUE

  STATIC
  {
    NAME="test_static"
    FONT="fonts\outline_green.font"
    TEXT="THIS TEXT MUST BE AT THE BOTTOM!"
    TEXT_ALIGN="center"
    VERTICAL_ALIGN="bottom"
    X=0
    Y=0
    WIDTH=800
    HEIGHT=600
    VISIBLE=TRUE
   
    EDITOR_PROPERTY
    {
      NAME="Selected"
      VALUE="True"
    }
  }
}
will be VAL_CENTER for some reason. Not VAL_BOTTOM. Did I make a mistake somewhere? ???
Title: Re: VAL_BOTTOM failed
Post by: Mnemonic on August 27, 2009, 01:32:30 PM
It's a bug, apparently.

(For future reference, it's a typo in CUIText::Display (VAL_BOOL instead of VAL_BOTTOM).