Free Hero Mesh

Check-in [ec992367da]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Implement MRU selection bindings in editor
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ec992367daad2b066b8bbab9d1e8e2c039ef3731
User & Date: user on 2021-02-06 02:30:58
Other Links: manifest | tags
Context
2021-02-07
00:16
Implement load/import/export move lists. check-in: 9769459c6a user: user tags: trunk
2021-02-06
02:30
Implement MRU selection bindings in editor check-in: ec992367da user: user tags: trunk
2021-02-03
02:13
Implement clicking on MRU on left margin in level editor in order to select one check-in: c52084ea2e user: user tags: trunk
Changes

Modified bindings.doc from [c575a8ab2c] to [0668d41b57].

85
86
87
88
89
90
91







92
93
94
95
96
97
98


=== Editor commands ===

'^c'
  Display the class selection menu.









=== Commands available in game and editor ===

'^E'
  Switch to the editor.

'^P'







>
>
>
>
>
>
>







85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105


=== Editor commands ===

'^c'
  Display the class selection menu.

'mR' <number>
  Select a relative MRU. Negative numbers move up the list, and positive
  numbers move down the list.

'mr' <number>
  Select a MRU, given the MRU number (0 to 31; the top is zero).


=== Commands available in game and editor ===

'^E'
  Switch to the editor.

'^P'

Modified edit.c from [8d6920b388] to [18ed2d8b41].

341
342
343
344
345
346
347






348
349
350
351
352
353
354
    case '^P': // Play
      return -2;
    case '^Q': // Quit
      return -1;
    case 'go': // Select level
      load_level(number);
      return 1;






    default:
      return prev;
  }
}

void run_editor(void) {
  SDL_Event ev;







>
>
>
>
>
>







341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
    case '^P': // Play
      return -2;
    case '^Q': // Quit
      return -1;
    case 'go': // Select level
      load_level(number);
      return 1;
    case 'mR': // Select MRU relative
      number+=curmru;
      // fall through
    case 'mr': // Select MRU absolute
      if(number>=0 && number<MRUCOUNT) curmru=number;
      return 0;
    default:
      return prev;
  }
}

void run_editor(void) {
  SDL_Event ev;