diff --git a/Templates/BaseGame/game/core/console/guis/console.gui b/Templates/BaseGame/game/core/console/guis/console.gui index c2f21eba9..1d6153ce2 100644 --- a/Templates/BaseGame/game/core/console/guis/console.gui +++ b/Templates/BaseGame/game/core/console/guis/console.gui @@ -140,6 +140,29 @@ canSave = "1"; canSaveDynamicFields = "0"; }; + new GuiSliderCtrl(ConsoleDlgBgAlphaSlider) { + range = "0 1"; + ticks = "10"; + snap = "0"; + value = "0.65"; + useFillBar = "0"; + fillBarColor = "255 255 255 255"; + renderTicks = "1"; + position = "361 4"; + extent = "106 14"; + minExtent = "8 2"; + horizSizing = "right"; + vertSizing = "bottom"; + profile = "GuiSliderProfile"; + visible = "1"; + active = "1"; + command = "ConsoleDlg::setalpha(ConsoleDlgBgAlphaSlider, ConsoleDlgBgAlphaSlider.value);"; + tooltipProfile = "GuiToolTipProfile"; + hovertime = "1000"; + isContainer = "0"; + canSave = "1"; + canSaveDynamicFields = "0"; + }; }; new GuiScrollCtrl() { willFirstRespond = "1"; @@ -188,4 +211,4 @@ }; }; }; -//--- OBJECT WRITE END --- \ No newline at end of file +//--- OBJECT WRITE END --- diff --git a/Templates/BaseGame/game/data/ui/images/slider.png b/Templates/BaseGame/game/core/gui/images/slider.png similarity index 100% rename from Templates/BaseGame/game/data/ui/images/slider.png rename to Templates/BaseGame/game/core/gui/images/slider.png diff --git a/Templates/BaseGame/game/core/gui/scripts/profiles.cs b/Templates/BaseGame/game/core/gui/scripts/profiles.cs index 7b4a9ea00..63e05a5c2 100644 --- a/Templates/BaseGame/game/core/gui/scripts/profiles.cs +++ b/Templates/BaseGame/game/core/gui/scripts/profiles.cs @@ -224,3 +224,13 @@ new GuiControlProfile( GuiButtonProfile ) hasBitmapArray = false; category = "Core"; }; + +// --------------------------------------------------------------------------- +// Slider control +// --------------------------------------------------------------------------- +if( !isObject( GuiSliderProfile ) ) +new GuiControlProfile( GuiSliderProfile ) +{ + bitmap = "core/gui/images/slider"; + category = "Core"; +}; \ No newline at end of file diff --git a/Templates/BaseGame/game/data/ui/scripts/profiles.cs b/Templates/BaseGame/game/data/ui/scripts/profiles.cs index ac4a4b66e..c4f972082 100644 --- a/Templates/BaseGame/game/data/ui/scripts/profiles.cs +++ b/Templates/BaseGame/game/data/ui/scripts/profiles.cs @@ -506,16 +506,6 @@ new GuiControlProfile( GuiRadioProfile ) category = "Core"; }; -// --------------------------------------------------------------------------- -// Slider control -// --------------------------------------------------------------------------- -if( !isObject( GuiSliderProfile ) ) -new GuiControlProfile( GuiSliderProfile ) -{ - bitmap = "data/ui/images/slider"; - category = "Core"; -}; - // // Scroll Profile //