From e4e98d87cbb9a2a7225416143ddbf216f651cf8f Mon Sep 17 00:00:00 2001 From: Tony <1414927+zfbx@users.noreply.github.com> Date: Tue, 14 Jul 2020 21:51:15 -0400 Subject: [PATCH 1/3] Added BG alpha/opacity slider to ConsoleDlg function was already there so just made use of it with a slider --- .../game/core/console/guis/console.gui | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Templates/BaseGame/game/core/console/guis/console.gui b/Templates/BaseGame/game/core/console/guis/console.gui index c2f21eba9..266035081 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.930233"; + 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 --- From 48838494d4204e9466671ae409dad71871eec442 Mon Sep 17 00:00:00 2001 From: Tony <1414927+zfbx@users.noreply.github.com> Date: Tue, 14 Jul 2020 22:47:43 -0400 Subject: [PATCH 2/3] Update console.gui --- Templates/BaseGame/game/core/console/guis/console.gui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Templates/BaseGame/game/core/console/guis/console.gui b/Templates/BaseGame/game/core/console/guis/console.gui index 266035081..1d6153ce2 100644 --- a/Templates/BaseGame/game/core/console/guis/console.gui +++ b/Templates/BaseGame/game/core/console/guis/console.gui @@ -144,7 +144,7 @@ range = "0 1"; ticks = "10"; snap = "0"; - value = "0.930233"; + value = "0.65"; useFillBar = "0"; fillBarColor = "255 255 255 255"; renderTicks = "1"; From 3d76cc4c12cd858edbfd58482f0f69260bdce764 Mon Sep 17 00:00:00 2001 From: Tony <1414927+zfbTony@users.noreply.github.com> Date: Mon, 27 Jul 2020 10:57:08 -0400 Subject: [PATCH 3/3] Moved GuiSliderProfile into core --- .../game/{data/ui => core/gui}/images/slider.png | Bin .../BaseGame/game/core/gui/scripts/profiles.cs | 10 ++++++++++ Templates/BaseGame/game/data/ui/scripts/profiles.cs | 10 ---------- 3 files changed, 10 insertions(+), 10 deletions(-) rename Templates/BaseGame/game/{data/ui => core/gui}/images/slider.png (100%) 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 26a7bd3a9..cb1d7121d 100644 --- a/Templates/BaseGame/game/data/ui/scripts/profiles.cs +++ b/Templates/BaseGame/game/data/ui/scripts/profiles.cs @@ -467,16 +467,6 @@ new GuiControlProfile( GuiRadioProfile ) category = "Core"; }; -// --------------------------------------------------------------------------- -// Slider control -// --------------------------------------------------------------------------- -if( !isObject( GuiSliderProfile ) ) -new GuiControlProfile( GuiSliderProfile ) -{ - bitmap = "data/ui/images/slider"; - category = "Core"; -}; - // // Scroll Profile //