mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-01-12 20:36:25 -05:00
e5dae4e5d8
* d2ui/UIFrame: Refactor into its own class it's not useful to have the handling of frames for the inventory/herostate/skilltree/quest panels individually in each of those. * d2ui/button: Fix crash when a buttonlayout was not allowing FrameChange When AllowFrameChange is false we do not create pressedSurface. So if we press the button the game will crash. * d2ui/button: Allow label-only buttons At least for the skillmenu we need buttons were the graphic size does not match the buttonsize. So let's render the graphic in there and make the button label only. * d2hero/hero_state_factory: Give all heroes their class specific skills * d2player/gamecontrols: Fix wrong inventory/stats layouts for exp chars For Druid/Assassin the inventory frame was rendered for a 640x480 resolution. This brings it in line with all other characters. * d2player: Add inital Skilltree panel * d2player/game_controls: Enable skilltree Note here, that the inventory panel and skilltree panel can overlap. * d2player/skilltree: Add skillicon rendering Note here, that I couldn't figure out how to render them dark if no skillpoints are invested. Signed-off-by: juander <juander@rumtueddeln.de> |
||
---|---|---|
.. | ||
animation_frame_direction.go | ||
animation_frame_event.go | ||
animation_frame.go | ||
composite_type_string.go | ||
composite_type.go | ||
doc.go | ||
draw_effect.go | ||
encoding_type.go | ||
equipped_slot.go | ||
filter.go | ||
hero_stance.go | ||
hero_string2enum.go | ||
hero_string.go | ||
hero.go | ||
input_button.go | ||
input_key.go | ||
input_priority.go | ||
inventory_item_type.go | ||
item_affix_type.go | ||
item_event_functions.go | ||
item_events.go | ||
item_quality.go | ||
layer_stream_type.go | ||
level_generation_types.go | ||
level_teleport_flags.go | ||
monster_alignment_type.go | ||
monster_animation_mode_string.go | ||
monster_animation_mode.go | ||
monster_combat_type.go | ||
monumod_const_index.go | ||
npc_action_type.go | ||
object_animation_mode_string2enum.go | ||
object_animation_mode_string.go | ||
object_animation_mode.go | ||
object_type.go | ||
operator_type.go | ||
pet_icon_type.go | ||
player_animation_mode_string.go | ||
player_animation_mode.go | ||
readme.md | ||
region_id.go | ||
region_layer.go | ||
render_type.go | ||
terminal_category.go | ||
tile.go | ||
weapon_class_string2enum.go | ||
weapon_class_string.go | ||
weapon_class.go |
OpenDiablo2 Enums
Items in this folder are compiled with two programs. You can obtain them by running the following:
go get golang.org/x/tools/cmd/stringer
go get github.com/mewspring/tools/cmd/string2enum
Once you have the tools installed, simply run the following command in this folder to regenerate the support files:
go generate
If you add any enums (e.g. AnimationMode
), make sure to add the following to the end of the
file:
//go:generate stringer -linecomment -type AnimationMode