mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Tweak the formatting of the CryptoLive module a bit
This commit is contained in:
parent
e28297407d
commit
cc093caa92
@ -98,7 +98,7 @@ func display(widget *Widget) {
|
|||||||
toPriceColor = Config.UString("wtf.mods.cryptolive.colors.to.price", "green")
|
toPriceColor = Config.UString("wtf.mods.cryptolive.colors.to.price", "green")
|
||||||
)
|
)
|
||||||
for _, item := range widget.list.items {
|
for _, item := range widget.list.items {
|
||||||
str += fmt.Sprintf("[%s]%s[%s](%s):\n", fromNameColor, item.displayName, fromDisplayNameColor, item.name)
|
str += fmt.Sprintf(" [%s]%s[%s] (%s)\n", fromNameColor, item.displayName, fromDisplayNameColor, item.name)
|
||||||
for _, toItem := range item.to {
|
for _, toItem := range item.to {
|
||||||
str += fmt.Sprintf("\t[%s]%s: [%s]%f\n", toNameColor, toItem.name, toPriceColor, toItem.price)
|
str += fmt.Sprintf("\t[%s]%s: [%s]%f\n", toNameColor, toItem.name, toPriceColor, toItem.price)
|
||||||
}
|
}
|
||||||
@ -116,7 +116,7 @@ func getToList(fromName string) []*toCurrency {
|
|||||||
for _, to := range toNames {
|
for _, to := range toNames {
|
||||||
toList = append(toList, &toCurrency{
|
toList = append(toList, &toCurrency{
|
||||||
name: to.(string),
|
name: to.(string),
|
||||||
price: -1,
|
price: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user