Loading

Paste #pxunmvwxo

  1.             case WID_AIC_CHANGE: {
  2.                 uint change_width = 0;
  3.                 static const StringID param[] = {STR_AI_CONFIG_GAMESCRIPT, STR_AI_CONFIG_NONE, STR_AI_CONFIG_AI};
  4.                 for (int i = 0; i < lengthof(param); i++) {
  5.                     SetDParam(0, param[i]);
  6.                     change_width = max(change_width, GetStringBoundingBox(STR_AI_CONFIG_CHANGE).width);
  7.                 }
  8.                 size->width = change_width + WD_MATRIX_LEFT + WD_MATRIX_RIGHT;
  9.                 break;
  10.             }

Version history

Revision # Author Created at
ped7ucocw Anonymous 08 May 2016, 13:34:08 UTC Diff
ps887x0fy Anonymous 08 May 2016, 12:41:35 UTC Diff
pwvo7pr2m Anonymous 08 May 2016, 11:07:25 UTC Diff

Comments