Skip to content

Commit

Permalink
KOTOR: Add the highlighting disabling to the character menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Jun 26, 2017
1 parent baea52f commit b52966e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/engines/kotor/gui/chargen/quickchar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ void QuickCharPanel::updateButtons() {
getButton("BTN_STEPNAME1")->setPermanentHighlight(true);
getButton("BTN_STEPNAME2")->setPermanentHighlight(false);
getButton("BTN_STEPNAME3")->setPermanentHighlight(false);

getButton("BTN_STEPNAME1")->setDisableHighlight(false);
getButton("BTN_STEPNAME2")->setDisableHighlight(true);
getButton("BTN_STEPNAME3")->setDisableHighlight(true);
break;

case 1:
Expand All @@ -98,6 +102,10 @@ void QuickCharPanel::updateButtons() {
getButton("BTN_STEPNAME1")->setPermanentHighlight(false);
getButton("BTN_STEPNAME2")->setPermanentHighlight(true);
getButton("BTN_STEPNAME3")->setPermanentHighlight(false);

getButton("BTN_STEPNAME1")->setDisableHighlight(true);
getButton("BTN_STEPNAME2")->setDisableHighlight(false);
getButton("BTN_STEPNAME3")->setDisableHighlight(true);
break;

default:
Expand All @@ -109,6 +117,10 @@ void QuickCharPanel::updateButtons() {
getButton("BTN_STEPNAME1")->setPermanentHighlight(false);
getButton("BTN_STEPNAME2")->setPermanentHighlight(false);
getButton("BTN_STEPNAME3")->setPermanentHighlight(true);

getButton("BTN_STEPNAME1")->setDisableHighlight(true);
getButton("BTN_STEPNAME2")->setDisableHighlight(true);
getButton("BTN_STEPNAME3")->setDisableHighlight(false);
break;
}

Expand Down

0 comments on commit b52966e

Please sign in to comment.