@@ -50,10 +50,9 @@ namespace ImageList {
50
50
{ type : 'colourpicker' , name : 'clrTernary' , onChange : c => onTernaryColourChange ( c ) , x : 16 , y : 56 , width : 12 , height : 12 } ,
51
51
{ type : 'checkbox' , x : 32 , y : 56 , width : 100 , height : 14 , text : 'Blend' } ,
52
52
{ type : 'label' , x : 16 , y : 74 , width : 50 , height : 14 , text : 'Palette:' } ,
53
- { type : 'spinner' , name : 'spnPalette' , x : 68 , y : 72 , width : 100 , height : 14 , text : '0' , onDecrement : ( ) => onDecrementPalette ( ) , onIncrement : ( ) => onIncrementPalette ( ) } ,
53
+ { type : 'spinner' , name : 'spnPalette' , x : 68 , y : 72 , width : 100 , height : 14 , text : '0' , isHoldable : true , onDecrement : ( ) => onDecrementPalette ( ) , onIncrement : ( ) => onIncrementPalette ( ) } ,
54
54
{ type : 'label' , x : 16 , y : 92 , width : 50 , height : 14 , text : 'Start ID:' } ,
55
- { type : 'spinner' , name : 'spnStartId' , x : 68 , y : 90 , width : 100 , height : 14 , text : startId . toString ( ) , onDecrement : ( ) => onDecrementId ( ) , onIncrement : ( ) => onIncrementId ( ) } ,
56
- { type : 'button' , x : 178 , y : 90 , width : 50 , height : 14 , text : 'Select' , onClick : ( ) => onSelectId ( ) } ,
55
+ { type : 'spinner' , name : 'spnStartId' , x : 68 , y : 90 , width : 100 , height : 14 , isHoldable : true , text : startId . toString ( ) , onClick : ( ) => onSelectId ( ) , onDecrement : ( ) => onDecrementId ( ) , onIncrement : ( ) => onIncrementId ( ) } ,
57
56
{ type : 'custom' , name : 'imageList' , x : 8 , y : 122 , width : 200 , height : 100 , onDraw : function ( g ) { onDrawImages ( this , g ) ; } }
58
57
] ,
59
58
onUpdate : ( ) => onUpdate ( )
@@ -113,15 +112,13 @@ namespace ImageList {
113
112
const startIdSpinner = window . findWidget < SpinnerWidget > ( 'spnStartId' ) ;
114
113
if ( startIdSpinner && startId > 0 ) {
115
114
startId = Math . max ( 0 , startId - 32 ) ;
116
- startIdSpinner . text = startId . toString ( ) ;
117
115
}
118
116
}
119
117
120
118
function onIncrementId ( ) {
121
119
const startIdSpinner = window . findWidget < SpinnerWidget > ( 'spnStartId' ) ;
122
120
if ( startIdSpinner ) {
123
121
startId = nextId ;
124
- startIdSpinner . text = startId . toString ( ) ;
125
122
}
126
123
}
127
124
@@ -132,6 +129,11 @@ namespace ImageList {
132
129
imageList . height = window . height - imageList . y - 16 ;
133
130
}
134
131
132
+ const startIdSpinner = window . findWidget < SpinnerWidget > ( 'spnStartId' ) ;
133
+ if ( startIdSpinner ) {
134
+ startIdSpinner . text = startId . toString ( ) ;
135
+ }
136
+
135
137
primaryChecked = window . findWidget < CheckboxWidget > ( 'chkPrimary' ) . isChecked || false ;
136
138
const primaryColourWidget = window . findWidget < ColourPickerWidget > ( 'clrPrimary' ) ;
137
139
if ( primaryColourWidget ) {
0 commit comments