Merge pull request #251 from zfbx/patch-1

Added slider to consoleDlg for bg alpha (Needs refinement)
This commit is contained in:
Brian Roberts 2020-07-27 10:13:51 -05:00 committed by GitHub
commit bcbc08cf23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 11 deletions

View file

@ -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 ---
//--- OBJECT WRITE END ---

View file

Before

Width:  |  Height:  |  Size: 908 B

After

Width:  |  Height:  |  Size: 908 B

Before After
Before After

View file

@ -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";
};

View file

@ -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
//