2020-11-01 22:43:23 -05:00
|
|
|
package d2enum
|
|
|
|
|
|
|
|
// GameEvent represents an envent in the game engine
|
|
|
|
type GameEvent int
|
|
|
|
|
|
|
|
// Game events
|
|
|
|
const (
|
|
|
|
// ToggleGameMenu will display the game menu
|
|
|
|
ToggleGameMenu GameEvent = iota + 1
|
|
|
|
|
|
|
|
// panel toggles
|
|
|
|
ToggleCharacterPanel
|
|
|
|
ToggleInventoryPanel
|
|
|
|
TogglePartyPanel
|
|
|
|
ToggleSkillTreePanel
|
|
|
|
ToggleHirelingPanel
|
|
|
|
ToggleQuestLog
|
|
|
|
ToggleHelpScreen
|
|
|
|
ToggleChatOverlay
|
|
|
|
ToggleMessageLog
|
|
|
|
ToggleRightSkillSelector // these two are for left/right speed-skill panel toggles
|
|
|
|
ToggleLeftSkillSelector
|
|
|
|
|
|
|
|
ToggleAutomap
|
|
|
|
CenterAutomap // recenters the automap when opened
|
|
|
|
FadeAutomap // reduces the brightness of the map (not the players/npcs)
|
|
|
|
TogglePartyOnAutomap // toggles the display of the party members on the automap
|
|
|
|
ToggleNamesOnAutomap // toggles the display of party members names and npcs on the automap
|
2020-11-13 15:03:30 -05:00
|
|
|
ToggleMiniMap
|
2020-11-01 22:43:23 -05:00
|
|
|
|
|
|
|
// there can be 16 hotkeys, each hotkey can have a skill assigned
|
|
|
|
UseSkill1
|
|
|
|
UseSkill2
|
|
|
|
UseSkill3
|
|
|
|
UseSkill4
|
|
|
|
UseSkill5
|
|
|
|
UseSkill6
|
|
|
|
UseSkill7
|
|
|
|
UseSkill8
|
|
|
|
UseSkill9
|
|
|
|
UseSkill10
|
|
|
|
UseSkill11
|
|
|
|
UseSkill12
|
|
|
|
UseSkill13
|
|
|
|
UseSkill14
|
|
|
|
UseSkill15
|
|
|
|
UseSkill16
|
|
|
|
|
|
|
|
// switching between prev/next skill
|
|
|
|
SelectPreviousSkill
|
|
|
|
SelectNextSkill
|
|
|
|
|
|
|
|
// ToggleBelts toggles the display of the different level for
|
|
|
|
// the currently equipped belt
|
|
|
|
ToggleBelts
|
|
|
|
UseBeltSlot1
|
|
|
|
UseBeltSlot2
|
|
|
|
UseBeltSlot3
|
|
|
|
UseBeltSlot4
|
|
|
|
|
|
|
|
SwapWeapons
|
2020-11-13 15:03:30 -05:00
|
|
|
ToggleChatBox
|
2020-11-01 22:43:23 -05:00
|
|
|
ToggleRunWalk
|
|
|
|
|
2020-11-13 15:03:30 -05:00
|
|
|
SayHelp
|
|
|
|
SayFollowMe
|
|
|
|
SayThisIsForYou
|
|
|
|
SayThanks
|
|
|
|
SaySorry
|
|
|
|
SayBye
|
|
|
|
SayNowYouDie
|
|
|
|
SayRetreat
|
|
|
|
|
2020-11-01 22:43:23 -05:00
|
|
|
// these events are fired while a player holds the corresponding key
|
|
|
|
HoldRun
|
|
|
|
HoldStandStill
|
|
|
|
HoldShowGroundItems
|
|
|
|
HoldShowPortraits
|
|
|
|
|
2020-11-13 15:03:30 -05:00
|
|
|
TakeScreenShot
|
2020-11-01 22:43:23 -05:00
|
|
|
ClearScreen // closes all active menus/panels
|
2020-11-13 15:03:30 -05:00
|
|
|
ClearMessages
|
2020-11-01 22:43:23 -05:00
|
|
|
)
|