1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 19:29:59 +00:00

fixed 'individual width' option working incorrectly, and displayed incorrectly when editing

This commit is contained in:
Zeno Rogue 2019-08-14 09:37:21 +02:00
parent 77d666ab15
commit 2693298825

View File

@ -2587,7 +2587,7 @@ EX namespace linepatterns {
for(auto& lp: patterns) {
string name = XLAT(lp.lpname);
if(GOLDBERG && among(lp.id, patVine, patPower)) name = XLAT("Goldberg");
if(indiv) {
if(!indiv) {
dialog::addColorItem(name, lp.color, 'a'+(id++));
dialog::add_action([&lp] () {
dialog::openColorDialog(lp.color, NULL);
@ -2596,7 +2596,7 @@ EX namespace linepatterns {
}
else {
dialog::addSelItem(name, fts(lp.multiplier), 'a'+(id++));
dialog::add_action([&lp] () { dialog::editNumber(lp.multiplier, 0, 10, 0.1, 1, XLAT("line width"), ""), dialog::scaleLog(); });
dialog::add_action([&lp] () { dialog::editNumber(lp.multiplier, 0.001, 10, 0.1, 1, XLAT("line width"), ""), dialog::scaleLog(); });
}
}