-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reworks dt1widget makeSubtileFlags to use dropdown menu #313
base: master
Are you sure you want to change the base?
Conversation
0c1c1ff
to
088e3cc
Compare
hswidget/dt1widget/widget.go
Outdated
@@ -579,13 +580,21 @@ func (p *widget) SetTileGroup(tileGroup int32) { | |||
} | |||
|
|||
func (p *widget) makeSubtileFlags(state *widgetState, tile *d2dt1.Tile) giu.Layout { | |||
sf := state.subtileFlag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to do that, just use state.subtileFlag
below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True! I'll fix this. This means that the OnChange func can also be removed making the giu.Combo a single line
088e3cc
to
28bf6c1
Compare
28bf6c1
to
4a4e5ef
Compare
4a4e5ef
to
8e03361
Compare
This merges change from OpenDiablo2#313
Resolves issue #311
Follows style of dropdown used in the dc6 widget