make sliders wider

This commit is contained in:
in0finite 2019-07-28 19:18:38 +02:00
parent b481c9dbcb
commit 78718a3a16
2 changed files with 6 additions and 4 deletions

View file

@ -83,16 +83,18 @@ namespace SanAndreasUnity.Behaviours
var skin = GUI.skin;
// make scrollbars wider
// make scrollbars & sliders wider
var styles = new GUIStyle[]{skin.horizontalScrollbar, skin.horizontalScrollbarLeftButton, skin.horizontalScrollbarRightButton, skin.horizontalScrollbarThumb};
var styles = new GUIStyle[]{skin.horizontalScrollbar, skin.horizontalScrollbarLeftButton, skin.horizontalScrollbarRightButton, skin.horizontalScrollbarThumb,
skin.horizontalSlider, skin.horizontalSliderThumb};
foreach (var style in styles)
{
//Debug.LogFormat("style: {0}, height: {1}", style.name, style.fixedHeight);
style.fixedHeight *= m_scrollbarSizeMultiplierOnMobile;
}
styles = new GUIStyle[]{skin.verticalScrollbar, skin.verticalScrollbarDownButton, skin.verticalScrollbarThumb, skin.verticalScrollbarUpButton};
styles = new GUIStyle[]{skin.verticalScrollbar, skin.verticalScrollbarDownButton, skin.verticalScrollbarThumb, skin.verticalScrollbarUpButton,
skin.verticalSlider, skin.verticalSliderThumb};
foreach (var style in styles)
{
//Debug.LogFormat("style: {0}, width: {1}", style.name, style.fixedWidth);

View file

@ -25,7 +25,7 @@
- Chat
- Android: set font size to 20 ; adapt UI: StartGame button, JoinGame button, Console "Clear", main menu ; sliders should be larger ; camera zoom should be configurable (no need for persistence) ; use unsigned (debug) key alias ; increment build number ; larger ped arrow movement button ;
- Android: set font size to 20 ; adapt UI: StartGame button, JoinGame button, Console "Clear", main menu ; sliders should be larger ; camera zoom should be configurable (no need for persistence) ; use unsigned (debug) key alias ; increment build number ;
- Touch input: