mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Refactoring of hoverText from objects:
- removed hoverText field - split getHoverText() method into 3: - - getObjectName() for generic name - - getHoverText(Player) for player-specific text - - getHoverText(Hero) for hero-specific strings
This commit is contained in:
@@ -127,7 +127,6 @@ public:
|
||||
bool removeObject(const CGObjectInstance * obj) override;
|
||||
void setBlockVis(ObjectInstanceID objid, bool bv) override;
|
||||
void setOwner(const CGObjectInstance * obj, PlayerColor owner) override;
|
||||
void setHoverName(const CGObjectInstance * objid, MetaString * name) override;
|
||||
void changePrimSkill(const CGHeroInstance * hero, PrimarySkill::PrimarySkill which, si64 val, bool abs=false) override;
|
||||
void changeSecSkill(const CGHeroInstance * hero, SecondarySkill which, int val, bool abs=false) override;
|
||||
//void showInfoDialog(InfoWindow *iw) override;
|
||||
|
||||
Reference in New Issue
Block a user