void Window_ShopNumber::Refresh() { contents->Clear(); int y = 34; DrawItemName(&Data::items[item_id - 1], 0, y); std::stringstream ss; ss << number; contents->TextDraw(132, y, Font::ColorDefault, "x"); contents->TextDraw(132 + 30, y, Font::ColorDefault, ss.str(), Surface::TextAlignRight); SetCursorRect(Rect(132 + 14, y - 2, 20, 16)); DrawCurrencyValue(GetTotal(), contents->GetWidth(), y + 32); }
void Window_Gold::Refresh() { contents->Clear(); DrawCurrencyValue(Main_Data::game_party->GetGold(), contents->GetWidth(), 2); }
void Window_Gold::Refresh() { contents->Clear(); DrawCurrencyValue(Game_Party::GetGold(), contents->GetWidth(), 2); }