tweak dPad & L3R3 indicator
This commit is contained in:
committed by
TrueZhuanjia
parent
1fc1b5bc60
commit
302606564c
@@ -404,9 +404,9 @@ import UIKit
|
||||
let indicatorFrame = CAShapeLayer();
|
||||
let indicatorBorder = CAShapeLayer();
|
||||
|
||||
indicatorFrame.frame = CGRectMake(0, 0, 80, 80)
|
||||
indicatorFrame.frame = CGRectMake(0, 0, 75, 75)
|
||||
indicatorFrame.cornerRadius = 9
|
||||
indicatorBorder.borderWidth = 7.5
|
||||
indicatorBorder.borderWidth = 7
|
||||
indicatorBorder.frame = indicatorFrame.bounds.insetBy(dx: -indicatorBorder.borderWidth, dy: -indicatorBorder.borderWidth) // Adjust the inset as needed
|
||||
indicatorBorder.borderColor = UIColor.clear.cgColor
|
||||
|
||||
@@ -592,7 +592,7 @@ import UIKit
|
||||
let indicatorFrame = CAShapeLayer();
|
||||
let indicatorBorder = CAShapeLayer();
|
||||
|
||||
indicatorFrame.frame = CGRectMake(0, 0, 70, 70)
|
||||
indicatorFrame.frame = CGRectMake(0, 0, 75, 75)
|
||||
indicatorFrame.cornerRadius = 9
|
||||
indicatorBorder.borderWidth = 6
|
||||
indicatorBorder.frame = indicatorFrame.bounds.insetBy(dx: -indicatorBorder.borderWidth, dy: -indicatorBorder.borderWidth) // Adjust the inset as needed
|
||||
|
||||
Reference in New Issue
Block a user