File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,10 @@ public HelpWindow(WindowManager owner)
95
95
foreach ( UserCommand command in Enum . GetValues ( typeof ( UserCommand ) ) )
96
96
{
97
97
var line = scrollbox . AddLayoutHorizontalLineOfText ( ) ;
98
- var width = line . RemainingWidth / 2 ;
99
- line . Add ( new Label ( width , line . RemainingHeight , InputSettings . GetPrettyLocalizedName ( command ) ) ) ;
100
- line . Add ( new Label ( width , line . RemainingHeight , Owner . Viewer . Settings . Input . Commands [ ( int ) command ] . ToString ( ) ) ) ;
98
+ var width = line . RemainingWidth / 2 ; // Split pane into 2 equal parts
99
+ var offset = ( int ) ( line . RemainingWidth * 0.10 ) ; // Offset pushes command keys 10% rightwards to allow for longer command descriptions.
100
+ line . Add ( new Label ( width + offset , line . RemainingHeight , InputSettings . GetPrettyLocalizedName ( command ) ) ) ;
101
+ line . Add ( new Label ( width - offset , line . RemainingHeight , Owner . Viewer . Settings . Input . Commands [ ( int ) command ] . ToString ( ) ) ) ;
101
102
}
102
103
} ) ) ;
103
104
if ( owner . Viewer . Simulator . Activity != null )
You can’t perform that action at this time.
0 commit comments