mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 17:00:05 +00:00 
			
		
		
		
	Shrinking location crosshairs to 24x24, rotating 45 degrees
This commit is contained in:
		
							parent
							
								
									cf0b268822
								
							
						
					
					
						commit
						7057f14b22
					
				
					 5 changed files with 9 additions and 6 deletions
				
			
		|  | @ -41,7 +41,7 @@ public: | |||
|        activeBoxInner_ {std::make_shared<gl::draw::Rectangle>(context)}, | ||||
|        icons_ {std::make_shared<gl::draw::GeoIcons>(context)}, | ||||
|        locationIconName_ { | ||||
|           types::GetTextureName(types::ImageTexture::Crosshairs32)} | ||||
|           types::GetTextureName(types::ImageTexture::Crosshairs24)} | ||||
|    { | ||||
|    } | ||||
|    ~OverlayLayerImpl() = default; | ||||
|  | @ -101,6 +101,8 @@ void OverlayLayer::Initialize() | |||
|    p->locationIcon_ = p->icons_->AddIcon(); | ||||
|    gl::draw::GeoIcons::SetIconTexture( | ||||
|       p->locationIcon_, p->locationIconName_, 0); | ||||
|    gl::draw::GeoIcons::SetIconAngle(p->locationIcon_, | ||||
|                                     units::angle::degrees<double> {45.0}); | ||||
|    gl::draw::GeoIcons::SetIconLocation( | ||||
|       p->locationIcon_, coordinate.latitude(), coordinate.longitude()); | ||||
|    p->icons_->FinishIcons(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat