320 lines
13 KiB
Ucode
320 lines
13 KiB
Ucode
class ZoneInfoMenu extends GUI2K4.MidGamePanel;
|
|
|
|
//=================================================================Interface section
|
|
var automated GUIButton //Zone info
|
|
b_ZoneInfo_ApplySettings,
|
|
b_ZoneInfo_ApplySettingsAllZones,
|
|
b_ResetZoneInfoSettings;
|
|
|
|
var automated MOCheckBox //Zone info
|
|
ch_ZoneInfo_bClearToFogColor,
|
|
ch_ZoneInfo_bDistanceFog,
|
|
ch_ZoneInfo_bSoftKillz,
|
|
ch_ZoneInfo_bTerrainZone,
|
|
//Zone light
|
|
ch_ZoneInfo_bNewKFColorCorrection,
|
|
ch_ZoneInfo_bNoKFColorCorrection;
|
|
|
|
//Zone info
|
|
var automated MoComboBox mo_ZoneInfo_Killz,
|
|
mo_ZoneInfo_ZoneTag;
|
|
|
|
//Zone light
|
|
var automated moNumericEdit nu_ZoneInfo_AmbientBrightness,
|
|
nu_ZoneInfo_AmbientHue,
|
|
nu_ZoneInfo_AmbientSaturation,
|
|
nu_ZoneInfo_DistanceFogColor_A,
|
|
nu_ZoneInfo_DistanceFogColor_B,
|
|
nu_ZoneInfo_DistanceFogColor_G,
|
|
nu_ZoneInfo_DistanceFogColor_R,
|
|
nu_ZoneInfo_KFOverlayColor_A,
|
|
nu_ZoneInfo_KFOverlayColor_B,
|
|
nu_ZoneInfo_KFOverlayColor_G,
|
|
nu_ZoneInfo_KFOverlayColor_R;
|
|
|
|
|
|
var automated moFloatEdit //Zone info
|
|
fl_ZoneInfo_Killz,
|
|
//Zone light
|
|
fl_ZoneInfo_DistanceFogBlendTime,
|
|
fl_ZoneInfo_DistanceFogEnd,
|
|
fl_ZoneInfo_DistanceFogEndMin,
|
|
fl_ZoneInfo_DistanceFogStart,
|
|
fl_ZoneInfo_DramaticLightingScale,
|
|
fl_ZoneInfo_TexUpanSpeed,
|
|
fl_ZoneInfo_TexVpanSpeed;
|
|
|
|
|
|
var Automated GUIListBox lb_ZoneInfoList;
|
|
var Automated GUISectionBackground sb_ZoneInfo, sb_ZoneLight;
|
|
|
|
// var automated moNumericEdit nu_NewTicks, nu_SoundRadius, nu_default_NetSpeed, nu_new_NetSpeed, nu_SoundOcclusion;
|
|
// var automated GUISectionBackground sb_Optimizer;
|
|
|
|
|
|
simulated function InitComponent(GUIController MyController, GUIComponent MyOwner)
|
|
{
|
|
super.InitComponent(MyController,MyOwner);
|
|
}
|
|
|
|
|
|
function ShowPanel(bool bShow)
|
|
{
|
|
super.ShowPanel(bShow);
|
|
}
|
|
|
|
|
|
event Opened(GUIComponent Sender)
|
|
{
|
|
super.Opened(Sender);
|
|
}
|
|
|
|
|
|
simulated function bool ButtonClicked(GUIComponent Sender)
|
|
{
|
|
switch (Sender)
|
|
{
|
|
default:
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
|
|
simulated function InternalOnChange(GUIComponent Sender){}
|
|
|
|
|
|
defaultproperties
|
|
{
|
|
Begin Object Class=GUIButton Name=ZoneInfo_ApplySettings
|
|
Caption="Apply settings to highlighted zone"
|
|
Hint="Main firebad pwr to maintain your LOWEST fps has been removed."
|
|
OnClick=ZoneInfoMenu.ButtonClicked
|
|
OnKeyEvent=ZoneInfo_ApplySettings.InternalOnKeyEvent
|
|
End Object
|
|
b_ZoneInfo_ApplySettings=GUIButton'hidemut.ZoneInfoMenu.ZoneInfo_ApplySettings'
|
|
|
|
Begin Object Class=GUIButton Name=ZoneInfo_ApplySettingsAllZones
|
|
Caption="Apply settings to all zones"
|
|
Hint="Main firebad pwr to maintain your LOWEST fps has been removed."
|
|
OnClick=ZoneInfoMenu.ButtonClicked
|
|
OnKeyEvent=ZoneInfo_ApplySettingsAllZones.InternalOnKeyEvent
|
|
End Object
|
|
b_ZoneInfo_ApplySettingsAllZones=GUIButton'hidemut.ZoneInfoMenu.ZoneInfo_ApplySettingsAllZones'
|
|
|
|
Begin Object Class=GUIButton Name=ZoneInfo_ResetZoneInfoSettings
|
|
Caption="Reset zoneInfo to defaults"
|
|
Hint="Main firebad pwr to maintain your LOWEST fps has been removed."
|
|
OnClick=ZoneInfoMenu.ButtonClicked
|
|
OnKeyEvent=ZoneInfo_ResetZoneInfoSettings.InternalOnKeyEvent
|
|
End Object
|
|
b_ResetZoneInfoSettings=GUIButton'hidemut.ZoneInfoMenu.ZoneInfo_ResetZoneInfoSettings'
|
|
|
|
Begin Object Class=moCheckBox Name=chZoneInfo_bClearToFogColor
|
|
Caption="Toggle lights on zeds"
|
|
OnCreateComponent=chZoneInfo_bClearToFogColor.InternalOnCreateComponent
|
|
Hint="Clear to fog color if distance fog is enabled."
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
ch_ZoneInfo_bClearToFogColor=moCheckBox'hidemut.ZoneInfoMenu.chZoneInfo_bClearToFogColor'
|
|
|
|
Begin Object Class=moCheckBox Name=chZoneInfo_bDistanceFog
|
|
Caption="Zone distance fog"
|
|
OnCreateComponent=chZoneInfo_bDistanceFog.InternalOnCreateComponent
|
|
Hint="There is distance fog in this zone."
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
ch_ZoneInfo_bDistanceFog=moCheckBox'hidemut.ZoneInfoMenu.chZoneInfo_bDistanceFog'
|
|
|
|
Begin Object Class=moCheckBox Name=chZoneInfo_bSoftKillz
|
|
Caption="Is Killz Zone"
|
|
OnCreateComponent=chZoneInfo_bSoftKillz.InternalOnCreateComponent
|
|
Hint="2000 units of grace unless land.(any actor falling below this level gets destroyed)"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
ch_ZoneInfo_bSoftKillz=moCheckBox'hidemut.ZoneInfoMenu.chZoneInfo_bSoftKillz'
|
|
|
|
Begin Object Class=moCheckBox Name=chZoneInfo_bTerrainZone
|
|
Caption="Is Terrain Zone"
|
|
OnCreateComponent=chZoneInfo_bTerrainZone.InternalOnCreateComponent
|
|
Hint="There is terrain in this zone."
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
ch_ZoneInfo_bTerrainZone=moCheckBox'hidemut.ZoneInfoMenu.chZoneInfo_bTerrainZone'
|
|
|
|
Begin Object Class=moCheckBox Name=chZoneInfo_bNewKFColorCorrection
|
|
Caption="Use KF color correction"
|
|
OnCreateComponent=chZoneInfo_bNewKFColorCorrection.InternalOnCreateComponent
|
|
Hint="Use the new KFOverlayColor instead of distance fog for the color correction overlay."
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
ch_ZoneInfo_bNewKFColorCorrection=moCheckBox'hidemut.ZoneInfoMenu.chZoneInfo_bNewKFColorCorrection'
|
|
|
|
Begin Object Class=moCheckBox Name=chZoneInfo_bNoKFColorCorrection
|
|
Caption="No KF color correction"
|
|
OnCreateComponent=chZoneInfo_bNoKFColorCorrection.InternalOnCreateComponent
|
|
Hint="No KF color correction."
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
ch_ZoneInfo_bNoKFColorCorrection=moCheckBox'hidemut.ZoneInfoMenu.chZoneInfo_bNoKFColorCorrection'
|
|
|
|
Begin Object Class=moComboBox Name=coZoneInfo_Killz
|
|
bReadOnly=True
|
|
Caption="KillZ effects"
|
|
OnCreateComponent=coZoneInfo_Killz.InternalOnCreateComponent
|
|
Hint="passed by FellOutOfWorldEvent(), to allow different KillZ effects."
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
mo_ZoneInfo_Killz=moComboBox'hidemut.ZoneInfoMenu.coZoneInfo_Killz'
|
|
|
|
Begin Object Class=moComboBox Name=coZoneInfo_ZoneTag
|
|
bReadOnly=True
|
|
Caption="Zone Info name"
|
|
OnCreateComponent=coZoneInfo_ZoneTag.InternalOnCreateComponent
|
|
Hint="Zone info tag..."
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
mo_ZoneInfo_ZoneTag=moComboBox'hidemut.ZoneInfoMenu.coZoneInfo_ZoneTag'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_AmbientBrightness
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="Zone Info Ambient Brightness"
|
|
OnCreateComponent=moZoneInfo_AmbientBrightness.InternalOnCreateComponent
|
|
Hint="Zone light brightness"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_AmbientBrightness=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_AmbientBrightness'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_AmbientHue
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="ZoneInfo light color"
|
|
OnCreateComponent=moZoneInfo_AmbientHue.InternalOnCreateComponent
|
|
Hint="Zone light brightness"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_AmbientHue=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_AmbientHue'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_AmbientSaturation
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="ZoneInfo light saturation"
|
|
OnCreateComponent=moZoneInfo_AmbientSaturation.InternalOnCreateComponent
|
|
Hint="Zone light saturation"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_AmbientSaturation=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_AmbientSaturation'
|
|
|
|
nu_ZoneInfo_DistanceFogColor_A=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_AmbientSaturation'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_DistanceFogColor_B
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="DistanceFogColor_B"
|
|
OnCreateComponent=moZoneInfo_DistanceFogColor_B.InternalOnCreateComponent
|
|
Hint="Distance Fog Color Brightness"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_DistanceFogColor_B=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_DistanceFogColor_B'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_DistanceFogColor_G
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="DistanceFogColor_G"
|
|
OnCreateComponent=moZoneInfo_DistanceFogColor_G.InternalOnCreateComponent
|
|
Hint="Distance Fog Color Green"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_DistanceFogColor_G=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_DistanceFogColor_G'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_DistanceFogColor_R
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="DistanceFogColor_R"
|
|
OnCreateComponent=moZoneInfo_DistanceFogColor_G.InternalOnCreateComponent
|
|
Hint="Distance Fog Color Red"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_DistanceFogColor_R=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_DistanceFogColor_R'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_KFOverlayColor_A
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="ZoneInfo_KFOverlayColor_A"
|
|
OnCreateComponent=moZoneInfo_KFOverlayColor_A.InternalOnCreateComponent
|
|
Hint="KF Overlay Color Alpha"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_KFOverlayColor_A=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_KFOverlayColor_A'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_KFOverlayColor_B
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="ZoneInfo_KFOverlayColor_B"
|
|
OnCreateComponent=moZoneInfo_KFOverlayColor_B.InternalOnCreateComponent
|
|
Hint="KF Overlay Color Brightness"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_KFOverlayColor_B=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_KFOverlayColor_B'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_KFOverlayColor_G
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="ZoneInfo_KFOverlayColor_G"
|
|
OnCreateComponent=moZoneInfo_KFOverlayColor_G.InternalOnCreateComponent
|
|
Hint="KF Overlay Color Green"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_KFOverlayColor_G=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_KFOverlayColor_G'
|
|
|
|
Begin Object Class=moNumericEdit Name=moZoneInfo_KFOverlayColor_R
|
|
MinValue=0
|
|
MaxValue=255
|
|
Caption="ZoneInfo_KFOverlayColor_R"
|
|
OnCreateComponent=moZoneInfo_KFOverlayColor_R.InternalOnCreateComponent
|
|
Hint="KF Overlay Color Red"
|
|
OnChange=ZoneInfoMenu.InternalOnChange
|
|
End Object
|
|
nu_ZoneInfo_KFOverlayColor_R=moNumericEdit'hidemut.ZoneInfoMenu.moZoneInfo_KFOverlayColor_R'
|
|
|
|
Begin Object Class=moFloatEdit Name=flZoneInfo_Killz
|
|
MinValue=-100000.000000
|
|
MaxValue=100000.000000
|
|
Step=100.000000
|
|
Caption="ZoneInfo Killz dmg"
|
|
OnCreateComponent=flZoneInfo_Killz.InternalOnCreateComponent
|
|
Hint="Any actor falling below this level gets destroyed."
|
|
End Object
|
|
fl_ZoneInfo_Killz=moFloatEdit'hidemut.ZoneInfoMenu.flZoneInfo_Killz'
|
|
|
|
Begin Object Class=moFloatEdit Name=flDistanceFogBlendTime
|
|
MinValue=-100000.000000
|
|
MaxValue=100000.000000
|
|
Step=100.000000
|
|
Caption="Distance Fog Blend Time"
|
|
OnCreateComponent=flDistanceFogBlendTime.InternalOnCreateComponent
|
|
Hint="Any actor falling below this level gets destroyed."
|
|
End Object
|
|
fl_ZoneInfo_DistanceFogBlendTime=moFloatEdit'hidemut.ZoneInfoMenu.flDistanceFogBlendTime'
|
|
|
|
Begin Object Class=GUISectionBackground Name=BGZoneInfo
|
|
bFillClient=True
|
|
Caption="Zone info browser and tweaker"
|
|
WinTop=0.050000
|
|
WinWidth=0.636144
|
|
WinHeight=0.659477
|
|
OnPreDraw=BGZoneInfo.InternalPreDraw
|
|
End Object
|
|
sb_ZoneInfo=GUISectionBackground'hidemut.ZoneInfoMenu.BGZoneInfo'
|
|
|
|
Begin Object Class=GUISectionBackground Name=BGZoneLight
|
|
bFillClient=True
|
|
Caption="Zone info light"
|
|
WinTop=0.050000
|
|
WinWidth=0.636144
|
|
WinHeight=0.659477
|
|
OnPreDraw=BGZoneLight.InternalPreDraw
|
|
End Object
|
|
sb_ZoneLight=GUISectionBackground'hidemut.ZoneInfoMenu.BGZoneLight'
|
|
} |