1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-22 07:05:23 +00:00
OpenDiablo2/d2common/d2enum
juander-ux e5dae4e5d8
Inital skilltree panel implementation (#782)
* 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>
2020-10-22 12:54:45 -04:00
..
animation_frame_direction.go d2enum lint (#700) 2020-08-06 16:45:22 -04:00
animation_frame_event.go d2enum lint (#700) 2020-08-06 16:45:22 -04:00
animation_frame.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
composite_type_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
composite_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
doc.go moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
draw_effect.go lint fixes (#727) 2020-09-12 16:25:09 -04:00
encoding_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
equipped_slot.go D2items WIP (#646) 2020-07-30 10:14:15 -04:00
filter.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
hero_stance.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
hero_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
hero_string2enum.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
hero.go Inital skilltree panel implementation (#782) 2020-10-22 12:54:45 -04:00
input_button.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
input_key.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
input_priority.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
inventory_item_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
item_affix_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
item_event_functions.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
item_events.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
item_quality.go d2enum lint (#700) 2020-08-06 16:45:22 -04:00
layer_stream_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
level_generation_types.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
level_teleport_flags.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
monster_alignment_type.go fixed monstats lint errors, added doc file for d2datadict (#494) 2020-06-29 18:46:31 -04:00
monster_animation_mode_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
monster_animation_mode.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
monster_combat_type.go fixed monstats lint errors, added doc file for d2datadict (#494) 2020-06-29 18:46:31 -04:00
monumod_const_index.go d2enum lint (#700) 2020-08-06 16:45:22 -04:00
npc_action_type.go Removing lint errors in npc.go, mapstamp.go (#597) 2020-07-17 18:51:19 -04:00
object_animation_mode_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
object_animation_mode_string2enum.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
object_animation_mode.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
object_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
operator_type.go Resolved most lint errors in d2data and d2datadict (#499) 2020-06-30 09:17:07 -04:00
pet_icon_type.go d2enum lint (#700) 2020-08-06 16:45:22 -04:00
player_animation_mode_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
player_animation_mode.go Initial cast overlay implementation. Fix HeroSkill deserialization & map entities processing crashing for remote client. (#766) 2020-10-10 18:47:51 -04:00
readme.md merged d2shared into the core package (#275) 2020-01-26 00:39:13 -05:00
region_id.go lint fixes (#615) 2020-07-23 12:56:50 -04:00
region_layer.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
render_type.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
terminal_category.go moving enumerations out of d2interface (#552) 2020-07-06 21:26:08 -04:00
tile.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
weapon_class_string.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
weapon_class_string2enum.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
weapon_class.go Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00

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