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

c/g/hud|s/bot: Some missing changes on bot and hud #221

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client/game/hud.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,10 @@ func (hs *HUDStore) buildUI() {
widget.ListOpts.EntryFontFace(cutils.SmallFont),
// Set the colors for the list
widget.ListOpts.EntryColor(&widget.ListEntryColor{
Selected: color.NRGBA{0, 255, 0, 255}, // Foreground color for the unfocused selected entry
Selected: color.NRGBA{254, 255, 255, 255}, // Foreground color for the unfocused selected entry
Unselected: color.NRGBA{254, 255, 255, 255}, // Foreground color for the unfocused unselected entry
SelectedBackground: color.NRGBA{R: 130, G: 130, B: 200, A: 255}, // Background color for the unfocused selected entry
SelectedFocusedBackground: color.NRGBA{R: 130, G: 130, B: 170, A: 255}, // Background color for the focused selected entry
SelectedBackground: color.NRGBA{R: 100, G: 100, B: 100, A: 255}, // Background color for the unfocused selected entry
SelectedFocusedBackground: color.NRGBA{R: 100, G: 100, B: 100, A: 255}, // Background color for the focused selected entry
FocusedBackground: color.NRGBA{R: 170, G: 170, B: 180, A: 255}, // Background color for the focused unselected entry
DisabledUnselected: color.NRGBA{100, 100, 100, 255}, // Foreground color for the disabled unselected entry
DisabledSelected: color.NRGBA{100, 100, 100, 255}, // Foreground color for the disabled selected entry
Expand Down
36 changes: 18 additions & 18 deletions server/bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,28 @@ func (b *Bot) Node() bht.Node {
return bht.New(
bht.Shuffle(bht.Selector, nil),
// Units
//bht.New(
//bht.Selector,
//// Update
//bht.New(
//bht.Selector,
//b.updateUnits()...,
//),
//// Summon
//bht.New(
//bht.Shuffle(bht.Selector, nil),
//b.summonUnits()...,
//),
//),
bht.New(
bht.Selector,
// Update
bht.New(
bht.Selector,
b.updateUnits()...,
),
// Summon
bht.New(
bht.Shuffle(bht.Selector, nil),
b.summonUnits()...,
),
),
// Towers
bht.New(
bht.Shuffle(bht.Selector, nil),
// Update
//bht.New(
//bht.Sequence,
//bht.New(b.findTowerToUpdate()),
//bht.New(b.updateTower()),
//),
bht.New(
bht.Sequence,
bht.New(b.findTowerToUpdate()),
bht.New(b.updateTower()),
),
// Place
bht.New(
bht.Shuffle(bht.Selector, nil),
Expand Down
Loading