1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-04-14 10:20:51 +08:00
parent d784aec625
commit 422e209dc3
3 changed files with 4 additions and 2 deletions

View File

@ -64,7 +64,8 @@ func (g *Group) EchoRect(group string, height, width, x, y int, arg ...string) *
height, width, kit.Select("4", arg, 0), kit.Select("4", arg, 1), x, y, kit.JoinKV(ice.EQ, ice.SP, kit.Slice(arg, 2)...))
}
func (g *Group) EchoText(group string, x, y int, text string, arg ...string) *ice.Message {
return g.Echo(group, "<text x=%d y=%d %s>%s</text>", x, y, kit.JoinKV(ice.EQ, ice.SP, arg...), text)
float := kit.Int(kit.Select("2", "6", strings.Contains(g.Get(group).Option(ice.MSG_USERUA), "Chrome")))
return g.Echo(group, "<text x=%d y=%d %s>%s</text>", x, y+float, kit.JoinKV(ice.EQ, ice.SP, arg...), text)
}
func (g *Group) EchoTexts(group string, x, y int, text string, arg ...string) *ice.Message {
m := g.Get(group)

View File

@ -51,7 +51,7 @@ func (b *Block) Data(m *ice.Message, meta ice.Any) wiki.Chart {
return b
}
func (b *Block) Draw(m *ice.Message, x, y int) wiki.Chart {
float := kit.Int(kit.Select("2", "7", strings.Contains(m.Option(ice.MSG_USERUA), "iPhone")))
float := kit.Int(kit.Select("2", "6", strings.Contains(m.Option(ice.MSG_USERUA), "Chrome")))
if m.Option(HIDE_BLOCK) != ice.TRUE {
item := wiki.NewItem(`<rect height="%d" width="%d" rx="4" ry="4" x="%d" y="%d"`, b.GetHeight(), b.GetWidth(), x+b.MarginX/2, y+b.MarginY/2)
item.Push(`fill="%s"`, b.BackGround).Push(`%v`, b.RectData).Echo("/>").Dump(m)

View File

@ -58,6 +58,7 @@ func init() {
m.Push("", value, []string{nfs.PATH})
}, nfs.PATH)
m.Option(nfs.DIR_ROOT, _repos_path(arg[0]))
m.StatusTimeCount()
} else if len(arg) == 2 {
}