public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.Update(); DrawHeader(Styles.GetStyle(Styles.StyleName.ComponentHeaderPortalNode), MenuUtils.PortalNode_Manual, MenuUtils.PortalNode_YouTube); DrawDebugMode(true); GUILayout.Space(DGUI.Properties.Space(2)); DrawNodeName(false); m_infoMessageUnnamedNodeName.Draw(TargetNode.ErrorNodeNameIsEmpty, InspectorWidth); m_infoMessageDuplicateNodeName.Draw(TargetNode.ErrorDuplicateNameFoundInGraph, InspectorWidth); GUILayout.Space(DGUI.Properties.Space(8)); DrawSwitchBackMode(); GUILayout.Space(DGUI.Properties.Space(8)); DrawOutputSockets(BaseNode); GUILayout.Space(DGUI.Properties.Space(16)); EditorGUI.BeginChangeCheck(); DrawOptions(); if (EditorGUI.EndChangeCheck()) { NodeUpdated = true; } GUILayout.Space(DGUI.Properties.Space(2)); serializedObject.ApplyModifiedProperties(); if (NodeUpdated) { UpdateNodeName(GetNodeName()); } SendGraphEventNodeUpdated(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.Update(); DrawHeader(Styles.GetStyle(Styles.StyleName.ComponentHeaderSubGraphNode), MenuUtils.SubGraphNode_Manual, MenuUtils.SubGraphNode_YouTube); DrawDebugMode(true); GUILayout.Space(DGUI.Properties.Space(2)); DrawNodeName(); GUI.enabled = !Node.ErrorNoGraphReferenced && !Node.ErrorReferencedGraphIsNotSubGraph; GUILayout.Space(DGUI.Properties.Space()); DrawRenameButton(Node.SubGraph != null ? Node.SubGraph.name : "---"); GUI.enabled = true; m_infoMessageUnnamedNodeName.Draw(Node.ErrorNodeNameIsEmpty, InspectorWidth); m_infoMessageDuplicateNodeName.Draw(Node.ErrorDuplicateNameFoundInGraph, InspectorWidth); GUILayout.Space(DGUI.Properties.Space(8)); DrawInputSockets(BaseNode); GUILayout.Space(DGUI.Properties.Space(8)); DrawOutputSockets(BaseNode); GUILayout.Space(DGUI.Properties.Space(16)); DrawSubGraph(); DrawInfoMessages(); CreateSubGraphButton(); GUILayout.Space(DGUI.Properties.Space()); serializedObject.ApplyModifiedProperties(); SendGraphEventNodeUpdated(); }
public override void Draw(GameTime gameTime, SpriteBatch spriteBatch) { spriteBatch.Begin(); spriteBatch.Draw(BackGroundTexture, new Vector2(0, 0), Color.White); gameGrid.Draw(spriteBatch); foreach (var rect in bombRectangles) { rect.Draw(spriteBatch); } foreach (var pl in _sprites) { pl.Draw(spriteBatch); } foreach (var exp in _explosions) { exp.Draw(spriteBatch); } _backTextures[0].Draw(spriteBatch); _gameInfo.Draw(spriteBatch); if (_gameOver) { GameOverMsg.Draw(spriteBatch); } spriteBatch.End(); }
private void DrawInfoMessages() { m_infoMessageErrorNoGraphReferenced.Draw(m_errorNoGraphReferenced, InspectorWidth); if (m_errorNoGraphReferenced) { return; } m_infoMessageErrorReferencedGraphIsSubGraph.Draw(m_errorReferencedGraphIsSubGraph, InspectorWidth); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.Update(); DrawHeader(Styles.GetStyle(Styles.StyleName.ComponentHeaderEnterNode), MenuUtils.EnterNode_Manual, MenuUtils.EnterNode_YouTube); DrawDebugMode(true); GUILayout.Space(DGUI.Properties.Space(2)); DrawNodeName(false); m_infoMessageNotConnected.Draw(m_enterNode.ErrorNodeIsNotConnected, InspectorWidth); GUILayout.Space(DGUI.Properties.Space(8)); DrawOutputSockets(BaseNode); GUILayout.Space(DGUI.Properties.Space()); serializedObject.ApplyModifiedProperties(); SendGraphEventNodeUpdated(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.Update(); DrawHeader(Styles.GetStyle(Styles.StyleName.ComponentHeaderSwitchBackNode), MenuUtils.SwitchBackNode_Manual, MenuUtils.SwitchBackNode_YouTube); DrawDebugMode(true); GUILayout.Space(DGUI.Properties.Space(2)); DrawNodeName(); m_infoMessageUnnamedNodeName.Draw(m_switchBackNode.ErrorNodeNameIsEmpty, InspectorWidth); m_infoMessageDuplicateNodeName.Draw(m_switchBackNode.ErrorDuplicateNameFoundInGraph, InspectorWidth); GUILayout.Space(DGUI.Properties.Space(8)); DrawTarget(); GUILayout.Space(DGUI.Properties.Space(32)); DrawSources(); GUILayout.Space(DGUI.Properties.Space()); serializedObject.ApplyModifiedProperties(); SendGraphEventNodeUpdated(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.Update(); DrawHeader(Styles.GetStyle(Styles.StyleName.ComponentHeaderPortalNode), MenuUtils.PortalNode_Manual, MenuUtils.PortalNode_YouTube); DrawDebugMode(true); GUILayout.Space(DGUI.Properties.Space(2)); DrawNodeName(false); m_infoMessageUnnamedNodeName.Draw(TargetNode.ErrorNodeNameIsEmpty, InspectorWidth); m_infoMessageDuplicateNodeName.Draw(TargetNode.ErrorDuplicateNameFoundInGraph, InspectorWidth); GUILayout.Space(DGUI.Properties.Space(8)); DrawOutputSockets(BaseNode); GUILayout.Space(DGUI.Properties.Space(16)); DrawGameEvent(GetProperty(PropertyName.m_gameEvent), Styles.GetStyle(Styles.StyleName.IconGameEvent), UILabels.ListeningForGameEvent); GUILayout.Space(DGUI.Properties.Space(2)); serializedObject.ApplyModifiedProperties(); if (NodeUpdated) { UpdateNodeName(TargetNode.GameEventToListenFor + " " + UILabels.Portal); } SendGraphEventNodeUpdated(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.Update(); DrawHeader(Styles.GetStyle(Styles.StyleName.ComponentHeaderGameEventNode), MenuUtils.GameEventNode_Manual, MenuUtils.GameEventNode_YouTube); DrawDebugMode(true); GUILayout.Space(DGUI.Properties.Space(2)); DrawNodeName(); GUI.enabled = !TargetNode.ErrorNotSendingAnyGameEvent; GUILayout.Space(DGUI.Properties.Space()); DrawRenameButton(TargetNode.GameEvent); GUI.enabled = true; m_infoMessageUnnamedNodeName.Draw(TargetNode.ErrorNodeNameIsEmpty, InspectorWidth); m_infoMessageDuplicateNodeName.Draw(TargetNode.ErrorDuplicateNameFoundInGraph, InspectorWidth); GUILayout.Space(DGUI.Properties.Space(8)); DrawInputSockets(BaseNode); GUILayout.Space(DGUI.Properties.Space(8)); DrawOutputSockets(BaseNode); GUILayout.Space(DGUI.Properties.Space(16)); DrawGameEvent(GetProperty(PropertyName.GameEvent), Styles.GetStyle(Styles.StyleName.IconGameEvent), UILabels.SendGameEvent); GUILayout.Space(DGUI.Properties.Space(2)); serializedObject.ApplyModifiedProperties(); SendGraphEventNodeUpdated(); }