forked from Vikyanite/hidden-record-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,7 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"fyne.io/fyne/v2/app" | ||
"fyne.io/fyne/v2/container" | ||
"fyne.io/fyne/v2/widget" | ||
"hidden-record-assistant/service/query" | ||
) | ||
|
||
func ShowUI() { | ||
a := app.New() | ||
w := a.NewWindow("LOL隐藏战绩查询小助手") | ||
|
||
hello := widget.NewLabel("Hello Fyne!") | ||
w.SetContent(container.NewVBox( | ||
hello, | ||
widget.NewButton("Hi!", func() { | ||
hello.SetText("Welcome :)") | ||
}), | ||
)) | ||
|
||
w.ShowAndRun() | ||
} | ||
import "hidden-record-assistant/view" | ||
|
||
func main() { | ||
res, err := query.SendQuery("1", "乞力马扎罗的雪丶") | ||
fmt.Printf("%v %v\n", res, err) | ||
view.Show() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package view | ||
|
||
import ( | ||
"fyne.io/fyne/v2" | ||
"fyne.io/fyne/v2/app" | ||
"fyne.io/fyne/v2/container" | ||
"fyne.io/fyne/v2/widget" | ||
) | ||
|
||
func Show() { | ||
a := app.New() | ||
w := a.NewWindow("LOL隐藏战绩查询小助手") | ||
w.Resize(fyne.NewSize(400, 300)) | ||
|
||
hello := container.NewBorder(nil, nil, nil, | ||
container.NewBorder(nil, nil, | ||
widget.NewLabel("大区: "), widget.NewSelect([]string{"艾欧尼亚", "德玛西亚"}, func(s string) {}), | ||
), | ||
) | ||
w.SetContent(container.NewBorder( | ||
hello, | ||
widget.NewButton("Submit", func() { | ||
w.SetContent(container.NewVBox(widget.NewLabel("TODO PAGE..."))) | ||
}), | ||
nil, nil, | ||
widget.NewEntry(), | ||
)) | ||
|
||
w.ShowAndRun() | ||
} |
This file was deleted.
Oops, something went wrong.