diff options
| -rw-r--r-- | public/bluebey-studio/src/panel.js | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/public/bluebey-studio/src/panel.js b/public/bluebey-studio/src/panel.js index ba60cad..e9eba0c 100644 --- a/public/bluebey-studio/src/panel.js +++ b/public/bluebey-studio/src/panel.js @@ -628,6 +628,24 @@ export function buildPanel(app, root) { lookPad.el, h('p', { class: 'hint', text: 'ドラッグで両目が動きます。ダブルクリックで正面に戻ります。' })))); + // 目を細める: a one-tap マンガの細目, kept out of the こまかい設定 box so it is + // easy to find. + faceSection.add(buttons({ + items: [{ + id: 'squint', + label: '目を細める', + onClick: () => { + // The upper lid comes partway down and the lower lid rises to meet it. + // `open` is per-eye (kept in step here); `lowerLid` is shared. + state.face.eyes.left.open = 0.5; + state.face.eyes.right.open = 0.5; + state.face.eyes.lowerLid = 0.5; + app.actions.refresh('face'); + sync(); + }, + }], + })); + const eyeAdvanced = details(faceSection.body, 'こまかい設定(瞳・ハート・涙・まぶた)'); const irisScaleSlider = slider({ label: '瞳の大きさ', min: 0.4, max: 1.4, step: 0.01, value: 1, format: (v) => v.toFixed(2), @@ -676,21 +694,6 @@ export function buildPanel(app, root) { eyeAdvanced.add(lidWidthSlider.el); eyeAdvanced.add(lowerLidSlider.el); eyeAdvanced.add(lidShapeSegment.el); - eyeAdvanced.add(buttons({ - items: [{ - id: 'squint', - label: '目を細める', - onClick: () => { - // マンガの細目: the upper lid comes partway down and the lower lid rises to - // meet it. `open` is per-eye (kept in step here); `lowerLid` is shared. - state.face.eyes.left.open = 0.5; - state.face.eyes.right.open = 0.5; - state.face.eyes.lowerLid = 0.5; - app.actions.refresh('face'); - sync(); - }, - }], - })); eyeAdvanced.add(hint('「まぶたの形」を「直線」にすると、まぶたが平らに下りてきます。' + '「目を細める」で、上まぶたを下げつつ下まぶたを上げた細目になります。' + '「下まぶた」を上げると、下からもまぶたが持ち上がります。')); |
