File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 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)
9595 foreach ( UserCommand command in Enum . GetValues ( typeof ( UserCommand ) ) )
9696 {
9797 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 ( ) ) ) ;
101102 }
102103 } ) ) ;
103104 if ( owner . Viewer . Simulator . Activity != null )
You can’t perform that action at this time.
0 commit comments