|  |  | @ -261,7 +261,7 @@ PlannerOverlay.ATTRS{ | 
			
		
	
		
		
			
				
					
					|  |  |  |     default_pos={x=5,y=9}, |  |  |  |     default_pos={x=5,y=9}, | 
			
		
	
		
		
			
				
					
					|  |  |  |     default_enabled=true, |  |  |  |     default_enabled=true, | 
			
		
	
		
		
			
				
					
					|  |  |  |     viewscreens='dwarfmode/Building/Placement', |  |  |  |     viewscreens='dwarfmode/Building/Placement', | 
			
		
	
		
		
			
				
					
					|  |  |  |     frame={w=56, h=18}, |  |  |  |     frame={w=56, h=20}, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | function PlannerOverlay:init() |  |  |  | function PlannerOverlay:init() | 
			
		
	
	
		
		
			
				
					|  |  | @ -347,17 +347,20 @@ function PlannerOverlay:init() | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     local error_panel = widgets.ResizingPanel{ |  |  |  |     local error_panel = widgets.ResizingPanel{ | 
			
		
	
		
		
			
				
					
					|  |  |  |         view_id='errors', |  |  |  |         view_id='errors', | 
			
		
	
		
		
			
				
					
					|  |  |  |         frame={t=14, l=0, r=0, h=3}, |  |  |  |         frame={t=14, l=0, r=0}, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         frame_style=gui.MEDIUM_FRAME, |  |  |  |         frame_style=gui.MEDIUM_FRAME, | 
			
		
	
		
		
			
				
					
					|  |  |  |         frame_background=gui.CLEAR_PEN, |  |  |  |         frame_background=gui.CLEAR_PEN, | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     error_panel:addviews{ |  |  |  |     error_panel:addviews{ | 
			
		
	
		
		
			
				
					
					|  |  |  |         widgets.WrappedLabel{ |  |  |  |         widgets.WrappedLabel{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             frame={t=0, l=0, r=0}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             text_pen=COLOR_LIGHTRED, |  |  |  |             text_pen=COLOR_LIGHTRED, | 
			
		
	
		
		
			
				
					
					|  |  |  |             text_to_wrap=get_placement_errors, |  |  |  |             text_to_wrap=get_placement_errors, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             visible=function() return #uibs.errors > 0 end, | 
			
		
	
		
		
			
				
					
					|  |  |  |         }, |  |  |  |         }, | 
			
		
	
		
		
			
				
					
					|  |  |  |         widgets.Label{ |  |  |  |         widgets.Label{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             frame={t=0, l=0, r=0}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             text_pen=COLOR_GREEN, |  |  |  |             text_pen=COLOR_GREEN, | 
			
		
	
		
		
			
				
					
					|  |  |  |             text='OK to build', |  |  |  |             text='OK to build', | 
			
		
	
		
		
			
				
					
					|  |  |  |             visible=function() return #uibs.errors == 0 end, |  |  |  |             visible=function() return #uibs.errors == 0 end, | 
			
		
	
	
		
		
			
				
					|  |  | 
 |