gui

package
v0.0.0-...-f5e84f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attack

func Attack() bool

func AttackUI

func AttackUI()

func BuildRandAtt

func BuildRandAtt(att, min, max float64) float64

func Clear

func Clear()

func Decimal

func Decimal(value float64, fix int) float64

func GetAttackTarget

func GetAttackTarget() int

func GetWantInput

func GetWantInput(rang ...int) (res int)

func InitGui

func InitGui() (err error)

func InitTarget

func InitTarget()

func MainUI

func MainUI()

func RunUI

func RunUI(uiIndex int)

func TargetUi

func TargetUi() fyne.CanvasObject

func UpgradeUI

func UpgradeUI()

Types

type AttributesBasicExt

type AttributesBasicExt struct {
	HP               float64
	LeftPer          float64
	LeftPerBd        binding.ExternalFloat
	HPStr            string
	HPStrBd          binding.ExternalString
	Def              float64
	DefStr           string
	DefStrBd         binding.ExternalString
	Attack           float64
	AttackStr        string
	AttackStrBd      binding.ExternalString
	AttackSpeed      float64
	AttackSpeedStr   string
	AttackSpeedStrBd binding.ExternalString
	RunAttackSpeed   float64
}

type MyGuiExt

type MyGuiExt struct {
	MainWindow fyne.Window
	// contains filtered or unexported fields
}
var Gui *MyGuiExt

func GetMyGui

func GetMyGui() *MyGuiExt

func (*MyGuiExt) Run

func (this *MyGuiExt) Run()

func (*MyGuiExt) SetStatus

func (this *MyGuiExt) SetStatus(txt string)

type TargetInfoExt

type TargetInfoExt struct {
	Level   int
	LevelBd binding.ExternalInt
	Name    string
	Str     string
	StrBd   binding.ExternalString
	AttInfo bytes.Buffer

	NorAtt AttributesBasicExt
	Tmp    AttributesBasicExt
	// contains filtered or unexported fields
}
var Monster *TargetInfoExt
var User *TargetInfoExt

func (*TargetInfoExt) AddStatusStr

func (this *TargetInfoExt) AddStatusStr(str string)

func (*TargetInfoExt) Alive

func (this *TargetInfoExt) Alive() bool

func (*TargetInfoExt) Attack

func (this *TargetInfoExt) Attack(tar *TargetInfoExt)

func (*TargetInfoExt) BindUi

func (this *TargetInfoExt) BindUi() fyne.CanvasObject

func (*TargetInfoExt) BuildNew

func (this *TargetInfoExt) BuildNew(min, max float64)

func (*TargetInfoExt) FlushStr

func (this *TargetInfoExt) FlushStr()

func (*TargetInfoExt) GetReduce

func (this *TargetInfoExt) GetReduce() (percent float64)

func (*TargetInfoExt) Rand

func (this *TargetInfoExt) Rand()

func (*TargetInfoExt) Rebuild

func (this *TargetInfoExt) Rebuild()

func (*TargetInfoExt) SetAttackUi

func (this *TargetInfoExt) SetAttackUi() (list []*widget.Label)

func (*TargetInfoExt) ShowStatus

func (this *TargetInfoExt) ShowStatus()

func (*TargetInfoExt) Upgrade

func (this *TargetInfoExt) Upgrade() fyne.CanvasObject

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL