4 ; The Sapphire Colour Selector dialogue box
6 ; © 1994-1998 Straylight
9 ;----- Licensing note -------------------------------------------------------
11 ; This file is part of Straylight's Sapphire library.
13 ; Sapphire is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
18 ; Sapphire is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ; GNU General Public License for more details.
23 ; You should have received a copy of the GNU General Public License
24 ; along with Sapphire. If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 ;----- Overview -------------------------------------------------------------
33 [ :LNOT::DEF:colSelect__dfn
38 ; On entry: R0 == address of a colour block
39 ; R1 == pointer to routine to call when done
40 ; R2 == R10 to call routine with
41 ; R3 == R12 to call routine with
43 ; On exit: R0 = colour selector handle
46 ; Use: Displays a colour selector dialogue box. It allows the user
47 ; to edit a colour (understatement....)
51 ;----- The colour selector handler ------------------------------------------
53 ; The routine you pass to colSelect is entered with R0 as a reason code,
54 ; and other registers containing values which depend on that. Reason codes
59 csEvent_choice # 1 ;User has chosen a colour
60 ;R1 == pointer to colour blk
64 ;----- Data structures ------------------------------------------------------
67 col_rgb # 4 ;RGB palette entry for colour
68 col_model # 4 ;Colour model for colour
69 col_data # 4 ;Colour data for model
74 ;----- That's all, folks ----------------------------------------------------