Decompile fn_16199 (BindItem)
Batch #4247 by KWDev: 0 byte-identical, 1 confirmed by peer review. - fn_16199 BindItem: logic confirmed by peer review Peer-reviewed-by: eAthena, tayoba, Millenium Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
0699f7e7a4
commit
deb889cf52
2 changed files with 14 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "UI/ProbabilityTable/UIProbabilityTable.h"
|
||||
|
||||
#include "UI/Window/WindowBorder.h"
|
||||
#include "Utility/Text/FormatString.h"
|
||||
|
||||
// OFFSET: 0x00A4BFF0
|
||||
// FUNCTION: fn_16120
|
||||
|
|
@ -115,6 +116,17 @@ void CUIProbabilityTable::OnButtonClick() {
|
|||
void CUIProbabilityTable::OnPrepareItem(ProbabilityTable::CUIItem*, const ProbabilityTable::CItemData&) {
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A4E040
|
||||
// FUNCTION: fn_16199
|
||||
void BindItem(ProbabilityTable::CUIItem* item, const ProbabilityTable::CItemData& data) {
|
||||
item->nameText->Clear();
|
||||
item->probabilityText->Clear();
|
||||
item->nameText->SetText(data.name);
|
||||
item->nameText->SetBackgroundColor(data.color);
|
||||
item->probabilityText->SetBackgroundColor(data.color);
|
||||
item->probabilityText->SetText(FormatOwnedString("%.4lf%%", data.probability));
|
||||
}
|
||||
|
||||
namespace ProbabilityTable {
|
||||
|
||||
// OFFSET: 0x00A4E110
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue