mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
fixed 'individual width' option working incorrectly, and displayed incorrectly when editing
This commit is contained in:
parent
77d666ab15
commit
2693298825
@ -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(); });
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user