-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #247 from KosmX/selection_wheel
New selection wheel! Thank you @DearFox
- Loading branch information
Showing
12 changed files
with
497 additions
and
196 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
34 changes: 34 additions & 0 deletions
34
emotesMain/src/main/java/io/github/kosmx/emotes/main/screen/widget/IChooseWheel.java
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,34 @@ | ||
package io.github.kosmx.emotes.main.screen.widget; | ||
|
||
import io.github.kosmx.emotes.executor.EmoteInstance; | ||
import io.github.kosmx.emotes.main.EmoteHolder; | ||
import io.github.kosmx.emotes.main.config.ClientConfig; | ||
|
||
public interface IChooseWheel<MATRIX> { | ||
|
||
|
||
void render(MATRIX matrices, int mouseX, int mouseY, float delta); | ||
|
||
boolean mouseClicked(double mouseX, double mouseY, int button); | ||
|
||
boolean isMouseOver(double mouseX, double mouseY); | ||
|
||
interface IChooseElement { | ||
|
||
boolean hasEmote(); | ||
|
||
EmoteHolder getEmote(); | ||
|
||
void clearEmote(); | ||
|
||
void setEmote(EmoteHolder emote); | ||
} | ||
|
||
static <MATRIX, WIDGET> IChooseWheel<MATRIX> getWheel(AbstractFastChooseWidget<MATRIX, WIDGET> widget) { | ||
if (((ClientConfig) EmoteInstance.config).oldChooseWheel.get()) { | ||
return new LegacyChooseWidget<>(widget); | ||
} else { | ||
return new ModernChooseWheel<>(widget); | ||
} | ||
} | ||
} |
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.