@@ -20,7 +20,7 @@ function createOptionsDialog()
2020 dialog .restoreDefaults = guiCreateButton ( 0.02 , 0.919444 , 0.22857142 , 0.05555555 , " Restore defaults" , true , dialog .window )
2121
2222 -- 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" }
2424 guiCreateLabel ( 0.02 , 0.14 , 1 , 0.1 , " Icon size:" , true , dialog .generalTab )
2525 guiCreateLabel ( 0.02 , 0.34 , 1 , 0.1 , " Control panel alignment:" , true , dialog .generalTab )
2626 guiCreateLabel ( 0.02 , 0.54 , 1 , 0.1 , " Element creation panel alignment:" , true , dialog .generalTab )
@@ -29,23 +29,23 @@ function createOptionsDialog()
2929 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" }}
3030 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" }}
3131
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" }
3333
3434 ---- -----------------------------
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" }
3737 ---- -----------------------------
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" }
3939 guiCreateLabel ( 0.47 , 0.34 , 70 , 17 , " Position Snap Level:" , true , dialog .generalTab )
4040 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 }
4141 guiCreateLabel ( 0.47 , 0.44 , 70 , 17 , " Rotation Snap Level:" , true , dialog .generalTab )
4242 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" }
4444 guiCreateLabel ( 0.47 , 0.64 , 70 , 17 , " Scaling Snap Level:" , true , dialog .generalTab )
4545 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 }
4646 ---- -----------------------------
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" }
4949 ---- -----------------------------
5050 -- camera settings
5151 guiCreateLabel ( 0.02 , 0.02 , 1 , 0.1 , " Normal camera move speed:" , true , dialog .cameraTab )
@@ -75,8 +75,8 @@ function createOptionsDialog()
7575 [" max" ]= 90 ,
7676 }
7777
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" }
8080 -- create movement settings
8181 guiCreateLabel ( 0.02 , 0.12 , 1 , 0.1 , " Normal element movement speed:" , true , dialog .movementTab )
8282 guiCreateLabel ( 0.02 , 0.32 , 1 , 0.1 , " Fast element movement speed:" , true , dialog .movementTab )
@@ -161,7 +161,7 @@ addEvent("enableServerSettings", true)
161161addEventHandler (" enableServerSettings" , root ,
162162 function (enabled , interval )
163163 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" }
165165 guiCreateLabel ( 0.02 , 0.14 , 1 , 0.1 , " Map Backup Interval (seconds):" , true , dialog .serverTab )
166166 dialog .dumpSaveInterval = editingControl .integer :create {[" x" ]= 0.02 ,[" y" ]= 0.2 ,[" width" ]= 0.30 ,[" height" ]= 0.07 ,[" relative" ]= true ,[" value" ]= interval ,[" parent" ]= dialog .serverTab }
167167 end
0 commit comments