1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-15 20:15:24 +00:00
OpenDiablo2/d2core
juander-ux 12821147ce
Ui panel refactor part 2 (#921)
* d2ui/skilltree: Don't render availSPLabel

this is handled by the ui_manager now.

* d2ui/custom_widget: Allow them to be cached into static images

* d2player/hero_stats_panel: Remove render() function from game_controls

all ui elements are now grouped into a WidgetGroup, thus rendering is
done by the ui manager.

* d2player/hero_stats_panel: Remove unnecessary widgets from struct

we don't need to store them in the HeroStatsPanel struct anymore as they
are completly handled by the uiManager.

* d2ui/widget_group: Remove priority member

this is already defined by the BaseWidget.

* d2ui/widget: Move uiManager.contains() to the baseWidgets

this method makes more sense on a widget anyways.

* d2ui/widget: Add methods to handle widget hovering

* d2ui/custom_widget: Require define width/height

since the custom render() method can do whatever, we need the user to specify
the width/height such that GetSize() calls are meaningful.

* d2ui/widget: Allow widgets to return the uiManager

* d2player/HUD: Refactor health/mana globe into its own widget

* d2player/hud: Refactor load()

seperate each type of loading into its own method.

* d2player/HUD: Move stamina/exp bar into widgets

* d2player/HUD: Refactor left/right skills into widget

* d2ui/custom_widget: cached custom widgets should use widget.x/y

since we render to an image, we use widget.x/y to position the cached
image.

* d2player/HUD: User cached custom widget for all static images
2020-11-13 12:08:43 -08:00
..
d2asset Key binding menu (#918) 2020-11-13 12:03:30 -08:00
d2audio refactored game bootstrap, removed d2config.Config singleton (#899) 2020-11-03 07:54:15 -05:00
d2config refactored game bootstrap, removed d2config.Config singleton (#899) 2020-11-03 07:54:15 -05:00
d2gui Key binding menu (#918) 2020-11-13 12:03:30 -08:00
d2hero Health/Mana/Exp load values from save file #815 (#886) 2020-10-31 23:59:24 -04:00
d2input migrate to ebiten v2.0 API (#860) 2020-10-28 14:17:42 -04:00
d2inventory Removing TODO comments, making issues for them (#807) 2020-10-25 10:21:14 -04:00
d2item removed string table singleton from d2common/d2fileformats/d2tbl/ (#900) 2020-11-03 11:10:11 -08:00
d2map removed string table singleton from d2common/d2fileformats/d2tbl/ (#900) 2020-11-03 11:10:11 -08:00
d2records refactored logging in d2loader, d2record, and d2asset (#898) 2020-11-02 21:23:07 -05:00
d2render/ebiten Key binding menu (#918) 2020-11-13 12:03:30 -08:00
d2screen migrate to ebiten v2.0 API (#860) 2020-10-28 14:17:42 -04:00
d2stats removed string table singleton from d2common/d2fileformats/d2tbl/ (#900) 2020-11-03 11:10:11 -08:00
d2term fixed a couple lint errors in d2term (#697) 2020-08-05 22:32:23 -04:00
d2ui Ui panel refactor part 2 (#921) 2020-11-13 12:08:43 -08:00