From d932c410deac022f8f83c44c49d8a907dc809f1f Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 7 Oct 2021 01:43:17 -0400 Subject: [PATCH] Update mannequin widget --- .../mannequin/FurnitureMannequinView.tsx | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx b/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx index 32929af4..b0ec3792 100644 --- a/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx +++ b/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx @@ -15,12 +15,9 @@ const MODE_PEER: number = 2; const MODE_NO_CLUB: number = 3; const MODE_WRONG_GENDER: number = 4; -const ACTION_CLOSE: number = 0; const ACTION_SET_NAME: number = 1; -const ACTION_LOAD_FIGURE: number = 2; -const ACTION_WEAR: number = 3; -const ACTION_SAVE: number = 4; -const ACTION_BACK: number = 5; +const ACTION_WEAR: number = 2; +const ACTION_SAVE: number = 3; const MANNEQUIN_FIGURE = ['hd', 99999, [ 99998 ]]; const MANNEQUIN_CLOTHING_PART_TYPES = [ @@ -173,16 +170,15 @@ export const FurnitureMannequinView: FC<{}> = props => setMode(MODE_NONE) } /> - + - + { (mode === MODE_CONTROLLER) && - - - {/* */} + <> + setName(event.target.value) } onKeyDown={ event => handleKeyDown(event) } /> - + setMode(MODE_UPDATE) }> { LocalizeText('mannequin.widget.style') } @@ -191,10 +187,10 @@ export const FurnitureMannequinView: FC<{}> = props => { LocalizeText('mannequin.widget.wear') } - } + } { (mode === MODE_UPDATE) && - - + <> + { name } @@ -210,10 +206,10 @@ export const FurnitureMannequinView: FC<{}> = props => { LocalizeText('mannequin.widget.save') } - } + } { (mode === MODE_PEER) && - - + <> + { name } @@ -224,7 +220,7 @@ export const FurnitureMannequinView: FC<{}> = props => processAction(ACTION_WEAR) }> { LocalizeText('mannequin.widget.wear') } - } + } { (mode === MODE_NO_CLUB) && { LocalizeText('mannequin.widget.clubnotification') }