combine all code into a single binary

This commit is contained in:
cuu
2018-12-08 22:43:20 +08:00
parent 1826b16bee
commit 6ef7260d1f
9 changed files with 190 additions and 141 deletions

View File

@@ -1,4 +1,4 @@
package main
package Settings
import (
"github.com/veandco/go-sdl2/ttf"
@@ -58,14 +58,6 @@ func (self *SettingsPageSelector) Draw() {
}
}
type SettingPlugin struct{
Type int
SoFile string
FolderName string
LabelText string
EmbInterface UI.PluginInterface
}
//##############################################//
type SettingsPage struct {
@@ -93,17 +85,17 @@ func NewSettingsPage() *SettingsPage {
return p
}
func (self *SettingsPage) GenList() []*SettingPlugin {
alist := []*SettingPlugin{
func (self *SettingsPage) GenList() []*UI.UIPlugin {
alist := []*UI.UIPlugin{
&SettingPlugin{0,"", "Wifi", "Wi-Fi",&Wifi.APIOBJ},
&UI.UIPlugin{0,"", "Wifi", "Wi-Fi",&Wifi.APIOBJ},
&SettingPlugin{0,"", "Sound", "Sound Volume" , &Sound.APIOBJ},
&SettingPlugin{0,"", "Brightness", "BackLight Brightness", &Brightness.APIOBJ},
&SettingPlugin{0,"", "Update", "Update", &Update.APIOBJ},
&SettingPlugin{0,"", "About", "About", &About.APIOBJ},
&UI.UIPlugin{0,"", "Sound", "Sound Volume" , &Sound.APIOBJ},
&UI.UIPlugin{0,"", "Brightness", "BackLight Brightness", &Brightness.APIOBJ},
&UI.UIPlugin{0,"", "Update", "Update", &Update.APIOBJ},
&UI.UIPlugin{0,"", "About", "About", &About.APIOBJ},
&SettingPlugin{1,"", "LauncherPy", "Switch to Launcher", &LauncherPy.APIOBJ},
&UI.UIPlugin{1,"", "LauncherPy", "Switch to Launcher", &LauncherPy.APIOBJ},
}