mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-30 02:56:50 +00:00 
			
		
		
		
	Changes to color scheme, slight change to drag indicator,
change tooltip description.
This commit is contained in:
		
							parent
							
								
									90620081c7
								
							
						
					
					
						commit
						b83f522ecd
					
				
					 4 changed files with 16 additions and 8 deletions
				
			
		|  | @ -204,7 +204,7 @@ namespace CSVRender | |||
|                 osg::Vec3f start = osg::Vec3f(pointA.mX, pointA.mY, pointA.mZ + SceneUtil::DiamondHalfHeight); | ||||
|                 osg::Vec3f end = osg::Vec3f(pointB.mX, pointB.mY, pointB.mZ + SceneUtil::DiamondHalfHeight); | ||||
| 
 | ||||
|                 createConnectionGeometry(start, end); | ||||
|                 createConnectionGeometry(start, end, true); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | @ -220,7 +220,7 @@ namespace CSVRender | |||
| 
 | ||||
|                 osg::Vec3f start = osg::Vec3f(point.mX, point.mY, point.mZ + SceneUtil::DiamondHalfHeight); | ||||
|                 osg::Vec3f end = pos - mBaseNode->getPosition(); | ||||
|                 createConnectionGeometry(start, end); | ||||
|                 createConnectionGeometry(start, end, false); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | @ -593,7 +593,7 @@ namespace CSVRender | |||
|         } | ||||
|     } | ||||
| 
 | ||||
|     void Pathgrid::createConnectionGeometry(const osg::Vec3f& start, const osg::Vec3f& end) | ||||
|     void Pathgrid::createConnectionGeometry(const osg::Vec3f& start, const osg::Vec3f& end, bool valid) | ||||
|     { | ||||
|         if (mConnectionGeometry) | ||||
|             mPathgridGeode->removeDrawable(mConnectionGeometry); | ||||
|  | @ -606,7 +606,16 @@ namespace CSVRender | |||
| 
 | ||||
|         (*vertices)[0] = start; | ||||
|         (*vertices)[1] = end; | ||||
|         (*colors)[0] = osg::Vec4f(0.4f, 1.f, 0.4f, 1.f); | ||||
| 
 | ||||
|         if (valid) | ||||
|         { | ||||
|             (*colors)[0] = osg::Vec4f(0.91f, 0.66f, 1.f, 1.f); | ||||
|         } | ||||
|         else | ||||
|         { | ||||
|             (*colors)[0] = osg::Vec4f(1.f, 0.f, 0.f, 1.f); | ||||
|         } | ||||
| 
 | ||||
|         indices->setElement(0, 0); | ||||
|         indices->setElement(1, 1); | ||||
| 
 | ||||
|  |  | |||
|  | @ -121,7 +121,7 @@ namespace CSVRender | |||
|             void removePathgridGeometry(); | ||||
|             void removeSelectedGeometry(); | ||||
| 
 | ||||
|             void createConnectionGeometry(const osg::Vec3f& start, const osg::Vec3f& end); | ||||
|             void createConnectionGeometry(const osg::Vec3f& start, const osg::Vec3f& end, bool valid); | ||||
| 
 | ||||
|             const CSMWorld::Pathgrid* getPathgridSource(); | ||||
| 
 | ||||
|  |  | |||
|  | @ -37,7 +37,6 @@ namespace CSVRender | |||
|             "<li>Secondary edit: Connect selected nodes to node</li>" | ||||
|             "<li>Primary drag: Move selected nodes</li>" | ||||
|             "<li>Secondary drag: Connect one node to another</li>" | ||||
|             "<li>Other operations may be done with the context menu</li>" | ||||
|             "</ul><p>Note: Only a single cell's pathgrid may be edited at a time"); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
|  | @ -71,8 +71,8 @@ namespace SceneUtil | |||
|     }; | ||||
| 
 | ||||
|     const osg::Vec4f DiamondEdgeColor = osg::Vec4f(0.5f, 1.f, 1.f, 1.f); | ||||
|     const osg::Vec4f DiamondWireColor = osg::Vec4f(0.8f, 1.f, 0.9f, 1.f); | ||||
|     const osg::Vec4f DiamondFocusWireColor = osg::Vec4f(0.4f, 1.f, 0.4f, 1.f); | ||||
|     const osg::Vec4f DiamondWireColor = osg::Vec4f(0.72f, 0.f, 0.96f, 1.f); | ||||
|     const osg::Vec4f DiamondFocusWireColor = osg::Vec4f(0.91f, 0.66f, 1.f, 1.f); | ||||
| 
 | ||||
|     osg::ref_ptr<osg::Geometry> createPathgridGeometry(const ESM::Pathgrid& pathgrid) | ||||
|     { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue