27 lines
548 B
Go
27 lines
548 B
Go
package movies
|
|
|
|
import (
|
|
"github.com/inkyblackness/hacked/ss1/resource"
|
|
"github.com/inkyblackness/hacked/ss1/world/ids"
|
|
)
|
|
|
|
type viewModel struct {
|
|
windowOpen bool
|
|
restoreFocus bool
|
|
|
|
currentKey resource.Key
|
|
currentSubtitleLang resource.Language
|
|
currentScene int
|
|
currentFrame int
|
|
|
|
frameTimeFraction int
|
|
}
|
|
|
|
func freshViewModel() viewModel {
|
|
return viewModel{
|
|
currentKey: resource.KeyOf(ids.MovieIntro, resource.LangDefault, 0),
|
|
currentSubtitleLang: resource.LangDefault,
|
|
frameTimeFraction: -1,
|
|
}
|
|
}
|