Qt: more ant extermination
After the fairly recent glyph changes, the icons shown for roles and races during the character selection dialog all were all depicted by the giant ant tile. I might have noticed this sooner but usually have '-@' on the command line to bypass selection.
This commit is contained in:
@@ -972,6 +972,8 @@ Qt: searching a text window for something that wasn't found and then searching
|
|||||||
for some other target could crash
|
for some other target could crash
|
||||||
Qt: changes in glyph handling in the core introduced a bug in the "paper doll"
|
Qt: changes in glyph handling in the core introduced a bug in the "paper doll"
|
||||||
display for inventory subset
|
display for inventory subset
|
||||||
|
Qt: during role selection, icons for role and race showed giant ant tile after
|
||||||
|
the glyph overhaul changes
|
||||||
tty: redraw unexplored locations as S_unexplored rather than <space> after
|
tty: redraw unexplored locations as S_unexplored rather than <space> after
|
||||||
map has been partially overwritten by popup menu or text display
|
map has been partially overwritten by popup menu or text display
|
||||||
tty: previous change resulted in remnants of previous level being shown on
|
tty: previous change resulted in remnants of previous level being shown on
|
||||||
|
|||||||
@@ -270,11 +270,15 @@ NetHackQtPlayerSelector::NetHackQtPlayerSelector(NetHackQtKeyBuffer& ks UNUSED)
|
|||||||
;
|
;
|
||||||
role->setRowCount(nrole);
|
role->setRowCount(nrole);
|
||||||
for (i=0; roles[i].name.m; i++) {
|
for (i=0; roles[i].name.m; i++) {
|
||||||
QTableWidgetItem *item = new QTableWidgetItem(
|
glyph_info gi;
|
||||||
QIcon(qt_settings->glyphs().glyph(roles[i].malenum, fem)),
|
int glyph = monnum_to_glyph(roles[i].malenum, fem);
|
||||||
roles[i].name.m);
|
map_glyphinfo(0, 0, glyph, 0, &gi);
|
||||||
item->setFlags(Qt::ItemIsEnabled|Qt::ItemIsSelectable);
|
|
||||||
role->setItem(i, 0, item);
|
QTableWidgetItem *item = new QTableWidgetItem(
|
||||||
|
QIcon(qt_settings->glyphs().glyph(glyph, gi.gm.tileidx, fem)),
|
||||||
|
(fem && roles[i].name.f) ? roles[i].name.f : roles[i].name.m);
|
||||||
|
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
||||||
|
role->setItem(i, 0, item);
|
||||||
}
|
}
|
||||||
connect(role, SIGNAL(currentCellChanged(int, int, int, int)),
|
connect(role, SIGNAL(currentCellChanged(int, int, int, int)),
|
||||||
this, SLOT(selectRole(int, int, int, int)));
|
this, SLOT(selectRole(int, int, int, int)));
|
||||||
@@ -286,11 +290,15 @@ NetHackQtPlayerSelector::NetHackQtPlayerSelector(NetHackQtKeyBuffer& ks UNUSED)
|
|||||||
;
|
;
|
||||||
race->setRowCount(nrace);
|
race->setRowCount(nrace);
|
||||||
for (i=0; races[i].noun; i++) {
|
for (i=0; races[i].noun; i++) {
|
||||||
QTableWidgetItem *item = new QTableWidgetItem(
|
glyph_info gi;
|
||||||
QIcon(qt_settings->glyphs().glyph(races[i].malenum, fem)),
|
int glyph = monnum_to_glyph(races[i].malenum, fem);
|
||||||
races[i].noun);
|
map_glyphinfo(0, 0, glyph, 0, &gi);
|
||||||
item->setFlags(Qt::ItemIsEnabled|Qt::ItemIsSelectable);
|
|
||||||
race->setItem(i, 0, item);
|
QTableWidgetItem *item = new QTableWidgetItem(
|
||||||
|
QIcon(qt_settings->glyphs().glyph(glyph, gi.gm.tileidx, fem)),
|
||||||
|
races[i].noun);
|
||||||
|
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
|
||||||
|
race->setItem(i, 0, item);
|
||||||
}
|
}
|
||||||
connect(race, SIGNAL(currentCellChanged(int, int, int, int)),
|
connect(race, SIGNAL(currentCellChanged(int, int, int, int)),
|
||||||
this, SLOT(selectRace(int, int, int, int)));
|
this, SLOT(selectRace(int, int, int, int)));
|
||||||
|
|||||||
Reference in New Issue
Block a user