Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

bbrucee
Copy link
Contributor

@bbrucee bbrucee commented Jun 8, 2021

Resolves issue #311

Follows style of dropdown used in the dc6 widget

@bbrucee bbrucee force-pushed the 311_dt1-widget-dropdown branch from 0c1c1ff to 088e3cc Compare June 8, 2021 00:10
@@ -579,13 +580,21 @@ func (p *widget) SetTileGroup(tileGroup int32) {
}

func (p *widget) makeSubtileFlags(state *widgetState, tile *d2dt1.Tile) giu.Layout {
sf := state.subtileFlag
Copy link
Contributor

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

Copy link
Contributor Author

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

@bbrucee bbrucee force-pushed the 311_dt1-widget-dropdown branch from 088e3cc to 28bf6c1 Compare June 8, 2021 13:41
@bbrucee bbrucee force-pushed the 311_dt1-widget-dropdown branch from 28bf6c1 to 4a4e5ef Compare June 8, 2021 20:44
@bbrucee bbrucee force-pushed the 311_dt1-widget-dropdown branch from 4a4e5ef to 8e03361 Compare June 8, 2021 21:31
gucio321
gucio321 previously approved these changes Jun 9, 2021
@gravestench gravestench linked an issue Jul 4, 2021 that may be closed by this pull request
gucio321 added a commit to gucio321/HellSpawner that referenced this pull request Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DT1 widget: subtitle type scrollbar should be a drop-down
4 participants