Include the Phyrexian mana display. Include more features in modrules.xml: Now is possible to change font color, Size. Include icon tag. Is possible select position to show the icon, size and where the image is stored
<item name="icon"> <position x="0" y="25"/> <iconposition x="1" y="2"/> <filename>menuicons.png</filename> <sizeicon>5<sizeicon> </item> Issue: 663
This commit is contained in:
@@ -39,6 +39,7 @@ protected:
|
||||
static void AlternateRender(MTGCard * card, const Pos& pos);
|
||||
static void TinyCropRender(MTGCard * card, const Pos& pos, JQuad * quad);
|
||||
static string FormattedData (string data, string replace, string value);
|
||||
static bool FilterCard (MTGCard * card,string filter);
|
||||
|
||||
public:
|
||||
static const float Width;
|
||||
|
||||
@@ -83,6 +83,7 @@ public:
|
||||
int isExtraPaymentSet();
|
||||
int canPayExtra();
|
||||
int doPayExtra();
|
||||
ExtraCost * getExtraCost(unsigned int i);
|
||||
|
||||
int addHybrid(int c1, int v1, int c2, int v2);
|
||||
int tryToPayHybrids(std::vector<ManaCostHybrid>& _hybrids, int _nbhybrids,std::vector<int8_t>& diff);
|
||||
|
||||
@@ -104,10 +104,18 @@ public:
|
||||
string mName;
|
||||
int mPosX;
|
||||
int mPosY;
|
||||
string mType;
|
||||
string mFilter;
|
||||
string mFormattedData;
|
||||
|
||||
ModRulesRenderCardGuiItem(string Name, string PosX, string PosY, string FormattedData, string Type);
|
||||
int mFontSize;
|
||||
bool mFont;
|
||||
PIXEL_TYPE mFontColor;
|
||||
/*Icons attributes*/
|
||||
int mSizeIcon;
|
||||
int mIconPosX;
|
||||
int mIconPosY;
|
||||
string mFileName;
|
||||
ModRulesRenderCardGuiItem(string name, int posX, int posY, string formattedData, string filter, bool font, int fontSize, PIXEL_TYPE fontColor, int SizeIcon,int IconPosX,int IconPosY,string FileName);
|
||||
|
||||
};
|
||||
|
||||
class ModRulesCardGui
|
||||
|
||||
Reference in New Issue
Block a user