don't show left/right in create new PC skill dialog

This commit is contained in:
2025-05-16 17:28:41 -05:00
parent 77fe44c514
commit e900ff2a2e

View File

@@ -438,7 +438,6 @@ static bool spend_xp_navigate_filter(cDialog& me, std::string item_hit,xp_dlog_s
save.start_skp = save.skp;
}
} else if(item_hit == "right") {
// TODO: If they don't work in mode 0, why are they visible?
if(save.skp == save.start_skp || confirm_switch_pc(me, save)){
do {
save.who = (save.who == 5) ? 0 : save.who + 1;
@@ -589,6 +588,12 @@ bool spend_xp(short pc_num, short mode, cDialog* parent) {
cDialog xpDlog(*ResMgr::dialogs.get("spend-xp"),parent);
// Making new PC, you can't switch to train other PCs
if(mode == 0){
xpDlog["left"].hide();
xpDlog["right"].hide();
}
const int LABEL_OFFSET_COL1 = 85;
const int LABEL_OFFSET_COL2 = 74;
xpDlog.addLabelFor("hp","Health",LABEL_LEFT,LABEL_OFFSET_COL1,true);