Files
questshock/modding/hacked/editor/project/SaveModFailedState.go
T

29 lines
535 B
Go

package project
import (
"time"
"github.com/inkyblackness/imgui-go/v3"
"github.com/inkyblackness/hacked/ui/gui"
)
type saveModFailedState struct {
machine gui.ModalStateMachine
view *View
errorInfo string
}
func (state saveModFailedState) Render() {
imgui.OpenPopup("Save mod as")
state.machine.SetState(&saveModAsWaitingState{
machine: state.machine,
view: state.view,
failureTime: time.Now(),
errorInfo: state.errorInfo,
})
}
func (state saveModFailedState) HandleFiles(names []string) {
}