mirror of https://github.com/OpenTTD/OpenTTD
(svn r24379) -Fix [FS#5218-ish]: Do not resize the object GUI when selecting objects. Rather clip the object name.
parent
4843bad1ac
commit
3d3ab26ee6
|
@ -96,6 +96,12 @@ public:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case WID_BO_OBJECT_NAME:
|
||||||
|
case WID_BO_OBJECT_SIZE:
|
||||||
|
/* We do not want the window to resize when selecting objects; better clip texts */
|
||||||
|
size->width = 0;
|
||||||
|
break;
|
||||||
|
|
||||||
case WID_BO_OBJECT_MATRIX: {
|
case WID_BO_OBJECT_MATRIX: {
|
||||||
/* Get the right amount of buttons based on the current spec. */
|
/* Get the right amount of buttons based on the current spec. */
|
||||||
const ObjectSpec *spec = ObjectClass::Get(_selected_object_class)->GetSpec(_selected_object_index);
|
const ObjectSpec *spec = ObjectClass::Get(_selected_object_class)->GetSpec(_selected_object_index);
|
||||||
|
|
Loading…
Reference in New Issue