Loading

Paste #ps887x0fy

  1. case WID_AIC_CHANGE: {
  2.                 uint change_width = 0;
  3.                 StringID change = STR_AI_CONFIG_CHANGE;
  4.                 SetDParam(0, STR_AI_CONFIG_GAMESCRIPT);
  5.                 change_width = max(change_width, GetStringBoundingBox(change).width);
  6.                 SetDParam(0, STR_AI_CONFIG_NONE);
  7.                 change_width = max(change_width, GetStringBoundingBox(change).width);
  8.                 SetDParam(0, STR_AI_CONFIG_AI);
  9.                 change_width = max(change_width, GetStringBoundingBox(change).width);
  10.                 size->width = change_width + WD_MATRIX_LEFT + WD_MATRIX_RIGHT;
  11.                 break;
  12.             }

Version history

Revision # Author Created at
pwvo7pr2m Anonymous 08 May 2016, 11:07:25 UTC Diff

Comments