src/signs_gui.cpp
changeset 9273 35e0224ea8f1
parent 9179 780666b686ed
child 9285 235e5e2d7f55
equal deleted inserted replaced
9272:e64b518a7b54 9273:35e0224ea8f1
    73 			if (_sign_sort_dirty) GlobalSortSignList();
    73 			if (_sign_sort_dirty) GlobalSortSignList();
    74 
    74 
    75 			SetVScrollCount(w, _num_sign_sort);
    75 			SetVScrollCount(w, _num_sign_sort);
    76 
    76 
    77 			SetDParam(0, w->vscroll.count);
    77 			SetDParam(0, w->vscroll.count);
    78 			DrawWindowWidgets(w);
    78 			w->DrawWidgets();
    79 
    79 
    80 			/* No signs? */
    80 			/* No signs? */
    81 			int y = 16; // offset from top of widget
    81 			int y = 16; // offset from top of widget
    82 			if (w->vscroll.count == 0) {
    82 			if (w->vscroll.count == 0) {
    83 				DrawString(2, y, STR_304A_NONE, TC_FROMSTRING);
    83 				DrawString(2, y, STR_304A_NONE, TC_FROMSTRING);
   195 	}
   195 	}
   196 
   196 
   197 	virtual void OnPaint()
   197 	virtual void OnPaint()
   198 	{
   198 	{
   199 		SetDParam(0, this->caption);
   199 		SetDParam(0, this->caption);
   200 		DrawWindowWidgets(this);
   200 		this->DrawWidgets();
   201 		this->DrawEditBox(QUERY_EDIT_SIGN_WIDGET_TEXT);
   201 		this->DrawEditBox(QUERY_EDIT_SIGN_WIDGET_TEXT);
   202 	}
   202 	}
   203 
   203 
   204 	virtual void OnClick(Point pt, int widget)
   204 	virtual void OnClick(Point pt, int widget)
   205 	{
   205 	{