mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 03:53:04 +00:00
make sliders wider
This commit is contained in:
parent
b481c9dbcb
commit
78718a3a16
2 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue