Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit070098c53a

README.md

outfits

The Outfits tab of the app menu (menuTabs/outfits.menuTab), in every profile, with or without a world open: the look the person wears now, the outfits their OrigoZero account keeps, and

  • Save: the look their avatar wears now, under the name typed, worn from then on (avatarAppearance.saveOutfit with makeCurrent);
  • Wear: another outfit, or none, which wears the profile's own look (avatarAppearance.wearOutfit);
  • Delete: an outfit (avatarAppearance.deleteOutfit).

The engine asks the person in its own dialog before each change, and an outfit follows the person into every world they join. The editor's account menu opens the tab, and so does appMenu.open("outfits"): an agent whose own outfit write is refused points its person here.

outfits.read() reads the tab's model (it yields while the account is read) and outfits.buildBody(model, ctx) builds its widget tree, so both read and test without a live account. outfits.state() is the model the tab holds now and outfits.onCallback(id, data) runs a press on it.