hotfix: bad code

This commit is contained in:
Muhammad Nauman Raza 2023-07-23 15:28:06 +01:00
parent 888bcb0404
commit 65c57d1d3e

View file

@ -6,7 +6,7 @@ import (
"image/color" "image/color"
// String convert // String convert
"strconv" // "strconv"
// EbitenUI // EbitenUI
"github.com/ebitenui/ebitenui" "github.com/ebitenui/ebitenui"
@ -84,7 +84,7 @@ func uiInit(width, height int) UI {
// health := widget.NewButton( // health := widget.NewButton(
// widget.ButtonOpts.Text(strconv.Itoa(activePlayer.health), face, buttonTextColor), // widget.ButtonOpts.Text(strconv.Itoa(activePlayer.health), face, buttonTextColor),
// ) // )
tabProfile.AddChild(health) // tabProfile.AddChild(health)
tabInventory := widget.NewTabBookTab("Inventory", tabInventory := widget.NewTabBookTab("Inventory",
widget.ContainerOpts.BackgroundImage(image.NewNineSliceColor(color.NRGBA{0, 255, 0, 0xff})), widget.ContainerOpts.BackgroundImage(image.NewNineSliceColor(color.NRGBA{0, 255, 0, 0xff})),