Documentation
¶
Index ¶
- func ConfigEditor(cfg *appconfig.Config, showAdvanced *bool, queryBuf *string) (changed bool)
- func DrawHashConverter(s *HashConverterState)
- func DrawTask(name string, ts tasks.TaskState)
- func FileMetadata(meta app.FileMetadata)
- func FilterListButton[T comparable](title string, windowOpen *bool, sel map[T]struct{}) bool
- func FilterListWindow[T comparable](title string, windowOpen *bool, searchHint string, queryBuf *string, ...) bool
- func GLView(name string, fb *GLViewState, size imgui.Vec2, processViewAreaInputIG func(), ...)
- func GamefileLinkText(file stingray.FileID)
- func GamefileLinkTextF(file stingray.FileID, format string, args ...any)
- func PopGamefileLinkFile() (_ stingray.FileID, ok bool)
- type Extension
- type FilterListSection
- type GLViewState
- type HashConverterState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigEditor ¶
func DrawHashConverter ¶ added in v0.7.15
func DrawHashConverter(s *HashConverterState)
func FileMetadata ¶ added in v0.7.0
func FileMetadata(meta app.FileMetadata)
func FilterListButton ¶ added in v0.5.10
func FilterListButton[T comparable](title string, windowOpen *bool, sel map[T]struct{}) bool
func FilterListWindow ¶ added in v0.5.10
func FilterListWindow[T comparable](title string, windowOpen *bool, searchHint string, queryBuf *string, sections []FilterListSection[T], sel *map[T]struct{}, searchText func(x T) string, drawItem func(x T, selected *bool)) bool
FilterListWindow shows a searchable list of items with checkboxes and a "deselect all" button. You may use NextWindowXXX before this function. Returns true if a selection was changed. Searches through searchText for each item. drawItem should draw an item using selected as selection state and modifying selected if the selection state was changed.
func GamefileLinkText ¶ added in v0.6.9
GamefileLinkText is like GamefileLinkTextF, but displays the file name (format name.type) as text.
func GamefileLinkTextF ¶ added in v0.6.9
GamefileLinkTextF draws text that can be right-clicked to copy the given game file hash to clipboard, or left-clicked to jump to that file in the browser.
func PopGamefileLinkFile ¶ added in v0.6.9
PopGamefileLinkFile gets the last clicked gamefile link and resets it. ok is returned true if and only if there is a game file to be opened.
Types ¶
type Extension ¶ added in v0.7.32
type Extension struct {
// contains filtered or unexported fields
}
func NewExtension ¶ added in v0.7.32
func (*Extension) DrawAndUpdate ¶ added in v0.7.35
func (*Extension) HaveRequestedVersion ¶ added in v0.7.32
Returns true if requested version is already downloaded.
type FilterListSection ¶ added in v0.5.18
type FilterListSection[T comparable] struct { Title string // empty string for no title Items []T }
type GLViewState ¶
type GLViewState struct {
// contains filtered or unexported fields
}
func NewGLView ¶
func NewGLView() (*GLViewState, error)
func (*GLViewState) Delete ¶
func (fb *GLViewState) Delete()
type HashConverterState ¶ added in v0.7.15
type HashConverterState struct {
HaveValue bool
Value stingray.Hash
HexInput string
DecimalInput string
// contains filtered or unexported fields
}
func NewHashConverter ¶ added in v0.7.15
func NewHashConverter() *HashConverterState