Skip to content

Commit

Permalink
c/g/hud|s/bot: Some missing changes on bot and hud
Browse files Browse the repository at this point in the history
Those changes where missed because i was distracted
  • Loading branch information
xescugc committed May 20, 2024
1 parent aacab22 commit d520096
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
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

0 comments on commit d520096

Please sign in to comment.