File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed
Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -161,12 +161,23 @@ function DialogKey:OnPlayerChoiceShow()
161161 end
162162
163163 for option in frame .optionPools :EnumerateActive () do
164- for button in option .buttons .buttonPool :EnumerateActive () do
165- local key = buttons [button .buttonID ]
166- if self .db .numKeysForPlayerChoice then
167- button .Text :SetText (key .. ' ' .. button .Text :GetText ())
164+ if option .buttons .buttonFramePool then -- 11.1.0
165+ for buttonFrame in option .buttons .buttonFramePool :EnumerateActive () do
166+ local button = buttonFrame .Button
167+ local key = buttons [button .buttonID ]
168+ if self .db .numKeysForPlayerChoice then
169+ button .Text :SetText (key .. ' ' .. button .Text :GetText ())
170+ end
171+ self .playerChoiceButtons [key ] = button
172+ end
173+ else -- 11.0.7
174+ for button in option .buttons .buttonPool :EnumerateActive () do
175+ local key = buttons [button .buttonID ]
176+ if self .db .numKeysForPlayerChoice then
177+ button .Text :SetText (key .. ' ' .. button .Text :GetText ())
178+ end
179+ self .playerChoiceButtons [key ] = button
168180 end
169- self .playerChoiceButtons [key ] = button
170181 end
171182 end
172183end
You can’t perform that action at this time.
0 commit comments