123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952 |
- ************************************
- **** SET UP PALETTE WINDOW ****
- ************************************
- set_up_palette_window
- move.l #backup_palette,a1
- move.l page_pointer,a0
- move.l screen_palette(a0),a0
- move.w #31,d0
- copy_palette
- move.w (a0)+,(a1)+
- dbra d0,copy_palette
- move.l #pal_butts,a0
- moveq #0,d0
- move.w colour_selected,d0
- asl.w #2,d0
- move.l (a0,d0),a0
- move.b #DEPRESSED,button_start(a0)
- move.l #palette_window,a0
- bsr create_window
-
- move.l #palette_button_list,a0
- bsr display_button_list
-
- move.l #Palette_Window,a0 ; write in filename
- move.l #palette_text,a1
- move.w #2,d2
- move.w #6,d0
- move.w #6,d1
- bsr Write_Text
- bsr get_colour_attribs
- bsr display_colour_attributes
- rts
- ************************************
- **** CANCEL PALETTE WINDOW ****
- ************************************
- cancel_palette_window
- move.l page_pointer,a2
- move.l screen_palette(a2),a0
- move.l #backup_palette,a1
- move.w #31,d0
- copy_back_palette
- move.w (a1)+,(a0)+
- dbra d0,copy_back_palette
- move.l screen_palette(a2),a1
- bsr setup_screen_colours
- bsr remove_palette_window
- rts
- ************************************
- **** REMOVE PALETTE WINDOW ****
- ************************************
- remove_palette_window
-
- move.l #palette_button_list,a0
- bsr remove_button_list
-
- move.l #palette_window,a0
- bsr destroy_window
-
- rts
- ************************************
- **** DISPLAY COLOUR ATTRIBUTES ****
- ************************************
- display_colour_attributes
- move.l #Palette_Window,a0 ; write in filename
- move.l #palette_numbers,a1
- move.w #2,d2
- move.w #106,d0
- move.w #9+20,d1
- move.w #1,d3
- bsr Write_Text
- rts
-
- ************************************
- **** DELETE COLOUR ATTRIBUTES ****
- ************************************
- delete_colour_attributes
- move.l #Palette_Window,a0 ; write in filename
- move.l #palette_numbers,a1
- move.w #2,d2
- move.w #106,d0
- move.w #9+20,d1
- move.w #0,d3
- bsr Write_Text
- rts
- convert_col_to_hex
-
- cmp.w #9,d1
- ble.s all_num
- add.w #48+7,d1
- bra.s done_convert_col
- all_num
- add.w #48,d1
- done_convert_col
- rts
- ************************************
- **** GET COLOUR ATTRIBS ****
- ************************************
- get_colour_attribs
- moveq #0,d0
- move.w colour_selected,d0
- move.l page_pointer,a0
- move.l screen_palette(a0),a0
- asl.w #1,d0
- move.w (a0,d0),d0 ; current colour
-
- move.w d0,d1
- andi.w #$0f00,d1
- asr.w #8,d1
- bsr convert_col_to_hex
- move.b d1,red_inten
- move.w d0,d1
- andi.w #$00f0,d1
- asr.w #4,d1
- bsr convert_col_to_hex
- move.b d1,green_inten
- andi.w #$00f,d0
- move.w d0,d1
- bsr convert_col_to_hex
- move.b d1,blue_inten
- rts
- ************************************
- **** COLOUR UP ****
- ************************************
- colour_up
- move.l clicked_button,a0
- moveq #0,d0
- move.b button_data(a0),d0
-
- move.w colour_selected,d1
- asl.w #1,d1
- move.l page_pointer,a0
- move.l screen_palette(a0),a0
- move.w (a0,d1),d2 ; colour
-
- cmp.w #0,d0
- bne.s could_be_green
- andi.w #$f00,d2
- asr.w #8,d2
- cmp.w #$f,d2
- beq.s done_colour_update
- addq.w #1,d2
- asl.w #8,d2
- andi.w #$0ff,(a0,d1)
- or.w d2,(a0,d1)
- bra.s done_colour_update
- could_be_green
- cmp.w #1,d0
- bne.s must_be_blue
- andi.w #$0f0,d2
- asr.w #4,d2
- cmp.w #$f,d2
- beq.s done_colour_update
- addq.w #1,d2
- asl.w #4,d2
- andi.w #$f0f,(a0,d1)
- or.w d2,(a0,d1)
- bra.s done_colour_update
- must_be_blue
- andi.w #$00f,d2
- cmp.w #$f,d2
- beq.s done_colour_update
- addq.w #1,d2
- andi.w #$ff0,(a0,d1)
- or.w d2,(a0,d1)
- done_colour_update
- bsr delete_colour_attributes
- bsr get_colour_attribs
- bsr display_colour_attributes
- bsr set_current_page_colours
- rts
- **************************************
- ***** SET CURRENT PAGE COLOURS *****
- **************************************
- set_current_page_colours
- move.l page_pointer,a0
- move.l screen_palette(a0),a0
- move.l a0,a1
- bsr setup_screen_colours
- rts
- **************************************
- ***** SET ORIGINAL COLOURS *****
- **************************************
- set_original_colours
- move.l #main_screen_colour_map,a1
- move.l #main_screen_colours+2,a3
- move.w #8-1,d0
- fill_ori_colours
- move.w (a1)+,(a3)
- add.l #4,a3
- dbra d0,fill_ori_colours
- rts
- ************************************
- **** COLOUR DOWN ****
- ************************************
- colour_down
- move.l clicked_button,a0
- moveq #0,d0
- move.b button_data(a0),d0
-
- move.w colour_selected,d1
- asl.w #1,d1
- move.l page_pointer,a0
- move.l screen_palette(a0),a0
- move.w (a0,d1),d2 ; colour
-
- cmp.w #0,d0
- bne.s dcould_be_green
- andi.w #$f00,d2
- asr.w #8,d2
- cmp.w #$0,d2
- beq.s ddone_colour_update
- subq.w #1,d2
- asl.w #8,d2
- andi.w #$0ff,(a0,d1)
- or.w d2,(a0,d1)
- bra.s ddone_colour_update
- dcould_be_green
- cmp.w #1,d0
- bne.s dmust_be_blue
- andi.w #$0f0,d2
- asr.w #4,d2
- cmp.w #$0,d2
- beq.s ddone_colour_update
- subq.w #1,d2
- asl.w #4,d2
- andi.w #$f0f,(a0,d1)
- or.w d2,(a0,d1)
- bra.s ddone_colour_update
- dmust_be_blue
- andi.w #$00f,d2
- cmp.w #$0,d2
- beq.s ddone_colour_update
- subq.w #1,d2
- andi.w #$ff0,(a0,d1)
- or.w d2,(a0,d1)
- ddone_colour_update
- bsr delete_colour_attributes
- bsr get_colour_attribs
- bsr display_colour_attributes
- move.l page_pointer,a0
- move.l screen_palette(a0),a0
- move.l a0,a1
- bsr setup_screen_colours
- rts
- ************************************
- **** SET NEW COLOUR ****
- ************************************
- set_new_colour
- move.l clicked_button,a0
- moveq #0,d0
- move.b button_data(a0),d0
-
- move.l #pal_butts,a0
- cmp.w colour_selected,d0
- bne.s new_colour_selected
- move.w colour_selected,d1
- asl.w #2,d1
- move.l (a0,d1),a0
- move.b #DEPRESSED,button_start(a0)
- bra.s redisplay_colour
- new_colour_selected
- move.w colour_selected,d1
- asl.w #2,d1
- move.l (a0,d1),a0
- move.b #NOT_DEPRESSED,button_start(a0)
- move.w d0,colour_selected
- redisplay_colour
- bsr remove_button
- bsr display_button
- bsr delete_colour_attributes
- bsr get_colour_attribs
- bsr display_colour_attributes
- rts
- *****************************palette stuff
- palette_text
- dc.b " Intensitys ",$a,$a
- dc.b " Red : ",$a,$a
- dc.b " Green : ",$a,$a
- dc.b " Blue : ",0
- EVEN
- palette_numbers
- red_inten
- dc.b 0,$a,$a
- green_inten
- dc.b 0,$a,$a
- blue_inten
- dc.b 0,0
- EVEN
-
- colour_selected
- dc.w 0
-
- **********palette window
- Palette_Window
- dc.w 240
- dc.w 144
- dc.w 40
- dc.w 20
- dc.l 0
- dc.l 0
- dc.b "PALETTE EDITOR",0
- even
- palette_button_list
- dc.l palette_ok_button,palette_cancel_button
- dc.l red_up_button,red_down_button
- dc.l blue_up_button,blue_down_button
- dc.l green_up_button,green_down_button
- pal_butts
- dc.l palette_colour0_button
- dc.l palette_colour1_button
- dc.l palette_colour2_button
- dc.l palette_colour3_button
- dc.l palette_colour4_button
- dc.l palette_colour5_button
- dc.l palette_colour6_button
- dc.l palette_colour7_button
- dc.l palette_colour8_button
- dc.l palette_colour9_button
- dc.l palette_colour10_button
- dc.l palette_colour11_button
- dc.l palette_colour12_button
- dc.l palette_colour13_button
- dc.l palette_colour14_button
- dc.l palette_colour15_button
- dc.l palette_colour16_button
- dc.l palette_colour17_button
- dc.l palette_colour18_button
- dc.l palette_colour19_button
- dc.l palette_colour20_button
- dc.l palette_colour21_button
- dc.l palette_colour22_button
- dc.l palette_colour23_button
- dc.l palette_colour24_button
- dc.l palette_colour25_button
- dc.l palette_colour26_button
- dc.l palette_colour27_button
- dc.l palette_colour28_button
- dc.l palette_colour29_button
- dc.l palette_colour30_button
- dc.l palette_colour31_button
- dc.l -1
- *****palette buttons
- palette_Ok_Button
- dc.w 24
- dc.w 110
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON ;standard
- dc.b NOT_DEPRESSED
- dc.b 0
- dc.b 0 ;not used
- dc.l ok_custom_button
- dc.l 0 ;not used
- dc.l remove_palette_window
- dc.b 0
- even
- palette_cancel_Button
- dc.w 240-104
- dc.w 110
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON ;standard
- dc.b NOT_DEPRESSED
- dc.b 0
- dc.b 0 ;not used
- dc.l cancel_custom_button
- dc.l 0 ;not used
- dc.l cancel_palette_window
- dc.b 0
- even
- Red_Up_Button
- dc.w 130
- dc.w 30
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+HOLD_BUTTON ;standard
- dc.b NOT_DEPRESSED
- dc.b 0
- dc.b 0 ;not used
- dc.l arrow_up
- dc.l 0 ;not used
- dc.l colour_up
- dc.b 0
- EVEN
-
- Red_Down_Button
- dc.w 130+20
- dc.w 30
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+HOLD_BUTTON ;standard
- dc.b NOT_DEPRESSED
- dc.b 0
- dc.b 0 ;not used
- dc.l arrow_down
- dc.l 0 ;not used
- dc.l colour_down
- dc.b 0
- EVEN
- Green_Up_Button
- dc.w 130
- dc.w 50
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+HOLD_BUTTON ;standard
- dc.b NOT_DEPRESSED
- dc.b 1
- dc.b 0 ;not used
- dc.l arrow_up
- dc.l 0 ;not used
- dc.l colour_up
- dc.b 0
- EVEN
-
- Green_Down_Button
- dc.w 130+20
- dc.w 50
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+HOLD_BUTTON ;standard
- dc.b NOT_DEPRESSED
- dc.b 1
- dc.b 0 ;not used
- dc.l arrow_down
- dc.l 0 ;not used
- dc.l colour_down
- dc.b 0
- EVEN
- Blue_Up_Button
- dc.w 130
- dc.w 70
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+HOLD_BUTTON ;standard
- dc.b NOT_DEPRESSED
- dc.b 2
- dc.b 0 ;not used
- dc.l arrow_up
- dc.l 0 ;not used
- dc.l colour_up
- dc.b 0
- EVEN
-
- Blue_Down_Button
- dc.w 130+20
- dc.w 70
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+HOLD_BUTTON ;standard
- dc.b NOT_DEPRESSED
- dc.b 2
- dc.b 0 ;not used
- dc.l arrow_down
- dc.l 0 ;not used
- dc.l colour_down
- dc.b 0
- EVEN
- palette_colour0_button
- dc.w 56
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 0
- dc.b 0 ;not used
- dc.l colour0_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour1_button
- dc.w 56+8
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 1
- dc.b 0 ;not used
- dc.l colour1_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour2_button
- dc.w 56+16
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 2
- dc.b 0 ;not used
- dc.l colour2_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
-
- palette_colour3_button
- dc.w 56+24
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 3
- dc.b 0 ;not used
- dc.l colour3_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour4_button
- dc.w 56+32
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 4
- dc.b 0 ;not used
- dc.l colour4_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour5_button
- dc.w 56+40
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 5
- dc.b 0 ;not used
- dc.l colour5_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour6_button
- dc.w 56+48
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 6
- dc.b 0 ;not used
- dc.l colour6_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour7_button
- dc.w 56+56
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 7
- dc.b 0 ;not used
- dc.l colour7_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour8_button
- dc.w 56+64
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 8
- dc.b 0 ;not used
- dc.l colour8_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour9_button
- dc.w 56+64
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 9
- dc.b 0 ;not used
- dc.l colour9_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour10_button
- dc.w 56+72
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 10
- dc.b 0 ;not used
- dc.l colour10_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour11_button
- dc.w 56+80
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 11
- dc.b 0 ;not used
- dc.l colour11_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour12_button
- dc.w 56+88
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 12
- dc.b 0 ;not used
- dc.l colour12_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour13_button
- dc.w 56+96
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 13
- dc.b 0 ;not used
- dc.l colour13_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour14_button
- dc.w 56+104
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 14
- dc.b 0 ;not used
- dc.l colour14_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour15_button
- dc.w 56+112
- dc.w 90
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 15
- dc.b 0 ;not used
- dc.l colour15_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour16_button
- dc.w 56
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 16
- dc.b 0 ;not used
- dc.l colour16_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour17_button
- dc.w 56+8
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 17
- dc.b 0 ;not used
- dc.l colour17_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour18_button
- dc.w 56+16
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 18
- dc.b 0 ;not used
- dc.l colour18_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
-
- palette_colour19_button
- dc.w 56+24
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 19
- dc.b 0 ;not used
- dc.l colour19_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour20_button
- dc.w 56+32
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 20
- dc.b 0 ;not used
- dc.l colour20_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour21_button
- dc.w 56+40
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 21
- dc.b 0 ;not used
- dc.l colour21_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour22_button
- dc.w 56+48
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 22
- dc.b 0 ;not used
- dc.l colour22_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour23_button
- dc.w 56+56
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 23
- dc.b 0 ;not used
- dc.l colour23_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour24_button
- dc.w 56+64
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 24
- dc.b 0 ;not used
- dc.l colour24_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour25_button
- dc.w 56+64
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 25
- dc.b 0 ;not used
- dc.l colour25_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour26_button
- dc.w 56+72
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 26
- dc.b 0 ;not used
- dc.l colour26_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour27_button
- dc.w 56+80
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 27
- dc.b 0 ;not used
- dc.l colour27_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour28_button
- dc.w 56+88
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 28
- dc.b 0 ;not used
- dc.l colour28_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour29_button
- dc.w 56+96
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 29
- dc.b 0 ;not used
- dc.l colour29_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour30_button
- dc.w 56+104
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 30
- dc.b 0 ;not used
- dc.l colour30_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- palette_colour31_button
- dc.w 56+112
- dc.w 98
- dc.w WINDOW ;frame type
- dc.b CUSTOM_BUTTON+TOGGLE_BUTTON
- dc.b NOT_DEPRESSED
- dc.b 31
- dc.b 0 ;not used
- dc.l colour31_button
- dc.l 0 ;not used
- dc.l set_new_colour
- dc.b 0
- EVEN
- backup_palette
- ds.w 32
|