mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Quick fixes.
Made text wrap in item descriptions and reverted a test item.
This commit is contained in:
@@ -232,7 +232,7 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
|
|||||||
G.drawImage(icon, 2, 2, icon_w, icon_h); //Draw the item's icon.
|
G.drawImage(icon, 2, 2, icon_w, icon_h); //Draw the item's icon.
|
||||||
G.drawText(item.name, FSkinFont.get(24), Color.WHITE, icon_w + 2, 2, preview_w - (icon_w + 2), icon_h, false, 1, true); //Item name.
|
G.drawText(item.name, FSkinFont.get(24), Color.WHITE, icon_w + 2, 2, preview_w - (icon_w + 2), icon_h, false, 1, true); //Item name.
|
||||||
G.drawRectLines(1, Color.WHITE, 6, icon_h + 2, preview_w - 12, preview_h - (icon_h + 6)); //Description border.
|
G.drawRectLines(1, Color.WHITE, 6, icon_h + 2, preview_w - 12, preview_h - (icon_h + 6)); //Description border.
|
||||||
G.drawText(item.getDescription(), FSkinFont.get(18), Color.WHITE, 10, icon_h + 8, preview_w - 10, preview_h - 4, false, Align.left, false); //Description.
|
G.drawText(item.getDescription(), FSkinFont.get(18), Color.WHITE, 10, icon_h + 8, preview_w - 10, preview_h - 4, true, Align.left, false); //Description.
|
||||||
G.end();
|
G.end();
|
||||||
G.endClip();
|
G.endClip();
|
||||||
Texture result = new Texture(Pixmap.createFromFrameBuffer(0, 0, preview_w, preview_h), Forge.isTextureFilteringEnabled());
|
Texture result = new Texture(Pixmap.createFromFrameBuffer(0, 0, preview_w, preview_h), Forge.isTextureFilteringEnabled());
|
||||||
|
|||||||
@@ -113,8 +113,6 @@
|
|||||||
"equipmentSlot": "Right",
|
"equipmentSlot": "Right",
|
||||||
"startBattleWithCard" : ["w_0_3_wall_defender"],
|
"startBattleWithCard" : ["w_0_3_wall_defender"],
|
||||||
"iconName" :"SteelShield",
|
"iconName" :"SteelShield",
|
||||||
"opponent":{
|
|
||||||
"startBattleWithCard" : ["c_0_1_a_goblin_construct_noblock_ping","c_0_1_a_goblin_construct_noblock_ping","c_0_1_a_goblin_construct_noblock_ping"]},
|
|
||||||
"cost" :500
|
"cost" :500
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
|||||||
Reference in New Issue
Block a user