Created
August 25, 2014 21:22
-
-
Save andr3wmac/9e04776153faa119fa63 to your computer and use it in GitHub Desktop.
Brightness/Contrast controls for Torque3D
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------------- | |
// Copyright (c) 2012 GarageGames, LLC | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to | |
// deal in the Software without restriction, including without limitation the | |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
// sell copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in | |
// all copies or substantial portions of the Software. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | |
// IN THE SOFTWARE. | |
//----------------------------------------------------------------------------- | |
#include "shadergen:/autogenConditioners.h" | |
#include "./postFx.hlsl" | |
#include "../torque.hlsl" | |
uniform sampler2D backBuffer : register(S0); | |
uniform sampler1D colorCorrectionTex : register( s1 ); | |
uniform float OneOverGamma; | |
uniform float Brightness; | |
uniform float Contrast; | |
float4 main( PFXVertToPix IN ) : COLOR0 | |
{ | |
float4 color = tex2D(backBuffer, IN.uv0.xy); | |
// Apply the color correction. | |
color.r = tex1D( colorCorrectionTex, color.r ).r; | |
color.g = tex1D( colorCorrectionTex, color.g ).g; | |
color.b = tex1D( colorCorrectionTex, color.b ).b; | |
// Apply gamma correction | |
color.rgb = pow( abs(color.rgb), OneOverGamma ); | |
// Apply contrast | |
color.rgb = ((color.rgb - 0.5f) * max(Contrast, 0)) + 0.5f; | |
// Apply brightness | |
color.rgb += Brightness; | |
return color; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------------- | |
// Copyright (c) 2012 GarageGames, LLC | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to | |
// deal in the Software without restriction, including without limitation the | |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
// sell copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in | |
// all copies or substantial portions of the Software. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | |
// IN THE SOFTWARE. | |
//----------------------------------------------------------------------------- | |
singleton ShaderData( GammaShader ) | |
{ | |
DXVertexShaderFile = "shaders/common/postFx/postFxV.hlsl"; | |
DXPixelShaderFile = "shaders/common/postFx/gammaP.hlsl"; | |
pixVersion = 2.0; | |
}; | |
singleton GFXStateBlockData( GammaStateBlock : PFX_DefaultStateBlock ) | |
{ | |
samplersDefined = true; | |
samplerStates[0] = SamplerClampLinear; | |
samplerStates[1] = SamplerClampLinear; | |
}; | |
singleton PostEffect( GammaPostFX ) | |
{ | |
isEnabled = true; | |
allowReflectPass = false; | |
renderTime = "PFXBeforeBin"; | |
renderBin = "EditorBin"; | |
renderPriority = 9999; | |
shader = GammaShader; | |
stateBlock = GammaStateBlock; | |
texture[0] = "$backBuffer"; | |
texture[1] = $HDRPostFX::colorCorrectionRamp; | |
}; | |
function GammaPostFX::preProcess( %this ) | |
{ | |
if ( %this.texture[1] !$= $HDRPostFX::colorCorrectionRamp ) | |
%this.setTexture( 1, $HDRPostFX::colorCorrectionRamp ); | |
} | |
function GammaPostFX::setShaderConsts( %this ) | |
{ | |
%clampedGamma = mClamp( $pref::Video::Gamma, 0.001, 2.2); | |
%this.setShaderConst( "$OneOverGamma", 1 / %clampedGamma ); | |
%this.setShaderConst( "$Brightness", $pref::Video::Brightness ); | |
%this.setShaderConst( "$Contrast", $pref::Video::Contrast ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--- OBJECT WRITE BEGIN --- | |
%guiContent = new GuiControl(OptionsDlg) { | |
position = "0 0"; | |
extent = "1024 768"; | |
minExtent = "8 8"; | |
horizSizing = "width"; | |
vertSizing = "height"; | |
profile = "GuiOverlayProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "1"; | |
fixedAspectRatio = "0"; | |
new GuiWindowCtrl() { | |
text = "Options"; | |
resizeWidth = "0"; | |
resizeHeight = "0"; | |
canMove = "1"; | |
canClose = "1"; | |
canMinimize = "0"; | |
canMaximize = "0"; | |
canCollapse = "0"; | |
closeCommand = "Canvas.popDialog(optionsDlg);"; | |
edgeSnap = "0"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "323 232"; | |
extent = "377 345"; | |
minExtent = "8 8"; | |
horizSizing = "center"; | |
vertSizing = "center"; | |
profile = "GuiWindowProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiButtonCtrl() { | |
text = "Done"; | |
groupNum = "-1"; | |
buttonType = "PushButton"; | |
useMouseEvents = "0"; | |
position = "307 310"; | |
extent = "60 23"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiButtonProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "Canvas.popDialog(optionsDlg);"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiBitmapBorderCtrl() { | |
position = "9 55"; | |
extent = "358 210"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTabBorderProfile"; | |
visible = "0"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
internalName = "OptControlsPane"; | |
hidden = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiScrollCtrl() { | |
willFirstRespond = "1"; | |
hScrollBar = "alwaysOff"; | |
vScrollBar = "alwaysOn"; | |
lockHorizScroll = "1"; | |
lockVertScroll = "0"; | |
constantThumbHeight = "0"; | |
childMargin = "0 0"; | |
mouseWheelScrollSpeed = "-1"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "5 24"; | |
extent = "347 152"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiScrollProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiTextListCtrl() { | |
columns = "0 160"; | |
fitParentWidth = "1"; | |
clipColumnText = "0"; | |
position = "1 1"; | |
extent = "329 780"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiDefaultProfile"; | |
visible = "1"; | |
active = "1"; | |
altCommand = "OptionsDlg.doRemap();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
internalName = "OptRemapList"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
new GuiTextCtrl() { | |
text = "Control Name"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "6 6"; | |
extent = "64 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Control Binding"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "165 6"; | |
extent = "72 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiSliderCtrl(OptMouseSensitivity) { | |
range = "0.02 2"; | |
ticks = "10"; | |
snap = "0"; | |
value = "1"; | |
position = "105 182"; | |
extent = "244 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiSliderProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptMouseSetSensitivity(OptMouseSensitivity.value);"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Mouse Sensitivity:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "15 182"; | |
extent = "85 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
new GuiBitmapBorderCtrl() { | |
position = "9 55"; | |
extent = "358 210"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTabBorderProfile"; | |
visible = "0"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
internalName = "OptAudioPane"; | |
hidden = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiMLTextCtrl() { | |
lineSpacing = "2"; | |
allowColorChars = "0"; | |
maxChars = "-1"; | |
useURLMouseCursor = "0"; | |
position = "149 10"; | |
extent = "190 14"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiMLTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptAudioInfo"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Audio Provider:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "16 16"; | |
extent = "75 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl(OptAudioProviderList) { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "DirectSound"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "101 15"; | |
extent = "240 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Audio Device:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "23 48"; | |
extent = "75 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl(OptAudioDeviceList) { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "Speakers (VIA HD Audio)"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "101 47"; | |
extent = "240 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiControl() { | |
position = "18 84"; | |
extent = "325 17"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiDefaultProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiTextCtrl() { | |
text = "Master Volume"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "0 0"; | |
extent = "72 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiAutoSizeTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiSliderCtrl() { | |
range = "0 1"; | |
ticks = "0"; | |
snap = "0"; | |
value = "0.8"; | |
position = "85 1"; | |
extent = "240 14"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiSliderProfile"; | |
visible = "1"; | |
active = "1"; | |
altCommand = "OptAudioUpdateMasterVolume( $thisControl.value );"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptAudioVolumeMaster"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
new GuiControl() { | |
position = "9 115"; | |
extent = "334 17"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiDefaultProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiTextCtrl() { | |
text = "Interface Volume"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "0 0"; | |
extent = "82 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiAutoSizeTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiSliderCtrl() { | |
range = "0 1"; | |
ticks = "0"; | |
snap = "0"; | |
value = "1"; | |
position = "94 2"; | |
extent = "240 13"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiSliderProfile"; | |
visible = "1"; | |
active = "1"; | |
altCommand = "OptAudioUpdateChannelVolume(AudioGui, $thisControl.value);"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptAudioVolumeShell"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
new GuiControl() { | |
position = "18 146"; | |
extent = "325 17"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiDefaultProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiTextCtrl() { | |
text = "Effects Volume"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "0 0"; | |
extent = "74 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiAutoSizeTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiSliderCtrl() { | |
range = "0 1"; | |
ticks = "0"; | |
snap = "0"; | |
value = "1"; | |
position = "85 2"; | |
extent = "240 13"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiSliderProfile"; | |
visible = "1"; | |
active = "1"; | |
altCommand = "OptAudioUpdateChannelVolume(AudioEffect, $thisControl.value);"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptAudioVolumeSim"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
new GuiControl() { | |
position = "23 177"; | |
extent = "320 17"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiDefaultProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiSliderCtrl() { | |
range = "0 1"; | |
ticks = "0"; | |
snap = "0"; | |
value = "1"; | |
position = "80 2"; | |
extent = "240 13"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiSliderProfile"; | |
visible = "1"; | |
active = "1"; | |
altCommand = "OptAudioUpdateChannelVolume(AudioMusic, $thisControl.value);"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptAudioVolumeMusic"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Music Volume"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "0 0"; | |
extent = "67 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiAutoSizeTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
}; | |
new GuiBitmapBorderCtrl() { | |
position = "9 55"; | |
extent = "358 245"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTabBorderProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
internalName = "OptGraphicsPane"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiTextCtrl() { | |
text = "Display Driver:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "11 8"; | |
extent = "70 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Resolution:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "11 35"; | |
extent = "53 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiCheckBoxCtrl() { | |
text = "Fullscreen"; | |
groupNum = "-1"; | |
buttonType = "ToggleButton"; | |
useMouseEvents = "0"; | |
position = "11 62"; | |
extent = "85 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiCheckBoxProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptGraphicsFullscreenToggle"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl(OptGraphicsDriverMenu) { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "NVIDIA GeForce GTX 460 (D3D9)"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "88 8"; | |
extent = "258 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "1024 x 768 (4:3)"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "67 35"; | |
extent = "127 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptGraphicsResolutionMenu"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Refresh:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "207 35"; | |
extent = "45 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "60"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "252 35"; | |
extent = "49 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptRefreshSelectMenu"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Mesh Quality:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "21 91"; | |
extent = "62 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "Custom"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "90 91"; | |
extent = "78 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptMeshQualityPopup"; | |
class = "GraphicsQualityPopup"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "Normal"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "90 118"; | |
extent = "78 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptTextureQualityPopup"; | |
class = "GraphicsQualityPopup"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Texture Quality:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "11 118"; | |
extent = "77 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "Custom"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "90 143"; | |
extent = "78 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptLightingQualityPopup"; | |
class = "GraphicsQualityPopup"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Lighting Quality:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "11 143"; | |
extent = "73 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Effect Quality:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "191 91"; | |
extent = "73 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "263 91"; | |
extent = "78 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptEffectQualityPopup"; | |
class = "GraphicsQualityPopup"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Shader Quality:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "186 118"; | |
extent = "77 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "High"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "263 118"; | |
extent = "78 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptShaderQualityPopup"; | |
class = "GraphicsQualityPopup"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Particle Quality:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "186 156"; | |
extent = "73 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "0"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
hidden = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "263 156"; | |
extent = "78 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "0"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptParticleQualityPopup"; | |
class = "GraphicsQualityPopup"; | |
hidden = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Anisotropic Filtering:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "22 167"; | |
extent = "105 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "123 167"; | |
extent = "45 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptAnisotropicPopup"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiCheckBoxCtrl() { | |
text = "Vertical Sync"; | |
groupNum = "-1"; | |
buttonType = "ToggleButton"; | |
useMouseEvents = "0"; | |
position = "92 62"; | |
extent = "85 18"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiCheckBoxProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptGraphicsVSyncToggle"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiButtonCtrl() { | |
text = "Auto Detect Quality"; | |
groupNum = "-1"; | |
buttonType = "PushButton"; | |
useMouseEvents = "0"; | |
position = "205 152"; | |
extent = "110 27"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiButtonProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._autoDetectQuality();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiPopUpMenuCtrl() { | |
maxPopupHeight = "200"; | |
sbUsesNAColor = "0"; | |
reverseTextList = "0"; | |
bitmapBounds = "16 16"; | |
text = "4x"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "263 62"; | |
extent = "78 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiPopUpMenuProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "OptionsDlg._updateApplyState();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptAAQualityPopup"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Anti-aliasing"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "191 62"; | |
extent = "73 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiControl() { | |
position = "0 227"; | |
extent = "352 15"; | |
minExtent = "8 2"; | |
horizSizing = "width"; | |
vertSizing = "bottom"; | |
profile = "GuiDefaultProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
internalName = "GammaSliderContainer"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiSliderCtrl() { | |
range = "0.001 2"; | |
ticks = "0"; | |
snap = "0"; | |
value = "0.1"; | |
position = "76 -1"; | |
extent = "268 15"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiSliderProfile"; | |
visible = "1"; | |
active = "1"; | |
variable = "$pref::Video::Contrast"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Contrast:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "18 -4"; | |
extent = "105 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
new GuiControl() { | |
position = "0 190"; | |
extent = "352 15"; | |
minExtent = "8 2"; | |
horizSizing = "width"; | |
vertSizing = "bottom"; | |
profile = "GuiDefaultProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
internalName = "GammaSliderContainer"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiSliderCtrl() { | |
range = "0.001 2.2"; | |
ticks = "0"; | |
snap = "0"; | |
value = "2.2"; | |
position = "76 -1"; | |
extent = "268 15"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiSliderProfile"; | |
visible = "1"; | |
active = "1"; | |
variable = "$pref::Video::Gamma"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Gamma:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "22 -4"; | |
extent = "105 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
new GuiControl() { | |
position = "0 208"; | |
extent = "352 15"; | |
minExtent = "8 2"; | |
horizSizing = "width"; | |
vertSizing = "bottom"; | |
profile = "GuiDefaultProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
internalName = "GammaSliderContainer"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
new GuiSliderCtrl() { | |
range = "-1 1"; | |
ticks = "0"; | |
snap = "0"; | |
value = "0.1"; | |
position = "76 -1"; | |
extent = "268 15"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiSliderProfile"; | |
visible = "1"; | |
active = "1"; | |
variable = "$pref::Video::Brightness"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiTextCtrl() { | |
text = "Brightness:"; | |
maxLength = "255"; | |
margin = "0 0 0 0"; | |
padding = "0 0 0 0"; | |
anchorTop = "1"; | |
anchorBottom = "0"; | |
anchorLeft = "1"; | |
anchorRight = "0"; | |
position = "6 -3"; | |
extent = "105 18"; | |
minExtent = "8 2"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiTextProfile"; | |
visible = "1"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
}; | |
new GuiControl() { | |
position = "9 55"; | |
extent = "357 208"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiWindowProfile"; | |
visible = "0"; | |
active = "1"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "1"; | |
internalName = "OptNetworkPane"; | |
hidden = "1"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiButtonCtrl() { | |
text = "Graphics"; | |
groupNum = "-1"; | |
buttonType = "RadioButton"; | |
useMouseEvents = "0"; | |
position = "9 33"; | |
extent = "117 23"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiButtonTabProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "optionsDlg.setPane(Graphics);"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "OptGraphicsButton"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiButtonCtrl() { | |
text = "Audio"; | |
groupNum = "-1"; | |
buttonType = "RadioButton"; | |
useMouseEvents = "0"; | |
position = "126 33"; | |
extent = "117 23"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiButtonTabProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "optionsDlg.setPane(Audio);"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiButtonCtrl() { | |
text = "Controls"; | |
groupNum = "-1"; | |
buttonType = "RadioButton"; | |
useMouseEvents = "0"; | |
position = "243 33"; | |
extent = "117 23"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiButtonTabProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "optionsDlg.setPane(Controls);"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
new GuiButtonCtrl() { | |
text = "Apply"; | |
groupNum = "-1"; | |
buttonType = "PushButton"; | |
useMouseEvents = "0"; | |
position = "239 310"; | |
extent = "60 23"; | |
minExtent = "8 8"; | |
horizSizing = "right"; | |
vertSizing = "bottom"; | |
profile = "GuiButtonProfile"; | |
visible = "1"; | |
active = "1"; | |
command = "optionsDlg.applyGraphics();"; | |
tooltipProfile = "GuiToolTipProfile"; | |
hovertime = "1000"; | |
isContainer = "0"; | |
internalName = "apply"; | |
canSave = "1"; | |
canSaveDynamicFields = "0"; | |
}; | |
}; | |
}; | |
//--- OBJECT WRITE END --- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment