Skip to content

Commit

Permalink
KOTOR: Add the possibility to add label widgets to listbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Dec 23, 2017
1 parent 8f3b1b2 commit d48aaac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/engines/kotor/gui/widgets/listbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "src/engines/kotor/gui/gui.h"
#include "src/engines/kotor/gui/widgets/listbox.h"
#include "src/engines/kotor/gui/widgets/button.h"
#include "src/engines/kotor/gui/widgets/label.h"

namespace Engines {

Expand Down Expand Up @@ -63,6 +64,9 @@ KotORWidget *WidgetListBox::createItem(Common::UString name) {

// Create a new widget.
switch (_protoItem->getUint("CONTROLTYPE")) {
case 4:
item = new WidgetLabel(*_gui, name);
break;
case 6:
item = new WidgetButton(*_gui, name);
break;
Expand Down

0 comments on commit d48aaac

Please sign in to comment.