1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-07-01 11:25:26 +00:00
OpenDiablo2/d2core
Maxime Lavigne (malavv) 0a78a1adcc
Centralized usage of Fonts to fix cache #515 (#556)
The split between d2ui and d2asset Font version caused incorrect caching between the two. After looking at d2interface.Font, I saw the d2asset was the most recent and more tightly and cleanly packaged.

I therefore removed the old d2ui.Font and embedded the d2asset version in the d2ui.Label and d2ui.Button.

Looking at the code of d2ui, it would be logical to completly swap it for their d2gui version. But at least for the moment, the d2ui.Button as more functionality since it embeds a Label (instead of a font), and this label now has multiline horizontal alignement.
2020-07-07 20:16:22 -04:00
..
d2asset Centralized usage of Fonts to fix cache #515 (#556) 2020-07-07 20:16:22 -04:00
d2audio/ebiten More linting (#500) 2020-06-30 09:58:53 -04:00
d2config abstracted d2config to an interface (still have a singleton, though) (#538) 2020-07-04 00:49:16 -04:00
d2gui Centralized usage of Fonts to fix cache #515 (#556) 2020-07-07 20:16:22 -04:00
d2hero moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
d2input moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
d2inventory moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
d2map Clean up monstats2 (#555) 2020-07-07 15:04:18 -04:00
d2object Apply some more object animation settings (#549) 2020-07-06 20:12:53 -04:00
d2render/ebiten cleaned globals of the d2render/ebiten package (#554) 2020-07-07 08:57:40 -04:00
d2screen moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
d2term moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
d2ui Centralized usage of Fonts to fix cache #515 (#556) 2020-07-07 20:16:22 -04:00