|
@@ -204,13 +204,13 @@ private:
|
|
|
uint ComputeGroupInfoSize()
|
|
|
{
|
|
|
this->column_size[VGC_FOLD] = maxdim(GetSpriteSize(SPR_CIRCLE_FOLDED), GetSpriteSize(SPR_CIRCLE_UNFOLDED));
|
|
|
this->tiny_step_height = this->column_size[VGC_FOLD].height;
|
|
|
|
|
|
this->column_size[VGC_NAME] = maxdim(GetStringBoundingBox(STR_GROUP_DEFAULT_TRAINS + this->vli.vtype), GetStringBoundingBox(STR_GROUP_ALL_TRAINS + this->vli.vtype));
|
|
|
this->column_size[VGC_NAME].width = std::max(170u, this->column_size[VGC_NAME].width);
|
|
|
this->column_size[VGC_NAME].width = std::max(450u, this->column_size[VGC_NAME].width);
|
|
|
this->tiny_step_height = std::max(this->tiny_step_height, this->column_size[VGC_NAME].height);
|
|
|
|
|
|
this->column_size[VGC_PROTECT] = GetSpriteSize(SPR_GROUP_REPLACE_PROTECT);
|
|
|
this->tiny_step_height = std::max(this->tiny_step_height, this->column_size[VGC_PROTECT].height);
|
|
|
|
|
|
this->column_size[VGC_AUTOREPLACE] = GetSpriteSize(SPR_GROUP_REPLACE_ACTIVE);
|
|
@@ -1081,20 +1081,20 @@ public:
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
static WindowDesc _other_group_desc(
|
|
|
WDP_AUTO, "list_groups", 460, 246,
|
|
|
WDP_AUTO, "list_groups", 940, 246,
|
|
|
WC_INVALID, WC_NONE,
|
|
|
0,
|
|
|
_nested_group_widgets, lengthof(_nested_group_widgets)
|
|
|
);
|
|
|
|
|
|
static WindowDesc _train_group_desc(
|
|
|
WDP_AUTO, "list_groups_train", 525, 246,
|
|
|
WDP_AUTO, "list_groups_train", 1005, 246,
|
|
|
WC_TRAINS_LIST, WC_NONE,
|
|
|
0,
|
|
|
_nested_group_widgets, lengthof(_nested_group_widgets)
|
|
|
);
|
|
|
|
|
|
/**
|