Free Hero Mesh

Check-in [c52084ea2e]
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 clicking on MRU on left margin in level editor in order to select one
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c52084ea2e9a16d91af1d9b9d175111af624cd58
User & Date: user on 2021-02-03 02:13:01
Other Links: manifest | tags
Context
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
2021-01-20
02:48
Implement recompression modified pictures check-in: 2da92b67e8 user: user tags: trunk
Changes

Modified edit.c from [4ddc1ba4e4] to [8d6920b388].

367
368
369
370
371
372
373





374

375
376
377
378
379
380
381
367
368
369
370
371
372
373
374
375
376
377
378

379
380
381
382
383
384
385
386







+
+
+
+
+
-
+







        break;
      case SDL_MOUSEMOTION:
        set_cursor(ev.motion.x<left_margin?XC_arrow:XC_tcross);
        show_mouse_xy(&ev);
        break;
      case SDL_MOUSEBUTTONDOWN:
        if(ev.button.x<left_margin) {
          if(ev.button.y<56) break;
          i=(ev.button.y-56)/picture_size;
          if(i>=0 && i<MRUCOUNT) {
            curmru=i;
            redraw_editor();
          
          }
          break;
        } else {
          i=exec_key_binding(&ev,1,(ev.button.x-left_margin)/picture_size+1,ev.button.y/picture_size+1,editor_command,0);
          goto command;
        }
      case SDL_KEYDOWN:
        i=exec_key_binding(&ev,1,0,0,editor_command,0);