Skip to content

Commit

Permalink
Game Menu: Position label plus textual value-slider pairs similarly t…
Browse files Browse the repository at this point in the history
…o buttons
  • Loading branch information
danij-deng committed Dec 30, 2011
1 parent d43b176 commit 57259e1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions doomsday/plugins/common/src/hu_lib.c
Expand Up @@ -821,19 +821,26 @@ static void applyPageLayout(mn_page_t* page)
{
mn_object_t* obj = &page->objects[i];

if(!MNObject_IsDrawable(obj)) continue;
if(!MNObject_IsDrawable(obj))
{
// Proceed to the next object!
i += 1;
continue;
}

obj->_geometry.origin.x = 0;
obj->_geometry.origin.y = yOrigin;

// Orient label plus button/inline list pairs around a vertical dividing line,
// with the label on the left, other object on the right.
// Orient label plus button/inline-list/textual-slider pairs about a
// vertical dividing line, with the label on the left, other object
// on the right.
if(MNObject_Type(obj) == MN_TEXT)
{
mn_object_t* nextObj = page->objects + (i+1);
if(MNObject_IsDrawable(nextObj) &&
(MNObject_Type(nextObj) == MN_BUTTON ||
MNObject_Type(nextObj) == MN_LISTINLINE))
MNObject_Type(nextObj) == MN_LISTINLINE ||
(MNObject_Type(nextObj) == MN_SLIDER && obj->drawer == MNSlider_TextualValueDrawer)))
{
const int margin = lineOffset * 2;

Expand Down

0 comments on commit 57259e1

Please sign in to comment.