Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit 15156d2

Browse files
committed
More new map dialog tweaks
* Changed dimension bounds for new maps to 18x18 : 1008:1008 * added more standard sizes (like in HotA)
1 parent 36f152b commit 15156d2

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

forms/new_map.lfm

+8-8
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@ object NewMapForm: TNewMapForm
4545
Height = 23
4646
Top = 72
4747
Width = 110
48-
Increment = 8
49-
MaxValue = 1024
50-
MinValue = 8
48+
Increment = 9
49+
MaxValue = 1008
50+
MinValue = 18
5151
OnChange = edWidthChange
5252
TabOrder = 1
53-
Value = 32
53+
Value = 36
5454
end
5555
object edHeight: TSpinEdit
5656
Left = 152
5757
Height = 23
5858
Top = 72
5959
Width = 110
60-
Increment = 8
61-
MaxValue = 1024
62-
MinValue = 8
60+
Increment = 9
61+
MaxValue = 1008
62+
MinValue = 18
6363
OnChange = edHeightChange
6464
TabOrder = 2
65-
Value = 32
65+
Value = 36
6666
end
6767
object lbWidth: TLabel
6868
Left = 17

forms/new_map.pas

+16-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,22 @@ implementation
6767
uses math;
6868

6969
const
70-
STANDARD_SIZES : array[0..6] of Integer = (16, 36, 72, 108, 144, 252, 1024);
71-
STANDARD_SIZES_NAMES : array[0..6] of String = ('Min 16x16', 'S 36x36', 'M 72x72', 'L 108x108', 'XL 144x144', 'XXL 252x252', 'Max 1024x1024');
70+
STANDARD_SIZES : array[0..8] of Integer =
71+
(
72+
18, 36, 72, 108, 144, 180, 216, 252, 1008
73+
);
74+
STANDARD_SIZES_NAMES : array[0..8] of String =
75+
(
76+
'Min 18x18',
77+
'S 36x36',
78+
'M 72x72',
79+
'L 108x108',
80+
'XL 144x144',
81+
'H 180x180',
82+
'XH 216x216',
83+
'G 252x252',
84+
'Max 1008x1008'
85+
);
7286

7387
{$R *.lfm}
7488

0 commit comments

Comments
 (0)