居民設定
Pixling 正在準備於 Mac App Store 上架。歡迎到 pixling.app 加入候補名單,上架時會通知你。
檢視並更改一位居民的設定、外觀、反應勾點、對話框與重力。若要列出、擺放、跟隨、設定暫時狀態、冒出表情、叫出與讀取像素,請見居民。
| 範圍 | 跳到 |
|---|---|
| 描述狀態、設定與選項 | pixling_resident_describe |
| 更改設定(patch、前後順序、隱藏) | pixling_resident_set |
| 點密度與顏色規則 | 點(dots)與 dotsWrite |
| 滑過、點按、抓住、放開、說話 | 反應勾點(hooks) |
| 對話紙樣式與摺起記號 | 對話紙(speech) |
| 對話視窗位置與大小 | 對話視窗(speechWindow) |
| 重力、強度、摩擦與螢幕 | 重力 |
| 設定紙與選單對照表 | 設定紙與 resident.set、右鍵選單 |
pixling_resident_describe
「pixling_resident_describe」一節回傳一位居民的完整狀態:resident、settings、options、shapes、sequence、upBoundary、status 與 playback。resident 是完整的 residents.list 列,settings 保存目前右鍵選單設定,options 列出這位居民允許的值。呼叫 resident.set 前請先呼叫 describe。
settings 欄位
「settings 欄位」一節| 群組 | 鍵 |
|---|---|
| 擺放與圖層 | layer、presence、displayBoundary、hidden |
| 重力與丟出 | gravity、gravityMenuBar、gravityCameraArea、gravityStrength、friction、throw |
| 互動與勾點 | clickThrough、clickShortcut、hooks |
| 點、調色盤與顆粒 | dots、palette、cellStyle、tone、grain、seeThrough |
| 外框、影子與貼紙 | outline、outlineWidth、shadow、sticker、reflection、reflectionDetail |
| 方塊、凹凸與體積 | block、reliefDetail、volumeDepth、volumeLight、volumeShadow、lightColor、volumeDepthBaked、surfaceMaterials |
| 標籤與亮光 | nameplate、nameplateColor、nameplateSeat、foldMarkSeat、highlight |
| 動作與姿勢 | pose、motionEnabled、motionBlockedBy、motionFeel、motionTempo、motionFrameCount、motionFrameOffset、drift |
| 閒置動畫 | idleAnimation、idleAnimationPinned |
| 說話與通知 | speech、speechWindow、speechFolded、notify、notifyQuestion、notifyMessage、sound、soundQuestion、soundMessage |
特定 settings 值的說明:
dots:{count, rule, thicken},對應設定紙的 點 頁,無法使用時為null。nameplate與nameplateColor:nameplate為hover或always。nameplateColor為speech(採用居民自己對話紙的顏色)或#RRGGBB底色。highlight:指標停在對話上時身體周圍的光:speech(項目紙張的顏色)、none,或#RRGGBB外圈光。motionBlockedBy與motionFrameCount:motionBlockedBy為nothing、thisResident或appSetting。motionFrameCount照原樣繪製時為null。idleAnimationPinned:使用者固定某個平常的動作時為true,抑制其他動作與occasional連續動作。speech與speechWindow:這位居民的對話紙樣子與對話視窗幾何位置(自動時為null);請見對話紙(speech)與對話視窗(speechWindow)。
options 與數值範圍
「options 與數值範圍」一節options 保存這位居民的 dots 選項、pose 畫格 ID、idleAnimation({id, name})以及固定詞彙表。options 中缺少的鍵代表這位居民無法使用。
| 鍵 | 可用條件 | 範圍與預設 |
|---|---|---|
dots |
長邊大於 8 個點的像素圖 | min(8)至 max(來源點數);{min, max, quick, rules, source} |
block |
像素圖,畫布 <= 128 px |
height:0 或 30–400‰;offset:10–150‰(56);fieldOfView:50–150%(100) |
reliefDetail |
像素圖,畫布 >= 64 px |
0–200(單位 0.1;0 關閉,100 為 10.0) |
volumeDepth |
僅限像素圖 | 0–80(單位 0.1;0 關閉,40 為 4.0) |
volumeLight、volumeShadow |
僅限像素圖 | volumeShadow:0–100% 或 null(從圖片測得) |
tone |
僅限像素圖 | tone.saturation:30–180%(100);tone.brightness:-36–36%(0) |
grain |
僅限像素圖 | grain.sizePercent:25、50、75、100(100);grain.transparencyPercent:0–80%(0) |
motionTempo |
所有居民 | 一般速度的 25–200%(100) |
motionFeel |
所有居民 | 0(不休息)或 10–1200(單位 0.1 秒;24 = 2.4–7.2 秒) |
seeThrough |
所有居民 | 指標在身上時變淡 0–80%(0;身體不透明度為 100% 減去該值) |
outlineWidth |
像素圖 | 待機身體長邊的 512 分之 1–16(4),繪製為 1–16 格 |
特定 options 鍵的細節:
dots:對應 點 頁。max是來源點數,維持點不變;quick列出小於max的快速數字按鈕;rules列出顏色規則(recommended、mostCommon、contrast、region、threeGroups、median、average、centre);source為{width, height}。全彩居民與長邊 8 個點以下的來源不包含此鍵。block、reliefDetail與體積:畫布 64 px 到 128 px 同時提供block與reliefDetail。block.height與block.offset是相對於畫布長邊的千分比整數;block.fieldOfView是百分比整數。像素圖一律提供體積鍵,全彩一律沒有;深度場是否已烘焙屬於狀態(settings.volumeDepthBaked),而非可用性。tone.brightness與motionFeel:正值brightness偏向白色,負值偏向黑色。motionFeel的值是以 0.1 秒為單位的最短休息時間(1.0–120.0 秒),最長休息一律是最短的 3 倍,因此24會休息 2.4–7.2 秒。idleAnimation:先列出作品動作,接著以sequence:<name>列出所有符合occasional資格的已儲存連續動作(不含say、emote、bounce或throw)。- 只由片段、短於 3 秒的停住,以及留在分鏡內且不重疊的光組成的連續動作,會像動作一樣直接循環,每次循環都會亮光。
- 包含移動、縮放、旋轉、鏡像、搖晃、淡化、改變樣子或較長停住的連續動作,會播放一次、依居民的休息設定休息,再重複。即使
motionFeel: 0(不休息),每次播放間仍會休息 1.2–4 秒,且在動作關閉或省電模式時不會播放。 - 若選中的連續動作被刪除或改到不再符合資格,居民會回復原本平常的動作。
hooks:options.hooks包含hover、click、grab、release和speak。每個事件各自列出builtin(poke、settle、pass)、motion(來自idleAnimation的作品動作)與sequence(透過pixling_sequence_save替此素材儲存的名稱)。speak排除會說話的連續動作,click另外列出bubble(open、write)。settings.hooks.<event>:回傳{value, effective, layer}。value是這位居民自己的選擇,自動時為null;effective是目前實際執行的內容;layer是entity、asset(創作預設)或app(App 預設)。App 預設為speak是poke、click是{"bubble": "open"}(設了clickShortcut時為"none"),其餘為"none"。
CLI 給人看的輸出每項設定印一行,格式為 key: value (choices),例如 layer: floating (floating|window|wallpaper)。
只要求部分區塊
「只要求部分區塊」一節傳入無重複的非空陣列 sections,項目可選 resident、settings、options、shapes、sequence 和 upBoundary。resident 包含身分、可見性、狀態與播放資訊。部分回應一律保留 entityID。省略 sections 則取得全部。
pixling_resident_set
「pixling_resident_set」一節使用 to 和對應 settings 鍵的封閉 patch 更新一位居民的設定。省略的鍵維持原樣;null 恢復預設值(CLI 為 default)。每次寫入都走與右鍵選單相同的驗證流程。
{"to": "No.7#1", "gravity": "down", "motionEnabled": true, "seeThrough": 40}pixling resident set --to 'No.7#1' --gravity down --motion truepixling resident set --to 'No.7#1' --input '{"gravity":"down","motionEnabled":true,"seeThrough":40}'{ "entityID": "0194e1a2-7b3c-7000-8000-000000000001", "settings": { "layer": "floating", "presence": "everywhere", "gravity": "down", "motionEnabled": true, "seeThrough": 40 }}實際回應會包含 settings 欄位中列出的每一個鍵,有寫入 dots 時還會附上 dotsWrite(dotsWrite 為 failed 時另附 hint)。
- 型別:
throw、clickThrough、hidden和motionEnabled為布林值;dots、tone、grain、block和shadow為物件。 hidden:true隱藏居民,同時保留它的桌面、位置、設定與綁定;false在原地重新顯示。隱藏期間visibility為hidden,一句話會以原因hidden變成held,信和提問會等待,而光、表情、丟出和連續動作會以hidden被拒絕。pose與motionEnabled:設定pose會停在該畫格並停止動作;motionEnabled: true解除它。設定motionEnabled: false會讓居民停在目前姿勢並維持pose: null。order:以front、forward、back或backmost調整居民在所屬圖層內的前後順序(CLI 拒絕default)。- 體積烘焙:對未烘焙的居民寫入體積屬性會自動啟動烘焙,完成後效果即呈現。
- 寫入順序與部分失敗:各項目會以獨立變更依序寫入。若書桌拒絕其中一項(
appNotReady、saveFailed、sceneInvalid),該項及後續項目不會寫入,但前面的項目可能已套用;請呼叫describe確認。 - CLI 輸出:給人看的輸出印出
changed ENTITY,後接每項一行。
點(dots)與 dotsWrite
「點(dots)與 dotsWrite」一節傳入至少含一個欄位的 {count?, rule?, thicken?},格式與 settings.dots 相同,可直接把 describe 的輸出原樣傳回。省略的子欄位維持原樣,null 恢復居民預設值,看起來的大小與中心不變。
count:長邊點數(options.dots.min–options.dots.max,維持來源比例)。rule:來自options.dots.rules的顏色規則。thicken:true可保留細深色線條。- CLI:
resident set --to <selector> --input '{"dots":...}'或pixling call resident.set。
當書桌需要產生尚未備好的點版本時,呼叫最多會等 3 秒,並在 dotsWrite 回報結果:
dotsWrite |
結果 |
|---|---|
committed |
已產生並儲存;反映在 settings.dots。 |
replaced |
被使用者操作或更新的呼叫取代;settings 顯示勝出結果。 |
pending |
3 秒內未完成;除非被取代,準備好就會儲存。請再讀一次 describe。 |
failed |
無法產生;點維持不變,其餘項目已儲存,並附上 hint。 |
最後一次選擇勝出,未變動的子欄位不寫入。同次呼叫中的 block 與 reliefDetail 會依新的點驗證。等待期間若居民被收起來,呼叫以 targetNotFound 失敗。
反應勾點(hooks)
「反應勾點(hooks)」一節hooks 設定五個事件的反應:
| 事件 | 觸發時機 |
|---|---|
hover |
指標移入居民 |
click |
單純點按居民 |
grab |
被抓著期間,從抓住到放開 |
release |
拖移放開並停穩後,在丟出或落下落地之後 |
speak |
一句話、信或提問首次顯示時 |
- 接受的值:剛好包含
{"builtin": "poke"|"settle"|"pass"}、{"motion": "<animation id>"}或{"sequence": "<saved name>"}其中之一的物件;"none"表示不做反應;或null表示自動(素材預設,否則為 App 預設)。 - 被抓著期間(
grab):動作會循環,builtin 在抓住時播放一次,連續動作播放一次並停在最後一格。抓著期間會略過連續動作的移動、大小、旋轉、翻轉、樣子、不透明度與丟出,其光只在抓著不動時顯示,拖移時不顯示。 - 會說話的連續動作:連續動作的
say步驟在hover、click、grab與release時會說話;speak拒絕包含say的連續動作(sequenceSpeaks)。 - 點按對話框動作:
click另外接受{"bubble": "open"}(打開摺起或縮小的對話框)和{"bubble": "write"}(打開對話框,有綁定工作階段時一併打開寫字的紙)。身體本身不播放動作,其他事件與message.send的action都拒絕 bubble 值(與定位視窗的speechWindow無關)。 - 與
clickShortcut的互動:兩者皆設時都會執行,但點按若打開了對話框就不會開捷徑。如果尚未說過話,捷徑仍會打開。 - 桌布居民:只能設定
speak。 - CLI:
resident set --to <selector> --input '{"hooks":...}'或pixling call resident.set。
寫入前拒絕
「寫入前拒絕」一節| 輸入 | 拒絕 |
|---|---|
不在 options 裡的值 |
poseUnknown 或 animationUnknown(含反應的 motion) |
對沒有 options.dots 的居民傳入 dots |
dotsUnavailable |
未替此素材儲存的反應 sequence |
sequenceNotFound |
在不支援的居民使用 block、reliefDetail 或體積 |
blockUnavailable、reliefDetailUnavailable 或 volumeUnavailable |
| 在桌布居民設定點按捷徑或反應 | wallpaperPinned |
超出範圍的 tone/grain/dots.count、無法判讀的 clickShortcut、已退役的方塊世代,或同時傳入 pose 與 motionEnabled: true |
invalidValue |
| 空的 patch | nothingToSet |
在 CLI 中,resident set 提供 10 個日常捷徑旗標(--layer、--presence、--gravity、--throw、--hidden、--click-through、--pose、--motion、--idle-animation、--order)以及接受完整結構描述的 --input <json|@file|->(與捷徑旗標互斥)。每個鍵也可透過 pixling call resident.set 操作。
設定紙與 resident.set
「設定紙與 resident.set」一節居民的設定紙(右鍵 › 這位居民的設定…,或 Studio 的書桌)與 resident.set 寫入相同的底層設定。下表將 resident.set 鍵與 CLI 旗標對應到它們涵蓋的設定紙列(App 測試會對同一位居民套用兩者並比對儲存後的設定與重力)。
純導覽列略過,改列其子頁面上的列;調色盤色彩編輯維持僅限人操作。標為 沒有列 的項目對應設定紙上的動作(停止/播放、前後順序、隱藏)。
完整設定紙對照表(resident.set ↔ CLI ↔ 設定紙的列)
resident.set |
CLI | 設定紙的列 |
|---|---|---|
layer |
--layer |
windowLayer |
presence |
--presence |
presence |
displayBoundary |
--input / call |
displayBoundary |
gravity |
--gravity |
gravity |
gravityMenuBar |
--input / call |
gravityMenuBar |
gravityCameraArea |
--input / call |
gravityCameraArea |
gravityStrength |
--input / call |
gravityStrength |
friction |
--input / call |
friction |
throw |
--throw |
throw |
hidden |
--hidden |
沒有列 |
clickThrough |
--click-through |
clickThrough |
clickShortcut |
--input / call |
clickShortcut |
hooks |
--input / call |
hoverHook, clickHook, grabHook, releaseHook, speakHook |
dots |
--input / call |
dots |
palette |
--input / call |
palette |
cellStyle |
--input / call |
grainCell |
tone |
--input / call |
palette |
grain |
--input / call |
grainSize, grainTransparency |
block |
--input / call |
blockEnabled, blockHeight, blockViewpoint, blockOffset, blockFieldOfView, blockDepthSpacing |
shadow |
--input / call |
shadow, shadowColorSource, shadowColor, shadowOpacity, shadowBlur, shadowOffsetX, shadowOffsetY, shadowSquash, shadowLength |
sticker |
--input / call |
sticker, stickerColorSource, stickerColor, stickerGloss, stickerMargin, stickerThickness, stickerOpacity |
reflection |
--input / call |
reflection |
reflectionDetail |
--input / call |
reflectionOpacity, reflectionLength, reflectionGap, reflectionSquash, reflectionTilt, reflectionForm |
outline |
--input / call |
outline, outlineColor |
outlineWidth |
--input / call |
outlineWidth |
reliefDetail |
--input / call |
relief |
volumeDepth |
--input / call |
volumeDepth |
volumeLight |
--input / call |
volumeLight |
volumeShadow |
--input / call |
volumeShadowSource, volumeShadow |
lightColor |
--input / call |
lightColor |
surfaceMaterials |
--input / call |
surfaceMaterials |
seeThrough |
--input / call |
seeThrough |
nameplate |
--input / call |
nameplate |
nameplateColor |
--input / call |
nameplateColorSource, nameplateColor |
nameplateSeat |
--input / call |
nameplateSeat |
foldMarkSeat |
--input / call |
foldMarkSeat |
highlight |
--input / call |
highlight, highlightColor |
speech |
--input / call |
speechPaper |
speechWindow |
--input / call |
沒有列 |
speechFolded |
--input / call |
沒有列 |
notify |
--input / call |
speechPaper |
notifyQuestion |
--input / call |
speechPaper |
notifyMessage |
--input / call |
speechPaper |
sound |
--input / call |
speechPaper |
soundQuestion |
--input / call |
speechPaper |
soundMessage |
--input / call |
speechPaper |
pose |
--pose |
poseChoice |
motionEnabled |
--motion |
沒有列 |
motionFeel |
--input / call |
motionFeel |
motionTempo |
--input / call |
motionTempo |
motionFrameCount |
--input / call |
motionFrameCount |
motionFrameOffset |
--input / call |
motionFrameOffset |
drift |
--input / call |
drift |
idleAnimation |
--idle-animation |
idleAnimation |
order |
--order |
沒有列 |
對話紙(speech)
「對話紙(speech)」一節speech 會像右鍵 › 這位居民的設定… › 對話框 一樣設定這位居民的對話紙樣子。其他居民與整個 App 的樣子維持不變;若要變更所有居民,請使用 settings.set。
省略的軸維持原樣,傳入 null 會跟隨該列的整個 App 值。詞彙表見 options.speech。
| 軸 | 值 |
|---|---|
kit |
繪製紙張的零件套組名稱(options.speech.kit)。紙的形狀、線條、尾巴與陰影都是套組的圖 |
colorway、colors |
預設配色,或自訂 #RRGGBB 對照表(兩者不能併用) |
clear |
透明百分比,整數 0–80 |
material |
紙的材質,只有套組提供時才生效(paper 為套組本身) |
font、size |
字體選項與文字大小,整數點(9–28,不受 App 文字大小影響) |
motion、pace |
顯示動畫與速度(type/lines 為 25–400%;100 一般,200 兩倍快) |
shrink |
縮成一行前的安靜分鐘數,整數(1–60);0 永不縮小 |
textRelief、textReliefStrength |
文字浮雕:auto(所穿套組的設定)、none、raised、pressed;raised 與 pressed 的強度為 weak、medium、strong。開啟「增強對比」時文字保持平面 |
- 套組(
kit):與 裝扮 的圖塊一樣,在保留其餘樣子的同時穿上套組。kit: null跟隨整個 App 的套組。出廠樣子穿內建的quiet-card套組;每個版本都內建這些套組,桌面未提供的名稱(或空值)會穿quiet-card。寫入桌面未提供的名稱會以path: "speech.kit"拒絕。CLI:resident set --to <selector> --input '{"speech":{"kit":"..."}}'。 - 重設(
speech: null):再次跟隨整個 App 的樣子。 - 自訂顏色(
colors):{message?, question?: {surface?, text?, accent?}},值為#RRGGBB。會複製目前顯示的顏色、只更改指定角色,並將colorway切為custom。colors: null與colorway: null恢復跟隨整個 App 的顏色。傳入colorway: custom、同時傳入colors和colorway,或傳入空的speech物件都會被拒絕。 - 摺起記號顏色(
foldMark):自訂對應 一句話和提問的顏色… 的四個顏色:- 欄位:
{letter?, line?, seal?, question?},各自為#RRGGBB或null以跟隨居民圖片。 - 自動跟隨:跟隨圖片時,
letter(信紙)與line(線條)取最亮與最暗色,seal(封印)與question(提問圖塊)取名字圓點的顏色。 - 清除:
foldMark: null與speech: null會清除全部四項。 - 讀回與 CLI:
settings.speech.foldMark回報生效的四個顏色,居民沒有圖片顏色時退回對話框顏色(與settings.get相同)。CLI:resident set --to <selector> --input '{"speech":{"foldMark":...}}'。
- 欄位:
- 繼承與驗證:將單一軸設為與整個 App 相同的值會解除覆寫,再次跟隨 App。未知的值、超出範圍的
clear、pace、shrink(speech.clear、speech.pace、speech.shrink)以及colorway: custom(speech.colorway)會以註明內部欄位的invalidArguments失敗。紙張已不再擁有的鍵(線條紙的paper、shape、corner、line、tail、shadow、style、relief、tickSize、outfit、savedPaper、mine,於 2026-11-26 移除)也會以該鍵的欄位名稱同樣拒絕。 - 讀回(
settings.speech):回報生效的值,並附上colors(僅在colorway為custom時)與own(覆寫的軸,自訂時包含foldMark)。
對話視窗(speechWindow)
「對話視窗(speechWindow)」一節擺放並調整這位居民的對話視窗大小,效果同親手拖移視窗或其邊緣。
- 格式:以點為單位的
{corner, dx, dy, width, height}——dx與dy從居民靜止身體中心算至視窗的corner(bottomLeft、bottomRight、topLeft或topRight;預設bottomLeft;+y往上),視窗大小改變時這個角保持不動。settings.speechWindow採用相同格式,可直接在不同居民間複製。 width、height:給數字就把該軸固定在剛好那個大小(如同親手拉邊緣會固定兩軸);null或省略則該軸貼合內容(高度依居民的顯示段落)。- 重設:傳
null恢復自動擺放與大小。視窗會跟著居民移動,並保持拉回螢幕內而不覆寫儲存的偏移量。 - 新居民預設值:人親手擺放或調整視窗大小後,新建立的居民(包含
resident.ensure建立的)會繼承該位置與固定的大小,除非由initial.settings.speechWindow覆寫。代理寫入speechWindow絕不會改變新居民的預設值。 - CLI:
resident set --to <selector> --input '{"speechWindow":...}'(恢復自動時傳null)。
單一居民的通知和音效(notify、sound、…)
「單一居民的通知和音效(notify、sound、…)」一節notify、notifyQuestion、notifyMessage、sound、soundQuestion 和 soundMessage 對應對話紙上這位居民的 有東西送到時 開關。
- 傳
false替這位居民靜音,或傳null重新跟隨整個 App 的設定。 - 傳
true會被拒絕:由整個 App 的開關決定哪些是開的,單一居民只能關掉。關掉在整個 App 已經關著的開關(或其上層關著)會以rejected/arrivalOffForAll失敗,並在path指名該開關。 resident.describe對這位居民靜音的開關回報false,跟隨 App 的回報null。CLI:resident set --to <selector> --input '{"notify":false}'等。
摺起視窗(speechFolded)
「摺起視窗(speechFolded)」一節speechFolded: true 會把這位居民的對話視窗摺成摺起記號;false 則重新打開。視窗會以動畫收進或展開記號,摺起期間送到的訊息會列為未讀等待。若使用者正開著輸入框,視窗會立刻重新打開以保持開啟,請透過 resident.describe 讀取 settings.speechFolded 確認。CLI:resident set --to <selector> --input '{"speechFolded":true}'。
名牌和摺起記號的位置(nameplateSeat、foldMarkSeat)
「名牌和摺起記號的位置(nameplateSeat、foldMarkSeat)」一節把名牌(nameplateSeat)或摺起記號(foldMarkSeat)放到 options.nameplateSeat 或 options.foldMarkSeat 提供的某個位置上。傳 null 恢復 自動。settings.nameplateSeat 和 settings.foldMarkSeat 會回報所選位置,自動時為 null。CLI:resident set --to <selector> --input '{"nameplateSeat":...}' 或 foldMarkSeat。
右鍵選單
「右鍵選單」一節書桌上居民右鍵選單的每個項目及其代理對應方式(如果新增選單項目而未列入下表,自動化測試會失敗)。
完整右鍵選單對照表(選單項目 ↔ 代理操作)
| 項目 | 選單上的文字 | 從代理 |
|---|---|---|
settings |
這位居民的設定… |
打開設定紙(各列見上方的「設定紙與 resident.set」) |
geometry |
位置和大小… |
resident.place |
conversation |
過去的對話 |
conversation.read(由舊到新。人寫的內容,只有透過那位居民自己的 client: 讀取時才會附上) |
motion |
停止 / 播放 |
resident.set(motionEnabled: false 會停下。有姿勢可選時,選單會停在 pose(休息的畫格)。motionEnabled: true 會繼續動) |
order |
居民之間的前後 |
打開「居民之間的前後」子選單 |
orderMove |
移到最前面 / 往前 / 往後 / 移到最後面 |
resident.set(order) |
editNeighbour |
被蓋住的居民名字 |
resident.place(在 to 指定被蓋住的居民。上面的居民會接走點按,所以人需要這個項目) |
carry |
帶到其他桌面 |
只有人能用:在人放下之前,它會跟著那個人切換桌面。代理用 onlyHere 把居民放到目前的桌面 |
duplicate |
複製 |
resident.duplicate |
hide |
隱藏 |
resident.set(hidden) |
desktop |
在這個桌面 |
打開「在這個桌面」子選單 |
hideHere |
隱藏這位居民 / 隱藏所有居民 |
resident.desktopVisibility(hideHere。只要有居民和代理綁定,everyone 就會被拒絕,所以要逐一指定代理可以寫入的居民) |
onlyHere |
只在這裡顯示這位居民 / 只在這裡顯示所有居民 |
resident.desktopVisibility(onlyHere。只要有居民和代理綁定,everyone 就會被拒絕) |
showHidden |
顯示隱藏的居民 |
resident.desktopVisibility(對每位隱藏的居民用 showHere。只要有居民和代理綁定,everyone 就會被拒絕) |
stow |
收起來 |
resident.stow |
openStudio |
開啟 Pixling Studio |
只有人能用:為人開啟 Studio 視窗;代理本來就能直接操作桌面 |
quit |
結束 Pixling |
app.quit |
重力
「重力」一節| 鍵 | CLI | 值與預設 |
|---|---|---|
gravity |
--gravity |
none(預設)、down、left、right 或 up(null/default 恢復 none) |
gravityStrength |
--input / call |
落下與丟出時的拉扯強度:25–400%(預設 100,50 一半,200 兩倍) |
friction |
--input / call |
丟出時的滑行/漂移減速:25–400%(預設 100) |
gravityMenuBar |
--input / call |
選單列保留帶:avoid(預設)或 ignore |
gravityCameraArea |
--input / call |
相機瀏海區域:avoid(預設)或 ignore |
displayBoundary |
--input / call |
both(跨螢幕通過/反彈)或 single(留在出發螢幕) |
- 落下與微調:設定
gravity會讓居民沿著與右鍵選單相同的有限弧線落下,並儲存落地位置。gravityStrength與friction都不會移動靜止中的居民,只影響下一次落下或丟出。傳入null或 CLIdefault會恢復各鍵的預設值。 - 上緣:
gravityMenuBar與gravityCameraArea彼此獨立,並適用於所有重力方向的落下、丟出、彈跳與牆面光位置。avoid停在選單列保留帶下方,ignore則可達螢幕實體最上方;其他邊緣依螢幕可見區域。 - 多螢幕行為(
displayBoundary):設為both時,往上的重力只要實體上緣連接寬度足以容納整個身體,就會跨越進入上方螢幕(穿過保留帶與相機區域),丟出也會跨螢幕反彈。設為single時,每次落下、丟出與彈跳都留在出發的螢幕上;你仍可手動將居民移到其他螢幕。 - 螢幕中繼資料:
safeAreaTop: 0只是觀察結果,不代表 Mac 機型判斷;Pixling 絕不從螢幕名稱猜測相機瀏海。resident.describe回傳upBoundary:active、ownerDisplayUUID、ownerConnected、regions(目前允許區域)、portals({lowerDisplayUUID, upperDisplayUUID, minX, maxX, y})與endpoint({x, y}或null)。 - 建立預設值:
resident.ensure在僅限建立時套用的initial.settings中接受相同鍵(居民綁定)。