mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
add Bookmark to GameHUD
This commit is contained in:
@@ -2,9 +2,7 @@ package forge.adventure.util;
|
||||
|
||||
import com.badlogic.gdx.files.FileHandle;
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
import com.badlogic.gdx.graphics.g2d.Batch;
|
||||
import com.badlogic.gdx.graphics.g2d.BitmapFont;
|
||||
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
|
||||
import com.badlogic.gdx.graphics.g2d.*;
|
||||
import com.badlogic.gdx.math.Interpolation;
|
||||
import com.badlogic.gdx.math.Rectangle;
|
||||
import com.badlogic.gdx.math.Vector2;
|
||||
@@ -431,6 +429,9 @@ public class Controls {
|
||||
return Forge.getAssets().getTextraFont(name, getSkin().getFont(name), Config.instance().getAtlas(Paths.ITEMS_ATLAS));
|
||||
}
|
||||
|
||||
static public Sprite getSprite(String itemSprite) {
|
||||
return Config.instance().getAtlas(Paths.ITEMS_ATLAS).createSprite(itemSprite);
|
||||
}
|
||||
|
||||
static public class AccountingLabel extends TextraLabel {
|
||||
private TextraLabel label;
|
||||
|
||||
Reference in New Issue
Block a user