Advertisement
Guest User

aspcrto

a guest
Dec 13th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UI.AddSliderInt( "Aspect ratio", 0, 10 );
  2.  
  3. function fsn( ) {
  4.     ui_arat_val = UI.GetValue( "Aspect ratio" );
  5.  
  6.     switch ( Global.FrameStage( ) ) {
  7.         case 5: {
  8.             Global.ExecuteCommand( "r_aspectratio " + ui_arat_val.toString( ) );
  9.  
  10.             break;
  11.         }
  12.         default: break;
  13.     }
  14. }
  15.  
  16.  
  17. Global.RegisterCallback( "FrameStageNotify", "fsn" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement