map_routines_buttons.s 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. edit_buttons_list
  2. dc.l edit_exit_button,edit_save_button,edit_load_button
  3. dc.l edit_cut_button,edit_copy_button,edit_paste_button
  4. dc.l edit_choose_button
  5. dc.l edit_insert_row_button,edit_insert_col_button
  6. dc.l edit_delete_row_button,edit_delete_col_button
  7. dc.l edit_palette_button,show_whole_map_button,edit_fill_button
  8. edit_page_buttons
  9. dc.l edit_page1_button,edit_page2_button
  10. dc.l edit_page3_button,edit_page4_button
  11. dc.l edit_scrollup_page_button,edit_scrolldown_page_button
  12. dc.l edit_scrollup_map_button,edit_scrolldown_map_button
  13. dc.l edit_scrollleft_map_button,edit_scrollright_map_button
  14. dc.l edit_hit_on_map,edit_hit_on_blocks
  15. dc.l -1
  16. edit_exit_button
  17. dc.w BUTTON_1
  18. dc.w FOURTH_ROW
  19. dc.w MAIN_BUTTON_SCREEN ;frame type
  20. dc.b STANDARD_BUTTON ;standard
  21. dc.b NOT_DEPRESSED
  22. dc.b 0
  23. dc.b 0 ;not used
  24. dc.l 0 ;not used
  25. dc.l 0 ;not used
  26. dc.l remove_edit_buttons
  27. dc.b "EXIT EDIT",0
  28. EVEN
  29. edit_save_button
  30. dc.w BUTTON_1
  31. dc.w SECOND_ROW
  32. dc.w MAIN_BUTTON_SCREEN ;frame type
  33. dc.b STANDARD_BUTTON ;standard
  34. dc.b NOT_DEPRESSED
  35. dc.b 0
  36. dc.b 0 ;not used
  37. dc.l 0 ;not used
  38. dc.l 0 ;not used
  39. dc.l set_up_save_map
  40. dc.b "SAVE MAP",0
  41. EVEN
  42. edit_load_button
  43. dc.w BUTTON_1
  44. dc.w FIRST_ROW
  45. dc.w MAIN_BUTTON_SCREEN ;frame type
  46. dc.b STANDARD_BUTTON ;standard
  47. dc.b NOT_DEPRESSED
  48. dc.b 0
  49. dc.b 0 ;not used
  50. dc.l 0 ;not used
  51. dc.l 0 ;not used
  52. dc.l load_a_map
  53. dc.b "LOAD MAP",0
  54. EVEN
  55. edit_cut_button
  56. dc.w BUTTON_2
  57. dc.w FIRST_ROW
  58. dc.w MAIN_BUTTON_SCREEN ;frame type
  59. dc.b STANDARD_BUTTON ;standard
  60. dc.b NOT_DEPRESSED
  61. dc.b 0
  62. dc.b 0 ;not used
  63. dc.l 0 ;not used
  64. dc.l 0 ;not used
  65. dc.l cut_block
  66. dc.b "CUT BLK",0
  67. EVEN
  68. edit_copy_button
  69. dc.w BUTTON_2
  70. dc.w SECOND_ROW
  71. dc.w MAIN_BUTTON_SCREEN ;frame type
  72. dc.b STANDARD_BUTTON ;standard
  73. dc.b NOT_DEPRESSED
  74. dc.b 0
  75. dc.b 0 ;not used
  76. dc.l 0 ;not used
  77. dc.l 0 ;not used
  78. dc.l copy_block
  79. dc.b "COPY BLK",0
  80. EVEN
  81. edit_paste_button
  82. dc.w BUTTON_2
  83. dc.w THIRD_ROW
  84. dc.w MAIN_BUTTON_SCREEN ;frame type
  85. dc.b STANDARD_BUTTON ;standard
  86. dc.b NOT_DEPRESSED
  87. dc.b 0
  88. dc.b 0 ;not used
  89. dc.l 0 ;not used
  90. dc.l 0 ;not used
  91. dc.l paste_block
  92. dc.b "PASTE BLK",0
  93. EVEN
  94. edit_choose_button
  95. dc.w BUTTON_2
  96. dc.w FOURTH_ROW
  97. dc.w MAIN_BUTTON_SCREEN ;frame type
  98. dc.b STANDARD_BUTTON ;standard
  99. dc.b NOT_DEPRESSED
  100. dc.b 0
  101. dc.b 0 ;not used
  102. dc.l 0 ;not used
  103. dc.l 0 ;not used
  104. dc.l display_buffer_window
  105. dc.b "PICK BUFF",0
  106. EVEN
  107. edit_insert_row_button
  108. dc.w BUTTON_3
  109. dc.w FIRST_ROW
  110. dc.w MAIN_BUTTON_SCREEN ;frame type
  111. dc.b STANDARD_BUTTON ;standard
  112. dc.b NOT_DEPRESSED
  113. dc.b 0
  114. dc.b 0 ;not used
  115. dc.l 0 ;not used
  116. dc.l 0 ;not used
  117. dc.l insert_map_row
  118. dc.b "INSERT ROW",0
  119. EVEN
  120. edit_insert_col_button
  121. dc.w BUTTON_3
  122. dc.w SECOND_ROW
  123. dc.w MAIN_BUTTON_SCREEN ;frame type
  124. dc.b STANDARD_BUTTON ;standard
  125. dc.b NOT_DEPRESSED
  126. dc.b 0
  127. dc.b 0 ;not used
  128. dc.l 0 ;not used
  129. dc.l 0 ;not used
  130. dc.l insert_map_column
  131. dc.b "INSERT COL",0
  132. EVEN
  133. edit_delete_row_button
  134. dc.w BUTTON_3
  135. dc.w THIRD_ROW
  136. dc.w MAIN_BUTTON_SCREEN ;frame type
  137. dc.b STANDARD_BUTTON ;standard
  138. dc.b NOT_DEPRESSED
  139. dc.b 0
  140. dc.b 0 ;not used
  141. dc.l 0 ;not used
  142. dc.l 0 ;not used
  143. dc.l delete_map_row
  144. dc.b "DELETE ROW",0
  145. EVEN
  146. edit_delete_col_button
  147. dc.w BUTTON_3
  148. dc.w FOURTH_ROW
  149. dc.w MAIN_BUTTON_SCREEN ;frame type
  150. dc.b STANDARD_BUTTON ;standard
  151. dc.b NOT_DEPRESSED
  152. dc.b 0
  153. dc.b 0 ;not used
  154. dc.l 0 ;not used
  155. dc.l 0 ;not used
  156. dc.l delete_map_column
  157. dc.b "DELETE COL",0
  158. EVEN
  159. edit_fill_button
  160. dc.w BUTTON_4
  161. dc.w FIRST_ROW
  162. dc.w MAIN_BUTTON_SCREEN ;frame type
  163. dc.b STANDARD_BUTTON ;standard
  164. dc.b NOT_DEPRESSED
  165. dc.b 0
  166. dc.b 0 ;not used
  167. dc.l 0 ;not used
  168. dc.l 0 ;not used
  169. dc.l fill_map
  170. dc.b "FILL",0
  171. EVEN
  172. edit_palette_button
  173. dc.w BUTTON_4
  174. dc.w SECOND_ROW
  175. dc.w MAIN_BUTTON_SCREEN ;frame type
  176. dc.b STANDARD_BUTTON ;standard
  177. dc.b NOT_DEPRESSED
  178. dc.b 0
  179. dc.b 0 ;not used
  180. dc.l 0 ;not used
  181. dc.l 0 ;not used
  182. dc.l edit_map_palette
  183. dc.b "PALETTE",0
  184. EVEN
  185. show_whole_map_button
  186. dc.w BUTTON_4
  187. dc.w THIRD_ROW
  188. dc.w MAIN_BUTTON_SCREEN ;frame type
  189. dc.b STANDARD_BUTTON ;standard
  190. dc.b NOT_DEPRESSED
  191. dc.b 0
  192. dc.b 0 ;not used
  193. dc.l 0 ;not used
  194. dc.l 0 ;not used
  195. dc.l show_whole_map
  196. dc.b "SHOW WHOLE",0
  197. EVEN
  198. edit_undo_button
  199. dc.w BUTTON_4
  200. dc.w FOURTH_ROW
  201. dc.w MAIN_BUTTON_SCREEN ;frame type
  202. dc.b STANDARD_BUTTON ;standard
  203. dc.b NOT_DEPRESSED
  204. dc.b 0
  205. dc.b 0 ;not used
  206. dc.l 0 ;not used
  207. dc.l 0 ;not used
  208. dc.l undo
  209. dc.b "UNDO",0
  210. EVEN
  211. edit_page1_button
  212. dc.w BUTTON_5+40
  213. dc.w FIRST_ROW+17
  214. dc.w MAIN_BUTTON_SCREEN ;frame type
  215. dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
  216. dc.b NOT_DEPRESSED
  217. dc.b 1
  218. dc.b 0 ;not used
  219. dc.l page1_button
  220. dc.l 0 ;not used
  221. dc.l change_block_page
  222. dc.b 0
  223. EVEN
  224. edit_page2_button
  225. dc.w BUTTON_5+68
  226. dc.w FIRST_ROW+17
  227. dc.w MAIN_BUTTON_SCREEN ;frame type
  228. dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
  229. dc.b NOT_DEPRESSED
  230. dc.b 2
  231. dc.b 0 ;not used
  232. dc.l page2_button
  233. dc.l 0 ;not used
  234. dc.l change_block_page
  235. dc.b 0
  236. EVEN
  237. edit_page3_button
  238. dc.w BUTTON_5+40
  239. dc.w FIRST_ROW+13+17
  240. dc.w MAIN_BUTTON_SCREEN ;frame type
  241. dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
  242. dc.b NOT_DEPRESSED
  243. dc.b 3
  244. dc.b 0 ;not used
  245. dc.l page3_button
  246. dc.l 0 ;not used
  247. dc.l change_block_page
  248. dc.b 0
  249. EVEN
  250. edit_page4_button
  251. dc.w BUTTON_5+68
  252. dc.w FIRST_ROW+13+17
  253. dc.w MAIN_BUTTON_SCREEN ;frame type
  254. dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
  255. dc.b NOT_DEPRESSED
  256. dc.b 4
  257. dc.b 0 ;not used
  258. dc.l page4_button
  259. dc.l 0 ;not used
  260. dc.l change_block_page
  261. dc.b 0
  262. EVEN
  263. edit_scrollup_page_button
  264. dc.w BUTTON_5+10
  265. dc.w FIRST_ROW+10
  266. dc.w MAIN_BUTTON_SCREEN ;frame type
  267. dc.b CUSTOM_BUTTON+HOLD_BUTTON
  268. dc.b NOT_DEPRESSED
  269. dc.b 0
  270. dc.b 0 ;not used
  271. dc.l arrow_up
  272. dc.l 0 ;not used
  273. dc.l change_blocks_position_down
  274. dc.b 0
  275. EVEN
  276. edit_scrolldown_page_button
  277. dc.w BUTTON_5+10
  278. dc.w FIRST_ROW+30
  279. dc.w MAIN_BUTTON_SCREEN ;frame type
  280. dc.b CUSTOM_BUTTON+HOLD_BUTTON
  281. dc.b NOT_DEPRESSED
  282. dc.b 0
  283. dc.b 0 ;not used
  284. dc.l arrow_down
  285. dc.l 0 ;not used
  286. dc.l change_blocks_position_up
  287. dc.b 0
  288. EVEN
  289. edit_scrollup_map_button
  290. dc.w BUTTON_5+140
  291. dc.w SECOND_ROW+5
  292. dc.w MAIN_BUTTON_SCREEN ;frame type
  293. dc.b CUSTOM_BUTTON+HOLD_BUTTON
  294. dc.b NOT_DEPRESSED
  295. dc.b 0
  296. dc.b 0 ;not used
  297. dc.l arrow_up
  298. dc.l 0 ;not used
  299. dc.l scroll_map_up
  300. dc.b 0
  301. EVEN
  302. edit_scrolldown_map_button
  303. dc.w BUTTON_5+140
  304. dc.w SECOND_ROW+35
  305. dc.w MAIN_BUTTON_SCREEN ;frame type
  306. dc.b CUSTOM_BUTTON+HOLD_BUTTON
  307. dc.b NOT_DEPRESSED
  308. dc.b 0
  309. dc.b 0 ;not used
  310. dc.l arrow_down
  311. dc.l 0 ;not used
  312. dc.l scroll_map_down
  313. dc.b 0
  314. EVEN
  315. edit_scrollleft_map_button
  316. dc.w BUTTON_5+110
  317. dc.w SECOND_ROW+20
  318. dc.w MAIN_BUTTON_SCREEN ;frame type
  319. dc.b CUSTOM_BUTTON+HOLD_BUTTON
  320. dc.b NOT_DEPRESSED
  321. dc.b 0
  322. dc.b 0 ;not used
  323. dc.l arrow_left
  324. dc.l 0 ;not used
  325. dc.l scroll_map_right
  326. dc.b 0
  327. EVEN
  328. edit_scrollright_map_button
  329. dc.w BUTTON_5+167
  330. dc.w SECOND_ROW+20
  331. dc.w MAIN_BUTTON_SCREEN ;frame type
  332. dc.b CUSTOM_BUTTON+HOLD_BUTTON
  333. dc.b NOT_DEPRESSED
  334. dc.b 0
  335. dc.b 0 ;not used
  336. dc.l arrow_right
  337. dc.l 0 ;not used
  338. dc.l scroll_map_left
  339. dc.b 0
  340. EVEN
  341. *******detect buttons
  342. edit_hit_on_map
  343. dc.w 0
  344. dc.w 0
  345. dc.w MAIN_SCREEN ;frame type
  346. dc.b CUSTOM_BUTTON+HOLD_BUTTON ;+NO_WAIT_BUTTON
  347. dc.b NOT_DEPRESSED
  348. dc.b 0
  349. dc.b 0 ;not used
  350. dc.l map_screen_custom_button
  351. dc.l 0 ;not used
  352. dc.l execute_map_function
  353. dc.b 0
  354. EVEN
  355. edit_hit_on_blocks
  356. dc.w 0
  357. dc.w BUTTON_WINDOW_OFFSET-32
  358. dc.w MAIN_SCREEN ;frame type
  359. dc.b CUSTOM_BUTTON
  360. dc.b NOT_DEPRESSED
  361. dc.b 0
  362. dc.b 0 ;not used
  363. dc.l map_blocks_custom_button
  364. dc.l 0 ;not used
  365. dc.l update_current_block
  366. dc.b 0
  367. EVEN