equal
deleted
inserted
replaced
93 enum ToolbarScenEditorWidgets { |
93 enum ToolbarScenEditorWidgets { |
94 TBSE_PAUSE = 0, |
94 TBSE_PAUSE = 0, |
95 TBSE_FASTFORWARD, |
95 TBSE_FASTFORWARD, |
96 TBSE_SAVESCENARIO = 3, |
96 TBSE_SAVESCENARIO = 3, |
97 TBSE_SPACERPANEL, |
97 TBSE_SPACERPANEL, |
98 TBSE_DATEBACKWARD = 6, |
98 TBSE_SEPARATOR, |
|
99 TBSE_DATEBACKWARD, |
99 TBSE_DATEFORWARD, |
100 TBSE_DATEFORWARD, |
100 TBSE_ZOOMIN = 9, |
101 TBSE_ZOOMIN = 9, |
101 TBSE_ZOOMOUT, |
102 TBSE_ZOOMOUT, |
102 TBSE_LANDGENERATE, |
103 TBSE_LANDGENERATE, |
103 TBSE_TOWNGENERATE, |
104 TBSE_TOWNGENERATE, |
1152 } |
1153 } |
1153 uint extra_spacing_at[] = { 3, 4, 7, 8, 10, 16, 0 }; |
1154 uint extra_spacing_at[] = { 3, 4, 7, 8, 10, 16, 0 }; |
1154 |
1155 |
1155 for (uint i = 0, x = 0, j = 0, b = 0; i < this->widget_count; i++) { |
1156 for (uint i = 0, x = 0, j = 0, b = 0; i < this->widget_count; i++) { |
1156 switch (i) { |
1157 switch (i) { |
1157 case 4: |
1158 case TBSE_SPACERPANEL: |
1158 this->widget[i].left = x; |
1159 this->widget[i].left = x; |
1159 if (this->width < normal_min_width) { |
1160 if (this->width < normal_min_width) { |
1160 this->widget[i].right = x; |
1161 this->widget[i].right = x; |
1161 j++; |
1162 j++; |
1162 continue; |
1163 continue; |
1164 |
1165 |
1165 x += 130; |
1166 x += 130; |
1166 this->widget[i].right = x - 1; |
1167 this->widget[i].right = x - 1; |
1167 break; |
1168 break; |
1168 |
1169 |
1169 case 5: { |
1170 case TBSE_SEPARATOR: { |
1170 int offset = x - this->widget[i].left; |
1171 int offset = x - this->widget[i].left; |
1171 this->widget[i + 1].left += offset; |
1172 this->widget[i + 1].left += offset; |
1172 this->widget[i + 1].right += offset; |
1173 this->widget[i + 1].right += offset; |
1173 this->widget[i + 2].left += offset; |
1174 this->widget[i + 2].left += offset; |
1174 this->widget[i + 2].right += offset; |
1175 this->widget[i + 2].right += offset; |