Skip to content

Commit

Permalink
Aesthetic tweaks to iguana generator
Browse files Browse the repository at this point in the history
  • Loading branch information
hubol committed Feb 13, 2024
1 parent b062158 commit b333e55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/igua/scenes/iguana-designer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { scene } from "../globals";
import { objUiIguanaDesignerRoot } from "../ui/iguana-designer/root";

export function IguanaDesigner() {
scene.backgroundTint = 0x585080;
objUiIguanaDesignerRoot().show();
}
4 changes: 2 additions & 2 deletions src/igua/ui/iguana-designer/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export const UiIguanaDesignerContext = new SceneLocal(() => ({ looks: getDefault
export function objUiIguanaDesignerRoot() {
const c = container();

const router = objUiPageRouter().show(c);
const router = objUiPageRouter().at(2, 2).show(c);

function page1() {
return objUiPage([
objUiButton('Randomize', randomizeIguanaLooks)
objUiButton('Randomize', randomizeIguanaLooks).jiggle()
],
{ selectionIndex: 0 })
}
Expand Down

0 comments on commit b333e55

Please sign in to comment.