mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Update animations
This commit is contained in:
parent
bbfe6db92a
commit
d8d82855a5
BIN
Telegram/Telegram-iOS/Resources/TestHearts2.tgs
Normal file
BIN
Telegram/Telegram-iOS/Resources/TestHearts2.tgs
Normal file
Binary file not shown.
@ -117,7 +117,7 @@ public extension TelegramChannel {
|
|||||||
if let defaultBannedRights = self.defaultBannedRights, defaultBannedRights.flags.contains(.banChangeInfo) {
|
if let defaultBannedRights = self.defaultBannedRights, defaultBannedRights.flags.contains(.banChangeInfo) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return false
|
||||||
}
|
}
|
||||||
case .addAdmins:
|
case .addAdmins:
|
||||||
if let adminRights = self.adminRights, adminRights.rights.contains(.canAddAdmins) {
|
if let adminRights = self.adminRights, adminRights.rights.contains(.canAddAdmins) {
|
||||||
|
@ -1436,7 +1436,11 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
|||||||
}
|
}
|
||||||
return .optionalAction({
|
return .optionalAction({
|
||||||
if firstScalar.value == heart {
|
if firstScalar.value == heart {
|
||||||
self.playAdditionalAnimation("TestHearts")
|
if self.additionalAnimationNodes.count % 2 == 0 {
|
||||||
|
self.playAdditionalAnimation("TestHearts")
|
||||||
|
} else {
|
||||||
|
self.playAdditionalAnimation("TestHearts2")
|
||||||
|
}
|
||||||
} else if firstScalar.value == fireworks {
|
} else if firstScalar.value == fireworks {
|
||||||
self.playAdditionalAnimation("TestFireworks")
|
self.playAdditionalAnimation("TestFireworks")
|
||||||
}
|
}
|
||||||
|
@ -590,7 +590,7 @@ private final class DrawingStickersScreenNode: ViewControllerTracingNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let panelEntries = chatMediaInputPanelEntries(view: view, savedStickers: savedStickers, recentStickers: recentStickers, peerSpecificPack: nil, canInstallPeerSpecificPack: .none, theme: theme, strings: strings, hasGifs: false, hasSettings: false)
|
let panelEntries = chatMediaInputPanelEntries(view: view, savedStickers: savedStickers, recentStickers: recentStickers, peerSpecificPack: nil, canInstallPeerSpecificPack: .none, theme: theme, strings: strings, hasGifs: false, hasSettings: false)
|
||||||
let gridEntries = chatMediaInputGridEntries(view: view, savedStickers: savedStickers, recentStickers: recentStickers, peerSpecificPack: nil, canInstallPeerSpecificPack: .none, trendingPacks: trendingPacks, installedPacks: installedPacks, hasSearch: false, hasAccessories: false, strings: strings, theme: theme)
|
let gridEntries = chatMediaInputGridEntries(view: view, savedStickers: savedStickers, recentStickers: recentStickers, peerSpecificPack: nil, canInstallPeerSpecificPack: .none, trendingPacks: [], installedPacks: installedPacks, hasSearch: false, hasAccessories: false, strings: strings, theme: theme)
|
||||||
|
|
||||||
let (previousPanelEntries, previousGridEntries) = previousStickerEntries.swap((panelEntries, gridEntries))
|
let (previousPanelEntries, previousGridEntries) = previousStickerEntries.swap((panelEntries, gridEntries))
|
||||||
return (view, preparedChatMediaInputPanelEntryTransition(context: context, from: previousPanelEntries, to: panelEntries, inputNodeInteraction: stickersInputNodeInteraction, scrollToItem: nil), previousPanelEntries.isEmpty, preparedChatMediaInputGridEntryTransition(account: context.account, view: view, from: previousGridEntries, to: gridEntries, update: update, interfaceInteraction: controllerInteraction, inputNodeInteraction: stickersInputNodeInteraction, trendingInteraction: trendingInteraction), previousGridEntries.isEmpty)
|
return (view, preparedChatMediaInputPanelEntryTransition(context: context, from: previousPanelEntries, to: panelEntries, inputNodeInteraction: stickersInputNodeInteraction, scrollToItem: nil), previousPanelEntries.isEmpty, preparedChatMediaInputGridEntryTransition(account: context.account, view: view, from: previousGridEntries, to: gridEntries, update: update, interfaceInteraction: controllerInteraction, inputNodeInteraction: stickersInputNodeInteraction, trendingInteraction: trendingInteraction), previousGridEntries.isEmpty)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user