Skip to content

Commit aac8509

Browse files
committed
Continuing checkin...
1 parent 77e6ec7 commit aac8509

45 files changed

Lines changed: 5063 additions & 37 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/bbe/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ func init() {
1313

1414
// Main entrypoint for the BitBox Editor.
1515
func main() {
16-
1716
editor := app.NewBitboxEditor()
1817
editor.Run()
1918
}

go.mod

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,25 @@ module bitbox-editor
33
go 1.24.4
44

55
require (
6-
github.com/AllenDang/cimgui-go v1.4.1-0.20251013123209-494ea57624c8 // v1.4.0
6+
github.com/AllenDang/cimgui-go v1.4.1-0.20251013123209-494ea57624c8
77
github.com/BurntSushi/toml v1.5.0
88
github.com/fsnotify/fsnotify v1.9.0
99
github.com/gopxl/beep/v2 v2.1.1
1010
github.com/muesli/go-app-paths v0.2.2
1111
github.com/silbinarywolf/preferdiscretegpu v1.0.0
1212
github.com/spf13/viper v1.21.0
1313
go.uber.org/zap v1.27.0
14-
golang.org/x/exp v0.0.0-20250911091902-df9299821621
14+
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546
1515
)
1616

1717
require (
1818
github.com/go-gl/mathgl v1.2.0
1919
github.com/google/uuid v1.6.0
2020
github.com/mjibson/go-dsp v0.0.0-20180508042940-11479a337f12
21+
github.com/ungerik/go3d v0.0.0-20251020194721-1bde1320d420
2122
gitlab.com/gomidi/midi/v2 v2.3.16
23+
golang.org/x/image v0.32.0
24+
honnef.co/go/curve v0.0.0-20250325031802-e021cd9ef495
2225
)
2326

2427
require (
@@ -35,10 +38,8 @@ require (
3538
github.com/spf13/cast v1.10.0 // indirect
3639
github.com/spf13/pflag v1.0.10 // indirect
3740
github.com/subosito/gotenv v1.6.0 // indirect
38-
github.com/ungerik/go3d v0.0.0-20251020194721-1bde1320d420 // indirect
3941
go.uber.org/multierr v1.10.0 // indirect
4042
go.yaml.in/yaml/v3 v3.0.4 // indirect
4143
golang.org/x/sys v0.36.0 // indirect
42-
golang.org/x/text v0.28.0 // indirect
43-
honnef.co/go/curve v0.0.0-20250325031802-e021cd9ef495 // indirect
44+
golang.org/x/text v0.30.0 // indirect
4445
)

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
2828
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
2929
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
3030
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
31-
github.com/maniartech/signals v1.3.1 h1:pT3dK6x5Un+B6L3ZLAKygEe+L49TClPreyT08vOoHXY=
32-
github.com/maniartech/signals v1.3.1/go.mod h1:AbE8Yy9ZjKCWNU/VhQ+0Ea9KOaTWHp6aOfdLBe5m1iM=
3331
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
3432
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
3533
github.com/mjibson/go-dsp v0.0.0-20180508042940-11479a337f12 h1:dd7vnTDfjtwCETZDrRe+GPYNLA1jBtbZeyfyE8eZCyk=
@@ -76,12 +74,14 @@ go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
7674
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
7775
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
7876
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
79-
golang.org/x/exp v0.0.0-20250911091902-df9299821621 h1:2id6c1/gto0kaHYyrixvknJ8tUK/Qs5IsmBtrc+FtgU=
80-
golang.org/x/exp v0.0.0-20250911091902-df9299821621/go.mod h1:TwQYMMnGpvZyc+JpB/UAuTNIsVJifOlSkrZkhcvpVUk=
77+
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY=
78+
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70=
79+
golang.org/x/image v0.32.0 h1:6lZQWq75h7L5IWNk0r+SCpUJ6tUVd3v4ZHnbRKLkUDQ=
80+
golang.org/x/image v0.32.0/go.mod h1:/R37rrQmKXtO6tYXAjtDLwQgFLHmhW+V6ayXlxzP2Pc=
8181
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
8282
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
83-
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
84-
golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
83+
golang.org/x/text v0.30.0 h1:yznKA/E9zq54KzlzBEAWn1NXSQ8DIp/NYMy88xJjl4k=
84+
golang.org/x/text v0.30.0/go.mod h1:yDdHFIX9t+tORqspjENWgzaCVXgk0yYnYuSZ8UzzBVM=
8585
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
8686
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
8787
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

internal/app/component/dummy.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package component
2+
3+
import "github.com/AllenDang/cimgui-go/imgui"
4+
5+
// TODO: Add documentation
6+
7+
type DummyComponent struct {
8+
*Component[*DummyComponent]
9+
size imgui.Vec2
10+
}
11+
12+
func (dc *DummyComponent) handleUpdate(cmd UpdateCmd) {
13+
dc.Component.HandleGlobalUpdate(cmd)
14+
}
15+
16+
func (dc *DummyComponent) Layout() {
17+
dc.Component.ProcessUpdates()
18+
imgui.Dummy(dc.Component.size)
19+
}
20+
21+
func NewDummy() *DummyComponent {
22+
cmp := &DummyComponent{}
23+
cmp.Component = NewComponent[*DummyComponent](imgui.IDStr("##dummy"), cmp.handleUpdate)
24+
cmp.Component.SetLayoutBuilder(cmp)
25+
return cmp
26+
}

0 commit comments

Comments
 (0)