+
+ { this.setState({ value: num }); }}
+ aria-label="simple tabs example">
+ {this.optionContext.options.map((option, index) => {
+ const optionState = this.optionContext.getOptionState(option.key)!;
+ if (optionState.available <= 0) {
+ return null;
+ } else {
+ count++;
+ return ;
+ }
+ })}
+
+
+ {this.optionContext.options.map((option, index) => {
+ const optionState = this.optionContext.getOptionState(option.key)!;
+ if (optionState.available <= 0) {
+ return null;
+ } else {
+ internalcount++;
+ switch (option.key) {
+ case "topType":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ case "accessoriesType":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ case "hairColor":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
+
);
+ })}
+ ;
+ break;
+ case "facialHairType":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ break;
+ case "clotheType":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ break;
+ case "clotheColor":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ break;
+ case "graphicType":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ break;
+ case "eyeType":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ break;
+ case "eyebrowType":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ break;
+ case "mouthType":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ break;
+ case "skinColor":
+ return
+ {optionState.options
+ .map(type => {
+ return ( {
+ var selectedData = this.optionContext["_data"];
+ selectedData[`${option.key}`] = type;
+ this.optionContext.setData(selectedData as any);
+ }}
+ >
);
+ })}
+ ;
+ break;
+ default:
+ return null;
+ break;
+ }
+ }
+ })}
+