Add data components 151-175; clear MyGo row highlights
Lists, tables, trees, grids, inventories and records in data/. Outline and GridView build on ui.List: ui.Outline strokes its arrows and ui.GridView spaces and tints items. The pixel theme keeps MyGo's row highlights clear so scrolled rows stay on whole dots; off lists take a veil against the wheel. Adds Canvas.Silhouette, SwitchOptions Label and exports Rarity.Slot.
This commit is contained in:
47 files changed
+3379
-17
No files matched your search
@@ -19,6 +19,14 @@ func TestSpriteLettersMatchSlots(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestSilhouetteKeepsShapeInOneSlot(t *testing.T) {
|
||||
sp := pixel.MustSprite("#a.g")
|
||||
d := canvas(t, 8, 2, func(g pixel.Canvas) { g.Silhouette(0, 0, sp, 0, pixel.Shade, 2) })
|
||||
if d.count(0, 0, 4, 2, pixel.Shade) != 8 || d.count(4, 0, 2, 2, pixel.Back) != 4 || d.count(6, 0, 2, 2, pixel.Shade) != 4 {
|
||||
t.Fatal("Silhouette must fill the shape, scaled, in one slot")
|
||||
}
|
||||
}
|
||||
|
||||
func TestSpriteFramesMirrorScale(t *testing.T) {
|
||||
sp := pixel.MustSprite(`
|
||||
#a.
|
||||
|
||||
Reference in new issue
Block a user