forked from mirror/OpenTTD
(svn r18273) -Codechange: do not require widget numbers for default widgets (close, sticky, resize buttons and the caption), except when you want to use SetStringParameter for the caption ofcourse. Also remove the requirement for some of the WDF flags; no need to test for both the flag whether a feature is used and whether the feature is in action.
This commit is contained in:
@@ -737,7 +737,7 @@ static inline NWidgetPart SetPIP(uint8 pre, uint8 inter, uint8 post)
|
||||
* Child widgets must have a index bigger than the parent index.
|
||||
* @ingroup NestedWidgetParts
|
||||
*/
|
||||
static inline NWidgetPart NWidget(WidgetType tp, Colours col, int16 idx)
|
||||
static inline NWidgetPart NWidget(WidgetType tp, Colours col, int16 idx = -1)
|
||||
{
|
||||
NWidgetPart part;
|
||||
|
||||
|
Reference in New Issue
Block a user