feat: overlay live vectorscope on spider disc and default skin protection off

这个提交包含在:
mac 于 2026-11-08 15:09:04 +08:00 提交
1 父节点 b34ef54ad8
当前提交 01efcc8a29
43 个文件已更改
+281 -67

没有与搜索条件相匹配的文件

+2
查看文件
@@ -6,6 +6,7 @@
@property(nonatomic,assign) NSView *accessoryRow;
@property(nonatomic,assign) id<DYGraphicDelegate> delegate;
- (void)setMesh:(NSData *)mesh linked:(BOOL)linked;
- (void)setScopeRenderer:(DYRenderer *)renderer;
@end
@implementation DYSpiderPanel {
DYSpiderDisc *_disc; NSPopUpButton *_hues,*_saturation; NSButton *_link;
@@ -31,6 +32,7 @@
}return self;
}
- (void)dealloc{_disc.changed=nil;_disc.gesture=nil;_disc.selectionChanged=nil;[_disc release];[_hues release];[_saturation release];[_link release];[_status release];[super dealloc];}
- (void)setScopeRenderer:(DYRenderer *)renderer{_disc.scopeRenderer=renderer;}
- (void)setMesh:(NSData *)data linked:(BOOL)linked{auto m=DYSpiderMesh(data);_disc.meshData=[NSData dataWithBytes:&m length:sizeof(m)];_linked=linked;[_hues selectItemWithTag:m.hues];[_saturation selectItemWithTag:m.rings+1];_link.state=linked?NSControlStateValueOn:NSControlStateValueOff;}
- (void)layout{[super layout];CGFloat w=self.bounds.size.width;
if(_horizontalLayout){CGFloat d=MIN(self.bounds.size.height,MAX(170,w*.48)),x=d+20,cw=MAX(200,w-x-10);_disc.frame=NSMakeRect(0,0,d,d);[[self viewWithTag:101]setFrame:NSMakeRect(x,7,48,18)];_hues.frame=NSMakeRect(x+58,2,cw-58,26);[[self viewWithTag:102]setFrame:NSMakeRect(x,37,48,18)];_saturation.frame=NSMakeRect(x+58,32,cw-58,26);_link.frame=NSMakeRect(x,64,cw,22);_accessoryRow.frame=NSMakeRect(x,89,cw,33);CGFloat bw=(cw-6)/2;for(int i=0;i<5;i++)[[self viewWithTag:201+i]setFrame:NSMakeRect(x+(i%2)*(bw+6),126+(i/2)*30,bw,26)];_status.frame=NSMakeRect(x,218,cw,MAX(18,self.bounds.size.height-218));_status.hidden=self.bounds.size.height<238;return;}