@@ -20,7 +20,7 @@ function createOptionsDialog()
20
20
dialog .restoreDefaults = guiCreateButton ( 0.02 , 0.919444 , 0.22857142 , 0.05555555 , " Restore defaults" , true , dialog .window )
21
21
22
22
-- create general settings
23
- dialog .enableSounds = editingControl .boolean :create {[" x" ]= 0.02 ,[" y" ]= 0.02 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable Sounds" }
23
+ dialog .enableSounds = editingControl .boolean :create {[" x" ]= 0.02 ,[" y" ]= 0.02 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable Sounds" }
24
24
guiCreateLabel ( 0.02 , 0.14 , 1 , 0.1 , " Icon size:" , true , dialog .generalTab )
25
25
guiCreateLabel ( 0.02 , 0.34 , 1 , 0.1 , " Control panel alignment:" , true , dialog .generalTab )
26
26
guiCreateLabel ( 0.02 , 0.54 , 1 , 0.1 , " Element creation panel alignment:" , true , dialog .generalTab )
@@ -29,23 +29,23 @@ function createOptionsDialog()
29
29
dialog .topAlign = editingControl .dropdown :create {[" x" ]= 0.02 ,[" y" ]= 0.4 ,[" width" ]= 0.30 ,[" height" ]= 0.07 ,[" dropWidth" ]= 0.30 ,[" dropHeight" ]= 0.35 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" rows" ]= {" left" ," right" ," center" }}
30
30
dialog .bottomAlign = editingControl .dropdown :create {[" x" ]= 0.02 ,[" y" ]= 0.6 ,[" width" ]= 0.30 ,[" height" ]= 0.07 ,[" dropWidth" ]= 0.30 ,[" dropHeight" ]= 0.35 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" rows" ]= {" left" ," right" ," center" }}
31
31
32
- dialog .tutorialOnStart = editingControl .boolean :create {[" x" ]= 0.02 ,[" y" ]= 0.8 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Query for tutorial on start" }
32
+ dialog .tutorialOnStart = editingControl .boolean :create {[" x" ]= 0.02 ,[" y" ]= 0.8 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Query for tutorial on start" }
33
33
34
34
---- -----------------------------
35
- dialog .enableBox = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.02 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable Bounding Box" }
36
- dialog .enableXYZlines = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.12 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable XYZ Lines" }
35
+ dialog .enableBox = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.02 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable Bounding Box" }
36
+ dialog .enableXYZlines = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.12 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable XYZ Lines" }
37
37
---- -----------------------------
38
- dialog .enablePrecisionSnap = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.22 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable Snap - Precise Position" }
38
+ dialog .enablePrecisionSnap = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.22 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable Snap - Precise Position" }
39
39
guiCreateLabel ( 0.47 , 0.34 , 70 , 17 , " Position Snap Level:" , true , dialog .generalTab )
40
40
dialog .precisionLevel = editingControl .dropdown :create {[" x" ]= 0.68 ,[" y" ]= 0.34 ,[" width" ]= 0.3 ,[" height" ]= 0.07 ,[" dropWidth" ]= 0.30 ,[" dropHeight" ]= 0.55 ,[" relative" ]= true ,[" rows" ]= {" 10" ," 5" ," 2" ," 1" ," 0.1" ," 0.01" ," 0.001" ," 0.0001" },[" parent" ]= dialog .generalTab }
41
41
guiCreateLabel ( 0.47 , 0.44 , 70 , 17 , " Rotation Snap Level:" , true , dialog .generalTab )
42
42
dialog .precisionRotLevel = editingControl .dropdown :create {[" x" ]= 0.68 ,[" y" ]= 0.44 ,[" width" ]= 0.3 ,[" height" ]= 0.07 ,[" dropWidth" ]= 0.30 ,[" dropHeight" ]= 0.55 ,[" relative" ]= true ,[" rows" ]= {" 180" ," 90" ," 45" ," 30" ," 20" ," 10" ," 5" ," 1" },[" parent" ]= dialog .generalTab }
43
- dialog .enablePrecisionRotation = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.52 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable Snap - Precise Rotation" }
43
+ dialog .enablePrecisionRotation = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.52 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable Snap - Precise Rotation" }
44
44
guiCreateLabel ( 0.47 , 0.64 , 70 , 17 , " Scaling Snap Level:" , true , dialog .generalTab )
45
45
dialog .elemScalingSnap = editingControl .dropdown :create {[" x" ]= 0.68 ,[" y" ]= 0.64 ,[" width" ]= 0.3 ,[" height" ]= 0.07 ,[" dropWidth" ]= 0.30 ,[" dropHeight" ]= 0.55 ,[" relative" ]= true ,[" rows" ]= {" 1" ," 0.1" ," 0.01" ," 0.001" ," 0.0001" },[" parent" ]= dialog .generalTab }
46
46
---- -----------------------------
47
- dialog .enableColPatch = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.72 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable collision patches" }
48
- dialog .enableRotPatch = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.82 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable rotation patches" }
47
+ dialog .enableColPatch = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.72 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable collision patches" }
48
+ dialog .enableRotPatch = editingControl .boolean :create {[" x" ]= 0.60 ,[" y" ]= 0.82 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .generalTab ,[" label" ]= " Enable rotation patches" }
49
49
---- -----------------------------
50
50
-- camera settings
51
51
guiCreateLabel ( 0.02 , 0.02 , 1 , 0.1 , " Normal camera move speed:" , true , dialog .cameraTab )
@@ -75,8 +75,8 @@ function createOptionsDialog()
75
75
[" max" ]= 90 ,
76
76
}
77
77
78
- dialog .smoothCamMove = editingControl .boolean :create {[" x" ]= 0.5 ,[" y" ]= 0.22 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .cameraTab ,[" label" ]= " Smooth Camera movement" }
79
- dialog .invertMouseLook = editingControl .boolean :create {[" x" ]= 0.5 ,[" y" ]= 0.32 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .cameraTab ,[" label" ]= " Invert mouse look" }
78
+ dialog .smoothCamMove = editingControl .boolean :create {[" x" ]= 0.5 ,[" y" ]= 0.22 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .cameraTab ,[" label" ]= " Smooth Camera movement" }
79
+ dialog .invertMouseLook = editingControl .boolean :create {[" x" ]= 0.5 ,[" y" ]= 0.32 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" parent" ]= dialog .cameraTab ,[" label" ]= " Invert mouse look" }
80
80
-- create movement settings
81
81
guiCreateLabel ( 0.02 , 0.12 , 1 , 0.1 , " Normal element movement speed:" , true , dialog .movementTab )
82
82
guiCreateLabel ( 0.02 , 0.32 , 1 , 0.1 , " Fast element movement speed:" , true , dialog .movementTab )
@@ -161,7 +161,7 @@ addEvent("enableServerSettings", true)
161
161
addEventHandler (" enableServerSettings" , root ,
162
162
function (enabled , interval )
163
163
dialog .serverTab = guiCreateTab (" Server Settings" ,tabpanel )
164
- dialog .enableDumpSave = editingControl .boolean :create {[" x" ]= 0.02 ,[" y" ]= 0.02 ,[" width" ]= 1 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" value" ]= enabled ,[" parent" ]= dialog .serverTab ,[" label" ]= " Enable Map Backup" }
164
+ dialog .enableDumpSave = editingControl .boolean :create {[" x" ]= 0.02 ,[" y" ]= 0.02 ,[" width" ]= 0.35 ,[" height" ]= 0.1 ,[" relative" ]= true ,[" value" ]= enabled ,[" parent" ]= dialog .serverTab ,[" label" ]= " Enable Map Backup" }
165
165
guiCreateLabel ( 0.02 , 0.14 , 1 , 0.1 , " Map Backup Interval (seconds):" , true , dialog .serverTab )
166
166
dialog .dumpSaveInterval = editingControl .integer :create {[" x" ]= 0.02 ,[" y" ]= 0.2 ,[" width" ]= 0.30 ,[" height" ]= 0.07 ,[" relative" ]= true ,[" value" ]= interval ,[" parent" ]= dialog .serverTab }
167
167
end
0 commit comments