1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-18 02:16:23 -05:00

d2ui: completed ButtonTypePartyBUtton's layout literal

This commit is contained in:
M. Sz 2021-01-19 18:25:16 +01:00
parent 27ca1c84ef
commit 931df47607

View File

@ -205,6 +205,10 @@ const (
buttonAddSkillSegmentsY = 1 buttonAddSkillSegmentsY = 1
buttonAddSkillDisabledFrame = 2 buttonAddSkillDisabledFrame = 2
partyButtonSegmentsX = 1
partyButtonSegmentsY = 1
partyButtonDisabledFrame = -1
pressedButtonOffset = 2 pressedButtonOffset = 2
) )
@ -216,6 +220,7 @@ func getButtonLayouts() map[ButtonType]*ButtonLayout {
YSegments: buttonWideSegmentsY, YSegments: buttonWideSegmentsY,
DisabledFrame: buttonWideDisabledFrame, DisabledFrame: buttonWideDisabledFrame,
DisabledColor: lightGreyAlpha75, DisabledColor: lightGreyAlpha75,
TextOffset: buttonWideTextOffset,
ResourceName: d2resource.WideButtonBlank, ResourceName: d2resource.WideButtonBlank,
PaletteName: d2resource.PaletteUnits, PaletteName: d2resource.PaletteUnits,
FontPath: d2resource.FontExocet10, FontPath: d2resource.FontExocet10,
@ -766,9 +771,9 @@ func getButtonLayouts() map[ButtonType]*ButtonLayout {
FixedHeight: ButtonNoFixedHeight, FixedHeight: ButtonNoFixedHeight,
}, },
ButtonTypePartyButton: { ButtonTypePartyButton: {
XSegments: 1, XSegments: partyButtonSegmentsX,
YSegments: 1, YSegments: partyButtonSegmentsY,
DisabledFrame: buttonWideDisabledFrame, DisabledFrame: partyButtonDisabledFrame,
DisabledColor: lightGreyAlpha75, DisabledColor: lightGreyAlpha75,
TextOffset: buttonWideTextOffset, TextOffset: buttonWideTextOffset,
ResourceName: d2resource.PartyButton, ResourceName: d2resource.PartyButton,