Overview
Comment: | Start to implement the picture editor |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6e1b1bf6d34dc95688f260c0e8b115a3 |
User & Date: | user on 2021-01-11 06:22:26 |
Other Links: | manifest | tags |
Context
2021-01-11
| ||
07:09 | Add keyicons/1.xbm check-in: 7597620f97 user: user tags: trunk | |
06:22 | Start to implement the picture editor check-in: 6e1b1bf6d3 user: user tags: trunk | |
2021-01-10
| ||
23:58 | Mention in the documentation about the autotest mode, regular expression to find errors check-in: 839e21c938 user: user tags: trunk | |
Changes
Modified commandline.doc from [ea8d54a2cc] to [5cf69605ba].
︙ | |||
38 39 40 41 42 43 44 45 46 47 48 49 50 51 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | + + + | Start in the editor instead of game. -n Create a new puzzle set. The .xclass and .class files should already exist; the .level and .solution files should not already exist, and will be created with minimal data. -p Start the picture editor. -r Open in read-only mode. -t Enable tracing. -v |
︙ |
Modified compile from [a67bcb4704] to [309c7eb53b].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | - + - + - + + + | #!/bin/bash -- set -e test -f CFLAGS || echo xxx > CFLAGS |
Modified heromesh.h from [e8f5d32ef9] to [af1df60f10].
︙ | |||
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | + + + + - | // == picture == extern SDL_Surface*screen; extern Uint16 picture_size; extern int left_margin; void init_palette(void); void init_screen(void); void load_pictures(void); // Use only when screen is unlocked void draw_picture(int x,int y,Uint16 img); void draw_cell(int x,int y); // Use only when screen is locked void draw_text(int x,int y,const unsigned char*t,int bg,int fg); void draw_key(int x,int y,int k,int bg,int fg); const char*screen_prompt(const char*txt); int screen_message(const char*txt); |
︙ | |||
265 266 267 268 269 270 271 | 268 269 270 271 272 273 274 275 276 277 278 | + + + + | void locate_me(int x,int y); // == edit == void run_editor(void); void write_empty_level_set(FILE*); // == picedit == void run_picture_editor(void); |
Modified main.c from [e9e638bdea] to [b062b0f69d].
1 | 1 2 3 4 5 6 7 8 9 | - + | #if 0 |
︙ | |||
863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 | 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 | + + + + + | globalclassname=globalclassname?globalclassname+1:basefilename; } if(main_options['n']) { if(main_options['r']) fatal("Switches -r and -n are conflicting\n"); main_options['x']=1; } if(main_options['a']) main_options['r']=main_options['x']=1; if(main_options['p']) main_options['r']=1; if(!main_options['c']) load_options(); if(argc>optind) read_options(argc-optind,argv+optind); *optionquery=xrm_make_quark(globalclassname,0)?:xrm_anyq; #ifdef __GNUC__ stack_protect_mark=__builtin_frame_address(0); set_stack_protection(); #endif if(main_options['c']) { load_classes(); return 0; } init_sql(); load_key_bindings(); init_screen(); if(main_options['p']) { run_picture_editor(); return 0; } load_pictures(); if(main_options['T']) { test_mode(); return 0; } init_usercache(); if(main_options['n']) return 0; |
︙ |
Modified man6/heromesh.6 from [b9875397f8] to [a7a48743c1].
︙ | |||
28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | + + | This can be used to verify that the class definition file does not contain syntax errors. You can also use it with some other options to display details. .IP -e Start the level editor. .IP -n Create a new puzzle set. The class definition file and image set must already exist. .IP -p Start the picture editor. .IP -r Open in read-only mode. .IP -t Enable message tracing. .IP -v More verbose error logging. .IP -x |
︙ |
Added picedit.c version [2a538fb519].