Documentation ¶
Index ¶
- Constants
- func IndexSliceTab(sl []tab, id int) int
- func InsertAtSliceInt(sl []int, item, index int) []int
- func InsertAtSliceTab(sl []tab, item tab, index int) []tab
- func RemoveSliceInt(sl []int, item int) (int, []int)
- func RemoveSliceTab(sl []tab, id int) (int, []tab)
- type ComboButton
- type DynamicBox
- type DynamicTab
- type Gui
- func (g *Gui) SetCBCompressAllToFile(f func(mp *Modpack, file string) error)
- func (g *Gui) SetCBCreateNewMod(f func() error)
- func (g *Gui) SetCBLoadAll(f func(path string) (*Modpack, error))
- func (g *Gui) SetCBSaveAll(f func(mp *Modpack, path string) error)
- func (g *Gui) SetCBSaveStepLO(f func(s *Step) error)
- func (g *Gui) Show()
- type Input
- type Mod
- type Modpack
- type Settings
- type Step
Constants ¶
View Source
const ( NO_ID = -11111 MP_ID = 50000 SMP_BASE_ID = 10000 )
Variables ¶
This section is empty.
Functions ¶
func IndexSliceTab ¶
func InsertAtSliceInt ¶
func InsertAtSliceTab ¶
func InsertAtSliceTab(sl []tab, item tab, index int) []tab
func RemoveSliceTab ¶
Types ¶
type ComboButton ¶
ComboButton is special type of button allowing you to Show/Hide combo. You need to provide your combo (allows to place it where you need it).
func NewComboButton ¶
func NewComboButton(buttonTitle string, options []string, combo *ui.Combobox) *ComboButton
func (*ComboButton) OnClicked ¶
func (cbtn *ComboButton) OnClicked(f func(b *ui.Button))
OnClicked will set OnSelected function for combo and set hiding/showing combo for button.
func (*ComboButton) Selected ¶
func (cbtn *ComboButton) Selected() int
type DynamicBox ¶
DynamicBox allows to remove child and keep good order, so you will always remove correct entry. DynamicBox is always padded by default.
func NewDynamicVbox ¶
func NewDynamicVbox() *DynamicBox
func (*DynamicBox) Delete ¶
func (db *DynamicBox) Delete(id int)
func (*DynamicBox) DeleteAll ¶
func (db *DynamicBox) DeleteAll()
type DynamicTab ¶
func NewDynamicTab ¶
func NewDynamicTab() *DynamicTab
func (*DynamicTab) Delete ¶
func (dt *DynamicTab) Delete(id int)
func (*DynamicTab) SetMargined ¶
func (dt *DynamicTab) SetMargined(id int, margined bool)
type Gui ¶
type Gui struct {
// contains filtered or unexported fields
}
func NewCreatorGUI ¶
func (*Gui) SetCBCompressAllToFile ¶
func (*Gui) SetCBCreateNewMod ¶
func (*Gui) SetCBSaveStepLO ¶
Click to show internal directories.
Click to hide internal directories.