Adding modding folder with a hacked build.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package movies
|
||||
|
||||
import (
|
||||
"github.com/inkyblackness/imgui-go/v3"
|
||||
|
||||
"github.com/inkyblackness/hacked/ss1/content/movie"
|
||||
"github.com/inkyblackness/hacked/ui/gui"
|
||||
)
|
||||
|
||||
type compressionListenerFunc func(compressionResult)
|
||||
|
||||
type compressingStartState struct {
|
||||
machine gui.ModalStateMachine
|
||||
view *View
|
||||
|
||||
width int
|
||||
height int
|
||||
input movie.Scene
|
||||
listener compressionListenerFunc
|
||||
}
|
||||
|
||||
func (state compressingStartState) Render() {
|
||||
imgui.OpenPopup("Compressing...")
|
||||
task := newCompressionTask(state.input, state.width, state.height)
|
||||
state.machine.SetState(&compressingWaitingState{
|
||||
machine: state.machine,
|
||||
view: state.view,
|
||||
input: state.input,
|
||||
listener: state.listener,
|
||||
task: task,
|
||||
})
|
||||
go task.run()
|
||||
}
|
||||
|
||||
func (state compressingStartState) HandleFiles(names []string) {
|
||||
}
|
||||
Reference in New Issue
Block a user