-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11244c7
commit 5d56c80
Showing
297 changed files
with
5,083 additions
and
1,535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Title: Bug Patch | ||
Summary: Minor bug fixes | ||
|
||
## New Versions | ||
- Added support for 1.21.2 Fabric | ||
|
||
## Wardrobe | ||
- Added slow rotation to some bundle items so they can be more easily seen from all sides | ||
|
||
## Bug Fixes | ||
- Fixed servers in the featured tab displaying as infinitely pinging on 1.20.6+ | ||
- Fixed replacing selected text sometimes inserting the new text in the wrong position, potentially crashing the game on Ctrl+Z | ||
- Fixed outer skin layer sometimes being visible over cosmetics when it shouldn't be | ||
- Fixed the re-invite button remaining visible for players already online | ||
- Fixed emote getting stuck as active when switching outfit while emote is active | ||
- Fixed the Screenshot Browser freezing under certain circumstances | ||
|
||
## Compatibility | ||
- Fixed emotes not playing properly with the Fresh Moves resource pack installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
elementa/layoutdsl/src/main/kotlin/gg/essential/gui/transitions/FadeOutTransition.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright (c) 2024 ModCore Inc. All rights reserved. | ||
* | ||
* This code is part of ModCore Inc.'s Essential Mod repository and is protected | ||
* under copyright registration # TX0009138511. For the full license, see: | ||
* https://github.com/EssentialGG/Essential/blob/main/LICENSE | ||
* | ||
* You may not use, copy, reproduce, modify, sell, license, distribute, | ||
* commercialize, or otherwise exploit, or create derivative works based | ||
* upon, this file or any other in this repository, all of which is reserved by Essential. | ||
*/ | ||
package gg.essential.gui.transitions | ||
|
||
import gg.essential.elementa.constraints.animation.AnimatingConstraints | ||
import gg.essential.elementa.constraints.animation.Animations | ||
import gg.essential.elementa.state.BasicState | ||
import gg.essential.elementa.transitions.BoundTransition | ||
import gg.essential.gui.effects.AlphaEffect | ||
import kotlin.properties.Delegates | ||
|
||
/** | ||
* Fades a component and all of its children out. This is done using | ||
* [AlphaEffect]. When the transition is finished, the effect is removed. | ||
* Typically, one would hide the component after this transition is finished. | ||
*/ | ||
class FadeOutTransition @JvmOverloads constructor( | ||
private val time: Float = 1f, | ||
private val animationType: Animations = Animations.OUT_EXP, | ||
) : BoundTransition() { | ||
|
||
private val alphaState = BasicState(1f) | ||
private var alpha by Delegates.observable(1f) { _, _, newValue -> | ||
alphaState.set(newValue) | ||
} | ||
|
||
private val effect = AlphaEffect(alphaState) | ||
|
||
override fun beforeTransition() { | ||
boundComponent.enableEffect(effect) | ||
} | ||
|
||
override fun doTransition(constraints: AnimatingConstraints) { | ||
constraints.setExtraDelay(time) | ||
boundComponent.apply { | ||
::alpha.animate(animationType, time, 0f) | ||
} | ||
} | ||
|
||
override fun afterTransition() { | ||
boundComponent.removeEffect(effect) | ||
effect.cleanup() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.