|
@@ -727,6 +727,13 @@ class KMUserInfoViewController: NSViewController {
|
|
|
KMMemberInfo.shared.userScenarioType == .pro_type2 ||
|
|
|
KMMemberInfo.shared.userScenarioType == .pro_type4 ||
|
|
|
KMMemberInfo.shared.userScenarioType == .pro_type5 { //订阅或者买断
|
|
|
+ if mouseEntered {
|
|
|
+ self.arrow1ImageView.image = NSImage(named: "BuyNewArrowImage2Hover")
|
|
|
+ self.buyNow1Label.textColor = NSColor(hex: "4982E6")
|
|
|
+ } else {
|
|
|
+ self.arrow1ImageView.image = NSImage(named: "BuyNewArrowImage2")
|
|
|
+ self.buyNow1Label.textColor = NSColor(hex: "0E1114")
|
|
|
+ }
|
|
|
} else {
|
|
|
if mouseEntered {
|
|
|
self.buyNow1ImageView.image = NSImage(named: "ButtonBackgroundImage2_Hov")
|
|
@@ -1136,12 +1143,63 @@ class KMUserInfoViewController: NSViewController {
|
|
|
buyNow1Box.moveCallback = { [weak self](mouseEntered: Bool, mouseBox: KMBox) -> Void in
|
|
|
guard let self = self else { return }
|
|
|
|
|
|
- if mouseEntered {
|
|
|
- self.buyNow1ImageView.image = NSImage(named: "ButtonBackgroundImage2_Hov")
|
|
|
- } else {
|
|
|
- self.buyNow1ImageView.image = NSImage(named: "ButtonBackgroundImage2")
|
|
|
+ if KMMemberInfo.shared.userScenarioType == .dmg_type5 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type6 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type7 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type28 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type29 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type30 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type43 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type44 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type45 { // 买断
|
|
|
+ if mouseEntered {
|
|
|
+ self.arrow1ImageView.image = NSImage(named: "BuyNewArrowImage2Hover")
|
|
|
+ self.buyNow1Label.textColor = NSColor(hex: "4982E6")
|
|
|
+ } else {
|
|
|
+ self.arrow1ImageView.image = NSImage(named: "BuyNewArrowImage2")
|
|
|
+ self.buyNow1Label.textColor = NSColor(hex: "0E1114")
|
|
|
+ }
|
|
|
+ } else if KMMemberInfo.shared.userScenarioType == .dmg_type8 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type9 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type10 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type12 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type13 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type14 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type15 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type16 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type17 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type20 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type21 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type23 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type24 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type25 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type26 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type27 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type31 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type32 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type35 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type36 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type38 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type39 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type40 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type41 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type42 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type46 ||
|
|
|
+ KMMemberInfo.shared.userScenarioType == .dmg_type47 { // 订阅
|
|
|
+ if mouseEntered {
|
|
|
+ self.arrow1ImageView.image = NSImage(named: "BuyNewArrowImage2Hover")
|
|
|
+ self.buyNow1Label.textColor = NSColor(hex: "4982E6")
|
|
|
+ } else {
|
|
|
+ self.arrow1ImageView.image = NSImage(named: "BuyNewArrowImage2")
|
|
|
+ self.buyNow1Label.textColor = NSColor(hex: "0E1114")
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if mouseEntered {
|
|
|
+ self.buyNow1ImageView.image = NSImage(named: "ButtonBackgroundImage2_Hov")
|
|
|
+ } else {
|
|
|
+ self.buyNow1ImageView.image = NSImage(named: "ButtonBackgroundImage2")
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
buyNow1Box.downCallback = { [weak self](downEntered: Bool, mouseBox: KMBox, event) -> Void in
|
|
|
guard let self = self else { return }
|