Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -0,0 +1,31 @@
package textures
import (
"github.com/inkyblackness/hacked/ss1/content/texture"
"github.com/inkyblackness/hacked/ss1/world"
)
type setTexturePropertiesCommand struct {
model *viewModel
textureIndex int
oldProperties texture.Properties
newProperties texture.Properties
}
func (cmd setTexturePropertiesCommand) Do(modder world.Modder) error {
return cmd.perform(modder, cmd.newProperties)
}
func (cmd setTexturePropertiesCommand) Undo(modder world.Modder) error {
return cmd.perform(modder, cmd.oldProperties)
}
func (cmd setTexturePropertiesCommand) perform(modder world.Modder, properties texture.Properties) error {
modder.SetTextureProperties(cmd.textureIndex, properties)
cmd.model.restoreFocus = true
cmd.model.currentIndex = cmd.textureIndex
return nil
}