The bank's services as sheets with charts and readings
Every service has the house's head and tabs to the others. The overview shows the club's wealth as a ring by where it lies and the stock market's change per company; stocks carry a spark line, the change on the day before, the course with a five-day average, high and low, and a reading of trend and swing; properties compare the six prices. Stocks and properties are named in full by the bank read: the company from the game's texts, the property from its stem and singular ending. Soft shadows inside windows are gone, they drew stray lines in the Direct3D renderer. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
143e45e3a2
commit
e3edd2f9ed
13 files changed
+422
-84
No files matched your search
@@ -9482,7 +9482,10 @@ cli::Json ModernSession::ui_read(const cli::Json& request, uint64_t revision) co
|
||||
const auto& s = b.stocks[i];
|
||||
A history;
|
||||
for (uint16_t h : s.history) history.push_back(modern::ui_money(h));
|
||||
stocks.push_back(O{{"id", "stock:" + std::to_string(i)}, {"name", b.finance_stock_labels[i]},
|
||||
// the company's name from the game's texts; the bank state only labels held stocks
|
||||
std::string company;
|
||||
try { company = ui::original_to_utf8(message_text(g_, ::bmh::layout::Bank_FormatError_ExecutableField2 + uint32_t(i) * 4)); } catch (const std::exception&) {}
|
||||
stocks.push_back(O{{"id", "stock:" + std::to_string(i)}, {"name", company},
|
||||
{"price", modern::ui_money(s.price)}, {"previousPrice", modern::ui_money(s.previous_price)},
|
||||
{"owned", int(s.owned)}, {"paid", modern::ui_money(s.paid)}, {"maxToBuy", s.max_to_buy},
|
||||
{"history", std::move(history)}});
|
||||
@@ -9490,7 +9493,14 @@ cli::Json ModernSession::ui_read(const cli::Json& request, uint64_t revision) co
|
||||
for (size_t i = 0; i < b.funds.size(); ++i) {
|
||||
const auto& f = b.funds[i];
|
||||
if (f.price == 0) continue; // a fund the game does not offer
|
||||
funds.push_back(O{{"id", "fund:" + std::to_string(i)}, {"name", f.name}, {"price", modern::ui_money(f.price)},
|
||||
// the game keeps a property's name as a stem and its singular and plural endings
|
||||
// apart ("Reihenh" + "aus" / "äuser"); a catalogue names one of it
|
||||
std::string property = f.name;
|
||||
try {
|
||||
property = ui::original_to_utf8(message_text(g_, ::bmh::layout::Bank_OriginalToUtf8_TextPointer3 + uint32_t(i) * 4) +
|
||||
exe_.cstring(exe_.u32(::bmh::layout::Bank_OriginalToUtf8_RuntimeField + uint32_t(i) * 8)));
|
||||
} catch (const std::exception&) {}
|
||||
funds.push_back(O{{"id", "fund:" + std::to_string(i)}, {"name", property}, {"price", modern::ui_money(f.price)},
|
||||
{"owned", int(f.owned)}, {"paid", modern::ui_money(f.paid)}, {"maxToBuy", f.max_to_buy}});
|
||||
}
|
||||
return modern::ui_snapshot(g_, context, request_id,
|
||||
|
||||
Reference in new issue
Block a user