121 /
static_cast<float>(max),
125 "hpprogressbar.xml",
"hpprogressbar_fill.xml");
136 static_cast<float>(maxExp) :
static_cast<float>(0),
140 "xpprogressbar.xml",
"xpprogressbar_fill.xml");
154 :
static_cast<float>(0),
158 useMagic ?
"mpprogressbar.xml" :
"nompprogressbar.xml",
159 useMagic ?
"mpprogressbar_fill.xml" :
"nompprogressbar_fill.xml");
191 "jobprogressbar.xml",
"jobprogressbar_fill.xml");
290 const int64_t oldVal,
291 const int64_t newVal)
293 static bool blocked =
false;
296 PRAGMA45(GCC diagnostic ignored
"-Wswitch-enum")
353 lvl =
CAST_S32((expNeed - 20000) / 150);
412 prog =
static_cast<float>(hp) /
static_cast<float>(maxHp);
417 const bool showMax)
const
431 prog =
static_cast<float>(mp) /
static_cast<float>(maxMp);
466 const float progress =
static_cast<float>(value)
467 /
static_cast<float>(max);
471 static_cast<double>(100 * progress)));
531 float progress = 1.0F;
534 progress =
static_cast<float>(totalWeight)
535 /
static_cast<float>(maxWeight);
553 const float progress =
static_cast<float>(money)
554 /
static_cast<float>(1000000000);
587 const int maxSlots = inv->
getSize();
592 /
static_cast<float>(maxSlots));
601 char *
const str = gettext(letters);
602 if ((str ==
nullptr) || strlen(str) != 3)
607 return std::string(buf);
612 if (letters.size() < 5)
615 return std::string(gettext(letters.substr(1, 1).c_str()));
661 if (event.
getId() ==
"copy")
Attributes ::T AttributesT
const std::string & getId() const
std::string getRaceName() const
const std::string & getName() const
void addInputText(const std::string &text, const bool space)
bool getValueBool(const std::string &key, const bool deflt) const
const Item * getEquipment(const int i) const
static std::string getPickUpTypeString()
static std::string getMoveToTargetTypeString()
static std::string getQuickDropCounterString()
static std::string getAttackTypeString()
static std::string getMagicAttackTypeString()
static std::string getMoveTypeString()
static std::string getCrazyMoveTypeString()
static std::string getTargetingTypeString()
static std::string getAwayModeString()
static std::string getCameraModeString()
static std::string getFollowModeString()
static std::string getAttackWeaponTypeString()
static std::string getPvpAttackTypeString()
static std::string getMapDrawTypeString()
static std::string getImitationModeString()
int getNumberOfSlotsUsed() const
void setCaption(const std::string &caption)
LayoutCell & setPadding(int p)
void setRowHeight(const int n, const int h)
virtual int getProjectileSlot() const =0
virtual bool canUseMagic() const =0
void setProgress(const float progress)
void setColor(const Color &color1, const Color &color2)
void setBackgroundColor(const Color &color)
void setProgressPalette(const ProgressColorIdT progressPalette)
void setText(const std::string &str)
bool disableGameModifiers
void registerWindowForReset(Window *const window)
void setPointsNeeded(const AttributesT id, const int needed)
std::string getStatsStr() const
static void updateArrowsBar(ProgressBar *const bar)
static void updateXPBar(ProgressBar *const bar, const bool percent)
static void updateMoneyBar(ProgressBar *const bar)
void addTab(const std::string &name)
void updateMPBar(ProgressBar *bar, const bool showMax) const
static void updateProgressBar(ProgressBar *const bar, const int64_t value, const int64_t max, const bool percent)
void updateStatusBar(ProgressBar *const bar, const bool percent) const
static std::string translateLetter(const char *const letters)
void action(const ActionEvent &event)
StatsPageBasic * mBasicStatsPage
static std::string translateLetter2(const std::string &letters)
static void updateHPBar(ProgressBar *const bar, const bool showMax)
static void updateJobBar(ProgressBar *const bar, const bool percent)
static void updateWeightBar(ProgressBar *const bar)
std::vector< StatsPage * > mPages
static void updateInvSlotsBar(ProgressBar *const bar)
void addTabBasic(const std::string &name)
void setPointsNeeded(const AttributesT id, const int needed)
void attributeChanged(const AttributesT id, const int64_t oldVal, const int64_t newVal)
Widget * getTabContainer() const
Widget * getWidgetContainer() const
void addTab(Tab *const tab, Widget *const widget)
void setSaveVisible(const bool save)
void setResizable(const bool resize)
void setWindowName(const std::string &name)
void setCaption(const std::string &caption)
void enableVisibleSound(bool b)
void setCloseButton(const bool flag)
void setStickyButtonLock(const bool sticky)
LayoutCell & place(const int x, const int y, Widget *const wg, const int w, const int h)
Configuration serverConfig
void delete_all(Container &c)
EquipmentWindow * equipmentWindow
#define FOR_EACH(type, iter, array)
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) class TestMain
Net::InventoryHandler * inventoryHandler
LocalPlayer * localPlayer
std::string toString(T const &value)
converts any type to a string
const std::string & getName(const int id)
int64_t getAttribute64(const AttributesT id)
Inventory * getInventory()
int32_t getAttribute(const AttributesT id)
void setAttribute(const AttributesT id, const int64_t value, const Notify notify)
const std::pair< int, int > getStatExperience(const AttributesT id)
const std::vector< std::string > & getPages()
std::string formatCurrency64(const int64_t value)
std::string formatCurrency(const int value)
std::string formatWeight(const int value)
std::vector< std::string > mPages
Net::PlayerHandler * playerHandler
const char *const pages[SETUP_PAGES+1]
SetupWindow * setupWindow
StatusWindow * statusWindow
std::string strprintf(const char *const format,...)
WindowContainer * windowContainer