diff --git a/guiEditor/public/imgs/visibilityIcon.svg b/guiEditor/public/imgs/visibilityActiveIcon.svg similarity index 100% rename from guiEditor/public/imgs/visibilityIcon.svg rename to guiEditor/public/imgs/visibilityActiveIcon.svg diff --git a/guiEditor/public/imgs/visibilityNotActiveIcon.svg b/guiEditor/public/imgs/visibilityNotActiveIcon.svg new file mode 100644 index 00000000000..11fcddcb648 --- /dev/null +++ b/guiEditor/public/imgs/visibilityNotActiveIcon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/guiEditor/src/components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx b/guiEditor/src/components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx index ea75982f6dc..886ce1e077c 100644 --- a/guiEditor/src/components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx +++ b/guiEditor/src/components/sceneExplorer/entities/gui/controlTreeItemComponent.tsx @@ -10,7 +10,7 @@ interface IControlTreeItemComponentProps { onClick: () => void; } -export class ControlTreeItemComponent extends React.Component { +export class ControlTreeItemComponent extends React.Component { constructor(props: IControlTreeItemComponentProps) { super(props); @@ -35,18 +35,16 @@ export class ControlTreeItemComponent extends React.Component : ; - //const visibilityElement = this.state.isVisible ? : ; if (true) { return ( -
this.setState({ isHovered: false})}> +
this.setState({ isHovered: false })}> this.props.onClick()} color="greenyellow" />
this.highlight()} title="Add component (Not Implemented)"> - +
this.switchVisibility()} title="Show/Hide control"> - +
@@ -54,7 +52,7 @@ export class ControlTreeItemComponent extends React.Component this.setState({ isHovered: true})}> +
this.setState({ isHovered: true })}> this.props.onClick()} color="greenyellow" />
diff --git a/guiEditor/src/components/sceneExplorer/sceneExplorer.scss b/guiEditor/src/components/sceneExplorer/sceneExplorer.scss index 708582ba662..f4886b1c222 100644 --- a/guiEditor/src/components/sceneExplorer/sceneExplorer.scss +++ b/guiEditor/src/components/sceneExplorer/sceneExplorer.scss @@ -368,7 +368,7 @@ .controlTools { grid-column: 2; display: grid; - grid-template-columns: 1fr 20px 20px auto 5px; + grid-template-columns: 1fr 30px 30px auto 5px; align-items: center; .highlight { @@ -383,6 +383,8 @@ width: 20px; grid-column: 4; } + + } @@ -403,8 +405,9 @@ grid-column: 1; white-space: nowrap; text-overflow: ellipsis; - overflow: hidden; - } + overflow: hidden; + } + } } } \ No newline at end of file diff --git a/guiEditor/src/components/sceneExplorer/sceneExplorerComponent.tsx b/guiEditor/src/components/sceneExplorer/sceneExplorerComponent.tsx index bfffe18110e..e79cb8629d3 100644 --- a/guiEditor/src/components/sceneExplorer/sceneExplorerComponent.tsx +++ b/guiEditor/src/components/sceneExplorer/sceneExplorerComponent.tsx @@ -195,7 +195,7 @@ export class SceneExplorerComponent extends React.Component t.getClassName() === "AdvancedDynamicTexture"); return ( -
e.preventDefault()}> +
{guiElements && guiElements.length > 0 && }
);